[Goodies-commits] r6463 - in xfce4-clipman-plugin/branches/xfce-4-6: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Thu Jan 15 11:18:20 CET 2009


Author: mmassonnet
Date: 2009-01-15 10:18:20 +0000 (Thu, 15 Jan 2009)
New Revision: 6463

Modified:
   xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog
   xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c
Log:
Some minor changes. (yet again)

Modified: xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog	2009-01-15 08:53:11 UTC (rev 6462)
+++ xfce4-clipman-plugin/branches/xfce-4-6/ChangeLog	2009-01-15 10:18:20 UTC (rev 6463)
@@ -11,6 +11,8 @@
 		Change the behavior of the "add-primary-selection" option to
 		copy the text to the default clipboard, so that it now behaves
 		like "what you select can be pasted".
+	- panel-plugin/panel-plugin.c(panel_plugin_load,panel_plugin_save):
+		Load/Save the images with the extension ".png".
 
 2009-01-14	Mike Massonnet
 The settings dialog is in.

Modified: xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c
===================================================================
--- xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c	2009-01-15 08:53:11 UTC (rev 6462)
+++ xfce4-clipman-plugin/branches/xfce-4-6/panel-plugin/panel-plugin.c	2009-01-15 10:18:20 UTC (rev 6463)
@@ -242,7 +242,7 @@
   /* Load images */
   while (TRUE)
     {
-      filename = g_strdup_printf ("%s/xfce4/clipman/image%d", g_get_user_cache_dir (), i++);
+      filename = g_strdup_printf ("%s/xfce4/clipman/image%d.png", g_get_user_cache_dir (), i++);
       DBG ("Loading image from cache file %s", filename);
       image = gdk_pixbuf_new_from_file (filename, NULL);
       g_unlink (filename);
@@ -312,7 +312,7 @@
               break;
 
             case CLIPMAN_HISTORY_TYPE_IMAGE:
-              filename = g_strdup_printf ("%s/xfce4/clipman/image%d", g_get_user_cache_dir (), n_images++);
+              filename = g_strdup_printf ("%s/xfce4/clipman/image%d.png", g_get_user_cache_dir (), n_images++);
               if (!gdk_pixbuf_save (item->content.image, filename, "png", NULL, NULL))
                 g_debug ("Failed to save image to cache file %s", filename);
               else




More information about the Goodies-commits mailing list