Commit 78be7a0a authored by Christian Dywan's avatar Christian Dywan
Browse files

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

svn path=/trunk/; revision=21619
parent db0ad1ff
2008-10-09 Christian Dywan <christian@imendio.com>
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
2008-10-09 Richard Hult <richard@imendio.com> 2008-10-09 Richard Hult <richard@imendio.com>
Bug 550342 – Splash screens have a caption Bug 550342 – Splash screens have a caption
......
...@@ -129,7 +129,7 @@ gtk_table_class_init (GtkTableClass *class) ...@@ -129,7 +129,7 @@ gtk_table_class_init (GtkTableClass *class)
P_("Rows"), P_("Rows"),
P_("The number of rows in the table"), P_("The number of rows in the table"),
1, 1,
G_MAXUINT, 65535,
1, 1,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
...@@ -138,7 +138,7 @@ gtk_table_class_init (GtkTableClass *class) ...@@ -138,7 +138,7 @@ gtk_table_class_init (GtkTableClass *class)
P_("Columns"), P_("Columns"),
P_("The number of columns in the table"), P_("The number of columns in the table"),
1, 1,
G_MAXUINT, 65535,
1, 1,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
...@@ -147,7 +147,7 @@ gtk_table_class_init (GtkTableClass *class) ...@@ -147,7 +147,7 @@ gtk_table_class_init (GtkTableClass *class)
P_("Row spacing"), P_("Row spacing"),
P_("The amount of space between two consecutive rows"), P_("The amount of space between two consecutive rows"),
0, 0,
G_MAXUINT, 65535,
0, 0,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
...@@ -156,7 +156,7 @@ gtk_table_class_init (GtkTableClass *class) ...@@ -156,7 +156,7 @@ gtk_table_class_init (GtkTableClass *class)
P_("Column spacing"), P_("Column spacing"),
P_("The amount of space between two consecutive columns"), P_("The amount of space between two consecutive columns"),
0, 0,
G_MAXUINT, 65535,
0, 0,
GTK_PARAM_READWRITE)); GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
...@@ -482,8 +482,8 @@ gtk_table_resize (GtkTable *table, ...@@ -482,8 +482,8 @@ gtk_table_resize (GtkTable *table,
guint n_cols) guint n_cols)
{ {
g_return_if_fail (GTK_IS_TABLE (table)); g_return_if_fail (GTK_IS_TABLE (table));
g_return_if_fail (n_rows > 0 && n_rows < 65536); g_return_if_fail (n_rows > 0 && n_rows <= 65535);
g_return_if_fail (n_cols > 0 && n_cols < 65536); g_return_if_fail (n_cols > 0 && n_cols <= 65535);
n_rows = MAX (n_rows, 1); n_rows = MAX (n_rows, 1);
n_cols = MAX (n_cols, 1); n_cols = MAX (n_cols, 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment