summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-14 22:43:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-14 22:43:52 +0000
commit08a08cf1b5b6040da3f9a93847250e2bab6bdc2e (patch)
tree1cbfb639181dda19ec1aaea3cc2a9ddeb4cfbaf7 /gtk/gtkbindings.h
parentc7c9ec32d58ea511af31046b301e9a536c168069 (diff)
downloadgtk+-08a08cf1b5b6040da3f9a93847250e2bab6bdc2e.tar.gz
Add a new binding signal, "move_scroll", and use it to hook up
Sat Dec 14 14:19:16 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmenu.c: Add a new binding signal, "move_scroll", and use it to hook up Home/End/Page_Up/Page_Down keybindings. (#80484, Narayana Pattipati, Marius Andreiana) * gtk/gtkmenu.c (gtk_menu_scroll_item_visible): Fix some bugs in the computation of when an item is visible. (#99545) * gtk/gtkbindings.[ch] (_gtk_binding_signal_new) gtk/gtkmenushell.c: Move here, export privately. * gtk/gtkmenushell.c (_gtk_menu_shell_select_last): Export privately. * gtk/gtkmenushell.c (gtk_menu_shell_select_item): Don't select the item if it is already selected.
Diffstat (limited to 'gtk/gtkbindings.h')
-rw-r--r--gtk/gtkbindings.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkbindings.h b/gtk/gtkbindings.h
index c906ca6fbd..5d45495822 100644
--- a/gtk/gtkbindings.h
+++ b/gtk/gtkbindings.h
@@ -140,6 +140,19 @@ gboolean _gtk_bindings_activate_event (GtkObject *object,
GdkEventKey *event);
void _gtk_binding_reset_parsed (void);
+/* Creates a signal with a fixed callback instead of a class offset;
+ * useful for key binding signals
+ */
+guint _gtk_binding_signal_new (const gchar *signal_name,
+ GType itype,
+ GSignalFlags signal_flags,
+ GCallback handler,
+ GSignalAccumulator accumulator,
+ gpointer accu_data,
+ GSignalCMarshaller c_marshaller,
+ GType return_type,
+ guint n_params,
+ ...);
#ifdef __cplusplus
}
#endif /* __cplusplus */