X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtklayout.c;h=73cdb62f2ac50fceb0166ec8a7389c904a01cb83;hb=bda5987335b8c7828ebf1d289a91accfe2e74dbe;hp=da3dc9a9c9f622bc3c0492b4b23e197444b61b73;hpb=76462df59fb63923664359da62247a6e9ad0e474;p=~andy%2Fgtk diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index da3dc9a9c..73cdb62f2 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -32,9 +32,10 @@ #include "gdk/gdk.h" -#include "gtkprivate.h" +#include "gtkadjustment.h" #include "gtkintl.h" #include "gtkmarshalers.h" +#include "gtkprivate.h" #include "gtkscrollable.h" @@ -884,7 +885,7 @@ gtk_layout_realize (GtkWidget *widget) window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask); gtk_widget_set_window (widget, window); - gdk_window_set_user_data (window, widget); + gtk_widget_register_window (widget, window); gtk_widget_get_allocation (widget, &allocation); @@ -898,7 +899,7 @@ gtk_layout_realize (GtkWidget *widget) priv->bin_window = gdk_window_new (window, &attributes, attributes_mask); - gdk_window_set_user_data (priv->bin_window, widget); + gtk_widget_register_window (widget, priv->bin_window); gtk_style_context_set_background (gtk_widget_get_style_context (widget), priv->bin_window); tmp_list = priv->children; @@ -957,7 +958,7 @@ gtk_layout_unrealize (GtkWidget *widget) GtkLayout *layout = GTK_LAYOUT (widget); GtkLayoutPrivate *priv = layout->priv; - gdk_window_set_user_data (priv->bin_window, NULL); + gtk_widget_unregister_window (widget, priv->bin_window); gdk_window_destroy (priv->bin_window); priv->bin_window = NULL; @@ -1122,7 +1123,5 @@ gtk_layout_adjustment_changed (GtkAdjustment *adjustment, gdk_window_move (priv->bin_window, - gtk_adjustment_get_value (priv->hadjustment), - gtk_adjustment_get_value (priv->vadjustment)); - - gdk_window_process_updates (priv->bin_window, TRUE); } }