Author: olivier
Date: 2006-11-05 09:16:37 +0000 (Sun, 05 Nov 2006)
New Revision: 23706

Modified:
   xfce-mcs-plugins/trunk/plugins/display_plugin/display_plugin.c
Log:
Fix display plugin using deprecated API (part of bug #2500)

Modified: xfce-mcs-plugins/trunk/plugins/display_plugin/display_plugin.c
===================================================================
--- xfce-mcs-plugins/trunk/plugins/display_plugin/display_plugin.c      
2006-11-04 23:37:19 UTC (rev 23705)
+++ xfce-mcs-plugins/trunk/plugins/display_plugin/display_plugin.c      
2006-11-05 09:16:37 UTC (rev 23706)
@@ -742,12 +742,10 @@
     gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, TRUE, 0);
 
     /* resolution settings */
-    frame = xfce_framebox_new (_("Resolution"), TRUE);
-    gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
-
     vbox = gtk_vbox_new (FALSE, BORDER);
     gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER);
-    xfce_framebox_add (XFCE_FRAMEBOX (frame), vbox);
+    frame = xfce_create_framebox_with_content (_("Resolution"), vbox);
+    gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
 
     /* create the surrounding scrolled window */
     scrollwin = gtk_scrolled_window_new (NULL, NULL);
@@ -863,12 +861,10 @@
     g_object_unref (G_OBJECT (store));
 
     /* gamma settings */
-    frame = xfce_framebox_new (_("Gamma correction"), TRUE);
-    gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
-
     vbox = gtk_vbox_new (FALSE, BORDER);
     gtk_container_set_border_width (GTK_CONTAINER (vbox), BORDER);
-    xfce_framebox_add (XFCE_FRAMEBOX (frame), vbox);
+    frame = xfce_create_framebox_with_content (_("Gamma correction"), vbox);
+    gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
 
     /* */
     table = gtk_table_new (3, 3, FALSE);

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to