Mercurial > pidgin.yaz
diff src/gtkutils.h @ 8143:8633dc570442
[gaim-migrate @ 8851]
sf cvs fing sucks.
This is the rest of the accessibility stuff from that cool Nathan guy.
It makes shift+f10 bring up context menus. Please check over stuff and
make sure neither of us broke anything.
Also, someone think of a good way to phrase that thing about this that's
in the ChangeLog.
Thank you, and have a nice day.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 19 Jan 2004 22:40:17 +0000 |
parents | 4971193f761d |
children | 9af78e73f0b2 |
line wrap: on
line diff
--- a/src/gtkutils.h Mon Jan 19 22:13:50 2004 +0000 +++ b/src/gtkutils.h Mon Jan 19 22:40:17 2004 +0000 @@ -353,6 +353,27 @@ * @w The widget that we want to name. * @l A GtkLabel that we want to use as the ATK name for the widget. */ -void gaim_set_accessible_label (GtkWidget *w, GtkWidget *l); +void gaim_set_accessible_label(GtkWidget *w, GtkWidget *l); + +/** + * A valid GtkMenuPositionFunc. This is used to determine where + * to draw context menu's when the menu is activated with the + * keyboard (shift+F10). If the menu is activated with the mouse, + * then you should just use GTK's built-in position function, + * because it does a better job of positioning the menu. + * + * @param menu The menu we are positioning. + * @param x Address of the gint representing the horizontal position + * where the menu shall be drawn. This is an output parameter. + * @param y Address of the gint representing the vertical position + * where the menu shall be drawn. This is an output parameter. + * @param push_in This is an output parameter? + * @param user_data Not used by this particular position function. + */ +void gaim_gtk_treeview_popup_menu_position_func(GtkMenu *menu, + gint *x, + gint *y, + gboolean *push_in, + gpointer user_data); #endif /* _GAIM_GTK_UTILS_H_ */