[gtk+] Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
- Date: Fri, 2 Jul 2010 19:45:28 +0000 (UTC)
commit 1f38a7ac109562b4a2b47b50b7c72c13fd31e0e5
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jun 15 21:11:14 2010 +0200
Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=610346
gtk/gtkwindow.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 54eaaa3..d07dea8 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -573,6 +573,14 @@ gtk_window_class_init (GtkWindowClass *klass)
NULL,
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,
PROP_ALLOW_SHRINK,
g_param_spec_boolean ("allow-shrink",
@@ -580,15 +588,22 @@ gtk_window_class_init (GtkWindowClass *klass)
/* 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"),
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,
PROP_ALLOW_GROW,
g_param_spec_boolean ("allow-grow",
P_("Allow Grow"),
P_("If TRUE, users can expand the window beyond its minimum size"),
TRUE,
- GTK_PARAM_READWRITE));
+ GTK_PARAM_READWRITE | G_PARAM_DEPRECATED));
g_object_class_install_property (gobject_class,
PROP_RESIZABLE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]