Commit 72ef055b authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford

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).
parent da562f4d
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,
......
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,
......
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,
......
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,
......
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,
......
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,
......
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,
......
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
......
......@@ -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.
......
......@@ -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
**/
......
......@@ -469,12 +469,13 @@ 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);
if (n_rows != table->nrows ||
n_cols != table->ncols)
{
......
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