diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-07-18 23:39:26 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-07-18 23:39:26 +0000 |
commit | 4e2b60ac4d32c5bef5b192a12a59f8c2a3124f81 (patch) | |
tree | 63b0cecda2350e250c3a1de4a53f43befab1b076 /gtk/gtkcombo.c | |
parent | b613a74cb20a480f9d95579243278660af300cee (diff) | |
download | gtk+-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/gtkcombo.c')
-rw-r--r-- | gtk/gtkcombo.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk/gtkcombo.c b/gtk/gtkcombo.c index 31b163edba..82d3cacf99 100644 --- a/gtk/gtkcombo.c +++ b/gtk/gtkcombo.c @@ -872,7 +872,6 @@ gtk_combo_new (void) void gtk_combo_set_value_in_list (GtkCombo * combo, gboolean val, gboolean ok_if_empty) { - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); combo->value_in_list = val; @@ -882,7 +881,6 @@ gtk_combo_set_value_in_list (GtkCombo * combo, gboolean val, gboolean ok_if_empt void gtk_combo_set_case_sensitive (GtkCombo * combo, gboolean val) { - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); combo->case_sensitive = val; @@ -892,7 +890,6 @@ gtk_combo_set_case_sensitive (GtkCombo * combo, gboolean val) void gtk_combo_set_use_arrows (GtkCombo * combo, gboolean val) { - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); combo->use_arrows = val; @@ -902,7 +899,6 @@ gtk_combo_set_use_arrows (GtkCombo * combo, gboolean val) void gtk_combo_set_use_arrows_always (GtkCombo * combo, gboolean val) { - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); combo->use_arrows_always = val; @@ -917,7 +913,6 @@ gtk_combo_set_popdown_strings (GtkCombo * combo, GList * strings) GList *list; GtkWidget *li; - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); g_return_if_fail (strings != NULL); @@ -951,7 +946,6 @@ gtk_combo_set_item_string (GtkCombo * combo, GtkItem * item, const gchar * item_ gchar *val; gint connected = 0; - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); g_return_if_fail (item != NULL); @@ -983,7 +977,6 @@ gtk_combo_size_allocate (GtkWidget *widget, { GtkCombo *combo; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_COMBO (widget)); g_return_if_fail (allocation != NULL); @@ -1007,7 +1000,6 @@ gtk_combo_size_allocate (GtkWidget *widget, void gtk_combo_disable_activate (GtkCombo* combo) { - g_return_if_fail (combo != NULL); g_return_if_fail (GTK_IS_COMBO (combo)); if ( combo->activate_id ) { |