diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-30 22:29:03 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-01-30 22:29:03 +0000 |
commit | 4dddfb2dc62a68196f0f3e52712a25c427275b37 (patch) | |
tree | 63c2d56da9bbafaf5d90b9a87d22ef483a7ad40f /gtk/gtkeventbox.c | |
parent | 95ab2a72b4ba0a84b9c430d941f778367e02584b (diff) | |
download | gdk-pixbuf-4dddfb2dc62a68196f0f3e52712a25c427275b37.tar.gz |
Remove excess calls to g_return_if_fail from static and virtual functions.
Diffstat (limited to 'gtk/gtkeventbox.c')
-rw-r--r-- | gtk/gtkeventbox.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c index 5abeabaa9..430fe0e00 100644 --- a/gtk/gtkeventbox.c +++ b/gtk/gtkeventbox.c @@ -92,7 +92,7 @@ gtk_event_box_init (GtkEventBox *event_box) GtkWidget* gtk_event_box_new (void) { - return GTK_WIDGET ( gtk_type_new (gtk_event_box_get_type ())); + return GTK_WIDGET (gtk_type_new (gtk_event_box_get_type ())); } static void @@ -102,8 +102,6 @@ gtk_event_box_realize (GtkWidget *widget) gint attributes_mask; gint border_width; - g_return_if_fail (GTK_IS_EVENT_BOX (widget)); - GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED); border_width = GTK_CONTAINER (widget)->border_width; @@ -137,12 +135,7 @@ static void gtk_event_box_size_request (GtkWidget *widget, GtkRequisition *requisition) { - GtkBin *bin; - - g_return_if_fail (GTK_IS_EVENT_BOX (widget)); - g_return_if_fail (requisition != NULL); - - bin = GTK_BIN (widget); + GtkBin *bin = GTK_BIN (widget); requisition->width = GTK_CONTAINER (widget)->border_width * 2; requisition->height = GTK_CONTAINER (widget)->border_width * 2; @@ -165,9 +158,6 @@ gtk_event_box_size_allocate (GtkWidget *widget, GtkBin *bin; GtkAllocation child_allocation; - g_return_if_fail (GTK_IS_EVENT_BOX (widget)); - g_return_if_fail (allocation != NULL); - widget->allocation = *allocation; bin = GTK_BIN (widget); @@ -205,9 +195,6 @@ static gint gtk_event_box_expose (GtkWidget *widget, GdkEventExpose *event) { - g_return_val_if_fail (GTK_IS_EVENT_BOX (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - if (GTK_WIDGET_DRAWABLE (widget)) { gtk_event_box_paint (widget, &event->area); |