From: Ben Pfaff Date: Tue, 30 Jul 2013 05:03:17 +0000 (-0700) Subject: gtkxpaned: Remove style code from gtk_xpaned_realize(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=badc9b5b9fa30af9eb9f0f72f9bb3f33ca0fcdb0;p=pspp gtkxpaned: Remove style code from gtk_xpaned_realize(). gtk_style_attach() is deprecated in GTK+3 and the migration guide says that it is no longer needed. I guess it is possible that the gtk_widget_set_style() call is somehow still needed, but I don't understand the intent of that call and removing it seems to have no visible effect. --- diff --git a/lib/gtk-contrib/gtkxpaned.c b/lib/gtk-contrib/gtkxpaned.c index 315f370caf..95d58b6c58 100644 --- a/lib/gtk-contrib/gtkxpaned.c +++ b/lib/gtk-contrib/gtkxpaned.c @@ -1317,13 +1317,6 @@ gtk_xpaned_realize (GtkWidget * widget) g_object_unref (attributes_south.cursor); g_object_unref (attributes_middle.cursor); - { - GtkStyle *style = gtk_widget_get_style (widget); - style = gtk_style_attach (style, gtk_widget_get_window (widget)); - gtk_widget_set_style (widget, style); - } - - if (xpaned->top_left_child && gtk_widget_get_visible (xpaned->top_left_child) && xpaned->top_right_child