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/gtkcalendar.c | |
parent | 95ab2a72b4ba0a84b9c430d941f778367e02584b (diff) | |
download | gtk+-4dddfb2dc62a68196f0f3e52712a25c427275b37.tar.gz |
Remove excess calls to g_return_if_fail from static and virtual functions.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r-- | gtk/gtkcalendar.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index e5276ccc26..cb5d51ae7b 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -1014,8 +1014,6 @@ gtk_calendar_realize (GtkWidget *widget) gint attributes_mask; GdkGCValues values; - g_return_if_fail (GTK_IS_CALENDAR (widget)); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -1088,8 +1086,6 @@ gtk_calendar_unrealize (GtkWidget *widget) GtkCalendarPrivateData *private_data; gint i; - g_return_if_fail (GTK_IS_CALENDAR (widget)); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -1313,9 +1309,6 @@ gtk_calendar_size_allocate (GtkWidget *widget, GtkCalendar *calendar; GtkCalendarPrivateData *private_data; - g_return_if_fail (GTK_IS_CALENDAR (widget)); - g_return_if_fail (allocation != NULL); - widget->allocation = *allocation; calendar = GTK_CALENDAR (widget); @@ -1408,10 +1401,6 @@ gtk_calendar_expose (GtkWidget *widget, GtkCalendar *calendar; GtkCalendarPrivateData *private_data; - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (GTK_IS_CALENDAR (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2086,7 +2075,6 @@ gtk_calendar_select_month (GtkCalendar *calendar, guint month, guint year) { - g_return_val_if_fail (calendar != NULL, FALSE); g_return_val_if_fail (GTK_IS_CALENDAR (calendar), FALSE); g_return_val_if_fail (month <= 11, FALSE); @@ -2158,7 +2146,6 @@ gboolean gtk_calendar_mark_day (GtkCalendar *calendar, guint day) { - g_return_val_if_fail (calendar != NULL, FALSE); g_return_val_if_fail (GTK_IS_CALENDAR (calendar), FALSE); if (day >= 1 && day <= 31 && calendar->marked_date[day-1] == FALSE) @@ -2178,7 +2165,6 @@ gboolean gtk_calendar_unmark_day (GtkCalendar *calendar, guint day) { - g_return_val_if_fail (calendar != NULL, FALSE); g_return_val_if_fail (GTK_IS_CALENDAR (calendar), FALSE); if (day >= 1 && day <= 31 && calendar->marked_date[day-1] == TRUE) @@ -2222,10 +2208,6 @@ gtk_calendar_button_press (GtkWidget *widget, gint x, y; void (* action_func) (GtkCalendar *); - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (GTK_IS_CALENDAR (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2302,9 +2284,6 @@ gtk_calendar_enter_notify (GtkWidget *widget, GtkCalendar *calendar; GtkCalendarPrivateData *private_data; - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (event != NULL, FALSE); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2344,9 +2323,6 @@ gtk_calendar_leave_notify (GtkWidget *widget, gint row; gint col; - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (event != NULL, FALSE); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2398,8 +2374,6 @@ gtk_calendar_paint_arrow (GtkWidget *widget, gint state; gint width, height; - g_return_if_fail (widget != NULL); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2476,8 +2450,6 @@ gtk_calendar_set_background (GtkWidget *widget) GtkCalendarPrivateData *private_data; gint i; - g_return_if_fail (GTK_IS_CALENDAR (widget)); - calendar = GTK_CALENDAR (widget); private_data = GTK_CALENDAR_PRIVATE_DATA (widget); @@ -2511,8 +2483,6 @@ static void gtk_calendar_style_set (GtkWidget *widget, GtkStyle *previous_style) { - g_return_if_fail (GTK_IS_CALENDAR (widget)); - if (previous_style && GTK_WIDGET_REALIZED (widget)) gtk_calendar_set_background(widget); } @@ -2521,8 +2491,6 @@ static void gtk_calendar_state_changed (GtkWidget *widget, GtkStateType previous_state) { - g_return_if_fail (GTK_IS_CALENDAR (widget)); - gtk_calendar_set_background (widget); } @@ -2545,10 +2513,6 @@ gtk_calendar_key_press (GtkWidget *widget, gint old_focus_row; gint old_focus_col; gint row, col, day; - - g_return_val_if_fail (widget != NULL, FALSE); - g_return_val_if_fail (GTK_IS_CALENDAR (widget), FALSE); - g_return_val_if_fail (event != NULL, FALSE); calendar = GTK_CALENDAR (widget); return_val = FALSE; |