| 27 #define _PIDGINUTILS_H_ |
27 #define _PIDGINUTILS_H_ |
| 28 |
28 |
| 29 #include "gtkconv.h" |
29 #include "gtkconv.h" |
| 30 |
30 |
| 31 #include <purple.h> |
31 #include <purple.h> |
| 32 |
|
| 33 typedef enum |
|
| 34 { |
|
| 35 PIDGIN_BUTTON_HORIZONTAL, |
|
| 36 PIDGIN_BUTTON_VERTICAL |
|
| 37 |
|
| 38 } PidginButtonOrientation; |
|
| 39 |
|
| 40 typedef enum |
|
| 41 { |
|
| 42 PIDGIN_PROTOCOL_ICON_SMALL, |
|
| 43 PIDGIN_PROTOCOL_ICON_MEDIUM, |
|
| 44 PIDGIN_PROTOCOL_ICON_LARGE |
|
| 45 } PidginProtocolIconSize; |
|
| 46 |
32 |
| 47 typedef struct { |
33 typedef struct { |
| 48 gboolean is_buddy; |
34 gboolean is_buddy; |
| 49 PurpleBuddy *buddy; |
35 PurpleBuddy *buddy; |
| 50 } PidginBuddyCompletionEntry; |
36 } PidginBuddyCompletionEntry; |
| 122 * and label-for ATK relationships. |
108 * and label-for ATK relationships. |
| 123 */ |
109 */ |
| 124 void pidgin_set_accessible_label(GtkWidget *w, GtkLabel *l); |
110 void pidgin_set_accessible_label(GtkWidget *w, GtkLabel *l); |
| 125 |
111 |
| 126 /** |
112 /** |
| 127 * pidgin_set_accessible_relations: |
|
| 128 * @w: The widget that we want to label. |
|
| 129 * @l: A GtkLabel that we want to use as the label for the widget. |
|
| 130 * |
|
| 131 * Sets the labelled-by and label-for ATK relationships. |
|
| 132 */ |
|
| 133 void pidgin_set_accessible_relations(GtkWidget *w, GtkLabel *l); |
|
| 134 |
|
| 135 /** |
|
| 136 * pidgin_buddy_icon_get_scale_size: |
|
| 137 * |
|
| 138 * Convenience wrapper for purple_buddy_icon_spec_get_scaled_size |
|
| 139 */ |
|
| 140 void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleBuddyIconScaleFlags rules, int *width, int *height); |
|
| 141 |
|
| 142 /** |
|
| 143 * pidgin_convert_buddy_icon: |
|
| 144 * @protocol: The protocol to convert the icon |
|
| 145 * @path: The path of a file to convert |
|
| 146 * @len: If not %NULL, the length of the returned data will be set here. |
|
| 147 * |
|
| 148 * Converts a buddy icon to the required size and format |
|
| 149 * |
|
| 150 * Returns: The converted image data, or %NULL if an error occurred. |
|
| 151 */ |
|
| 152 gpointer pidgin_convert_buddy_icon(PurpleProtocol *protocol, const char *path, size_t *len); |
|
| 153 |
|
| 154 /** |
|
| 155 * pidgin_tree_view_search_equal_func: |
113 * pidgin_tree_view_search_equal_func: |
| 156 * |
114 * |
| 157 * This is a callback function to be used for Ctrl+F searching in treeviews. |
115 * This is a callback function to be used for Ctrl+F searching in treeviews. |
| 158 * Sample Use: |
116 * Sample Use: |
| 159 * gtk_tree_view_set_search_equal_func(treeview, |
117 * gtk_tree_view_set_search_equal_func(treeview, |