diff options
-rw-r--r-- | ChangeLog | 36 | ||||
-rw-r--r-- | gtk/gtkaccellabel.c | 5 | ||||
-rw-r--r-- | gtk/gtkcalendar.c | 3 | ||||
-rw-r--r-- | gtk/gtkclist.c | 12 | ||||
-rw-r--r-- | gtk/gtkentry.c | 3 | ||||
-rw-r--r-- | gtk/gtkeventbox.c | 3 | ||||
-rw-r--r-- | gtk/gtkfilechooserbutton.c | 8 | ||||
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 3 | ||||
-rw-r--r-- | gtk/gtkhandlebox.c | 3 | ||||
-rw-r--r-- | gtk/gtkhsv.c | 5 | ||||
-rw-r--r-- | gtk/gtkiconview.c | 4 | ||||
-rw-r--r-- | gtk/gtkimage.c | 11 | ||||
-rw-r--r-- | gtk/gtklayout.c | 9 | ||||
-rw-r--r-- | gtk/gtklistitem.c | 3 | ||||
-rw-r--r-- | gtk/gtkmenuitem.c | 3 | ||||
-rw-r--r-- | gtk/gtkmessagedialog.c | 3 | ||||
-rw-r--r-- | gtk/gtknotebook.c | 3 | ||||
-rw-r--r-- | gtk/gtkpaned.c | 3 | ||||
-rw-r--r-- | gtk/gtkpathbar.c | 3 | ||||
-rw-r--r-- | gtk/gtkplug.c | 3 | ||||
-rw-r--r-- | gtk/gtkprintunixdialog.c | 3 | ||||
-rw-r--r-- | gtk/gtkrange.c | 3 | ||||
-rw-r--r-- | gtk/gtkrecentchooserdefault.c | 5 | ||||
-rw-r--r-- | gtk/gtkruler.c | 3 | ||||
-rw-r--r-- | gtk/gtksocket.c | 3 | ||||
-rw-r--r-- | gtk/gtktext.c | 3 | ||||
-rw-r--r-- | gtk/gtktextview.c | 7 | ||||
-rw-r--r-- | gtk/gtktoolbar.c | 5 | ||||
-rw-r--r-- | gtk/gtktreeitem.c | 3 | ||||
-rw-r--r-- | gtk/gtktreeview.c | 4 | ||||
-rw-r--r-- | gtk/gtkviewport.c | 3 | ||||
-rw-r--r-- | gtk/gtkwin32embedwidget.c | 3 |
32 files changed, 84 insertions, 87 deletions
@@ -1,5 +1,41 @@ 2008-08-12 Michael Natterer <mitch@imendio.com> + * gtk/gtkaccellabel.c + * gtk/gtkcalendar.c + * gtk/gtkclist.c + * gtk/gtkentry.c + * gtk/gtkeventbox.c + * gtk/gtkfilechooserbutton.c + * gtk/gtkfilechooserdefault.c + * gtk/gtkhandlebox.c + * gtk/gtkhsv.c + * gtk/gtkiconview.c + * gtk/gtkimage.c + * gtk/gtklayout.c + * gtk/gtklistitem.c + * gtk/gtkmenuitem.c + * gtk/gtkmessagedialog.c + * gtk/gtknotebook.c + * gtk/gtkpaned.c + * gtk/gtkpathbar.c + * gtk/gtkplug.c + * gtk/gtkprintunixdialog.c + * gtk/gtkrange.c + * gtk/gtkrecentchooserdefault.c + * gtk/gtkruler.c + * gtk/gtksocket.c + * gtk/gtktext.c + * gtk/gtktextview.c + * gtk/gtktoolbar.c + * gtk/gtktreeitem.c + * gtk/gtktreeview.c + * gtk/gtkviewport.c + * gtk/gtkwin32embedwidget.c: chain up unconditionally in + realize(), unrealize(), map(), unmap(), style_set(), + key_press_event() and size_request() + +2008-08-12 Michael Natterer <mitch@imendio.com> + * gtk/gtkwidget.c: change names of default implementations of our own signals to consistently contain "real": diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index cb57aaa926..7e211f0bad 100644 --- a/gtk/gtkaccellabel.c +++ b/gtk/gtkaccellabel.c @@ -266,9 +266,8 @@ gtk_accel_label_size_request (GtkWidget *widget, GtkAccelLabel *accel_label = GTK_ACCEL_LABEL (widget); PangoLayout *layout; gint width; - - if (GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->size_request) - GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->size_request (widget, requisition); + + GTK_WIDGET_CLASS (gtk_accel_label_parent_class)->size_request (widget, requisition); layout = gtk_widget_create_pango_layout (widget, gtk_accel_label_get_string (accel_label)); pango_layout_get_pixel_size (layout, &width, NULL); diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index ff5003c6fb..31b14c91d4 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -1657,8 +1657,7 @@ gtk_calendar_unrealize (GtkWidget *widget) priv->day_name_win = NULL; } - if (GTK_WIDGET_CLASS (gtk_calendar_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_calendar_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_calendar_parent_class)->unrealize (widget); } static gchar* diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 274b535964..490e87a5e6 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -4662,8 +4662,7 @@ gtk_clist_unrealize (GtkWidget *widget) clist->fg_gc = NULL; clist->bg_gc = NULL; - if (GTK_WIDGET_CLASS (parent_class)->unrealize) - GTK_WIDGET_CLASS (parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (parent_class)->unrealize (widget); } static void @@ -4817,14 +4816,9 @@ static void gtk_clist_style_set (GtkWidget *widget, GtkStyle *previous_style) { - GtkCList *clist; - - g_return_if_fail (GTK_IS_CLIST (widget)); - - if (GTK_WIDGET_CLASS (parent_class)->style_set) - GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style); + GtkCList *clist = GTK_CLIST (widget); - clist = GTK_CLIST (widget); + GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style); if (GTK_WIDGET_REALIZED (widget)) { diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index c650154604..91a6662421 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -1384,8 +1384,7 @@ gtk_entry_unrealize (GtkWidget *widget) entry->popup_menu = NULL; } - if (GTK_WIDGET_CLASS (gtk_entry_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_entry_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_entry_parent_class)->unrealize (widget); } void diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c index b96b725ec7..e29e0c2ad9 100644 --- a/gtk/gtkeventbox.c +++ b/gtk/gtkeventbox.c @@ -450,8 +450,7 @@ gtk_event_box_unrealize (GtkWidget *widget) priv->event_window = NULL; } - if (GTK_WIDGET_CLASS (gtk_event_box_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_event_box_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_event_box_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c index 0b2dd15188..61ac369cc7 100644 --- a/gtk/gtkfilechooserbutton.c +++ b/gtk/gtkfilechooserbutton.c @@ -1159,8 +1159,7 @@ gtk_file_chooser_button_map (GtkWidget *widget) priv->folder_has_been_set = TRUE; } - if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->map) - GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->map (widget); + GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->map (widget); } static gboolean @@ -1369,9 +1368,8 @@ static void gtk_file_chooser_button_style_set (GtkWidget *widget, GtkStyle *old_style) { - if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->style_set) - GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->style_set (widget, - old_style); + GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->style_set (widget, + old_style); if (gtk_widget_has_screen (widget)) change_icon_theme (GTK_FILE_CHOOSER_BUTTON (widget)); diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index f840abc12b..593a6048a0 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -5835,8 +5835,7 @@ gtk_file_chooser_default_style_set (GtkWidget *widget, impl = GTK_FILE_CHOOSER_DEFAULT (widget); profile_msg (" parent class style_set start", NULL); - if (GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->style_set) - GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->style_set (widget, previous_style); + GTK_WIDGET_CLASS (_gtk_file_chooser_default_parent_class)->style_set (widget, previous_style); profile_msg (" parent class style_set end", NULL); if (gtk_widget_has_screen (GTK_WIDGET (impl))) diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c index 8f94d18c6b..b4f8945522 100644 --- a/gtk/gtkhandlebox.c +++ b/gtk/gtkhandlebox.c @@ -468,8 +468,7 @@ gtk_handle_box_unrealize (GtkWidget *widget) gdk_window_destroy (hb->float_window); hb->float_window = NULL; - if (GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index 03d8e82e8f..1c05bd5f73 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -330,9 +330,8 @@ gtk_hsv_unrealize (GtkWidget *widget) g_object_unref (priv->gc); priv->gc = NULL; - - if (GTK_WIDGET_CLASS (gtk_hsv_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_hsv_parent_class)->unrealize (widget); + + GTK_WIDGET_CLASS (gtk_hsv_parent_class)->unrealize (widget); } /* Size_request handler for the HSV color selector */ diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 8ad26d7b40..682ec954a3 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -1231,9 +1231,7 @@ gtk_icon_view_unrealize (GtkWidget *widget) gdk_window_destroy (icon_view->priv->bin_window); icon_view->priv->bin_window = NULL; - /* GtkWidget::unrealize destroys children and widget->window */ - if (GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 37a728ecec..9f4b111362 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1458,8 +1458,7 @@ gtk_image_unmap (GtkWidget *widget) { gtk_image_reset_anim_iter (GTK_IMAGE (widget)); - if (GTK_WIDGET_CLASS (gtk_image_parent_class)->unmap) - GTK_WIDGET_CLASS (gtk_image_parent_class)->unmap (widget); + GTK_WIDGET_CLASS (gtk_image_parent_class)->unmap (widget); } static void @@ -1467,8 +1466,7 @@ gtk_image_unrealize (GtkWidget *widget) { gtk_image_reset_anim_iter (GTK_IMAGE (widget)); - if (GTK_WIDGET_CLASS (gtk_image_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_image_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_image_parent_class)->unrealize (widget); } static gint @@ -2228,9 +2226,8 @@ gtk_image_style_set (GtkWidget *widget, image = GTK_IMAGE (widget); - if (GTK_WIDGET_CLASS (gtk_image_parent_class)->style_set) - GTK_WIDGET_CLASS (gtk_image_parent_class)->style_set (widget, prev_style); - + GTK_WIDGET_CLASS (gtk_image_parent_class)->style_set (widget, prev_style); + icon_theme_changed (image); } diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index fac55ba0bc..ccd8ede6bf 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -881,10 +881,10 @@ gtk_layout_realize (GtkWidget *widget) } static void -gtk_layout_style_set (GtkWidget *widget, GtkStyle *old_style) +gtk_layout_style_set (GtkWidget *widget, + GtkStyle *old_style) { - if (GTK_WIDGET_CLASS (gtk_layout_parent_class)->style_set) - GTK_WIDGET_CLASS (gtk_layout_parent_class)->style_set (widget, old_style); + GTK_WIDGET_CLASS (gtk_layout_parent_class)->style_set (widget, old_style); if (GTK_WIDGET_REALIZED (widget)) { @@ -926,8 +926,7 @@ gtk_layout_unrealize (GtkWidget *widget) gdk_window_destroy (layout->bin_window); layout->bin_window = NULL; - if (GTK_WIDGET_CLASS (gtk_layout_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_layout_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_layout_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtklistitem.c b/gtk/gtklistitem.c index a0df6005c0..f3aa6a1f79 100644 --- a/gtk/gtklistitem.c +++ b/gtk/gtklistitem.c @@ -427,8 +427,7 @@ gtk_list_item_realize (GtkWidget *widget) GdkWindowAttr attributes; gint attributes_mask; - /*if (GTK_WIDGET_CLASS (parent_class)->realize) - GTK_WIDGET_CLASS (parent_class)->realize (widget);*/ + /*GTK_WIDGET_CLASS (parent_class)->realize (widget);*/ g_return_if_fail (GTK_IS_LIST_ITEM (widget)); diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index b8ab1e8d74..5a96605930 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -853,8 +853,7 @@ gtk_menu_item_unrealize (GtkWidget *widget) gdk_window_destroy (menu_item->event_window); menu_item->event_window = NULL; - if (GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index dc6c57f1e8..ca8356018b 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -892,8 +892,7 @@ gtk_message_dialog_style_set (GtkWidget *widget, setup_primary_label_font (dialog); - if (GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set) - (GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set) (widget, prev_style); + GTK_WIDGET_CLASS (gtk_message_dialog_parent_class)->style_set (widget, prev_style); } #define __GTK_MESSAGE_DIALOG_C__ diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 1eddcd015f..75521c701d 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1784,8 +1784,7 @@ gtk_notebook_unrealize (GtkWidget *widget) priv->drag_window = NULL; } - if (GTK_WIDGET_CLASS (gtk_notebook_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_notebook_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_notebook_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 8778673364..186499be81 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -773,8 +773,7 @@ gtk_paned_unrealize (GtkWidget *widget) gtk_paned_set_saved_focus (paned, NULL); gtk_paned_set_first_paned (paned, NULL); - if (GTK_WIDGET_CLASS (gtk_paned_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_paned_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_paned_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index be6996d34f..a1a5093bd2 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -648,8 +648,7 @@ static void gtk_path_bar_style_set (GtkWidget *widget, GtkStyle *previous_style) { - if (GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->style_set) - GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->style_set (widget, previous_style); + GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->style_set (widget, previous_style); gtk_path_bar_check_icon_theme (GTK_PATH_BAR (widget)); } diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index 12a31adca4..a692de8be3 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -567,8 +567,7 @@ gtk_plug_unrealize (GtkWidget *widget) g_object_unref (plug->modality_group); } - if (GTK_WIDGET_CLASS (gtk_plug_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_plug_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_plug_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 783ea4454c..48ed989bd0 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -1630,8 +1630,7 @@ static void gtk_print_unix_dialog_style_set (GtkWidget *widget, GtkStyle *previous_style) { - if (GTK_WIDGET_CLASS (gtk_print_unix_dialog_parent_class)->style_set) - GTK_WIDGET_CLASS (gtk_print_unix_dialog_parent_class)->style_set (widget, previous_style); + GTK_WIDGET_CLASS (gtk_print_unix_dialog_parent_class)->style_set (widget, previous_style); if (gtk_widget_has_screen (widget)) { diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 78c28d66ab..3ae11a5a12 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -1294,8 +1294,7 @@ gtk_range_unrealize (GtkWidget *widget) gdk_window_destroy (range->event_window); range->event_window = NULL; - if (GTK_WIDGET_CLASS (gtk_range_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_range_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_range_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index 57ee733759..6551fdbbc6 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -925,9 +925,8 @@ static void gtk_recent_chooser_default_map (GtkWidget *widget) { GtkRecentChooserDefault *impl = GTK_RECENT_CHOOSER_DEFAULT (widget); - - if (GTK_WIDGET_CLASS (_gtk_recent_chooser_default_parent_class)->map) - GTK_WIDGET_CLASS (_gtk_recent_chooser_default_parent_class)->map (widget); + + GTK_WIDGET_CLASS (_gtk_recent_chooser_default_parent_class)->map (widget); /* reloads everything */ reload_recent_items (impl); diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c index 89f6d05f57..f2791d9d15 100644 --- a/gtk/gtkruler.c +++ b/gtk/gtkruler.c @@ -407,8 +407,7 @@ gtk_ruler_unrealize (GtkWidget *widget) ruler->non_gr_exp_gc = NULL; } - if (GTK_WIDGET_CLASS (gtk_ruler_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_ruler_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_ruler_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c index 7fabd59a32..8929648795 100644 --- a/gtk/gtksocket.c +++ b/gtk/gtksocket.c @@ -407,8 +407,7 @@ gtk_socket_unrealize (GtkWidget *widget) _gtk_socket_end_embedding (socket); } - if (GTK_WIDGET_CLASS (gtk_socket_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_socket_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_socket_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtktext.c b/gtk/gtktext.c index 5bc1aa1ce5..c98a484047 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -1374,8 +1374,7 @@ gtk_text_unrealize (GtkWidget *widget) free_cache (text); - if (GTK_WIDGET_CLASS (parent_class)->unrealize) - GTK_WIDGET_CLASS (parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (parent_class)->unrealize (widget); } static void diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index c59ec95a43..734a0913a5 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4095,9 +4095,10 @@ gtk_text_view_key_press_event (GtkWidget *widget, GdkEventKey *event) retval = TRUE; } /* Binding set */ - else if (GTK_WIDGET_CLASS (gtk_text_view_parent_class)->key_press_event && - GTK_WIDGET_CLASS (gtk_text_view_parent_class)->key_press_event (widget, event)) - retval = TRUE; + else if (GTK_WIDGET_CLASS (gtk_text_view_parent_class)->key_press_event (widget, event)) + { + retval = TRUE; + } /* use overall editability not can_insert, more predictable for users */ else if (text_view->editable && (event->keyval == GDK_Return || diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 12711ffdbf..b7c098c548 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -861,9 +861,8 @@ gtk_toolbar_unrealize (GtkWidget *widget) gdk_window_destroy (priv->event_window); priv->event_window = NULL; } - - if (GTK_WIDGET_CLASS (gtk_toolbar_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_toolbar_parent_class)->unrealize (widget); + + GTK_WIDGET_CLASS (gtk_toolbar_parent_class)->unrealize (widget); } static gint diff --git a/gtk/gtktreeitem.c b/gtk/gtktreeitem.c index fbcd8fca0d..22691fc3bb 100644 --- a/gtk/gtktreeitem.c +++ b/gtk/gtktreeitem.c @@ -442,8 +442,7 @@ gtk_tree_item_remove_pixmaps (GtkTreeItem *tree_item) static void gtk_tree_item_realize (GtkWidget *widget) { - if (GTK_WIDGET_CLASS (parent_class)->realize) - GTK_WIDGET_CLASS (parent_class)->realize (widget); + GTK_WIDGET_CLASS (parent_class)->realize (widget); gdk_window_set_background (widget->window, &widget->style->base[GTK_STATE_NORMAL]); diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index ec119b504e..0ff6dda4c5 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -1938,9 +1938,7 @@ gtk_tree_view_unrealize (GtkWidget *widget) priv->grid_line_gc = NULL; } - /* GtkWidget::unrealize destroys children and widget->window */ - if (GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->unrealize (widget); } /* GtkWidget::size_request helper */ diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 72605499af..ad5a310441 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -637,8 +637,7 @@ gtk_viewport_unrealize (GtkWidget *widget) gdk_window_destroy (viewport->bin_window); viewport->bin_window = NULL; - if (GTK_WIDGET_CLASS (gtk_viewport_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_viewport_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_viewport_parent_class)->unrealize (widget); } static void diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c index 621558fa2a..6afd918a46 100644 --- a/gtk/gtkwin32embedwidget.c +++ b/gtk/gtkwin32embedwidget.c @@ -139,8 +139,7 @@ gtk_win32_embed_widget_unrealize (GtkWidget *widget) embed_widget->parent_window = NULL; } - if (GTK_WIDGET_CLASS (gtk_win32_embed_widget_parent_class)->unrealize) - GTK_WIDGET_CLASS (gtk_win32_embed_widget_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_win32_embed_widget_parent_class)->unrealize (widget); } static LRESULT CALLBACK |