comparison src/ui_menu.h @ 1448:89dedc61b1bd

gint -> gboolean.
author zas_
date Sun, 15 Mar 2009 20:16:20 +0000
parents 8b89e3ff286b
children
comparison
equal deleted inserted replaced
1447:a10d70ae85e9 1448:89dedc61b1bd
17 17
18 GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label, 18 GtkWidget *menu_item_add(GtkWidget *menu, const gchar *label,
19 GCallback func, gpointer data); 19 GCallback func, gpointer data);
20 GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id, 20 GtkWidget *menu_item_add_stock(GtkWidget *menu, const gchar *label, const gchar *stock_id,
21 GCallback func, gpointer data); 21 GCallback func, gpointer data);
22 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gint sensitive, 22 GtkWidget *menu_item_add_sensitive(GtkWidget *menu, const gchar *label, gboolean sensitive,
23 GCallback func, gpointer data); 23 GCallback func, gpointer data);
24 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gint sensitive, 24 GtkWidget *menu_item_add_stock_sensitive(GtkWidget *menu, const gchar *label, const gchar *stock_id, gboolean sensitive,
25 GCallback func, gpointer data); 25 GCallback func, gpointer data);
26 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gint active, 26 GtkWidget *menu_item_add_check(GtkWidget *menu, const gchar *label, gboolean active,
27 GCallback func, gpointer data); 27 GCallback func, gpointer data);
28 GtkWidget *menu_item_add_radio(GtkWidget *menu, GtkWidget *parent, 28 GtkWidget *menu_item_add_radio(GtkWidget *menu, GtkWidget *parent,
29 const gchar *label, gint active, 29 const gchar *label, gboolean active,
30 GCallback func, gpointer data); 30 GCallback func, gpointer data);
31 void menu_item_add_divider(GtkWidget *menu); 31 void menu_item_add_divider(GtkWidget *menu);
32 32
33 /* use to avoid mnemonics, for example filenames */ 33 /* use to avoid mnemonics, for example filenames */
34 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label, 34 GtkWidget *menu_item_add_simple(GtkWidget *menu, const gchar *label,
37 GtkWidget *popup_menu_short_lived(void); 37 GtkWidget *popup_menu_short_lived(void);
38 38
39 /* clamp a menu's position to within the screen 39 /* clamp a menu's position to within the screen
40 * if menu will attempt to stay out of region y to y+height 40 * if menu will attempt to stay out of region y to y+height
41 */ 41 */
42 gint popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height); 42 gboolean popup_menu_position_clamp(GtkMenu *menu, gint *x, gint *y, gint height);
43 43
44 44
45 #endif 45 #endif
46 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ 46 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */