pidgin/gtkutils.h

changeset 18238
b38c33d2d71e
parent 18105
bab0b0bcb664
child 18275
b9633ef422b0
equal deleted inserted replaced
18237:da092aa48f4a 18238:b38c33d2d71e
357 * @param l A GtkLabel that we want to use as the ATK name for the widget. 357 * @param l A GtkLabel that we want to use as the ATK name for the widget.
358 */ 358 */
359 void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l); 359 void pidgin_set_accessible_label(GtkWidget *w, GtkWidget *l);
360 360
361 /** 361 /**
362 * A valid GtkMenuPositionFunc. This is used to determine where 362 * A helper function for GtkMenuPositionFuncs. This ensures the menu will
363 * to draw context menu's when the menu is activated with the 363 * be kept on screen if possible.
364 * keyboard (shift+F10). If the menu is activated with the mouse,
365 * then you should just use GTK's built-in position function,
366 * because it does a better job of positioning the menu.
367 * 364 *
368 * @param menu The menu we are positioning. 365 * @param menu The menu we are positioning.
369 * @param x Address of the gint representing the horizontal position 366 * @param x Address of the gint representing the horizontal position
370 * where the menu shall be drawn. This is an output parameter. 367 * where the menu shall be drawn. This is an output parameter.
371 * @param y Address of the gint representing the vertical position 368 * @param y Address of the gint representing the vertical position
372 * where the menu shall be drawn. This is an output parameter. 369 * where the menu shall be drawn. This is an output parameter.
373 * @param push_in This is an output parameter? 370 * @param push_in This is an output parameter?
374 * @param user_data Not used by this particular position function. 371 * @param user_data Not used by this particular position function.
375 */ 372 */
373 void pidgin_menu_position_func_helper(GtkMenu *menu, gint *x, gint *y,
374 gboolean *push_in, gpointer data);
375
376 /**
377 * A valid GtkMenuPositionFunc. This is used to determine where
378 * to draw context menu's when the menu is activated with the
379 * keyboard (shift+F10). If the menu is activated with the mouse,
380 * then you should just use GTK's built-in position function,
381 * because it does a better job of positioning the menu.
382 *
383 * @param menu The menu we are positioning.
384 * @param x Address of the gint representing the horizontal position
385 * where the menu shall be drawn. This is an output parameter.
386 * @param y Address of the gint representing the vertical position
387 * where the menu shall be drawn. This is an output parameter.
388 * @param push_in This is an output parameter?
389 * @param user_data Not used by this particular position function.
390 */
376 void pidgin_treeview_popup_menu_position_func(GtkMenu *menu, 391 void pidgin_treeview_popup_menu_position_func(GtkMenu *menu,
377 gint *x, 392 gint *x,
378 gint *y, 393 gint *y,
379 gboolean *push_in, 394 gboolean *push_in,
380 gpointer user_data); 395 gpointer user_data);

mercurial