[Goodies-commits] r7870 - in xfce4-places-plugin/trunk: . panel-plugin

Diego Ongaro ongardie at xfce.org
Fri Jul 31 07:02:23 CEST 2009


Author: ongardie
Date: 2009-07-31 05:02:22 +0000 (Fri, 31 Jul 2009)
New Revision: 7870

Modified:
   xfce4-places-plugin/trunk/ChangeLog
   xfce4-places-plugin/trunk/panel-plugin/button.c
Log:
button.c: Use gtk_box_pack_{start,end} directly

gtk_box_pack_{start,end}_defaults variants are deprecated in GTK 2.14.

Modified: xfce4-places-plugin/trunk/ChangeLog
===================================================================
--- xfce4-places-plugin/trunk/ChangeLog	2009-07-31 00:56:31 UTC (rev 7869)
+++ xfce4-places-plugin/trunk/ChangeLog	2009-07-31 05:02:22 UTC (rev 7870)
@@ -1,3 +1,8 @@
+2009-07-30	Diego Ongaro <ongardie at gmail.com>
+
+	* button.c: Use gtk_box_pack_{start,end} directly, as _defaults
+	variants are deprecated in GTK 2.14.
+
 2009-05-27	Diego Ongaro <ongardie at gmail.com>
 
 	* cfg.c: Makes properties dialog non-modal. See bug #4468.

Modified: xfce4-places-plugin/trunk/panel-plugin/button.c
===================================================================
--- xfce4-places-plugin/trunk/panel-plugin/button.c	2009-07-31 00:56:31 UTC (rev 7869)
+++ xfce4-places-plugin/trunk/panel-plugin/button.c	2009-07-31 05:02:22 UTC (rev 7870)
@@ -341,7 +341,7 @@
      
     if (self->image == NULL) {
             self->image = g_object_ref(gtk_image_new_from_pixbuf(icon));
-            gtk_box_pack_start_defaults(GTK_BOX(self->box), self->image);
+            gtk_box_pack_start(GTK_BOX(self->box), self->image, TRUE, TRUE, 0);
             gtk_widget_show(self->image);
     }
     else
@@ -375,8 +375,7 @@
 
     if (self->label == NULL) {
         self->label = g_object_ref(gtk_label_new(self->label_text));
-        gtk_box_pack_end_defaults(GTK_BOX(self->box), 
-                                  self->label);
+        gtk_box_pack_end(GTK_BOX(self->box), self->label, TRUE, TRUE, 0);
         gtk_widget_show(self->label);
     }
     else




More information about the Goodies-commits mailing list