consistently chain up using GTK_FOO_CLASS(parent_class)->bar(instance)

2008-08-12  Michael Natterer  <mitch@imendio.com>

	* gtk/*.c: consistently chain up using
	GTK_FOO_CLASS(parent_class)->bar(instance) instead of
	(*GTK_FOO_CLASS(parent_class))->bar(instance).


svn path=/trunk/; revision=21085
This commit is contained in:
Michael Natterer 2008-08-12 09:06:34 +00:00 committed by Michael Natterer
parent a862e0dfcd
commit e18d3c6fd3
43 changed files with 192 additions and 189 deletions

View File

@ -1,3 +1,9 @@
2008-08-12 Michael Natterer <mitch@imendio.com>
* gtk/*.c: consistently chain up using
GTK_FOO_CLASS(parent_class)->bar(instance) instead of
(*GTK_FOO_CLASS(parent_class))->bar(instance).
2008-08-12 Matthias Clasen <mclasen@redhat.com>
Bug 546730 gtk_status_icon_get_gicon() should use a return instead

View File

@ -955,9 +955,9 @@ gtk_action_create_menu_item (GtkAction *action)
g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
menu_item = (* GTK_ACTION_GET_CLASS (action)->create_menu_item) (action);
menu_item = GTK_ACTION_GET_CLASS (action)->create_menu_item (action);
(* GTK_ACTION_GET_CLASS (action)->connect_proxy) (action, menu_item);
GTK_ACTION_GET_CLASS (action)->connect_proxy (action, menu_item);
return menu_item;
}
@ -979,9 +979,9 @@ gtk_action_create_tool_item (GtkAction *action)
g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
button = (* GTK_ACTION_GET_CLASS (action)->create_tool_item) (action);
button = GTK_ACTION_GET_CLASS (action)->create_tool_item (action);
(* GTK_ACTION_GET_CLASS (action)->connect_proxy) (action, button);
GTK_ACTION_GET_CLASS (action)->connect_proxy (action, button);
return button;
}
@ -1013,9 +1013,9 @@ gtk_action_connect_proxy (GtkAction *action,
prev_action = g_object_get_qdata (G_OBJECT (proxy), quark_gtk_action_proxy);
if (prev_action)
(* GTK_ACTION_GET_CLASS (action)->disconnect_proxy) (prev_action, proxy);
GTK_ACTION_GET_CLASS (action)->disconnect_proxy (prev_action, proxy);
(* GTK_ACTION_GET_CLASS (action)->connect_proxy) (action, proxy);
GTK_ACTION_GET_CLASS (action)->connect_proxy (action, proxy);
}
/**
@ -1037,7 +1037,7 @@ gtk_action_disconnect_proxy (GtkAction *action,
g_return_if_fail (g_object_get_qdata (G_OBJECT (proxy), quark_gtk_action_proxy) == action);
(* GTK_ACTION_GET_CLASS (action)->disconnect_proxy) (action, proxy);
GTK_ACTION_GET_CLASS (action)->disconnect_proxy (action, proxy);
}
/**

View File

@ -743,8 +743,8 @@ gtk_action_group_get_action (GtkActionGroup *action_group,
g_return_val_if_fail (GTK_IS_ACTION_GROUP (action_group), NULL);
g_return_val_if_fail (GTK_ACTION_GROUP_GET_CLASS (action_group)->get_action != NULL, NULL);
return (* GTK_ACTION_GROUP_GET_CLASS (action_group)->get_action)
(action_group, action_name);
return GTK_ACTION_GROUP_GET_CLASS (action_group)->get_action (action_group,
action_name);
}
static gboolean
@ -984,9 +984,9 @@ shared_data_unref (gpointer data)
shared_data->ref_count--;
if (shared_data->ref_count == 0)
{
if (shared_data->destroy)
(*shared_data->destroy) (shared_data->data);
if (shared_data->destroy)
shared_data->destroy (shared_data->data);
g_slice_free (SharedData, shared_data);
}
}

View File

@ -533,8 +533,8 @@ gtk_button_destroy (GtkObject *object)
g_free (button->label_text);
button->label_text = NULL;
}
(* GTK_OBJECT_CLASS (gtk_button_parent_class)->destroy) (object);
GTK_OBJECT_CLASS (gtk_button_parent_class)->destroy (object);
}
static GObject*
@ -545,9 +545,9 @@ gtk_button_constructor (GType type,
GObject *object;
GtkButton *button;
object = (* G_OBJECT_CLASS (gtk_button_parent_class)->constructor) (type,
n_construct_properties,
construct_params);
object = G_OBJECT_CLASS (gtk_button_parent_class)->constructor (type,
n_construct_properties,
construct_params);
button = GTK_BUTTON (object);
button->constructed = TRUE;
@ -1344,10 +1344,10 @@ gtk_button_expose (GtkWidget *widget,
GTK_WIDGET_STATE (widget),
button->depressed ? GTK_SHADOW_IN : GTK_SHADOW_OUT,
"button", "buttondefault");
(* GTK_WIDGET_CLASS (gtk_button_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_button_parent_class)->expose_event (widget, event);
}
return FALSE;
}

View File

@ -1235,7 +1235,7 @@ calendar_set_month_prev (GtkCalendar *calendar)
static void
gtk_calendar_finalize (GObject *object)
{
(* G_OBJECT_CLASS (gtk_calendar_parent_class)->finalize) (object);
G_OBJECT_CLASS (gtk_calendar_parent_class)->finalize (object);
}
static void
@ -1656,9 +1656,9 @@ gtk_calendar_unrealize (GtkWidget *widget)
gdk_window_destroy (priv->day_name_win);
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*

View File

@ -229,7 +229,7 @@ gtk_check_button_size_request (GtkWidget *widget,
requisition->height = MAX (requisition->height, temp) + 2 * (focus_width + focus_pad);
}
else
(* GTK_WIDGET_CLASS (gtk_check_button_parent_class)->size_request) (widget, requisition);
GTK_WIDGET_CLASS (gtk_check_button_parent_class)->size_request (widget, requisition);
}
static void
@ -294,7 +294,7 @@ gtk_check_button_size_allocate (GtkWidget *widget,
}
}
else
(* GTK_WIDGET_CLASS (gtk_check_button_parent_class)->size_allocate) (widget, allocation);
GTK_WIDGET_CLASS (gtk_check_button_parent_class)->size_allocate (widget, allocation);
}
static gint
@ -319,7 +319,7 @@ gtk_check_button_expose (GtkWidget *widget,
event);
}
else if (GTK_WIDGET_CLASS (gtk_check_button_parent_class)->expose_event)
(* GTK_WIDGET_CLASS (gtk_check_button_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_check_button_parent_class)->expose_event (widget, event);
}
return FALSE;
@ -335,9 +335,9 @@ gtk_check_button_draw_indicator (GtkCheckButton *check_button,
g_return_if_fail (GTK_IS_CHECK_BUTTON (check_button));
class = GTK_CHECK_BUTTON_GET_CLASS (check_button);
if (class->draw_indicator)
(* class->draw_indicator) (check_button, area);
class->draw_indicator (check_button, area);
}
static void

View File

@ -353,7 +353,7 @@ gtk_check_menu_item_expose (GtkWidget *widget,
GdkEventExpose *event)
{
if (GTK_WIDGET_CLASS (gtk_check_menu_item_parent_class)->expose_event)
(* GTK_WIDGET_CLASS (gtk_check_menu_item_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_check_menu_item_parent_class)->expose_event (widget, event);
gtk_check_menu_item_draw_indicator (GTK_CHECK_MENU_ITEM (widget), &event->area);
@ -377,7 +377,7 @@ gtk_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
GdkRectangle *area)
{
if (GTK_CHECK_MENU_ITEM_GET_CLASS (check_menu_item)->draw_indicator)
(* GTK_CHECK_MENU_ITEM_GET_CLASS (check_menu_item)->draw_indicator) (check_menu_item, area);
GTK_CHECK_MENU_ITEM_GET_CLASS (check_menu_item)->draw_indicator (check_menu_item, area);
}
static void

View File

@ -4663,7 +4663,7 @@ gtk_clist_unrealize (GtkWidget *widget)
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
@ -4822,7 +4822,7 @@ gtk_clist_style_set (GtkWidget *widget,
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);
GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
clist = GTK_CLIST (widget);

View File

@ -1385,7 +1385,7 @@ gtk_entry_unrealize (GtkWidget *widget)
}
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

View File

@ -451,7 +451,7 @@ gtk_event_box_unrealize (GtkWidget *widget)
}
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
@ -463,8 +463,8 @@ gtk_event_box_map (GtkWidget *widget)
if (priv->event_window != NULL && !priv->above_child)
gdk_window_show (priv->event_window);
(* GTK_WIDGET_CLASS (gtk_event_box_parent_class)->map) (widget);
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->map (widget);
if (priv->event_window != NULL && priv->above_child)
gdk_window_show (priv->event_window);
@ -479,8 +479,8 @@ gtk_event_box_unmap (GtkWidget *widget)
if (priv->event_window != NULL)
gdk_window_hide (priv->event_window);
(* GTK_WIDGET_CLASS (gtk_event_box_parent_class)->unmap) (widget);
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->unmap (widget);
}
@ -571,8 +571,8 @@ gtk_event_box_expose (GtkWidget *widget,
{
if (!GTK_WIDGET_NO_WINDOW (widget))
gtk_event_box_paint (widget, &event->area);
(* GTK_WIDGET_CLASS (gtk_event_box_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -637,9 +637,9 @@ gtk_file_chooser_button_constructor (GType type,
GSList *list;
char *current_folder;
object = (*G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructor) (type,
n_params,
params);
object = G_OBJECT_CLASS (gtk_file_chooser_button_parent_class)->constructor (type,
n_params,
params);
button = GTK_FILE_CHOOSER_BUTTON (object);
priv = button->priv;
@ -1048,11 +1048,11 @@ gtk_file_chooser_button_drag_data_received (GtkWidget *widget,
gchar *text;
if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received != NULL)
(*GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received) (widget,
context,
x, y,
data, type,
drag_time);
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->drag_data_received (widget,
context,
x, y,
data, type,
drag_time);
if (widget == NULL || context == NULL || data == NULL || data->length < 0)
return;
@ -1124,7 +1124,7 @@ gtk_file_chooser_button_show (GtkWidget *widget)
GtkFileChooserButtonPrivate *priv = button->priv;
if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->show)
(*GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->show) (widget);
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->show (widget);
if (priv->active)
open_dialog (GTK_FILE_CHOOSER_BUTTON (widget));
@ -1139,7 +1139,7 @@ gtk_file_chooser_button_hide (GtkWidget *widget)
gtk_widget_hide (priv->dialog);
if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->hide)
(*GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->hide) (widget);
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->hide (widget);
}
static void
@ -1160,7 +1160,7 @@ gtk_file_chooser_button_map (GtkWidget *widget)
}
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
@ -1370,8 +1370,8 @@ 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));
@ -1382,10 +1382,10 @@ gtk_file_chooser_button_screen_changed (GtkWidget *widget,
GdkScreen *old_screen)
{
if (GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->screen_changed)
(*GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->screen_changed) (widget,
old_screen);
GTK_WIDGET_CLASS (gtk_file_chooser_button_parent_class)->screen_changed (widget,
old_screen);
change_icon_theme (GTK_FILE_CHOOSER_BUTTON (widget));
change_icon_theme (GTK_FILE_CHOOSER_BUTTON (widget));
}

View File

@ -592,7 +592,7 @@ gtk_frame_expose (GtkWidget *widget,
{
gtk_frame_paint (widget, &event->area);
(* GTK_WIDGET_CLASS (gtk_frame_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_frame_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -469,7 +469,7 @@ gtk_handle_box_unrealize (GtkWidget *widget)
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
@ -954,7 +954,7 @@ gtk_handle_box_paint (GtkWidget *widget,
handle_orientation);
if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
(* GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_handle_box_parent_class)->expose_event (widget, event);
}
static gint

View File

@ -1030,7 +1030,7 @@ gtk_icon_view_destroy (GtkObject *object)
clear_dest_info (icon_view);
clear_source_info (icon_view);
(* GTK_OBJECT_CLASS (gtk_icon_view_parent_class)->destroy) (object);
GTK_OBJECT_CLASS (gtk_icon_view_parent_class)->destroy (object);
}
/* GObject methods */
@ -1039,7 +1039,7 @@ gtk_icon_view_finalize (GObject *object)
{
gtk_icon_view_cell_layout_clear (GTK_CELL_LAYOUT (object));
(* G_OBJECT_CLASS (gtk_icon_view_parent_class)->finalize) (object);
G_OBJECT_CLASS (gtk_icon_view_parent_class)->finalize (object);
}
@ -1233,7 +1233,7 @@ gtk_icon_view_unrealize (GtkWidget *widget)
/* 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
@ -1514,7 +1514,7 @@ gtk_icon_view_expose (GtkWidget *widget,
cairo_destroy (cr);
(* GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->expose_event) (widget, expose);
GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->expose_event (widget, expose);
return TRUE;
}
@ -2131,7 +2131,7 @@ gtk_icon_view_key_press (GtkWidget *widget,
return TRUE;
}
return (* GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->key_press_event) (widget, event);
return GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->key_press_event (widget, event);
}
static gboolean
@ -2143,7 +2143,7 @@ gtk_icon_view_key_release (GtkWidget *widget,
if (icon_view->priv->doing_rubberband)
return TRUE;
return (* GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->key_press_event) (widget, event);
return GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->key_press_event (widget, event);
}
static void
@ -9598,7 +9598,7 @@ gtk_icon_view_get_accessible (GtkWidget *widget)
gtk_icon_view_accessible_factory_get_type ());
first_time = FALSE;
}
return (* GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->get_accessible) (widget);
return GTK_WIDGET_CLASS (gtk_icon_view_parent_class)->get_accessible (widget);
}
static gboolean

View File

@ -250,8 +250,8 @@ gtk_image_menu_item_size_request (GtkWidget *widget,
child_width = child_requisition.width;
child_height = child_requisition.height;
}
(* GTK_WIDGET_CLASS (gtk_image_menu_item_parent_class)->size_request) (widget, requisition);
GTK_WIDGET_CLASS (gtk_image_menu_item_parent_class)->size_request (widget, requisition);
/* not done with height since that happens via the
* toggle_size_request
@ -281,8 +281,8 @@ gtk_image_menu_item_size_allocate (GtkWidget *widget,
pack_dir = GTK_PACK_DIRECTION_LTR;
image_menu_item = GTK_IMAGE_MENU_ITEM (widget);
(* GTK_WIDGET_CLASS (gtk_image_menu_item_parent_class)->size_allocate) (widget, allocation);
GTK_WIDGET_CLASS (gtk_image_menu_item_parent_class)->size_allocate (widget, allocation);
if (image_menu_item->image && show_image (image_menu_item))
{
@ -357,11 +357,11 @@ gtk_image_menu_item_forall (GtkContainer *container,
gpointer callback_data)
{
GtkImageMenuItem *image_menu_item = GTK_IMAGE_MENU_ITEM (container);
(* GTK_CONTAINER_CLASS (gtk_image_menu_item_parent_class)->forall) (container,
include_internals,
callback,
callback_data);
GTK_CONTAINER_CLASS (gtk_image_menu_item_parent_class)->forall (container,
include_internals,
callback,
callback_data);
if (include_internals && image_menu_item->image)
(* callback) (image_menu_item->image, callback_data);
@ -566,7 +566,7 @@ gtk_image_menu_item_remove (GtkContainer *container,
}
else
{
(* GTK_CONTAINER_CLASS (gtk_image_menu_item_parent_class)->remove) (container, child);
GTK_CONTAINER_CLASS (gtk_image_menu_item_parent_class)->remove (container, child);
}
}

View File

@ -2562,7 +2562,7 @@ gtk_label_size_allocate (GtkWidget *widget,
label = GTK_LABEL (widget);
(* GTK_WIDGET_CLASS (gtk_label_parent_class)->size_allocate) (widget, allocation);
GTK_WIDGET_CLASS (gtk_label_parent_class)->size_allocate (widget, allocation);
if (label->ellipsize)
{
@ -3061,8 +3061,8 @@ gtk_label_realize (GtkWidget *widget)
GtkLabel *label;
label = GTK_LABEL (widget);
(* GTK_WIDGET_CLASS (gtk_label_parent_class)->realize) (widget);
GTK_WIDGET_CLASS (gtk_label_parent_class)->realize (widget);
if (label->select_info)
gtk_label_create_window (label);
@ -3077,8 +3077,8 @@ gtk_label_unrealize (GtkWidget *widget)
if (label->select_info)
gtk_label_destroy_window (label);
(* GTK_WIDGET_CLASS (gtk_label_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_label_parent_class)->unrealize (widget);
}
static void
@ -3087,9 +3087,9 @@ gtk_label_map (GtkWidget *widget)
GtkLabel *label;
label = GTK_LABEL (widget);
(* GTK_WIDGET_CLASS (gtk_label_parent_class)->map) (widget);
GTK_WIDGET_CLASS (gtk_label_parent_class)->map (widget);
if (label->select_info)
gdk_window_show (label->select_info->window);
}
@ -3103,8 +3103,8 @@ gtk_label_unmap (GtkWidget *widget)
if (label->select_info)
gdk_window_hide (label->select_info->window);
(* GTK_WIDGET_CLASS (gtk_label_parent_class)->unmap) (widget);
GTK_WIDGET_CLASS (gtk_label_parent_class)->unmap (widget);
}
static void

View File

@ -884,7 +884,7 @@ static void
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))
{
@ -927,7 +927,7 @@ gtk_layout_unrealize (GtkWidget *widget)
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
@ -1004,8 +1004,8 @@ gtk_layout_expose (GtkWidget *widget,
if (event->window != layout->bin_window)
return FALSE;
(* GTK_WIDGET_CLASS (gtk_layout_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_layout_parent_class)->expose_event (widget, event);
return FALSE;
}

View File

@ -459,7 +459,7 @@ gtk_link_button_button_press (GtkWidget *widget,
}
if (GTK_WIDGET_CLASS (gtk_link_button_parent_class)->button_press_event)
return (* GTK_WIDGET_CLASS (gtk_link_button_parent_class)->button_press_event) (widget, event);
return GTK_WIDGET_CLASS (gtk_link_button_parent_class)->button_press_event (widget, event);
return FALSE;
}

View File

@ -428,7 +428,7 @@ gtk_list_item_realize (GtkWidget *widget)
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));
@ -566,8 +566,8 @@ gtk_list_item_expose (GtkWidget *widget,
0, 0, -1, -1);
}
(* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (parent_class)->expose_event (widget, event);
if (GTK_WIDGET_HAS_FOCUS (widget))
{
if (GTK_IS_LIST (widget->parent) && GTK_LIST (widget->parent)->add_mode)

View File

@ -2317,7 +2317,7 @@ gtk_menu_unrealize (GtkWidget *widget)
gdk_window_destroy (menu->bin_window);
menu->bin_window = NULL;
(* GTK_WIDGET_CLASS (gtk_menu_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_menu_parent_class)->unrealize (widget);
}
static void
@ -2722,8 +2722,8 @@ gtk_menu_expose (GtkWidget *widget,
if (GTK_WIDGET_DRAWABLE (widget))
{
gtk_menu_paint (widget, event);
(* GTK_WIDGET_CLASS (gtk_menu_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_menu_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -537,7 +537,7 @@ gtk_menu_bar_expose (GtkWidget *widget,
{
gtk_menu_bar_paint (widget, &event->area);
(* GTK_WIDGET_CLASS (gtk_menu_bar_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_menu_bar_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -852,9 +852,9 @@ gtk_menu_item_unrealize (GtkWidget *widget)
gdk_window_set_user_data (menu_item->event_window, NULL);
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
@ -1013,7 +1013,7 @@ gtk_menu_item_expose (GtkWidget *widget,
{
gtk_menu_item_paint (widget, &event->area);
(* GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -1785,7 +1785,7 @@ gtk_notebook_unrealize (GtkWidget *widget)
}
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
@ -3167,8 +3167,8 @@ gtk_notebook_style_set (GtkWidget *widget,
notebook->has_before_next = has_before_next;
notebook->has_after_previous = has_after_previous;
notebook->has_after_next = has_after_next;
(* GTK_WIDGET_CLASS (gtk_notebook_parent_class)->style_set) (widget, previous);
GTK_WIDGET_CLASS (gtk_notebook_parent_class)->style_set (widget, previous);
}
static gboolean

View File

@ -772,9 +772,9 @@ gtk_paned_unrealize (GtkWidget *widget)
gtk_paned_set_last_child2_focus (paned, NULL);
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
@ -931,7 +931,7 @@ gtk_paned_focus (GtkWidget *widget,
*/
GTK_WIDGET_UNSET_FLAGS (widget, GTK_CAN_FOCUS);
retval = (* GTK_WIDGET_CLASS (gtk_paned_parent_class)->focus) (widget, direction);
retval = GTK_WIDGET_CLASS (gtk_paned_parent_class)->focus (widget, direction);
GTK_WIDGET_SET_FLAGS (widget, GTK_CAN_FOCUS);
return retval;
@ -1452,7 +1452,7 @@ gtk_paned_set_focus_child (GtkContainer *container,
}
if (GTK_CONTAINER_CLASS (gtk_paned_parent_class)->set_focus_child)
(* GTK_CONTAINER_CLASS (gtk_paned_parent_class)->set_focus_child) (container, focus_child);
GTK_CONTAINER_CLASS (gtk_paned_parent_class)->set_focus_child (container, focus_child);
}
static void

