pidgin/gtkutils.h

changeset 41515
e91ebfe7d08c
parent 41502
d00bcebf0f90
child 41526
ad8654c2e758
equal deleted inserted replaced
41514:a96768bacb59 41515:e91ebfe7d08c
51 51
52 typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data); 52 typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data);
53 53
54 54
55 G_BEGIN_DECLS 55 G_BEGIN_DECLS
56
57 /**
58 * pidgin_new_menu_item:
59 * @menu: The menu to which to append the menu item.
60 * @mnemonic: The title for the menu item.
61 * @icon: An icon to place to the left of the menu item,
62 * or %NULL for no icon.
63 * @cb: (scope call): A function to call when the menu item is activated.
64 * @data: Data to pass to the signal function.
65 *
66 * Creates a menu item.
67 *
68 * Returns: (transfer full): The newly created menu item.
69 */
70 GtkWidget *pidgin_new_menu_item(GtkWidget *menu, const char *mnemonic,
71 const char *icon, GCallback cb, gpointer data);
72 56
73 /** 57 /**
74 * pidgin_make_frame: 58 * pidgin_make_frame:
75 * @parent: The widget to put the frame into. 59 * @parent: The widget to put the frame into.
76 * @title: The title for the frame. 60 * @title: The title for the frame.
147 * Sets the labelled-by and label-for ATK relationships. 131 * Sets the labelled-by and label-for ATK relationships.
148 */ 132 */
149 void pidgin_set_accessible_relations(GtkWidget *w, GtkLabel *l); 133 void pidgin_set_accessible_relations(GtkWidget *w, GtkLabel *l);
150 134
151 /** 135 /**
152 * pidgin_menu_popup_at_treeview_selection:
153 * @menu: The menu to show.
154 * @treeview: The treeview to use for positioning.
155 *
156 * Open a menu popup at the position determined by the selection of a given
157 * treeview. This function is similar to @gtk_menu_popup_at_pointer, but should
158 * be used when the menu is activated via a keyboard shortcut.
159 */
160 void pidgin_menu_popup_at_treeview_selection(GtkWidget *menu, GtkWidget *treeview);
161
162 /**
163 * pidgin_buddy_icon_get_scale_size: 136 * pidgin_buddy_icon_get_scale_size:
164 * 137 *
165 * Convenience wrapper for purple_buddy_icon_spec_get_scaled_size 138 * Convenience wrapper for purple_buddy_icon_spec_get_scaled_size
166 */ 139 */
167 void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleBuddyIconScaleFlags rules, int *width, int *height); 140 void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleBuddyIconScaleFlags rules, int *width, int *height);

mercurial