diff options
author | Benjamin Otte <otte@redhat.com> | 2013-10-05 14:57:53 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2013-10-05 15:09:53 +0200 |
commit | 67260eec22d9173e89dc61e85488d8d6e93f8370 (patch) | |
tree | f221befd99022121b3dd8cdb3aa8f00f76d88162 /gtk/gtkplug.c | |
parent | 859805bda4907a2c38ceee1b015c059e59ac56e5 (diff) | |
download | gtk+-67260eec22d9173e89dc61e85488d8d6e93f8370.tar.gz |
container: Deprecate resize mode
Resize modes don't work anymore, both because nobody ever uses them and
because the frame clock changed the way things work quite a bit. So we
don't want to advertise them as a good idea.
https://bugzilla.gnome.org/show_bug.cgi?id=708787
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r-- | gtk/gtkplug.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index c2fb49304b..66917a3db7 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -313,7 +313,9 @@ gtk_plug_set_is_child (GtkPlug *plug, gtk_widget_unmap (widget); _gtk_window_set_is_toplevel (GTK_WINDOW (plug), FALSE); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_container_set_resize_mode (GTK_CONTAINER (plug), GTK_RESIZE_PARENT); + G_GNUC_END_IGNORE_DEPRECATIONS; _gtk_widget_propagate_hierarchy_changed (widget, widget); } @@ -328,7 +330,9 @@ gtk_plug_set_is_child (GtkPlug *plug, gtk_window_group_add_window (priv->modality_group, GTK_WINDOW (plug)); _gtk_window_set_is_toplevel (GTK_WINDOW (plug), TRUE); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gtk_container_set_resize_mode (GTK_CONTAINER (plug), GTK_RESIZE_QUEUE); + G_GNUC_END_IGNORE_DEPRECATIONS; _gtk_widget_propagate_hierarchy_changed (GTK_WIDGET (plug), NULL); } |