View File

@ -436,7 +436,7 @@ gtk_path_bar_unrealize (GtkWidget *widget)
gdk_window_destroy (path_bar->event_window);
path_bar->event_window = NULL;
(* GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_path_bar_parent_class)->unrealize (widget);
}
/* This is a tad complicated

View File

@ -566,9 +566,9 @@ gtk_plug_unrealize (GtkWidget *widget)
gtk_window_group_remove_window (plug->modality_group, GTK_WINDOW (plug));
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

View File

@ -1193,7 +1193,7 @@ gtk_range_destroy (GtkObject *object)
range->adjustment = NULL;
}
(* GTK_OBJECT_CLASS (gtk_range_parent_class)->destroy) (object);
GTK_OBJECT_CLASS (gtk_range_parent_class)->destroy (object);
}
static void
@ -1293,9 +1293,9 @@ gtk_range_unrealize (GtkWidget *widget)
gdk_window_set_user_data (range->event_window, NULL);
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
@ -2331,7 +2331,7 @@ gtk_range_style_set (GtkWidget *widget,
range->need_recalc = TRUE;
(* GTK_WIDGET_CLASS (gtk_range_parent_class)->style_set) (widget, previous_style);
GTK_WIDGET_CLASS (gtk_range_parent_class)->style_set (widget, previous_style);
}
static void
@ -2783,7 +2783,7 @@ gtk_range_calc_request (GtkRange *range,
border->bottom = 0;
if (GTK_RANGE_GET_CLASS (range)->get_range_border)
(* GTK_RANGE_GET_CLASS (range)->get_range_border) (range, border);
GTK_RANGE_GET_CLASS (range)->get_range_border (range, border);
n_steppers_ab = 0;
n_steppers_cd = 0;

View File

@ -408,7 +408,7 @@ gtk_ruler_unrealize (GtkWidget *widget)
}
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

View File

@ -580,7 +580,7 @@ gtk_scale_style_set (GtkWidget *widget,
_gtk_scale_clear_layout (GTK_SCALE (widget));
(* GTK_WIDGET_CLASS (gtk_scale_parent_class)->style_set) (widget, previous);
GTK_WIDGET_CLASS (gtk_scale_parent_class)->style_set (widget, previous);
}
static void

View File

@ -127,8 +127,8 @@ gtk_scrollbar_style_set (GtkWidget *widget,
range->has_stepper_b = has_b;
range->has_stepper_c = has_c;
range->has_stepper_d = has_d;
(* GTK_WIDGET_CLASS (gtk_scrollbar_parent_class)->style_set) (widget, previous);
GTK_WIDGET_CLASS (gtk_scrollbar_parent_class)->style_set (widget, previous);
}
#define __GTK_SCROLLBAR_C__

View File

@ -998,7 +998,7 @@ gtk_scrolled_window_expose (GtkWidget *widget,
{
gtk_scrolled_window_paint (widget, &event->area);
(* GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_scrolled_window_parent_class)->expose_event (widget, event);
}
return FALSE;

View File

@ -408,10 +408,10 @@ gtk_socket_unrealize (GtkWidget *widget)
}
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
static void
gtk_socket_size_request (GtkWidget *widget,
GtkRequisition *requisition)
{

View File

@ -976,7 +976,7 @@ gtk_spin_button_style_set (GtkWidget *widget,
if (previous_style && GTK_WIDGET_REALIZED (widget))
gtk_style_set_background (widget->style, spin->panel, GTK_STATE_NORMAL);
(* GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->style_set) (widget, previous_style);
GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->style_set (widget, previous_style);
}

View File

@ -675,8 +675,8 @@ gtk_statusbar_realize (GtkWidget *widget)
GtkStatusbar *statusbar;
statusbar = GTK_STATUSBAR (widget);
(* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->realize) (widget);
GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->realize (widget);
if (statusbar->has_resize_grip)
gtk_statusbar_create_window (statusbar);
@ -691,8 +691,8 @@ gtk_statusbar_unrealize (GtkWidget *widget)
if (statusbar->grip_window)
gtk_statusbar_destroy_window (statusbar);
(* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unrealize (widget);
}
static void
@ -701,9 +701,9 @@ gtk_statusbar_map (GtkWidget *widget)
GtkStatusbar *statusbar;
statusbar = GTK_STATUSBAR (widget);
(* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->map) (widget);
GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->map (widget);
if (statusbar->grip_window)
gdk_window_show (statusbar->grip_window);
}
@ -717,8 +717,8 @@ gtk_statusbar_unmap (GtkWidget *widget)
if (statusbar->grip_window)
gdk_window_hide (statusbar->grip_window);
(* GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unmap) (widget);
GTK_WIDGET_CLASS (gtk_statusbar_parent_class)->unmap (widget);
}
static gboolean

View File

@ -1375,7 +1375,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

View File

@ -286,7 +286,7 @@ gtk_text_layout_finalize (GObject *object)
}
(* G_OBJECT_CLASS (gtk_text_layout_parent_class)->finalize) (object);
G_OBJECT_CLASS (gtk_text_layout_parent_class)->finalize (object);
}
void
@ -665,8 +665,7 @@ gtk_text_layout_free_line_data (GtkTextLayout *layout,
GtkTextLine *line,
GtkTextLineData *line_data)
{
(* GTK_TEXT_LAYOUT_GET_CLASS (layout)->free_line_data)
(layout, line, line_data);
GTK_TEXT_LAYOUT_GET_CLASS (layout)->free_line_data (layout, line, line_data);
}
void
@ -674,8 +673,7 @@ gtk_text_layout_invalidate (GtkTextLayout *layout,
const GtkTextIter *start_index,
const GtkTextIter *end_index)
{
(* GTK_TEXT_LAYOUT_GET_CLASS (layout)->invalidate)
(layout, start_index, end_index);
GTK_TEXT_LAYOUT_GET_CLASS (layout)->invalidate (layout, start_index, end_index);
}
void
@ -683,8 +681,7 @@ gtk_text_layout_invalidate_cursors (GtkTextLayout *layout,
const GtkTextIter *start_index,
const GtkTextIter *end_index)
{
(* GTK_TEXT_LAYOUT_GET_CLASS (layout)->invalidate_cursors)
(layout, start_index, end_index);
GTK_TEXT_LAYOUT_GET_CLASS (layout)->invalidate_cursors (layout, start_index, end_index);
}
GtkTextLineData*
@ -693,7 +690,7 @@ gtk_text_layout_wrap (GtkTextLayout *layout,
/* may be NULL */
GtkTextLineData *line_data)
{
return (* GTK_TEXT_LAYOUT_GET_CLASS (layout)->wrap) (layout, line, line_data);
return GTK_TEXT_LAYOUT_GET_CLASS (layout)->wrap (layout, line, line_data);
}
GSList*

