added a simple logger (for debugging purposes)
authormishas <mikhail.sobolev@gmail.com>
Mon, 21 Jan 2008 16:14:35 +0000 (16:14 +0000)
committermishas <mikhail.sobolev@gmail.com>
Mon, 21 Jan 2008 16:14:35 +0000 (16:14 +0000)
git-svn-id: file:///svnroot/simple-launcher/branches/new-items@275 3ba93dab-e023-0410-b42a-de7732cf370a

applet-wrapper.cc

index 22ffab1..5cc997c 100644 (file)
@@ -15,6 +15,7 @@
 // this program; if not, write to the Free Software Foundation, Inc., 51
 // Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
+#include <fstream>
 #include <cairo/cairo.h>
 
 #include <libhildondesktop/libhildondesktop.h>
@@ -40,6 +41,14 @@ extern "C" {
 HD_DEFINE_PLUGIN(SLAWrapper, sla_wrapper, HILDON_DESKTOP_TYPE_HOME_ITEM)
 };
 
+static void __logger(const std::string& what) {
+  std::ofstream log("/tmp/sla.log", std::fstream::app);
+
+  if (log) {
+    log << what << std::endl;
+  }
+}
+
 static void sla_wrapper_init(SLAWrapper *self) {
   GdkColormap *colormap = NULL;