Commit b5e6b744 authored by Javier Jardón's avatar Javier Jardón
Browse files

Fix accessor function

Use gtk_widget_style_attach() to replace
widget->style = gtk_style_attach (widget->style, widget->window);

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=609041
parent f797737d
......@@ -121,7 +121,7 @@ GTK_DOC_CHECK(1.9)
dnl ================================================================
dnl Check for gtk+
dnl ================================================================
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.19.0 gthread-2.0 libxml-2.0 >= 2.4.0])
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.19.5 gthread-2.0 libxml-2.0 >= 2.4.0])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
......
......@@ -132,7 +132,7 @@ glade_custom_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, custom);
gtk_widget_set_style (widget, gtk_style_attach (gtk_widget_get_style (widget), window));
gtk_widget_style_attach (widget);
glade_custom_send_configure (custom);
......
......@@ -655,8 +655,8 @@ glade_design_layout_realize (GtkWidget *widget)
&attributes, attributes_mask);
gdk_window_set_user_data (priv->event_window, widget);
style = gtk_style_attach (gtk_widget_get_style (widget), window);
gtk_widget_set_style (widget, style);
gtk_widget_style_attach (widget);
style = gtk_widget_get_style (widget);
gtk_style_set_background (style, window, GTK_STATE_NORMAL);
}
......
......@@ -211,7 +211,7 @@ glade_placeholder_realize (GtkWidget *widget)
gtk_widget_set_window (widget, window);
gdk_window_set_user_data (window, placeholder);
gtk_widget_set_style (widget, gtk_style_attach (gtk_widget_get_style (widget), gtk_widget_get_window (widget)));
gtk_widget_style_attach (widget);
glade_placeholder_send_configure (GLADE_PLACEHOLDER (widget));
......
......@@ -4247,10 +4247,9 @@ embedded_window_realize_handler (GtkWidget *widget)
gdk_window_set_user_data (window, GTK_WINDOW (widget));
style = gtk_style_attach (gtk_widget_get_style (widget), window);
gtk_widget_set_style (widget, style);
gtk_widget_style_attach (widget);
style = gtk_widget_get_style (widget);
gtk_style_set_background (style, window, GTK_STATE_NORMAL);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment