Remove unnecessary g_return_if_fail()s from virtual functions. (#153469,

2004-09-22  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
	* gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
	unnecessary g_return_if_fail()s from virtual functions.  (#153469,
	(Tristan Van Berkom)
This commit is contained in:
Matthias Clasen 2004-09-22 20:39:56 +00:00 committed by Matthias Clasen
parent 68b511254f
commit ecc1ceee3c
6 changed files with 20 additions and 8 deletions

View File

@ -1,5 +1,10 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com> 2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
* gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
unnecessary g_return_if_fail()s from virtual functions. (#153469,
(Tristan Van Berkom)
* gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
cursors. (#153468, Christian Persch) cursors. (#153468, Christian Persch)

View File

@ -1,5 +1,10 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com> 2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
* gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
unnecessary g_return_if_fail()s from virtual functions. (#153469,
(Tristan Van Berkom)
* gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
cursors. (#153468, Christian Persch) cursors. (#153468, Christian Persch)

View File

@ -1,5 +1,10 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com> 2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
* gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
unnecessary g_return_if_fail()s from virtual functions. (#153469,
(Tristan Van Berkom)
* gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
cursors. (#153468, Christian Persch) cursors. (#153468, Christian Persch)

View File

@ -1,5 +1,10 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com> 2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.c (gtk_range_map, gtk_range_unmap):
* gtk/gtkbutton.c (gtk_button_map, gtk_button_unmap): Remove
unnecessary g_return_if_fail()s from virtual functions. (#153469,
(Tristan Van Berkom)
* gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't leak
cursors. (#153468, Christian Persch) cursors. (#153468, Christian Persch)

View File

@ -834,8 +834,6 @@ gtk_button_map (GtkWidget *widget)
{ {
GtkButton *button = GTK_BUTTON (widget); GtkButton *button = GTK_BUTTON (widget);
g_return_if_fail (GTK_IS_BUTTON (widget));
GTK_WIDGET_CLASS (parent_class)->map (widget); GTK_WIDGET_CLASS (parent_class)->map (widget);
if (button->event_window) if (button->event_window)
@ -847,8 +845,6 @@ gtk_button_unmap (GtkWidget *widget)
{ {
GtkButton *button = GTK_BUTTON (widget); GtkButton *button = GTK_BUTTON (widget);
g_return_if_fail (GTK_IS_BUTTON (widget));
if (button->event_window) if (button->event_window)
gdk_window_hide (button->event_window); gdk_window_hide (button->event_window);

View File

@ -880,8 +880,6 @@ gtk_range_map (GtkWidget *widget)
{ {
GtkRange *range = GTK_RANGE (widget); GtkRange *range = GTK_RANGE (widget);
g_return_if_fail (GTK_IS_RANGE (widget));
gdk_window_show (range->event_window); gdk_window_show (range->event_window);
GTK_WIDGET_CLASS (parent_class)->map (widget); GTK_WIDGET_CLASS (parent_class)->map (widget);
@ -892,8 +890,6 @@ gtk_range_unmap (GtkWidget *widget)
{ {
GtkRange *range = GTK_RANGE (widget); GtkRange *range = GTK_RANGE (widget);
g_return_if_fail (GTK_IS_RANGE (widget));
gdk_window_hide (range->event_window); gdk_window_hide (range->event_window);
GTK_WIDGET_CLASS (parent_class)->unmap (widget); GTK_WIDGET_CLASS (parent_class)->unmap (widget);