forked from AuroraMiddleware/gtk
Merge branch 'wip/chergert/set-va-marshallers' into 'master'
va_marshaller: add various va_marshallers See merge request GNOME/gtk!917
This commit is contained in:
commit
a10ce07437
@ -282,6 +282,9 @@ gtk_cell_renderer_class_init (GtkCellRendererClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_CELL_EDITABLE,
|
||||
G_TYPE_STRING);
|
||||
g_signal_set_va_marshaller (cell_renderer_signals[EDITING_STARTED],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_gtk_marshal_VOID__OBJECT_STRINGv);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_MODE,
|
||||
|
@ -207,6 +207,9 @@ gtk_cell_renderer_combo_class_init (GtkCellRendererComboClass *klass)
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING,
|
||||
GTK_TYPE_TREE_ITER);
|
||||
g_signal_set_va_marshaller (cell_renderer_combo_signals[CHANGED],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_gtk_marshal_VOID__STRING_BOXEDv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -638,6 +638,9 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_STRING);
|
||||
g_signal_set_va_marshaller (text_cell_renderer_signals [EDITED],
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
_gtk_marshal_VOID__STRING_STRINGv);
|
||||
|
||||
gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_TEXT_CELL_ACCESSIBLE);
|
||||
}
|
||||
|
@ -156,7 +156,15 @@
|
||||
|
||||
G_DEFINE_INTERFACE (GtkEditable, gtk_editable, GTK_TYPE_WIDGET)
|
||||
|
||||
enum {
|
||||
CHANGED,
|
||||
DELETE_TEXT,
|
||||
INSERT_TEXT,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
||||
static GQuark quark_editable_data;
|
||||
static guint signals[N_SIGNALS];
|
||||
|
||||
static GtkEditable *
|
||||
get_delegate (GtkEditable *editable)
|
||||
@ -175,7 +183,7 @@ gtk_editable_default_do_insert_text (GtkEditable *editable,
|
||||
int length,
|
||||
int *position)
|
||||
{
|
||||
g_signal_emit_by_name (editable, "insert-text", text, length, position);
|
||||
g_signal_emit (editable, signals[INSERT_TEXT], 0, text, length, position);
|
||||
}
|
||||
|
||||
#define warn_no_delegate(func) \
|
||||
@ -200,7 +208,7 @@ gtk_editable_default_do_delete_text (GtkEditable *editable,
|
||||
int start_pos,
|
||||
int end_pos)
|
||||
{
|
||||
g_signal_emit_by_name (editable, "delete-text", start_pos, end_pos);
|
||||
g_signal_emit (editable, signals[DELETE_TEXT], 0, start_pos, end_pos);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -289,16 +297,20 @@ gtk_editable_default_init (GtkEditableInterface *iface)
|
||||
* is possible to modify the inserted text, or prevent
|
||||
* it from being inserted entirely.
|
||||
*/
|
||||
g_signal_new (I_("insert-text"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, insert_text),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__STRING_INT_POINTER,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_POINTER);
|
||||
signals[INSERT_TEXT] =
|
||||
g_signal_new (I_("insert-text"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, insert_text),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__STRING_INT_POINTER,
|
||||
G_TYPE_NONE, 3,
|
||||
G_TYPE_STRING,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_POINTER);
|
||||
g_signal_set_va_marshaller (signals[INSERT_TEXT],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_gtk_marshal_VOID__STRING_INT_POINTERv);
|
||||
|
||||
/**
|
||||
* GtkEditable::delete-text:
|
||||
@ -316,15 +328,19 @@ gtk_editable_default_init (GtkEditableInterface *iface)
|
||||
* and @end_pos parameters are interpreted as for
|
||||
* gtk_editable_delete_text().
|
||||
*/
|
||||
g_signal_new (I_("delete-text"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, delete_text),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__INT_INT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_INT);
|
||||
signals[DELETE_TEXT] =
|
||||
g_signal_new (I_("delete-text"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, delete_text),
|
||||
NULL, NULL,
|
||||
_gtk_marshal_VOID__INT_INT,
|
||||
G_TYPE_NONE, 2,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (signals[DELETE_TEXT],
|
||||
G_TYPE_FROM_INTERFACE (iface),
|
||||
_gtk_marshal_VOID__INT_INTv);
|
||||
|
||||
/**
|
||||
* GtkEditable::changed:
|
||||
@ -339,13 +355,14 @@ gtk_editable_default_init (GtkEditableInterface *iface)
|
||||
* the new content, and may cause multiple ::notify::text signals
|
||||
* to be emitted).
|
||||
*/
|
||||
g_signal_new (I_("changed"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, changed),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
signals[CHANGED] =
|
||||
g_signal_new (I_("changed"),
|
||||
GTK_TYPE_EDITABLE,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkEditableInterface, changed),
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
g_object_interface_install_property (iface,
|
||||
g_param_spec_string ("text",
|
||||
@ -860,7 +877,7 @@ static void
|
||||
delegate_changed (GtkEditable *delegate,
|
||||
gpointer editable)
|
||||
{
|
||||
g_signal_emit_by_name (editable, "changed");
|
||||
g_signal_emit (editable, signals[CHANGED], 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -403,8 +403,11 @@ gtk_event_controller_scroll_class_init (GtkEventControllerScrollClass *klass)
|
||||
GTK_TYPE_EVENT_CONTROLLER_SCROLL,
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0, NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__DOUBLE_DOUBLE,
|
||||
_gtk_marshal_BOOLEAN__DOUBLE_DOUBLE,
|
||||
G_TYPE_BOOLEAN, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
|
||||
g_signal_set_va_marshaller (signals[SCROLL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__DOUBLE_DOUBLEv);
|
||||
/**
|
||||
* GtkEventControllerScroll::scroll-end:
|
||||
* @controller: The object that received the signal
|
||||
@ -436,8 +439,11 @@ gtk_event_controller_scroll_class_init (GtkEventControllerScrollClass *klass)
|
||||
GTK_TYPE_EVENT_CONTROLLER_SCROLL,
|
||||
G_SIGNAL_RUN_FIRST,
|
||||
0, NULL, NULL,
|
||||
_gtk_marshal_VOID__DOUBLE_DOUBLE,
|
||||
_gtk_marshal_VOID__DOUBLE_DOUBLE,
|
||||
G_TYPE_NONE, 2, G_TYPE_DOUBLE, G_TYPE_DOUBLE);
|
||||
g_signal_set_va_marshaller (signals[DECELERATE],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_VOID__DOUBLE_DOUBLEv);
|
||||
|
||||
g_object_class_install_properties (object_class, N_PROPS, pspecs);
|
||||
}
|
||||
|
@ -3621,6 +3621,9 @@ gtk_flow_box_class_init (GtkFlowBoxClass *class)
|
||||
_gtk_marshal_BOOLEAN__ENUM_INT,
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (signals[MOVE_CURSOR],
|
||||
G_TYPE_FROM_CLASS (class),
|
||||
_gtk_marshal_BOOLEAN__ENUM_INTv);
|
||||
/**
|
||||
* GtkFlowBox::select-all:
|
||||
* @box: the #GtkFlowBox on which the signal is emitted
|
||||
|
@ -782,6 +782,9 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (icon_view_signals[ACTIVATE_CURSOR_ITEM],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
/**
|
||||
* GtkIconView::move-cursor:
|
||||
@ -814,6 +817,9 @@ gtk_icon_view_class_init (GtkIconViewClass *klass)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_MOVEMENT_STEP,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (icon_view_signals[MOVE_CURSOR],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__ENUM_INTv);
|
||||
|
||||
/* Key bindings */
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK,
|
||||
|
@ -302,6 +302,9 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
|
||||
_gtk_boolean_handled_accumulator, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (im_context_signals[RETRIEVE_SURROUNDING],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
/**
|
||||
* GtkIMContext::delete-surrounding:
|
||||
* @context: the object on which the signal is emitted
|
||||
@ -324,7 +327,10 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
|
||||
_gtk_marshal_BOOLEAN__INT_INT,
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_INT);
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (im_context_signals[DELETE_SURROUNDING],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__INT_INTv);
|
||||
|
||||
properties[PROP_INPUT_PURPOSE] =
|
||||
g_param_spec_enum ("input-purpose",
|
||||
|
@ -603,6 +603,9 @@ gtk_list_box_class_init (GtkListBoxClass *klass)
|
||||
_gtk_marshal_VOID__ENUM_INT,
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (signals[MOVE_CURSOR],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_VOID__ENUM_INTv);
|
||||
|
||||
widget_class->activate_signal = signals[ACTIVATE_CURSOR_ROW];
|
||||
|
||||
|
@ -53,6 +53,7 @@ ENUM:ENUM
|
||||
ENUM:VOID
|
||||
INT:POINTER
|
||||
INT:DOUBLE,DOUBLE
|
||||
OBJECT:OBJECT
|
||||
OBJECT:VOID
|
||||
STRING:DOUBLE
|
||||
STRING:STRING
|
||||
|
@ -1088,6 +1088,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (notebook_signals[SWITCH_PAGE],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_VOID__OBJECT_UINTv);
|
||||
notebook_signals[FOCUS_TAB] =
|
||||
g_signal_new (I_("focus-tab"),
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
@ -1097,6 +1100,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
_gtk_marshal_BOOLEAN__ENUM,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
GTK_TYPE_NOTEBOOK_TAB);
|
||||
g_signal_set_va_marshaller (notebook_signals[FOCUS_TAB],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__ENUMv);
|
||||
notebook_signals[SELECT_PAGE] =
|
||||
g_signal_new (I_("select-page"),
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
@ -1106,6 +1112,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
_gtk_marshal_BOOLEAN__BOOLEAN,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (notebook_signals[SELECT_PAGE],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__BOOLEANv);
|
||||
notebook_signals[CHANGE_CURRENT_PAGE] =
|
||||
g_signal_new (I_("change-current-page"),
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
@ -1115,6 +1124,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
_gtk_marshal_BOOLEAN__INT,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (notebook_signals[CHANGE_CURRENT_PAGE],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__INTv);
|
||||
notebook_signals[MOVE_FOCUS_OUT] =
|
||||
g_signal_new (I_("move-focus-out"),
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
@ -1134,6 +1146,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_DIRECTION_TYPE,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (notebook_signals[REORDER_TAB],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__ENUM_BOOLEANv);
|
||||
/**
|
||||
* GtkNotebook::page-reordered:
|
||||
* @notebook: the #GtkNotebook
|
||||
@ -1153,6 +1168,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (notebook_signals[PAGE_REORDERED],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_VOID__OBJECT_UINTv);
|
||||
/**
|
||||
* GtkNotebook::page-removed:
|
||||
* @notebook: the #GtkNotebook
|
||||
@ -1172,6 +1190,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (notebook_signals[PAGE_REMOVED],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_VOID__OBJECT_UINTv);
|
||||
/**
|
||||
* GtkNotebook::page-added:
|
||||
* @notebook: the #GtkNotebook
|
||||
@ -1191,6 +1212,9 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (notebook_signals[PAGE_ADDED],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_VOID__OBJECT_UINTv);
|
||||
|
||||
/**
|
||||
* GtkNotebook::create-window:
|
||||
@ -1215,9 +1239,12 @@ gtk_notebook_class_init (GtkNotebookClass *class)
|
||||
G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GtkNotebookClass, create_window),
|
||||
gtk_object_handled_accumulator, NULL,
|
||||
NULL,
|
||||
_gtk_marshal_OBJECT__OBJECT,
|
||||
GTK_TYPE_NOTEBOOK, 1,
|
||||
GTK_TYPE_WIDGET);
|
||||
g_signal_set_va_marshaller (notebook_signals[CREATE_WINDOW],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_OBJECT__OBJECTv);
|
||||
|
||||
binding_set = gtk_binding_set_by_class (class);
|
||||
gtk_binding_entry_add_signal (binding_set,
|
||||
|
@ -316,6 +316,9 @@ gtk_overlay_class_init (GtkOverlayClass *klass)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_WIDGET,
|
||||
GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
g_signal_set_va_marshaller (signals[GET_CHILD_POSITION],
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
_gtk_marshal_BOOLEAN__OBJECT_BOXEDv);
|
||||
|
||||
gtk_widget_class_set_css_name (widget_class, I_("overlay"));
|
||||
|
||||
|
@ -620,6 +620,9 @@ gtk_switch_class_init (GtkSwitchClass *klass)
|
||||
_gtk_marshal_BOOLEAN__BOOLEAN,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (signals[STATE_SET],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__BOOLEANv);
|
||||
|
||||
g_object_class_override_property (gobject_class, PROP_ACTION_NAME, "action-name");
|
||||
g_object_class_override_property (gobject_class, PROP_ACTION_TARGET, "action-target");
|
||||
|
@ -136,6 +136,9 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass)
|
||||
2,
|
||||
GTK_TYPE_TEXT_TAG,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (signals[TAG_CHANGED],
|
||||
G_OBJECT_CLASS_TYPE (object_class),
|
||||
_gtk_marshal_VOID__OBJECT_BOOLEANv);
|
||||
|
||||
/**
|
||||
* GtkTextTagTable::tag-added:
|
||||
|
@ -1036,6 +1036,9 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
GTK_TYPE_MOVEMENT_STEP,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (signals[MOVE_CURSOR],
|
||||
G_OBJECT_CLASS_TYPE (gobject_class),
|
||||
_gtk_marshal_VOID__ENUM_INT_BOOLEANv);
|
||||
|
||||
/**
|
||||
* GtkTextView::move-viewport:
|
||||
@ -1061,6 +1064,9 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_SCROLL_STEP,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (signals[MOVE_VIEWPORT],
|
||||
G_OBJECT_CLASS_TYPE (gobject_class),
|
||||
_gtk_marshal_VOID__ENUM_INTv);
|
||||
|
||||
/**
|
||||
* GtkTextView::set-anchor:
|
||||
@ -1134,6 +1140,9 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_DELETE_TYPE,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (signals[DELETE_FROM_CURSOR],
|
||||
G_OBJECT_CLASS_TYPE (gobject_class),
|
||||
_gtk_marshal_VOID__ENUM_INTv);
|
||||
|
||||
/**
|
||||
* GtkTextView::backspace:
|
||||
|
@ -365,6 +365,9 @@ gtk_tree_model_base_init (gpointer g_class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
|
||||
GTK_TYPE_TREE_ITER);
|
||||
g_signal_set_va_marshaller (tree_model_signals[ROW_CHANGED],
|
||||
G_TYPE_FROM_CLASS (g_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXEDv);
|
||||
|
||||
/* We need to get notification about structure changes
|
||||
* to update row references., so instead of using the
|
||||
@ -403,6 +406,9 @@ gtk_tree_model_base_init (gpointer g_class)
|
||||
_gtk_marshal_VOID__BOXED_BOXED,
|
||||
G_TYPE_NONE, 2,
|
||||
row_inserted_params);
|
||||
g_signal_set_va_marshaller (tree_model_signals[ROW_INSERTED],
|
||||
G_TYPE_FROM_CLASS (g_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeModel::row-has-child-toggled:
|
||||
@ -423,6 +429,9 @@ gtk_tree_model_base_init (gpointer g_class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_TREE_PATH | G_SIGNAL_TYPE_STATIC_SCOPE,
|
||||
GTK_TYPE_TREE_ITER);
|
||||
g_signal_set_va_marshaller (tree_model_signals[ROW_HAS_CHILD_TOGGLED],
|
||||
G_TYPE_FROM_CLASS (g_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeModel::row-deleted:
|
||||
@ -479,6 +488,9 @@ gtk_tree_model_base_init (gpointer g_class)
|
||||
_gtk_marshal_VOID__BOXED_BOXED_POINTER,
|
||||
G_TYPE_NONE, 3,
|
||||
rows_reordered_params);
|
||||
g_signal_set_va_marshaller (tree_model_signals[ROWS_REORDERED],
|
||||
G_TYPE_FROM_CLASS (g_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXED_POINTERv);
|
||||
initialized = TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1258,6 +1258,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_TREE_PATH,
|
||||
GTK_TYPE_TREE_VIEW_COLUMN);
|
||||
g_signal_set_va_marshaller (tree_view_signals[ROW_ACTIVATED],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_VOID__BOXED_OBJECTv);
|
||||
|
||||
/**
|
||||
* GtkTreeView::test-expand-row:
|
||||
@ -1280,6 +1283,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_TREE_ITER,
|
||||
GTK_TYPE_TREE_PATH);
|
||||
g_signal_set_va_marshaller (tree_view_signals[TEST_EXPAND_ROW],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeView::test-collapse-row:
|
||||
@ -1302,6 +1308,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_TREE_ITER,
|
||||
GTK_TYPE_TREE_PATH);
|
||||
g_signal_set_va_marshaller (tree_view_signals[TEST_COLLAPSE_ROW],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeView::row-expanded:
|
||||
@ -1321,6 +1330,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_TREE_ITER,
|
||||
GTK_TYPE_TREE_PATH);
|
||||
g_signal_set_va_marshaller (tree_view_signals[ROW_EXPANDED],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeView::row-collapsed:
|
||||
@ -1340,6 +1352,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_NONE, 2,
|
||||
GTK_TYPE_TREE_ITER,
|
||||
GTK_TYPE_TREE_PATH);
|
||||
g_signal_set_va_marshaller (tree_view_signals[ROW_COLLAPSED],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_VOID__BOXED_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkTreeView::columns-changed:
|
||||
@ -1406,6 +1421,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GTK_TYPE_MOVEMENT_STEP,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (tree_view_signals[MOVE_CURSOR],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__ENUM_INTv);
|
||||
|
||||
tree_view_signals[SELECT_ALL] =
|
||||
g_signal_new (I_("select-all"),
|
||||
@ -1415,6 +1433,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (tree_view_signals[SELECT_ALL],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
tree_view_signals[UNSELECT_ALL] =
|
||||
g_signal_new (I_("unselect-all"),
|
||||
@ -1424,6 +1445,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (tree_view_signals[UNSELECT_ALL],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
tree_view_signals[SELECT_CURSOR_ROW] =
|
||||
g_signal_new (I_("select-cursor-row"),
|
||||
@ -1434,6 +1458,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
_gtk_marshal_BOOLEAN__BOOLEAN,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (tree_view_signals[SELECT_CURSOR_ROW],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__BOOLEANv);
|
||||
|
||||
tree_view_signals[TOGGLE_CURSOR_ROW] =
|
||||
g_signal_new (I_("toggle-cursor-row"),
|
||||
@ -1443,6 +1470,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (tree_view_signals[TOGGLE_CURSOR_ROW],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
tree_view_signals[EXPAND_COLLAPSE_CURSOR_ROW] =
|
||||
g_signal_new (I_("expand-collapse-cursor-row"),
|
||||
@ -1455,6 +1485,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
G_TYPE_BOOLEAN,
|
||||
G_TYPE_BOOLEAN,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (tree_view_signals[EXPAND_COLLAPSE_CURSOR_ROW],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__BOOLEAN_BOOLEAN_BOOLEANv);
|
||||
|
||||
tree_view_signals[SELECT_CURSOR_PARENT] =
|
||||
g_signal_new (I_("select-cursor-parent"),
|
||||
@ -1464,6 +1497,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (tree_view_signals[SELECT_CURSOR_PARENT],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
tree_view_signals[START_INTERACTIVE_SEARCH] =
|
||||
g_signal_new (I_("start-interactive-search"),
|
||||
@ -1473,6 +1509,9 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
|
||||
NULL, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (tree_view_signals[START_INTERACTIVE_SEARCH],
|
||||
G_TYPE_FROM_CLASS (o_class),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
/* Key bindings */
|
||||
gtk_tree_view_add_move_binding (binding_set, GDK_KEY_Up, 0, TRUE,
|
||||
|
@ -1605,6 +1605,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
_gtk_marshal_BOOLEAN__BOOLEAN,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
g_signal_set_va_marshaller (widget_signals[MNEMONIC_ACTIVATE],
|
||||
G_TYPE_FROM_CLASS (gobject_class),
|
||||
_gtk_marshal_BOOLEAN__BOOLEANv);
|
||||
|
||||
/**
|
||||
* GtkWidget::move-focus:
|
||||
@ -1643,6 +1646,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
_gtk_marshal_BOOLEAN__ENUM,
|
||||
G_TYPE_BOOLEAN, 1,
|
||||
GTK_TYPE_DIRECTION_TYPE);
|
||||
g_signal_set_va_marshaller (widget_signals[KEYNAV_FAILED],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__ENUMv);
|
||||
|
||||
/**
|
||||
* GtkWidget::drag-leave:
|
||||
@ -1756,6 +1762,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
G_TYPE_BOOLEAN, 2,
|
||||
GDK_TYPE_DRAG,
|
||||
GTK_TYPE_DRAG_RESULT);
|
||||
g_signal_set_va_marshaller (widget_signals[DRAG_FAILED],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__OBJECT_ENUMv);
|
||||
|
||||
/**
|
||||
* GtkWidget::drag-motion:
|
||||
@ -1857,6 +1866,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
GDK_TYPE_DROP,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (widget_signals[DRAG_MOTION],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__OBJECT_INT_INTv);
|
||||
|
||||
/**
|
||||
* GtkWidget::drag-drop:
|
||||
@ -1889,6 +1901,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
GDK_TYPE_DROP,
|
||||
G_TYPE_INT,
|
||||
G_TYPE_INT);
|
||||
g_signal_set_va_marshaller (widget_signals[DRAG_DROP],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__OBJECT_INT_INTv);
|
||||
|
||||
/**
|
||||
* GtkWidget::drag-data-get:
|
||||
@ -1914,6 +1929,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
G_TYPE_NONE, 2,
|
||||
GDK_TYPE_DRAG,
|
||||
GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
g_signal_set_va_marshaller (widget_signals[DRAG_DATA_GET],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_VOID__OBJECT_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkWidget::drag-data-received:
|
||||
@ -1990,6 +2008,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
G_TYPE_NONE, 2,
|
||||
GDK_TYPE_DROP,
|
||||
GTK_TYPE_SELECTION_DATA | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||
g_signal_set_va_marshaller (widget_signals[DRAG_DATA_RECEIVED],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_VOID__OBJECT_BOXEDv);
|
||||
|
||||
/**
|
||||
* GtkWidget::query-tooltip:
|
||||
@ -2028,6 +2049,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
G_TYPE_INT,
|
||||
G_TYPE_BOOLEAN,
|
||||
GTK_TYPE_TOOLTIP);
|
||||
g_signal_set_va_marshaller (widget_signals[QUERY_TOOLTIP],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__INT_INT_BOOLEAN_OBJECTv);
|
||||
|
||||
/**
|
||||
* GtkWidget::popup-menu:
|
||||
@ -2051,6 +2075,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
_gtk_boolean_handled_accumulator, NULL,
|
||||
_gtk_marshal_BOOLEAN__VOID,
|
||||
G_TYPE_BOOLEAN, 0);
|
||||
g_signal_set_va_marshaller (widget_signals[POPUP_MENU],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__VOIDv);
|
||||
|
||||
/**
|
||||
* GtkWidget::accel-closures-changed:
|
||||
@ -2089,6 +2116,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
|
||||
_gtk_boolean_handled_accumulator, NULL,
|
||||
_gtk_marshal_BOOLEAN__UINT,
|
||||
G_TYPE_BOOLEAN, 1, G_TYPE_UINT);
|
||||
g_signal_set_va_marshaller (widget_signals[CAN_ACTIVATE_ACCEL],
|
||||
G_TYPE_FROM_CLASS (klass),
|
||||
_gtk_marshal_BOOLEAN__UINTv);
|
||||
|
||||
binding_set = gtk_binding_set_by_class (klass);
|
||||
gtk_binding_entry_add_signal (binding_set, GDK_KEY_F10, GDK_SHIFT_MASK,
|
||||
|
Loading…
Reference in New Issue
Block a user