gnome-commander r2464 - in trunk: . doc/C plugins/cvs plugins/fileroller plugins/test



Author: epiotr
Date: Wed Feb 11 22:22:53 2009
New Revision: 2464
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2464&view=rev

Log:
Fixed problem #571247 (replacing obsoleted GnomePixmap with GtkImage)

Modified:
   trunk/ChangeLog
   trunk/NEWS
   trunk/doc/C/gnome-commander.xml
   trunk/plugins/cvs/cvs-plugin.c
   trunk/plugins/fileroller/file-roller-plugin.c
   trunk/plugins/test/test-plugin.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Wed Feb 11 22:22:53 2009
@@ -13,6 +13,7 @@
  * Fixed problem #567404 (crash when INSERT pressed over subdir)
  * Fixed problem #570727 (usage of deprecated gnome_url_show)
  * Fixed problem #571239 (replacing obsoleted GnomeColorPicker with GtkColorButton)
+ * Fixed problem #571247 (replacing obsoleted GnomePixmap with GtkImage)
  * Fixed problem with setting equal pane size in horizontal mode
 
 New features:

Modified: trunk/doc/C/gnome-commander.xml
==============================================================================
--- trunk/doc/C/gnome-commander.xml	(original)
+++ trunk/doc/C/gnome-commander.xml	Wed Feb 11 22:22:53 2009
@@ -5933,6 +5933,9 @@
                             <para>Fixed problem #571239 (replacing obsoleted GnomeColorPicker with GtkColorButton)</para>
                         </listitem>
                         <listitem>
+                            <para>Fixed problem #571247 (replacing obsoleted GnomePixmap with GtkImage)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem with setting equal pane size in horizontal mode</para>
                         </listitem>
                     </itemizedlist>

Modified: trunk/plugins/cvs/cvs-plugin.c
==============================================================================
--- trunk/plugins/cvs/cvs-plugin.c	(original)
+++ trunk/plugins/cvs/cvs-plugin.c	Wed Feb 11 22:22:53 2009
@@ -152,12 +152,15 @@
                   CvsPlugin *plugin)
 {
     GtkWidget *item, *label;
+    GdkPixbuf *pixbuf;
     GtkWidget *pixmap = NULL;
 
     if (show_pixmap)
     {
         item = gtk_image_menu_item_new ();
-        pixmap = gnome_pixmap_new_from_xpm_d ((const gchar**)cvs_plugin_xpm);
+        pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) cvs_plugin_xpm);
+        pixmap = gtk_image_new_from_pixbuf (pixbuf);
+        g_object_unref (G_OBJECT (pixbuf));
         if (pixmap)
         {
             gtk_widget_show (pixmap);

Modified: trunk/plugins/fileroller/file-roller-plugin.c
==============================================================================
--- trunk/plugins/fileroller/file-roller-plugin.c	(original)
+++ trunk/plugins/fileroller/file-roller-plugin.c	Wed Feb 11 22:22:53 2009
@@ -228,12 +228,15 @@
                   GtkSignalFunc callback, gpointer data)
 {
     GtkWidget *item, *label;
+    GdkPixbuf *pixbuf;
     GtkWidget *pixmap = NULL;
 
     if (show_pixmap)
     {
         item = gtk_image_menu_item_new ();
-        pixmap = gnome_pixmap_new_from_xpm_d ((const gchar**)file_roller_small_xpm);
+        pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) file_roller_small_xpm);
+        pixmap = gtk_image_new_from_pixbuf (pixbuf);
+        g_object_unref (G_OBJECT (pixbuf));
         if (pixmap)
         {
             gtk_widget_show (pixmap);

Modified: trunk/plugins/test/test-plugin.c
==============================================================================
--- trunk/plugins/test/test-plugin.c	(original)
+++ trunk/plugins/test/test-plugin.c	Wed Feb 11 22:22:53 2009
@@ -62,12 +62,15 @@
                   GtkSignalFunc callback, gpointer data)
 {
     GtkWidget *item, *label;
+    GdkPixbuf *pixbuf;
     GtkWidget *pixmap = NULL;
 
     if (show_pixmap)
     {
         item = gtk_image_menu_item_new ();
-        pixmap = gnome_pixmap_new_from_xpm_d ((const gchar**) test_plugin_xpm);
+        pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) test_plugin_xpm);
+        pixmap = gtk_image_new_from_pixbuf (pixbuf);
+        g_object_unref (G_OBJECT (pixbuf));
         if (pixmap)
         {
             gtk_widget_show (pixmap);



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