gnome-commander r2465 - in branches/gcmd-1-3: . doc/C plugins/cvs plugins/fileroller plugins/test



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

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

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

Modified: branches/gcmd-1-3/NEWS
==============================================================================
--- branches/gcmd-1-3/NEWS	(original)
+++ branches/gcmd-1-3/NEWS	Wed Feb 11 22:23:13 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: branches/gcmd-1-3/doc/C/gnome-commander.xml
==============================================================================
--- branches/gcmd-1-3/doc/C/gnome-commander.xml	(original)
+++ branches/gcmd-1-3/doc/C/gnome-commander.xml	Wed Feb 11 22:23:13 2009
@@ -5900,6 +5900,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: branches/gcmd-1-3/plugins/cvs/cvs-plugin.c
==============================================================================
--- branches/gcmd-1-3/plugins/cvs/cvs-plugin.c	(original)
+++ branches/gcmd-1-3/plugins/cvs/cvs-plugin.c	Wed Feb 11 22:23:13 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: branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c
==============================================================================
--- branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c	(original)
+++ branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c	Wed Feb 11 22:23:13 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: branches/gcmd-1-3/plugins/test/test-plugin.c
==============================================================================
--- branches/gcmd-1-3/plugins/test/test-plugin.c	(original)
+++ branches/gcmd-1-3/plugins/test/test-plugin.c	Wed Feb 11 22:23:13 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]