gtkxpaned: Remove style code from gtk_xpaned_realize().
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 30 Jul 2013 05:03:17 +0000 (22:03 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 30 Jul 2013 05:03:17 +0000 (22:03 -0700)
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

index 315f370caf9fd0113b0bfb0bd161b152b5b64064..95d58b6c58d9778dd623c47793d8911dc15a09db 100644 (file)
@@ -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