gtk+ r21619 - in trunk: . gtk
- From: cdywan svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21619 - in trunk: . gtk
- Date: Thu, 9 Oct 2008 15:57:55 +0000 (UTC)
Author: cdywan
Date: Thu Oct 9 15:57:55 2008
New Revision: 21619
URL: http://svn.gnome.org/viewvc/gtk+?rev=21619&view=rev
Log:
Bug 555578 â GtkTable propertiy maxima are wrong
* gtk/gtktable.c (gtk_table_class_init), (gtk_table_resize):
Always use 65535 instead of G_MAXUINT since that is
the actually supported maximum number of columns and rows
Modified:
trunk/ChangeLog
trunk/gtk/gtktable.c
Modified: trunk/gtk/gtktable.c
==============================================================================
--- trunk/gtk/gtktable.c (original)
+++ trunk/gtk/gtktable.c Thu Oct 9 15:57:55 2008
@@ -129,7 +129,7 @@
P_("Rows"),
P_("The number of rows in the table"),
1,
- G_MAXUINT,
+ 65535,
1,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -138,7 +138,7 @@
P_("Columns"),
P_("The number of columns in the table"),
1,
- G_MAXUINT,
+ 65535,
1,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -147,7 +147,7 @@
P_("Row spacing"),
P_("The amount of space between two consecutive rows"),
0,
- G_MAXUINT,
+ 65535,
0,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -156,7 +156,7 @@
P_("Column spacing"),
P_("The amount of space between two consecutive columns"),
0,
- G_MAXUINT,
+ 65535,
0,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -482,8 +482,8 @@
guint n_cols)
{
g_return_if_fail (GTK_IS_TABLE (table));
- g_return_if_fail (n_rows > 0 && n_rows < 65536);
- g_return_if_fail (n_cols > 0 && n_cols < 65536);
+ g_return_if_fail (n_rows > 0 && n_rows <= 65535);
+ g_return_if_fail (n_cols > 0 && n_cols <= 65535);
n_rows = MAX (n_rows, 1);
n_cols = MAX (n_cols, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]