Commit 113f364a authored by Matthias Clasen's avatar Matthias Clasen

More of the same

parent 1ad9d624
2006-05-13 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c:
* gdk-pixbuf/*.c:
* gdk/*.c: Remove erroneous ; after G_DEFINE_TYPE
macros. (#341692, Yevgen Muntyan)
......
2006-05-13 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c:
* gdk-pixbuf/*.c:
* gdk/*.c: Remove erroneous ; after G_DEFINE_TYPE
macros. (#341692, Yevgen Muntyan)
......
......@@ -66,7 +66,7 @@ typedef struct
gboolean needs_scale;
} GdkPixbufLoaderPrivate;
G_DEFINE_TYPE(GdkPixbufLoader, gdk_pixbuf_loader, G_TYPE_OBJECT);
G_DEFINE_TYPE (GdkPixbufLoader, gdk_pixbuf_loader, G_TYPE_OBJECT)
static void
gdk_pixbuf_loader_class_init (GdkPixbufLoaderClass *class)
......
......@@ -109,7 +109,7 @@ static GdkPixbufAnimationIter *get_iter (GdkPixbufAnimation *anim,
const GTimeVal *start_time);
G_DEFINE_TYPE(GdkPixbufSimpleAnim, gdk_pixbuf_simple_anim, GDK_TYPE_PIXBUF_ANIMATION);
G_DEFINE_TYPE (GdkPixbufSimpleAnim, gdk_pixbuf_simple_anim, GDK_TYPE_PIXBUF_ANIMATION)
static void
gdk_pixbuf_simple_anim_init (GdkPixbufSimpleAnim *anim)
......@@ -234,7 +234,7 @@ static gboolean on_currently_loading_frame (GdkPixbufAnimationIter *iter);
static gboolean advance (GdkPixbufAnimationIter *iter,
const GTimeVal *current_time);
G_DEFINE_TYPE (GdkPixbufSimpleAnimIter, gdk_pixbuf_simple_anim_iter, GDK_TYPE_PIXBUF_ANIMATION_ITER);
G_DEFINE_TYPE (GdkPixbufSimpleAnimIter, gdk_pixbuf_simple_anim_iter, GDK_TYPE_PIXBUF_ANIMATION_ITER)
static void
gdk_pixbuf_simple_anim_iter_init (GdkPixbufSimpleAnimIter *iter)
......
......@@ -56,7 +56,7 @@ enum
PROP_PIXELS
};
G_DEFINE_TYPE(GdkPixbuf, gdk_pixbuf, G_TYPE_OBJECT)
G_DEFINE_TYPE (GdkPixbuf, gdk_pixbuf, G_TYPE_OBJECT)
static void
gdk_pixbuf_init (GdkPixbuf *pixbuf)
......
......@@ -172,7 +172,7 @@ static GtkAboutDialogActivateLinkFunc activate_url_hook = NULL;
static gpointer activate_url_hook_data = NULL;
static GDestroyNotify activate_url_hook_destroy = NULL;
G_DEFINE_TYPE (GtkAboutDialog, gtk_about_dialog, GTK_TYPE_DIALOG);
G_DEFINE_TYPE (GtkAboutDialog, gtk_about_dialog, GTK_TYPE_DIALOG)
static void
gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
......
......@@ -54,7 +54,7 @@ static guint default_accel_mod_mask = (GDK_SHIFT_MASK |
GDK_META_MASK);
G_DEFINE_TYPE (GtkAccelGroup, gtk_accel_group, G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkAccelGroup, gtk_accel_group, G_TYPE_OBJECT)
/* --- functions --- */
static void
......
......@@ -60,7 +60,7 @@ static gboolean gtk_accel_label_expose_event (GtkWidget *widget,
static const gchar *gtk_accel_label_get_string (GtkAccelLabel *accel_label);
G_DEFINE_TYPE (GtkAccelLabel, gtk_accel_label, GTK_TYPE_LABEL);
G_DEFINE_TYPE (GtkAccelLabel, gtk_accel_label, GTK_TYPE_LABEL)
static void
gtk_accel_label_class_init (GtkAccelLabelClass *class)
......
......@@ -931,7 +931,7 @@ gtk_accel_map_unlock_path (const gchar *accel_path)
entry->lock_count -= 1;
}
G_DEFINE_TYPE (GtkAccelMap, gtk_accel_map, G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkAccelMap, gtk_accel_map, G_TYPE_OBJECT)
static void
gtk_accel_map_class_init (GtkAccelMapClass *accel_map_class)
......
......@@ -27,7 +27,7 @@
static void gtk_accessible_real_connect_widget_destroyed (GtkAccessible *accessible);
G_DEFINE_TYPE (GtkAccessible, gtk_accessible, ATK_TYPE_OBJECT);
G_DEFINE_TYPE (GtkAccessible, gtk_accessible, ATK_TYPE_OBJECT)
static void
gtk_accessible_init (GtkAccessible *object)
......
......@@ -112,7 +112,7 @@ static GQuark quark_gtk_action_proxy = 0;
static const gchar accel_path_key[] = "GtkAction::accel_path";
static const gchar gtk_action_proxy_key[] = "gtk-action";
G_DEFINE_TYPE (GtkAction, gtk_action, G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkAction, gtk_action, G_TYPE_OBJECT)
static void gtk_action_finalize (GObject *object);
static void gtk_action_set_property (GObject *object,
......
......@@ -60,7 +60,7 @@ static void gtk_adjustment_set_property (GObject *object,
static guint adjustment_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkAdjustment, gtk_adjustment, GTK_TYPE_OBJECT);
G_DEFINE_TYPE (GtkAdjustment, gtk_adjustment, GTK_TYPE_OBJECT)
static void
gtk_adjustment_class_init (GtkAdjustmentClass *class)
......
......@@ -69,7 +69,7 @@ static void gtk_alignment_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
G_DEFINE_TYPE (GtkAlignment, gtk_alignment, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkAlignment, gtk_alignment, GTK_TYPE_BIN)
static void
gtk_alignment_class_init (GtkAlignmentClass *class)
......
......@@ -55,7 +55,7 @@ static void gtk_arrow_get_property (GObject *object,
GParamSpec *pspec);
G_DEFINE_TYPE (GtkArrow, gtk_arrow, GTK_TYPE_MISC);
G_DEFINE_TYPE (GtkArrow, gtk_arrow, GTK_TYPE_MISC)
static void
......
......@@ -57,7 +57,7 @@ static void gtk_aspect_frame_compute_child_allocation (GtkFrame *fram
#define MAX_RATIO 10000.0
#define MIN_RATIO 0.0001
G_DEFINE_TYPE (GtkAspectFrame, gtk_aspect_frame, GTK_TYPE_FRAME);
G_DEFINE_TYPE (GtkAspectFrame, gtk_aspect_frame, GTK_TYPE_FRAME)
static void
gtk_aspect_frame_class_init (GtkAspectFrameClass *class)
......
......@@ -136,7 +136,7 @@ enum
static guint signals [LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkAssistant, gtk_assistant, GTK_TYPE_WINDOW);
G_DEFINE_TYPE (GtkAssistant, gtk_assistant, GTK_TYPE_WINDOW)
static void
......
......@@ -65,7 +65,7 @@ static void gtk_button_box_get_child_property (GtkContainer *container,
#define DEFAULT_CHILD_IPAD_X 4
#define DEFAULT_CHILD_IPAD_Y 0
G_DEFINE_ABSTRACT_TYPE (GtkButtonBox, gtk_button_box, GTK_TYPE_BOX);
G_DEFINE_ABSTRACT_TYPE (GtkButtonBox, gtk_button_box, GTK_TYPE_BOX)
static void
gtk_button_box_class_init (GtkButtonBoxClass *class)
......
......@@ -40,7 +40,7 @@ static void gtk_bin_forall (GtkContainer *container,
static GType gtk_bin_child_type (GtkContainer *container);
G_DEFINE_ABSTRACT_TYPE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER);
G_DEFINE_ABSTRACT_TYPE (GtkBin, gtk_bin, GTK_TYPE_CONTAINER)
static void
gtk_bin_class_init (GtkBinClass *class)
......
......@@ -74,7 +74,7 @@ static void gtk_box_get_child_property (GtkContainer *container,
static GType gtk_box_child_type (GtkContainer *container);
G_DEFINE_ABSTRACT_TYPE (GtkBox, gtk_box, GTK_TYPE_CONTAINER);
G_DEFINE_ABSTRACT_TYPE (GtkBox, gtk_box, GTK_TYPE_CONTAINER)
static void
gtk_box_class_init (GtkBoxClass *class)
......
......@@ -139,7 +139,7 @@ static void gtk_button_grab_notify (GtkWidget *widget,
static guint button_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkButton, gtk_button, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkButton, gtk_button, GTK_TYPE_BIN)
static void
gtk_button_class_init (GtkButtonClass *klass)
......
......@@ -73,7 +73,7 @@ enum {
static guint cell_renderer_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_ABSTRACT_TYPE (GtkCellRenderer, gtk_cell_renderer, GTK_TYPE_OBJECT);
G_DEFINE_ABSTRACT_TYPE (GtkCellRenderer, gtk_cell_renderer, GTK_TYPE_OBJECT)
static void
gtk_cell_renderer_init (GtkCellRenderer *cell)
......
......@@ -70,7 +70,7 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkCellRendererAccel, gtk_cell_renderer_accel, GTK_TYPE_CELL_RENDERER_TEXT);
G_DEFINE_TYPE (GtkCellRendererAccel, gtk_cell_renderer_accel, GTK_TYPE_CELL_RENDERER_TEXT)
static void
gtk_cell_renderer_accel_init (GtkCellRendererAccel *cell_accel)
......
......@@ -61,7 +61,7 @@ enum {
#define GTK_CELL_RENDERER_COMBO_PATH "gtk-cell-renderer-combo-path"
G_DEFINE_TYPE (GtkCellRendererCombo, gtk_cell_renderer_combo, GTK_TYPE_CELL_RENDERER_TEXT);
G_DEFINE_TYPE (GtkCellRendererCombo, gtk_cell_renderer_combo, GTK_TYPE_CELL_RENDERER_TEXT)
static void
gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
......
......@@ -81,7 +81,7 @@ struct _GtkCellRendererPixbufPrivate
gchar *icon_name;
};
G_DEFINE_TYPE (GtkCellRendererPixbuf, gtk_cell_renderer_pixbuf, GTK_TYPE_CELL_RENDERER);
G_DEFINE_TYPE (GtkCellRendererPixbuf, gtk_cell_renderer_pixbuf, GTK_TYPE_CELL_RENDERER)
static void
gtk_cell_renderer_pixbuf_init (GtkCellRendererPixbuf *cellpixbuf)
......
......@@ -87,7 +87,7 @@ static void gtk_cell_renderer_progress_render (GtkCellRenderer *ce
guint flags);
G_DEFINE_TYPE (GtkCellRendererProgress, gtk_cell_renderer_progress, GTK_TYPE_CELL_RENDERER);
G_DEFINE_TYPE (GtkCellRendererProgress, gtk_cell_renderer_progress, GTK_TYPE_CELL_RENDERER)
static void
gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *klass)
......
......@@ -64,7 +64,7 @@ enum {
#define GTK_CELL_RENDERER_SPIN_PATH "gtk-cell-renderer-spin-path"
G_DEFINE_TYPE (GtkCellRendererSpin, gtk_cell_renderer_spin, GTK_TYPE_CELL_RENDERER_TEXT);
G_DEFINE_TYPE (GtkCellRendererSpin, gtk_cell_renderer_spin, GTK_TYPE_CELL_RENDERER_TEXT)
static void
......
......@@ -148,7 +148,7 @@ struct _GtkCellRendererTextPrivate
GtkWidget *entry;
};
G_DEFINE_TYPE (GtkCellRendererText, gtk_cell_renderer_text, GTK_TYPE_CELL_RENDERER);
G_DEFINE_TYPE (GtkCellRendererText, gtk_cell_renderer_text, GTK_TYPE_CELL_RENDERER)
static void
gtk_cell_renderer_text_init (GtkCellRendererText *celltext)
......
......@@ -86,7 +86,7 @@ struct _GtkCellRendererTogglePrivate
};
G_DEFINE_TYPE (GtkCellRendererToggle, gtk_cell_renderer_toggle, GTK_TYPE_CELL_RENDERER);
G_DEFINE_TYPE (GtkCellRendererToggle, gtk_cell_renderer_toggle, GTK_TYPE_CELL_RENDERER)
static void
gtk_cell_renderer_toggle_init (GtkCellRendererToggle *celltoggle)
......
......@@ -119,7 +119,7 @@ enum
G_DEFINE_TYPE_WITH_CODE (GtkCellView, gtk_cell_view, GTK_TYPE_WIDGET,
G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_LAYOUT,
gtk_cell_view_cell_layout_init));
gtk_cell_view_cell_layout_init))
static void
gtk_cell_view_class_init (GtkCellViewClass *klass)
......
......@@ -49,7 +49,7 @@ static void gtk_check_button_draw_indicator (GtkCheckButton *check_but
static void gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
GdkRectangle *area);
G_DEFINE_TYPE (GtkCheckButton, gtk_check_button, GTK_TYPE_TOGGLE_BUTTON);
G_DEFINE_TYPE (GtkCheckButton, gtk_check_button, GTK_TYPE_TOGGLE_BUTTON)
static void
gtk_check_button_class_init (GtkCheckButtonClass *class)
......
......@@ -65,7 +65,7 @@ static void gtk_check_menu_item_get_property (GObject *object,
static guint check_menu_item_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkCheckMenuItem, gtk_check_menu_item, GTK_TYPE_MENU_ITEM);
G_DEFINE_TYPE (GtkCheckMenuItem, gtk_check_menu_item, GTK_TYPE_MENU_ITEM)
static void
gtk_check_menu_item_class_init (GtkCheckMenuItemClass *klass)
......
......@@ -151,7 +151,7 @@ static GQuark clipboards_owned_key_id = 0;
static guint clipboard_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkClipboard, gtk_clipboard, G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkClipboard, gtk_clipboard, G_TYPE_OBJECT)
static void
gtk_clipboard_init (GtkClipboard *object)
......
......@@ -135,7 +135,7 @@ static guint color_button_signals[LAST_SIGNAL] = { 0 };
static const GtkTargetEntry drop_types[] = { { "application/x-color", 0, 0 } };
G_DEFINE_TYPE (GtkColorButton, gtk_color_button, GTK_TYPE_BUTTON);
G_DEFINE_TYPE (GtkColorButton, gtk_color_button, GTK_TYPE_BUTTON)
static void
gtk_color_button_class_init (GtkColorButtonClass *klass)
......
......@@ -1809,7 +1809,7 @@ default_change_palette_func (GdkScreen *screen,
g_free (str);
}
G_DEFINE_TYPE (GtkColorSelection, gtk_color_selection, GTK_TYPE_VBOX);
G_DEFINE_TYPE (GtkColorSelection, gtk_color_selection, GTK_TYPE_VBOX)
static void
gtk_color_selection_class_init (GtkColorSelectionClass *klass)
......
......@@ -38,7 +38,7 @@
/* GtkColorSelectionDialog */
/***************************/
G_DEFINE_TYPE (GtkColorSelectionDialog, gtk_color_selection_dialog, GTK_TYPE_DIALOG);
G_DEFINE_TYPE (GtkColorSelectionDialog, gtk_color_selection_dialog, GTK_TYPE_DIALOG)
static void
gtk_color_selection_dialog_class_init (GtkColorSelectionDialogClass *klass)
......
......@@ -121,7 +121,7 @@ static void gtk_combo_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
G_DEFINE_TYPE (GtkCombo, gtk_combo, GTK_TYPE_HBOX);
G_DEFINE_TYPE (GtkCombo, gtk_combo, GTK_TYPE_HBOX)
static void
gtk_combo_class_init (GtkComboClass * klass)
......
......@@ -439,7 +439,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkComboBox, gtk_combo_box, GTK_TYPE_BIN,
G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_LAYOUT,
gtk_combo_box_cell_layout_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_EDITABLE,
gtk_combo_box_cell_editable_init));
gtk_combo_box_cell_editable_init))
/* common */
static void
......
......@@ -65,7 +65,7 @@ enum
PROP_TEXT_COLUMN
};
G_DEFINE_TYPE (GtkComboBoxEntry, gtk_combo_box_entry, GTK_TYPE_COMBO_BOX);
G_DEFINE_TYPE (GtkComboBoxEntry, gtk_combo_box_entry, GTK_TYPE_COMBO_BOX)
static void
gtk_combo_box_entry_class_init (GtkComboBoxEntryClass *klass)
......
......@@ -90,7 +90,7 @@ enum {
static guint dialog_signals[LAST_SIGNAL];
G_DEFINE_TYPE (GtkDialog, gtk_dialog, GTK_TYPE_WINDOW);
G_DEFINE_TYPE (GtkDialog, gtk_dialog, GTK_TYPE_WINDOW)
static void
gtk_dialog_class_init (GtkDialogClass *class)
......
......@@ -35,7 +35,7 @@ static void gtk_drawing_area_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
static void gtk_drawing_area_send_configure (GtkDrawingArea *darea);
G_DEFINE_TYPE (GtkDrawingArea, gtk_drawing_area, GTK_TYPE_WIDGET);
G_DEFINE_TYPE (GtkDrawingArea, gtk_drawing_area, GTK_TYPE_WIDGET)
static void
gtk_drawing_area_class_init (GtkDrawingAreaClass *class)
......
......@@ -375,7 +375,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkEntry, gtk_entry, GTK_TYPE_WIDGET,
G_IMPLEMENT_INTERFACE (GTK_TYPE_EDITABLE,
gtk_entry_editable_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_EDITABLE,
gtk_entry_cell_editable_init));
gtk_entry_cell_editable_init))
static void
add_move_binding (GtkBindingSet *binding_set,
......
......@@ -141,7 +141,7 @@ static guint entry_completion_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE_WITH_CODE (GtkEntryCompletion, gtk_entry_completion, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (GTK_TYPE_CELL_LAYOUT,
gtk_entry_completion_cell_layout_init));
gtk_entry_completion_cell_layout_init))
static void
gtk_entry_completion_class_init (GtkEntryCompletionClass *klass)
......
......@@ -66,7 +66,7 @@ static void gtk_event_box_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
G_DEFINE_TYPE (GtkEventBox, gtk_event_box, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkEventBox, gtk_event_box, GTK_TYPE_BIN)
static void
gtk_event_box_class_init (GtkEventBoxClass *class)
......
......@@ -126,7 +126,7 @@ static void gtk_expander_activate (GtkExpander *expander);
static void get_expander_bounds (GtkExpander *expander,
GdkRectangle *rect);
G_DEFINE_TYPE (GtkExpander, gtk_expander, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkExpander, gtk_expander, GTK_TYPE_BIN)
static void
gtk_expander_class_init (GtkExpanderClass *klass)
......
......@@ -308,7 +308,7 @@ static void dialog_response_cb (GtkDialog *dialog,
G_DEFINE_TYPE_WITH_CODE (GtkFileChooserButton, gtk_file_chooser_button, GTK_TYPE_HBOX, { \
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER, gtk_file_chooser_button_file_chooser_iface_init) \
});
})
/* ***************** *
......
......@@ -440,7 +440,7 @@ G_DEFINE_TYPE_WITH_CODE (ShortcutsModelFilter,
_shortcuts_model_filter,
GTK_TYPE_TREE_MODEL_FILTER,
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE,
shortcuts_model_filter_drag_source_iface_init));
shortcuts_model_filter_drag_source_iface_init))
static GtkTreeModel *shortcuts_model_filter_new (GtkFileChooserDefault *impl,
GtkTreeModel *child_model,
......
......@@ -57,7 +57,7 @@ static void response_cb (GtkDialog *dialog,
G_DEFINE_TYPE_WITH_CODE (GtkFileChooserDialog, gtk_file_chooser_dialog, GTK_TYPE_DIALOG,
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER,
_gtk_file_chooser_delegate_iface_init));
_gtk_file_chooser_delegate_iface_init))
static void
gtk_file_chooser_dialog_class_init (GtkFileChooserDialogClass *class)
......
......@@ -108,7 +108,7 @@ static GtkEditableClass *parent_editable_iface;
G_DEFINE_TYPE_WITH_CODE (GtkFileChooserEntry, _gtk_file_chooser_entry, GTK_TYPE_ENTRY,
G_IMPLEMENT_INTERFACE (GTK_TYPE_EDITABLE,
gtk_file_chooser_entry_iface_init));
gtk_file_chooser_entry_iface_init))
static void
_gtk_file_chooser_entry_class_init (GtkFileChooserEntryClass *class)
......
......@@ -407,9 +407,7 @@ ensure_settings_read (GtkFileChooserSettings *settings)
settings->settings_read = TRUE;
}
G_DEFINE_TYPE (GtkFileChooserSettings,
_gtk_file_chooser_settings,
G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkFileChooserSettings, _gtk_file_chooser_settings, G_TYPE_OBJECT)
static void
_gtk_file_chooser_settings_class_init (GtkFileChooserSettingsClass *class)
......
......@@ -49,7 +49,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkFileChooserWidget, gtk_file_chooser_widget, GTK_TYPE
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER,
_gtk_file_chooser_delegate_iface_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_CHOOSER_EMBED,
_gtk_file_chooser_embed_delegate_iface_init));
_gtk_file_chooser_embed_delegate_iface_init))
static void
gtk_file_chooser_widget_class_init (GtkFileChooserWidgetClass *class)
......
......@@ -82,7 +82,7 @@ struct _FilterRule
static void gtk_file_filter_finalize (GObject *object);
G_DEFINE_TYPE (GtkFileFilter, gtk_file_filter, GTK_TYPE_OBJECT);
G_DEFINE_TYPE (GtkFileFilter, gtk_file_filter, GTK_TYPE_OBJECT)
static void
gtk_file_filter_init (GtkFileFilter *object)
......
......@@ -503,7 +503,7 @@ translate_win32_path (GtkFileSelection *filesel)
}
#endif
G_DEFINE_TYPE (GtkFileSelection, gtk_file_selection, GTK_TYPE_DIALOG);
G_DEFINE_TYPE (GtkFileSelection, gtk_file_selection, GTK_TYPE_DIALOG)
static void
gtk_file_selection_class_init (GtkFileSelectionClass *class)
......
......@@ -331,7 +331,7 @@ enum
PROP_CANCELLED
};
G_DEFINE_TYPE (GtkFileSystemHandle, gtk_file_system_handle, G_TYPE_OBJECT);
G_DEFINE_TYPE (GtkFileSystemHandle, gtk_file_system_handle, G_TYPE_OBJECT)
static void
gtk_file_system_handle_init (GtkFileSystemHandle *handle)
......
......@@ -150,7 +150,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkFileSystemModel, _gtk_file_system_model, G_TYPE_OBJE
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_MODEL,
gtk_file_system_model_iface_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_TREE_DRAG_SOURCE,
drag_source_iface_init));
drag_source_iface_init))
static void
_gtk_file_system_model_class_init (GtkFileSystemModelClass *class)
......
......@@ -263,14 +263,14 @@ static char * get_parent_dir (const char *filename);
*/
G_DEFINE_TYPE_WITH_CODE (GtkFileSystemUnix, gtk_file_system_unix, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_SYSTEM,
gtk_file_system_unix_iface_init));
gtk_file_system_unix_iface_init))
/*
* GtkFileFolderUnix
*/
G_DEFINE_TYPE_WITH_CODE (GtkFileFolderUnix, _gtk_file_folder_unix, G_TYPE_OBJECT,
G_IMPLEMENT_INTERFACE (GTK_TYPE_FILE_FOLDER,
gtk_file_folder_unix_iface_init));
gtk_file_folder_unix_iface_init))
/**
......
......@@ -61,7 +61,7 @@ static void gtk_fixed_get_child_property (GtkContainer *container,
GValue *value,
GParamSpec *pspec);
G_DEFINE_TYPE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER);
G_DEFINE_TYPE (GtkFixed, gtk_fixed, GTK_TYPE_CONTAINER)
static void
gtk_fixed_class_init (GtkFixedClass *class)
......
......@@ -111,7 +111,7 @@ static void gtk_font_button_update_font_info (GtkFontButton *gfs);
static guint font_button_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtkFontButton, gtk_font_button, GTK_TYPE_BUTTON);
G_DEFINE_TYPE (GtkFontButton, gtk_font_button, GTK_TYPE_BUTTON)
static void
gtk_font_button_class_init (GtkFontButtonClass *klass)
......
......@@ -159,7 +159,7 @@ static void gtk_font_selection_update_preview (GtkFontSelection *fs);
static GdkFont* gtk_font_selection_get_font_internal (GtkFontSelection *fontsel);
G_DEFINE_TYPE (GtkFontSelection, gtk_font_selection, GTK_TYPE_VBOX);
G_DEFINE_TYPE (GtkFontSelection, gtk_font_selection, GTK_TYPE_VBOX)
static void
gtk_font_selection_class_init (GtkFontSelectionClass *klass)
......
/* GTK - The GIMP Toolkit
* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
*
* This library is free software; you can redistribute it and/or
......@@ -73,7 +73,7 @@ static void gtk_frame_compute_child_allocation (GtkFrame *frame,
static void gtk_frame_real_compute_child_allocation (GtkFrame *frame,
GtkAllocation *child_allocation);
G_DEFINE_TYPE (GtkFrame, gtk_frame, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkFrame, gtk_frame, GTK_TYPE_BIN)
static void
gtk_frame_class_init (GtkFrameClass *class)
......
......@@ -208,7 +208,7 @@ static const char *const xpm[][27] =
}
};
G_DEFINE_TYPE (GtkGammaCurve, gtk_gamma_curve, GTK_TYPE_VBOX);
G_DEFINE_TYPE (GtkGammaCurve, gtk_gamma_curve, GTK_TYPE_VBOX)
static void
gtk_gamma_curve_class_init (GtkGammaCurveClass *class)
......
......@@ -145,7 +145,7 @@ static void gtk_handle_box_end_drag (GtkHandleBox *hb,
static guint handle_box_signals[SIGNAL_LAST] = { 0 };
G_DEFINE_TYPE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN);
G_DEFINE_TYPE (GtkHandleBox, gtk_handle_box, GTK_TYPE_BIN)
static void
gtk_handle_box_class_init (GtkHandleBoxClass *class)
......
......@@ -38,7 +38,7 @@ static void gtk_hbutton_box_size_allocate (GtkWidget *widget,
static gint default_spacing = 30;
static gint default_layout_style = GTK_BUTTONBOX_EDGE;
G_DEFINE_TYPE (GtkHButtonBox, gtk_hbutton_box, GTK_TYPE_BUTTON_BOX);
G_DEFINE_TYPE (GtkHButtonBox, gtk_hbutton_box, GTK_TYPE_BUTTON_BOX)
static void
gtk_hbutton_box_class_init (GtkHButtonBoxClass *class)
......
......@@ -36,7 +36,7 @@ static void gtk_hbox_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
G_DEFINE_TYPE (GtkHBox, gtk_hbox, GTK_TYPE_BOX);
G_DEFINE_TYPE (GtkHBox, gtk_hbox, GTK_TYPE_BOX)
static void
gtk_hbox_class_init (GtkHBoxClass *class)
......
......@@ -34,7 +34,7 @@ static void gtk_hpaned_size_request (GtkWidget *widget,
static void gtk_hpaned_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
G_DEFINE_TYPE (GtkHPaned, gtk_hpaned, GTK_TYPE_PANED);
G_DEFINE_TYPE (GtkHPaned, gtk_hpaned, GTK_TYPE_PANED)
static void
gtk_hpaned_class_init (GtkHPanedClass *class)
......
......@@ -46,7 +46,7 @@ static gint gtk_hruler_motion_notify (GtkWidget *widget,
static void gtk_hruler_draw_ticks (GtkRuler *ruler);
static void gtk_hruler_draw_pos (GtkRuler *ruler);
G_DEFINE_TYPE (GtkHRuler, gtk_hruler, GTK_TYPE_RULER);
G_DEFINE_TYPE (GtkHRuler, gtk_hruler, GTK_TYPE_RULER)
static void
gtk_hruler_class_init (GtkHRulerClass *klass)
......
......@@ -39,7 +39,7 @@ static void gtk_hscale_get_layout_offsets (GtkScale *scale,
gint *x,
gint *y);
G_DEFINE_TYPE (GtkHScale, gtk_hscale, GTK_TYPE_SCALE);
G_DEFINE_TYPE (GtkHScale, gtk_hscale, GTK_TYPE_SCALE)
static void
gtk_hscale_class_init (GtkHScaleClass *class)
......
......@@ -31,7 +31,7 @@
#include "gtkintl.h"
#include "gtkalias.h"
G_DEFINE_TYPE (GtkHScrollbar, gtk_hscrollbar, GTK_TYPE_SCROLLBAR);
G_DEFINE_TYPE (GtkHScrollbar, gtk_hscrollbar, GTK_TYPE_SCROLLBAR)
static void
gtk_hscrollbar_class_init (GtkHScrollbarClass *class)
......
......@@ -35,7 +35,7 @@ static void gtk_hseparator_size_request (GtkWidget *widget,
static gint gtk_hseparator_expose (GtkWidget *widget,
GdkEventExpose *event);
G_DEFINE_TYPE (GtkHSeparator, gtk_hseparator, GTK_TYPE_SEPARATOR);