View File

@ -2770,7 +2770,7 @@ gtk_text_view_destroy (GtkObject *object)
priv->im_spot_idle = 0;
}
(* GTK_OBJECT_CLASS (gtk_text_view_parent_class)->destroy) (object);
GTK_OBJECT_CLASS (gtk_text_view_parent_class)->destroy (object);
}
static void
@ -2810,8 +2810,8 @@ gtk_text_view_finalize (GObject *object)
text_window_free (text_view->bottom_window);
g_object_unref (text_view->im_context);
(* G_OBJECT_CLASS (gtk_text_view_parent_class)->finalize) (object);
G_OBJECT_CLASS (gtk_text_view_parent_class)->finalize (object);
}
static void
@ -3767,11 +3767,11 @@ gtk_text_view_unrealize (GtkWidget *widget)
text_window_unrealize (text_view->bottom_window);
gtk_text_view_destroy_layout (text_view);
(* GTK_WIDGET_CLASS (gtk_text_view_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_text_view_parent_class)->unrealize (widget);
}
static void
static void
gtk_text_view_set_background (GtkTextView *text_view)
{
GtkWidget *widget = GTK_WIDGET (text_view);

View File

@ -280,14 +280,14 @@ connect_proxy (GtkAction *action,
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (proxy),
toggle_action->private_data->active);
(* GTK_ACTION_CLASS (parent_class)->connect_proxy) (action, proxy);
GTK_ACTION_CLASS (parent_class)->connect_proxy (action, proxy);
}
static void
disconnect_proxy (GtkAction *action,
GtkWidget *proxy)
{
(* GTK_ACTION_CLASS (parent_class)->disconnect_proxy) (action, proxy);
GTK_ACTION_CLASS (parent_class)->disconnect_proxy (action, proxy);
}
/**

View File

@ -443,8 +443,8 @@ 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]);

View File

@ -1532,7 +1532,7 @@ gtk_tree_view_get_property (GObject *object,
static void
gtk_tree_view_finalize (GObject *object)
{
(* G_OBJECT_CLASS (gtk_tree_view_parent_class)->finalize) (object);
G_OBJECT_CLASS (gtk_tree_view_parent_class)->finalize (object);
}
@ -1631,14 +1631,14 @@ gtk_tree_view_destroy (GtkObject *object)
if (tree_view->priv->column_drop_func_data &&
tree_view->priv->column_drop_func_data_destroy)
{
(* tree_view->priv->column_drop_func_data_destroy) (tree_view->priv->column_drop_func_data);
tree_view->priv->column_drop_func_data_destroy (tree_view->priv->column_drop_func_data);
tree_view->priv->column_drop_func_data = NULL;
}
if (tree_view->priv->destroy_count_destroy &&
tree_view->priv->destroy_count_data)
{
(* tree_view->priv->destroy_count_destroy) (tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_destroy (tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_data = NULL;
}
@ -1663,19 +1663,19 @@ gtk_tree_view_destroy (GtkObject *object)
if (tree_view->priv->search_destroy && tree_view->priv->search_user_data)
{
(* tree_view->priv->search_destroy) (tree_view->priv->search_user_data);
tree_view->priv->search_destroy (tree_view->priv->search_user_data);
tree_view->priv->search_user_data = NULL;
}
if (tree_view->priv->search_position_destroy && tree_view->priv->search_position_user_data)
{
(* tree_view->priv->search_position_destroy) (tree_view->priv->search_position_user_data);
tree_view->priv->search_position_destroy (tree_view->priv->search_position_user_data);
tree_view->priv->search_position_user_data = NULL;
}
if (tree_view->priv->row_separator_destroy && tree_view->priv->row_separator_data)
{
(* tree_view->priv->row_separator_destroy) (tree_view->priv->row_separator_data);
tree_view->priv->row_separator_destroy (tree_view->priv->row_separator_data);
tree_view->priv->row_separator_data = NULL;
}
@ -1940,7 +1940,7 @@ gtk_tree_view_unrealize (GtkWidget *widget)
/* 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 */
@ -2484,9 +2484,9 @@ row_is_separator (GtkTreeView *tree_view,
else
gtk_tree_model_get_iter (tree_view->priv->model, &tmpiter, path);
is_separator = (* tree_view->priv->row_separator_func) (tree_view->priv->model,
&tmpiter,
tree_view->priv->row_separator_data);
is_separator = tree_view->priv->row_separator_func (tree_view->priv->model,
&tmpiter,
tree_view->priv->row_separator_data);
}
return is_separator;
@ -5026,7 +5026,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if (!(*tree_view->priv->column_drop_func) (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
if (!tree_view->priv->column_drop_func (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
{
left_column = cur_column;
continue;
@ -5038,7 +5038,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if ((*tree_view->priv->column_drop_func) (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data))
return left_column;
else
return (GtkTreeViewColumn *)0x1;
@ -5077,7 +5077,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if (!(*tree_view->priv->column_drop_func) (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
if (!tree_view->priv->column_drop_func (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
{
left_column = cur_column;
continue;
@ -5089,7 +5089,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if ((*tree_view->priv->column_drop_func) (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data))
return left_column;
else
return (GtkTreeViewColumn *)0x1;
@ -5135,7 +5135,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if ((*tree_view->priv->column_drop_func) (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
return left_column;
cur_column = left_column;
@ -5145,7 +5145,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return NULL;
if ((*tree_view->priv->column_drop_func) (tree_view, column, NULL, cur_column, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, NULL, cur_column, tree_view->priv->column_drop_func_data))
return NULL;
else
return (GtkTreeViewColumn *)0x1;
@ -5174,7 +5174,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return left_column;
if ((*tree_view->priv->column_drop_func) (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
return left_column;
cur_column = left_column;
@ -5184,7 +5184,7 @@ gtk_tree_view_get_drop_column (GtkTreeView *tree_view,
if (!tree_view->priv->column_drop_func)
return NULL;
if ((*tree_view->priv->column_drop_func) (tree_view, column, NULL, cur_column, tree_view->priv->column_drop_func_data))
if (tree_view->priv->column_drop_func (tree_view, column, NULL, cur_column, tree_view->priv->column_drop_func_data))
return NULL;
else
return (GtkTreeViewColumn *)0x1;
@ -5435,7 +5435,7 @@ gtk_tree_view_key_release (GtkWidget *widget,
if (tree_view->priv->rubber_band_status)
return TRUE;
return (* GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->key_release_event) (widget, event);
return GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->key_release_event (widget, event);
}
/* FIXME Is this function necessary? Can I get an enter_notify event
@ -7889,7 +7889,7 @@ gtk_tree_view_focus (GtkWidget *widget,
static void
gtk_tree_view_grab_focus (GtkWidget *widget)
{
(* GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->grab_focus) (widget);
GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->grab_focus (widget);
gtk_tree_view_focus_to_cursor (GTK_TREE_VIEW (widget));
}
@ -8471,7 +8471,7 @@ gtk_tree_view_row_deleted (GtkTreeModel *model,
gint child_count = 0;
if (node->children)
_gtk_rbtree_traverse (node->children, node->children->root, G_POST_ORDER, count_children_helper, &child_count);
(* tree_view->priv->destroy_count_func) (tree_view, path, child_count, tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_func (tree_view, path, child_count, tree_view->priv->destroy_count_data);
}
if (tree->root->count == 1)
@ -9210,7 +9210,7 @@ gtk_tree_view_set_column_drag_info (GtkTreeView *tree_view,
/* If it's not the column moving and func tells us to skip over the column, we continue. */
if (left_column != column && cur_column != column &&
tree_view->priv->column_drop_func &&
! (* tree_view->priv->column_drop_func) (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
! tree_view->priv->column_drop_func (tree_view, column, left_column, cur_column, tree_view->priv->column_drop_func_data))
{
left_column = cur_column;
continue;
@ -9225,7 +9225,7 @@ gtk_tree_view_set_column_drag_info (GtkTreeView *tree_view,
/* Add the last one */
if (tree_view->priv->column_drop_func == NULL ||
((left_column != column) &&
(* tree_view->priv->column_drop_func) (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data)))
tree_view->priv->column_drop_func (tree_view, column, left_column, NULL, tree_view->priv->column_drop_func_data)))
{
reorder = g_slice_new0 (GtkTreeViewColumnReorder);
reorder->left_column = left_column;
@ -11557,7 +11557,7 @@ gtk_tree_view_set_column_drag_function (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (tree_view->priv->column_drop_func_data_destroy)
(* tree_view->priv->column_drop_func_data_destroy) (tree_view->priv->column_drop_func_data);
tree_view->priv->column_drop_func_data_destroy (tree_view->priv->column_drop_func_data);
tree_view->priv->column_drop_func = func;
tree_view->priv->column_drop_func_data = user_data;
@ -12205,7 +12205,7 @@ gtk_tree_view_real_collapse_row (GtkTreeView *tree_view,
gtk_tree_path_down (child_path);
if (node->children)
_gtk_rbtree_traverse (node->children, node->children->root, G_POST_ORDER, count_children_helper, &child_count);
(* tree_view->priv->destroy_count_func) (tree_view, child_path, child_count, tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_func (tree_view, child_path, child_count, tree_view->priv->destroy_count_data);
gtk_tree_path_free (child_path);
}
@ -13849,7 +13849,7 @@ gtk_tree_view_set_destroy_count_func (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (tree_view->priv->destroy_count_destroy)
(* tree_view->priv->destroy_count_destroy) (tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_destroy (tree_view->priv->destroy_count_data);
tree_view->priv->destroy_count_func = func;
tree_view->priv->destroy_count_data = data;
@ -13988,7 +13988,7 @@ gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view,
g_return_if_fail (search_equal_func != NULL);
if (tree_view->priv->search_destroy)
(* tree_view->priv->search_destroy) (tree_view->priv->search_user_data);
tree_view->priv->search_destroy (tree_view->priv->search_user_data);
tree_view->priv->search_equal_func = search_equal_func;
tree_view->priv->search_user_data = search_user_data;
@ -14109,7 +14109,7 @@ gtk_tree_view_set_search_position_func (GtkTreeView *tree_view
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (tree_view->priv->search_position_destroy)
(* tree_view->priv->search_position_destroy) (tree_view->priv->search_position_user_data);
tree_view->priv->search_position_destroy (tree_view->priv->search_position_user_data);
tree_view->priv->search_position_func = func;
tree_view->priv->search_position_user_data = user_data;
@ -15055,7 +15055,7 @@ gtk_tree_view_set_row_separator_func (GtkTreeView *tree_view,
g_return_if_fail (GTK_IS_TREE_VIEW (tree_view));
if (tree_view->priv->row_separator_destroy)
(* tree_view->priv->row_separator_destroy) (tree_view->priv->row_separator_data);
tree_view->priv->row_separator_destroy (tree_view->priv->row_separator_data);
tree_view->priv->row_separator_func = func;
tree_view->priv->row_separator_data = data;

View File

@ -638,7 +638,7 @@ gtk_viewport_unrealize (GtkWidget *widget)
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
@ -674,8 +674,8 @@ gtk_viewport_expose (GtkWidget *widget,
GTK_STATE_NORMAL, GTK_SHADOW_NONE,
&event->area, widget, "viewportbin",
0, 0, -1, -1);
(* GTK_WIDGET_CLASS (gtk_viewport_parent_class)->expose_event) (widget, event);
GTK_WIDGET_CLASS (gtk_viewport_parent_class)->expose_event (widget, event);
}
}

View File

@ -138,9 +138,9 @@ gtk_win32_embed_widget_unrealize (GtkWidget *widget)
g_object_unref (embed_widget->parent_window);
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

View File

@ -4716,8 +4716,8 @@ gtk_window_unrealize (GtkWidget *widget)
/* Icons */
gtk_window_unrealize_icon (window);
(* GTK_WIDGET_CLASS (gtk_window_parent_class)->unrealize) (widget);
GTK_WIDGET_CLASS (gtk_window_parent_class)->unrealize (widget);
}
static void