Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=610346
This commit is contained in:
parent
1cfe57530e
commit
1f38a7ac10
@ -573,6 +573,14 @@ gtk_window_class_init (GtkWindowClass *klass)
|
|||||||
NULL,
|
NULL,
|
||||||
GTK_PARAM_WRITABLE));
|
GTK_PARAM_WRITABLE));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GtkWindow:allow-shrink:
|
||||||
|
*
|
||||||
|
* If %TRUE, the window has no mimimum size. Setting this to %TRUE is
|
||||||
|
* 99% of the time a bad idea.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.22: Use GtkWindow:resizable property instead.
|
||||||
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_ALLOW_SHRINK,
|
PROP_ALLOW_SHRINK,
|
||||||
g_param_spec_boolean ("allow-shrink",
|
g_param_spec_boolean ("allow-shrink",
|
||||||
@ -580,15 +588,22 @@ gtk_window_class_init (GtkWindowClass *klass)
|
|||||||
/* xgettext:no-c-format */
|
/* xgettext:no-c-format */
|
||||||
P_("If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea"),
|
P_("If TRUE, the window has no mimimum size. Setting this to TRUE is 99% of the time a bad idea"),
|
||||||
FALSE,
|
FALSE,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GtkWindow:allow-grow:
|
||||||
|
*
|
||||||
|
* If %TRUE, users can expand the window beyond its minimum size.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.22: Use GtkWindow:resizable property instead.
|
||||||
|
*/
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_ALLOW_GROW,
|
PROP_ALLOW_GROW,
|
||||||
g_param_spec_boolean ("allow-grow",
|
g_param_spec_boolean ("allow-grow",
|
||||||
P_("Allow Grow"),
|
P_("Allow Grow"),
|
||||||
P_("If TRUE, users can expand the window beyond its minimum size"),
|
P_("If TRUE, users can expand the window beyond its minimum size"),
|
||||||
TRUE,
|
TRUE,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
|
||||||
|
|
||||||
g_object_class_install_property (gobject_class,
|
g_object_class_install_property (gobject_class,
|
||||||
PROP_RESIZABLE,
|
PROP_RESIZABLE,
|
||||||
|
Loading…
Reference in New Issue
Block a user