diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-02 07:16:02 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-03-03 20:41:05 +0100 |
commit | 16a59ad9129c680833c584768e6a81b2ba365268 (patch) | |
tree | 8fb157b75372c73767d658bce9a6070a3d936fe9 /gtk/gtkplug.c | |
parent | 1fe7d3cefd1aeabd6d8cab2a68673bb1f7876988 (diff) | |
download | gtk+-16a59ad9129c680833c584768e6a81b2ba365268.tar.gz |
Deprecate widget flag: GTK_WIDGET_REALIZED
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r-- | gtk/gtkplug.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index 3f71796c5a..95e6224eb3 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -256,7 +256,7 @@ gtk_plug_get_id (GtkPlug *plug) { g_return_val_if_fail (GTK_IS_PLUG (plug), 0); - if (!GTK_WIDGET_REALIZED (plug)) + if (!gtk_widget_get_realized (GTK_WIDGET (plug))) gtk_widget_realize (GTK_WIDGET (plug)); return _gtk_plug_windowing_get_id (plug); @@ -314,7 +314,7 @@ _gtk_plug_add_to_socket (GtkPlug *plug, g_return_if_fail (GTK_IS_PLUG (plug)); g_return_if_fail (GTK_IS_SOCKET (socket_)); - g_return_if_fail (GTK_WIDGET_REALIZED (socket_)); + g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (socket_))); widget = GTK_WIDGET (plug); @@ -328,7 +328,7 @@ _gtk_plug_add_to_socket (GtkPlug *plug, g_signal_emit (plug, plug_signals[EMBEDDED], 0); g_object_notify (G_OBJECT (plug), "embedded"); - if (GTK_WIDGET_REALIZED (widget)) + if (gtk_widget_get_realized (widget)) { gdk_drawable_get_size (GDK_DRAWABLE (widget->window), &w, &h); gdk_window_reparent (widget->window, plug->socket_window, -w, -h); @@ -382,7 +382,7 @@ _gtk_plug_remove_from_socket (GtkPlug *plug, g_return_if_fail (GTK_IS_PLUG (plug)); g_return_if_fail (GTK_IS_SOCKET (socket_)); - g_return_if_fail (GTK_WIDGET_REALIZED (plug)); + g_return_if_fail (gtk_widget_get_realized (GTK_WIDGET (plug))); widget = GTK_WIDGET (plug); @@ -737,7 +737,7 @@ gtk_plug_size_allocate (GtkWidget *widget, widget->allocation = *allocation; - if (GTK_WIDGET_REALIZED (widget)) + if (gtk_widget_get_realized (widget)) gdk_window_move_resize (widget->window, allocation->x, allocation->y, allocation->width, allocation->height); |