[gtk+/gtk-2-22] 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+/gtk-2-22] Deprecate GtkWindow:allow-grow and GtkWindow::allow_shrink properties
- Date: Fri, 2 Jul 2010 19:56:05 +0000 (UTC)
commit 3805dc36052d87e4ee8b3e57c9f216671bf59b07
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
Bump required Glib version to 2.15.10 as we are using the
new G_PARAM_DEPRECATED
configure.in | 2 +-
gtk/gtkwindow.c | 19 +++++++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index 1540c30..20d11ed 100644
--- a/configure.in
+++ b/configure.in
@@ -31,7 +31,7 @@ m4_define([gtk_api_version], [2.0])
m4_define([gtk_binary_version], [2.10.0])
# required versions of other packages
-m4_define([glib_required_version], [2.25.8])
+m4_define([glib_required_version], [2.25.10])
m4_define([pango_required_version], [1.20])
m4_define([atk_required_version], [1.29.2])
m4_define([cairo_required_version], [1.6])
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3cb1154..ac3f729 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -519,6 +519,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",
@@ -526,15 +534,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]