summaryrefslogtreecommitdiff
path: root/gtk/gtktable.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-07-18 23:39:26 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-18 23:39:26 +0000
commit4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 (patch)
tree63b0cecda2350e250c3a1de4a53f43befab1b076 /gtk/gtktable.c
parentb613a74cb20a480f9d95579243278660af300cee (diff)
downloadgtk+-4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81.tar.gz
Patch from Matthias Clasen to remove remove all instances of
Wed Jul 18 19:28:46 2001 Owen Taylor <otaylor@redhat.com> * gtk/*.c: Patch from Matthias Clasen to remove remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (GTK_IS_FOO (foo)); since the second check catches the NULL anyways.
Diffstat (limited to 'gtk/gtktable.c')
-rw-r--r--gtk/gtktable.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gtk/gtktable.c b/gtk/gtktable.c
index 5a3ac537b5..64c07fb362 100644
--- a/gtk/gtktable.c
+++ b/gtk/gtktable.c
@@ -577,9 +577,7 @@ gtk_table_attach (GtkTable *table,
{
GtkTableChild *table_child;
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
- g_return_if_fail (child != NULL);
g_return_if_fail (GTK_IS_WIDGET (child));
g_return_if_fail (child->parent == NULL);
@@ -646,7 +644,6 @@ gtk_table_set_row_spacing (GtkTable *table,
guint row,
guint spacing)
{
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
g_return_if_fail (row < table->nrows);
@@ -686,7 +683,6 @@ gtk_table_set_col_spacing (GtkTable *table,
guint column,
guint spacing)
{
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
g_return_if_fail (column < table->ncols);
@@ -727,7 +723,6 @@ gtk_table_set_row_spacings (GtkTable *table,
{
guint row;
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
table->row_spacing = spacing;
@@ -762,7 +757,6 @@ gtk_table_set_col_spacings (GtkTable *table,
{
guint col;
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
table->column_spacing = spacing;
@@ -795,7 +789,6 @@ void
gtk_table_set_homogeneous (GtkTable *table,
gboolean homogeneous)
{
- g_return_if_fail (table != NULL);
g_return_if_fail (GTK_IS_TABLE (table));
homogeneous = (homogeneous != 0);
@@ -847,7 +840,6 @@ gtk_table_map (GtkWidget *widget)
GtkTableChild *child;
GList *children;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_TABLE (widget));
table = GTK_TABLE (widget);
@@ -872,7 +864,6 @@ gtk_table_unmap (GtkWidget *widget)
GtkTableChild *child;
GList *children;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_TABLE (widget));
table = GTK_TABLE (widget);
@@ -897,7 +888,6 @@ gtk_table_size_request (GtkWidget *widget,
GtkTable *table;
gint row, col;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_TABLE (widget));
g_return_if_fail (requisition != NULL);
@@ -932,7 +922,6 @@ gtk_table_size_allocate (GtkWidget *widget,
{
GtkTable *table;
- g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_TABLE (widget));
g_return_if_fail (allocation != NULL);
@@ -948,7 +937,6 @@ static void
gtk_table_add (GtkContainer *container,
GtkWidget *widget)
{
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_TABLE (container));
g_return_if_fail (widget != NULL);
@@ -963,7 +951,6 @@ gtk_table_remove (GtkContainer *container,
GtkTableChild *child;
GList *children;
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_TABLE (container));
g_return_if_fail (widget != NULL);
@@ -1001,7 +988,6 @@ gtk_table_forall (GtkContainer *container,
GtkTableChild *child;
GList *children;
- g_return_if_fail (container != NULL);
g_return_if_fail (GTK_IS_TABLE (container));
g_return_if_fail (callback != NULL);