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/gtktearoffmenuitem.c | |
parent | b613a74cb20a480f9d95579243278660af300cee (diff) | |
download | gdk-pixbuf-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/gtktearoffmenuitem.c')
-rw-r--r-- | gtk/gtktearoffmenuitem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gtk/gtktearoffmenuitem.c b/gtk/gtktearoffmenuitem.c index 72061dd56..d4f9d56c7 100644 --- a/gtk/gtktearoffmenuitem.c +++ b/gtk/gtktearoffmenuitem.c @@ -131,7 +131,6 @@ gtk_tearoff_menu_item_paint (GtkWidget *widget, gint x, y; gint right_max; - g_return_if_fail (widget != NULL); g_return_if_fail (GTK_IS_TEAROFF_MENU_ITEM (widget)); if (GTK_WIDGET_DRAWABLE (widget)) @@ -195,7 +194,6 @@ static gint gtk_tearoff_menu_item_expose (GtkWidget *widget, GdkEventExpose *event) { - g_return_val_if_fail (widget != NULL, FALSE); g_return_val_if_fail (GTK_IS_TEAROFF_MENU_ITEM (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); @@ -216,7 +214,6 @@ gtk_tearoff_menu_item_activate (GtkMenuItem *menu_item) { GtkTearoffMenuItem *tearoff_menu_item; - g_return_if_fail (menu_item != NULL); g_return_if_fail (GTK_IS_TEAROFF_MENU_ITEM (menu_item)); tearoff_menu_item = GTK_TEAROFF_MENU_ITEM (menu_item); |