warn if row/cols are out of range. Fix bug #55921

Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
	range.  Fix bug #55921

	* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
	(#55920).

Fri Jun  8 12:38:49 2001  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
	range.  Fix bug #55921

	* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
	(#55920).
This commit is contained in:
Jonathan Blandford 2001-06-08 16:50:58 +00:00 committed by Jonathan Blandford
parent da562f4dc8
commit 72ef055bde
11 changed files with 74 additions and 9 deletions

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,11 @@
Fri Jun 8 12:38:49 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktable.c (gtk_table_resize): warn if row/cols are out of
range. Fix bug #55921
* gtk/gtkliststore.c (gtk_list_store_new_with_types): fix doc bug
(#55920).
Fri Jun 8 12:03:07 2001 Owen Taylor <otaylor@redhat.com>
* gdk/gdkkeys.[ch]: Add a direction-changed signal,

View File

@ -1,3 +1,7 @@
Fri Jun 8 12:33:29 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/tmpl/gtktable.sgml: fix bug #55921
2001-06-05 Havoc Pennington <hp@redhat.com>
* gtk/tmpl/gtkscale.sgml: more docs

View File

@ -100,7 +100,10 @@ These fields should be considered read-only and not be modified directly.
<!-- ##### FUNCTION gtk_table_new ##### -->
<para>
Used to create a new table widget. An initial size must be given by specifying how many rows and columns the table should have, although this can be changed later with gtk_table_resize().
Used to create a new table widget. An initial size must be given by
specifying how many rows and columns the table should have, although
this can be changed later with gtk_table_resize(). @rows and @columns
must both be in the range 0 .. 65535.
</para>
@rows: The number of rows the new table should have.

View File

@ -254,13 +254,14 @@ gtk_list_store_new (void)
/**
* gtk_list_store_new_with_types:
* @n_columns: number of columns in the list store
* @Varargs: pairs of column number and #GType
*
* Creates a new list store as with gtk_list_store_new(),
* simultaneously setting up the columns and column types as with
* gtk_list_store_set_n_columns() and
* gtk_list_store_set_column_type().
* @Varargs: all #GType types for the columns, from first to last
*
* Creates a new list store as with gtk_list_store_new(), simultaneously setting
* up the columns and column types as with gtk_list_store_set_n_columns() and
* gtk_list_store_set_column_type(). As an example,
* gtk_tree_store_new_with_types (3, G_TYPE_INT, G_TYPE_STRING,
* GTK_TYPE_PIXBUF); will create a new GtkListStore with three columns, of type
* int, string and GtkPixbuf respectively.
*
* Return value: a new #GtkListStore
**/

View File

@ -469,8 +469,9 @@ gtk_table_resize (GtkTable *table,
guint n_rows,
guint n_cols)
{
g_return_if_fail (table != NULL);
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_cols < 65536);
n_rows = MAX (n_rows, 1);
n_cols = MAX (n_cols, 1);