Commit add1ca00 authored by William Jon McCann's avatar William Jon McCann
parent f3f7c385
This diff is collapsed.
...@@ -56,13 +56,22 @@ struct _GtkAction ...@@ -56,13 +56,22 @@ struct _GtkAction
GtkActionPrivate *private_data; GtkActionPrivate *private_data;
}; };
/**
* GtkActionClass:
* @parent_class: The parent class.
* @activate: Signal emitted when the action is activated.
*/
struct _GtkActionClass struct _GtkActionClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/*< public >*/
/* activation signal */ /* activation signal */
void (* activate) (GtkAction *action); void (* activate) (GtkAction *action);
/*< private >*/
GType menu_item_type; GType menu_item_type;
GType toolbar_item_type; GType toolbar_item_type;
......
...@@ -60,6 +60,11 @@ struct _GtkActionGroup ...@@ -60,6 +60,11 @@ struct _GtkActionGroup
GtkActionGroupPrivate *priv; GtkActionGroupPrivate *priv;
}; };
/**
* GtkActionGroupClass:
* @parent_class: The parent class.
* @get_action: Looks up an action in the action group by name.
*/
struct _GtkActionGroupClass struct _GtkActionGroupClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
...@@ -67,6 +72,8 @@ struct _GtkActionGroupClass ...@@ -67,6 +72,8 @@ struct _GtkActionGroupClass
GtkAction *(* get_action) (GtkActionGroup *action_group, GtkAction *(* get_action) (GtkActionGroup *action_group,
const gchar *action_name); const gchar *action_name);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -70,12 +70,19 @@ struct _GtkColorSelection ...@@ -70,12 +70,19 @@ struct _GtkColorSelection
GtkColorSelectionPrivate *private_data; GtkColorSelectionPrivate *private_data;
}; };
/**
* GtkColorSelectionClass:
* @parent_class: The parent class.
* @color_changed:
*/
struct _GtkColorSelectionClass struct _GtkColorSelectionClass
{ {
GtkBoxClass parent_class; GtkBoxClass parent_class;
void (*color_changed) (GtkColorSelection *color_selection); void (*color_changed) (GtkColorSelection *color_selection);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -57,6 +57,14 @@ struct _GtkHandleBox ...@@ -57,6 +57,14 @@ struct _GtkHandleBox
GtkHandleBoxPrivate *priv; GtkHandleBoxPrivate *priv;
}; };
/**
* GtkHandleBoxClass:
* @parent_class: The parent class.
* @child_attached: Signal emitted when the contents of the handlebox
* are reattached to the main window. Deprecated: 3.4.
* @child_detached: Signal emitted when the contents of the handlebox
* are detached from the main window. Deprecated: 3.4.
*/
struct _GtkHandleBoxClass struct _GtkHandleBoxClass
{ {
GtkBinClass parent_class; GtkBinClass parent_class;
...@@ -66,6 +74,8 @@ struct _GtkHandleBoxClass ...@@ -66,6 +74,8 @@ struct _GtkHandleBoxClass
void (*child_detached) (GtkHandleBox *handle_box, void (*child_detached) (GtkHandleBox *handle_box,
GtkWidget *child); GtkWidget *child);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -57,10 +57,16 @@ struct _GtkIconFactory ...@@ -57,10 +57,16 @@ struct _GtkIconFactory
GtkIconFactoryPrivate *priv; GtkIconFactoryPrivate *priv;
}; };
/**
* GtkIconFactoryClass:
* @parent_class: The parent class.
*/
struct _GtkIconFactoryClass struct _GtkIconFactoryClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -55,10 +55,16 @@ struct _GtkImageMenuItem ...@@ -55,10 +55,16 @@ struct _GtkImageMenuItem
GtkImageMenuItemPrivate *priv; GtkImageMenuItemPrivate *priv;
}; };
/**
* GtkImageMenuItemClass:
* @parent_class: The parent class.
*/
struct _GtkImageMenuItemClass struct _GtkImageMenuItemClass
{ {
GtkMenuItemClass parent_class; GtkMenuItemClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -100,10 +100,21 @@ struct _GtkRcStyle ...@@ -100,10 +100,21 @@ struct _GtkRcStyle
guint engine_specified : 1; /* The RC file specified the engine */ guint engine_specified : 1; /* The RC file specified the engine */
}; };
/**
* GtkRcStyleClass:
* @parent_class: The parent class.
* @create_rc_style:
* @parse:
* @merge:
* @create_style:
* @create_style:
*/
struct _GtkRcStyleClass struct _GtkRcStyleClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/*< public >*/
/* Create an empty RC style of the same type as this RC style. /* Create an empty RC style of the same type as this RC style.
* The default implementation, which does * The default implementation, which does
* g_object_new (G_OBJECT_TYPE (style), NULL); * g_object_new (G_OBJECT_TYPE (style), NULL);
...@@ -129,6 +140,8 @@ struct _GtkRcStyleClass ...@@ -129,6 +140,8 @@ struct _GtkRcStyleClass
*/ */
GtkStyle * (*create_style) (GtkRcStyle *rc_style); GtkStyle * (*create_style) (GtkRcStyle *rc_style);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -98,10 +98,43 @@ struct _GtkStyle ...@@ -98,10 +98,43 @@ struct _GtkStyle
GSList *icon_factories; /* of type GtkIconFactory* */ GSList *icon_factories; /* of type GtkIconFactory* */
}; };
/**
* GtkStyleClass:
* @parent_class: The parent class.
* @realize:
* @unrealize:
* @copy:
* @clone:
* @init_from_rc:
* @set_background:
* @render_icon:
* @draw_hline:
* @draw_vline:
* @draw_shadow:
* @draw_arrow:
* @draw_diamond:
* @draw_box:
* @draw_flat_box:
* @draw_check:
* @draw_option:
* @draw_tab:
* @draw_shadow_gap:
* @draw_box_gap:
* @draw_extension:
* @draw_focus:
* @draw_slider:
* @draw_handle:
* @draw_expander:
* @draw_layout:
* @draw_resize_grip:
* @draw_spinner:
*/
struct _GtkStyleClass struct _GtkStyleClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/*< public >*/
/* Initialize for a particular visual. style->visual /* Initialize for a particular visual. style->visual
* will have been set at this point. Will typically chain * will have been set at this point. Will typically chain
* to parent. * to parent.
...@@ -352,6 +385,8 @@ struct _GtkStyleClass ...@@ -352,6 +385,8 @@ struct _GtkStyleClass
gint width, gint width,
gint height); gint height);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -53,10 +53,16 @@ struct _GtkTearoffMenuItem ...@@ -53,10 +53,16 @@ struct _GtkTearoffMenuItem
GtkTearoffMenuItemPrivate *priv; GtkTearoffMenuItemPrivate *priv;
}; };
/**
* GtkTearoffMenuItemClass:
* @parent_class: The parent class.
*/
struct _GtkTearoffMenuItemClass struct _GtkTearoffMenuItemClass
{ {
GtkMenuItemClass parent_class; GtkMenuItemClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -88,15 +88,25 @@ struct _GtkAccelGroup ...@@ -88,15 +88,25 @@ struct _GtkAccelGroup
GtkAccelGroupPrivate *priv; GtkAccelGroupPrivate *priv;
}; };
/**
* GtkAccelGroupClass:
* @parent_class: The parent class.
* @accel_changed: Signal emitted when an entry is added to or removed
* from the accel group.
*/
struct _GtkAccelGroupClass struct _GtkAccelGroupClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/*< public >*/
void (*accel_changed) (GtkAccelGroup *accel_group, void (*accel_changed) (GtkAccelGroup *accel_group,
guint keyval, guint keyval,
GdkModifierType modifier, GdkModifierType modifier,
GClosure *accel_closure); GClosure *accel_closure);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -55,10 +55,16 @@ struct _GtkAlignment ...@@ -55,10 +55,16 @@ struct _GtkAlignment
GtkAlignmentPrivate *priv; GtkAlignmentPrivate *priv;
}; };
/**
* GtkAlignmentClass:
* @parent_class: The parent class.
*/
struct _GtkAlignmentClass struct _GtkAlignmentClass
{ {
GtkBinClass parent_class; GtkBinClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -49,12 +49,23 @@ struct _GtkAppChooserButton { ...@@ -49,12 +49,23 @@ struct _GtkAppChooserButton {
GtkAppChooserButtonPrivate *priv; GtkAppChooserButtonPrivate *priv;
}; };
/**
* GtkAppChooserButtonClass:
* @parent_class: The parent class.
* @custom_item_activated: Signal emitted when a custom item,
* previously added with gtk_app_chooser_button_append_custom_item(),
* is activated from the dropdown menu.
*/
struct _GtkAppChooserButtonClass { struct _GtkAppChooserButtonClass {
GtkComboBoxClass parent_class; GtkComboBoxClass parent_class;
/*< public >*/
void (* custom_item_activated) (GtkAppChooserButton *self, void (* custom_item_activated) (GtkAppChooserButton *self,
const gchar *item_name); const gchar *item_name);
/*< private >*/
/* padding for future class expansion */ /* padding for future class expansion */
gpointer padding[16]; gpointer padding[16];
}; };
......
...@@ -52,9 +52,15 @@ struct _GtkAppChooserDialog { ...@@ -52,9 +52,15 @@ struct _GtkAppChooserDialog {
GtkAppChooserDialogPrivate *priv; GtkAppChooserDialogPrivate *priv;
}; };
/**
* GtkAppChooserDialogClass:
* @parent_class: The parent class.
*/
struct _GtkAppChooserDialogClass { struct _GtkAppChooserDialogClass {
GtkDialogClass parent_class; GtkDialogClass parent_class;
/*< private >*/
/* padding for future class expansion */ /* padding for future class expansion */
gpointer padding[16]; gpointer padding[16];
}; };
......
...@@ -53,9 +53,21 @@ struct _GtkAppChooserWidget { ...@@ -53,9 +53,21 @@ struct _GtkAppChooserWidget {
GtkAppChooserWidgetPrivate *priv; GtkAppChooserWidgetPrivate *priv;
}; };
/**
* GtkAppChooserWidgetClass:
* @parent_class: The parent class.
* @application_selected: Signal emitted when an application item is
* selected from the widget's list.
* @application_activated: Signal emitted when an application item is
* activated from the widget's list.
* @populate_popup: Signal emitted when a context menu is about to
* popup over an application item.
*/
struct _GtkAppChooserWidgetClass { struct _GtkAppChooserWidgetClass {
GtkBoxClass parent_class; GtkBoxClass parent_class;
/*< public >*/
void (* application_selected) (GtkAppChooserWidget *self, void (* application_selected) (GtkAppChooserWidget *self,
GAppInfo *app_info); GAppInfo *app_info);
...@@ -66,6 +78,8 @@ struct _GtkAppChooserWidgetClass { ...@@ -66,6 +78,8 @@ struct _GtkAppChooserWidgetClass {
GtkMenu *menu, GtkMenu *menu,
GAppInfo *app_info); GAppInfo *app_info);
/*< private >*/
/* padding for future class expansion */ /* padding for future class expansion */
gpointer padding[16]; gpointer padding[16];
}; };
......
...@@ -48,10 +48,21 @@ struct _GtkApplication ...@@ -48,10 +48,21 @@ struct _GtkApplication
GtkApplicationPrivate *priv; GtkApplicationPrivate *priv;
}; };
/**
* GtkApplicationClass:
* @parent_class: The parent class.
* @window_added: Signal emitted when a #GtkWindow is added to
* application through gtk_application_add_window().
* @window_removed: Signal emitted when a #GtkWindow is removed from
* application, either as a side-effect of being destroyed or
* explicitly through gtk_application_remove_window().
*/
struct _GtkApplicationClass struct _GtkApplicationClass
{ {
GApplicationClass parent_class; GApplicationClass parent_class;
/*< public >*/
void (*window_added) (GtkApplication *application, void (*window_added) (GtkApplication *application,
GtkWindow *window); GtkWindow *window);
void (*window_removed) (GtkApplication *application, void (*window_removed) (GtkApplication *application,
......
...@@ -48,6 +48,10 @@ struct _GtkApplicationWindow ...@@ -48,6 +48,10 @@ struct _GtkApplicationWindow
GtkApplicationWindowPrivate *priv; GtkApplicationWindowPrivate *priv;
}; };
/**
* GtkApplicationWindowClass:
* @parent_class: The parent class.
*/
struct _GtkApplicationWindowClass struct _GtkApplicationWindowClass
{ {
GtkWindowClass parent_class; GtkWindowClass parent_class;
......
...@@ -54,10 +54,16 @@ struct _GtkAspectFrame ...@@ -54,10 +54,16 @@ struct _GtkAspectFrame
GtkAspectFramePrivate *priv; GtkAspectFramePrivate *priv;
}; };
/**
* GtkAspectFrameClass:
* @parent_class: The parent class.
*/
struct _GtkAspectFrameClass struct _GtkAspectFrameClass
{ {
GtkFrameClass parent_class; GtkFrameClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -89,15 +89,27 @@ struct _GtkAssistant ...@@ -89,15 +89,27 @@ struct _GtkAssistant
GtkAssistantPrivate *priv; GtkAssistantPrivate *priv;
}; };
/**
* GtkAssistantClass:
* @parent_class: The parent class.
* @prepare: Signal emitted when a new page is set as the assistant's current page, before making the new page visible.
* @apply: Signal emitted when the apply button is clicked.
* @close: Signal emitted either when the close button or last page apply button is clicked.
* @cancel: Signal emitted when the cancel button is clicked.
*/
struct _GtkAssistantClass struct _GtkAssistantClass
{ {
GtkWindowClass parent_class; GtkWindowClass parent_class;
/*< public >*/
void (* prepare) (GtkAssistant *assistant, GtkWidget *page); void (* prepare) (GtkAssistant *assistant, GtkWidget *page);
void (* apply) (GtkAssistant *assistant); void (* apply) (GtkAssistant *assistant);
void (* close) (GtkAssistant *assistant); void (* close) (GtkAssistant *assistant);
void (* cancel) (GtkAssistant *assistant); void (* cancel) (GtkAssistant *assistant);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -54,10 +54,16 @@ struct _GtkButtonBox ...@@ -54,10 +54,16 @@ struct _GtkButtonBox
GtkButtonBoxPrivate *priv; GtkButtonBoxPrivate *priv;
}; };
/**
* GtkButtonBoxClass:
* @parent_class: The parent class.
*/
struct _GtkButtonBoxClass struct _GtkButtonBoxClass
{ {
GtkBoxClass parent_class; GtkBoxClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -55,10 +55,16 @@ struct _GtkBin ...@@ -55,10 +55,16 @@ struct _GtkBin
GtkBinPrivate *priv; GtkBinPrivate *priv;
}; };
/**
* GtkBinClass:
* @parent_class: The parent class.
*/
struct _GtkBinClass struct _GtkBinClass
{ {
GtkContainerClass parent_class; GtkContainerClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -56,10 +56,16 @@ struct _GtkBox ...@@ -56,10 +56,16 @@ struct _GtkBox
GtkBoxPrivate *priv; GtkBoxPrivate *priv;
}; };
/**
* GtkBoxClass:
* @parent_class: The parent class.
*/
struct _GtkBoxClass struct _GtkBoxClass
{ {
GtkContainerClass parent_class; GtkContainerClass parent_class;
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -55,17 +55,33 @@ struct _GtkButton ...@@ -55,17 +55,33 @@ struct _GtkButton
GtkButtonPrivate *priv; GtkButtonPrivate *priv;
}; };
/**
* GtkButtonClass:
* @parent_class: The parent class.
* @pressed: Signal emitted when the button is pressed. Deprecated: 2.8.
* @released: Signal emitted when the button is released. Deprecated: 2.8.
* @clicked: Signal emitted when the button has been activated (pressed and released).
* @enter: Signal emitted when the pointer enters the button. Deprecated: 2.8.
* @leave: Signal emitted when the pointer leaves the button. Deprecated: 2.8.
* @activate: Signal that causes the button to animate press then
* release. Applications should never connect to this signal, but use
* the @clicked signal.
*/
struct _GtkButtonClass struct _GtkButtonClass
{ {
GtkBinClass parent_class; GtkBinClass parent_class;
/*< public >*/
void (* pressed) (GtkButton *button); void (* pressed) (GtkButton *button);
void (* released) (GtkButton *button); void (* released) (GtkButton *button);
void (* clicked) (GtkButton *button); void (* clicked) (GtkButton *button);
void (* enter) (GtkButton *button); void (* enter) (GtkButton *button);
void (* leave) (GtkButton *button); void (* leave) (GtkButton *button);
void (* activate) (GtkButton *button); void (* activate) (GtkButton *button);
/*< private >*/
/* Padding for future expansion */ /* Padding for future expansion */
void (*_gtk_reserved1) (void); void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void); void (*_gtk_reserved2) (void);
......
...@@ -49,6 +49,9 @@ struct _GtkCellAreaBox ...@@ -49,6 +49,9 @@ struct _GtkCellAreaBox
GtkCellAreaBoxPrivate *priv; GtkCellAreaBoxPrivate *priv;
}; };
/**
* GtkCellAreaBoxClass:
*/
struct _GtkCellAreaBoxClass struct _GtkCellAreaBoxClass
{ {
/*< private >*/ /*< private >*/
......
...@@ -90,10 +90,29 @@ struct _GtkCellRenderer ...@@ -90,10 +90,29 @@ struct _GtkCellRenderer
GtkCellRendererPrivate *priv; GtkCellRendererPrivate *priv;
}; };