From badc9b5b9fa30af9eb9f0f72f9bb3f33ca0fcdb0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 29 Jul 2013 22:03:17 -0700 Subject: [PATCH] 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. --- lib/gtk-contrib/gtkxpaned.c | 7 ------- 1 file changed, 7 deletions(-) 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 -- 2.30.2