[libgnomekbd] a bit of useful debug, just for myself



commit c40c9d76510fcde18af032d8e6e53b164a4dee81
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Sat Mar 6 15:22:31 2010 +0000

    a bit of useful debug, just for myself
    
    Sometimes it is nice to have images saved

 libgnomekbd/gkbd-status.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libgnomekbd/gkbd-status.c b/libgnomekbd/gkbd-status.c
index 571b603..cc978ba 100644
--- a/libgnomekbd/gkbd-status.c
+++ b/libgnomekbd/gkbd-status.c
@@ -24,6 +24,7 @@
 #include <gdk/gdkkeysyms.h>
 #include <gdk/gdkx.h>
 #include <glib/gi18n.h>
+#include <glib/gprintf.h>
 
 #include <gkbd-status.h>
 
@@ -278,6 +279,12 @@ gkbd_status_prepare_drawing (GkbdStatus * gki, int group)
 				      globals.current_size,
 				      globals.current_size);
 
+#if 0
+		char pngfilename[20];
+		g_sprintf(pngfilename, "label%d.png", group);
+		cairo_surface_write_to_png (cs, pngfilename);
+#endif
+
 		cairo_surface_destroy (cs);
 
 		image = gdk_pixbuf_new_from_data (pixbuf_data,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]