Mercurial > pidgin
comparison src/gtkutils.h @ 6372:9dd4bb3cf1df
[gaim-migrate @ 6877]
Moved some utility functions out of dialogs.c and into gtkutils.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 05 Aug 2003 11:08:40 +0000 |
parents | 5fb6bd688a5b |
children | b89d98f0bf79 |
comparison
equal
deleted
inserted
replaced
6371:8f94cce8faa5 | 6372:9dd4bb3cf1df |
---|---|
24 #define _GAIM_GTK_UTILS_H_ | 24 #define _GAIM_GTK_UTILS_H_ |
25 | 25 |
26 #include <gtk/gtk.h> | 26 #include <gtk/gtk.h> |
27 #include "gtkconv.h" | 27 #include "gtkconv.h" |
28 #include "prpl.h" | 28 #include "prpl.h" |
29 | |
30 typedef enum | |
31 { | |
32 GAIM_BUTTON_HORIZONTAL, | |
33 GAIM_BUTTON_VERTICAL | |
34 | |
35 } GaimButtonOrientation; | |
36 | |
37 typedef enum | |
38 { | |
39 GAIM_BUTTON_NONE = 0, | |
40 GAIM_BUTTON_TEXT, | |
41 GAIM_BUTTON_IMAGE, | |
42 GAIM_BUTTON_TEXT_IMAGE | |
43 | |
44 } GaimButtonStyle; | |
29 | 45 |
30 /** | 46 /** |
31 * Sets up a gtkimhtml widget, loads it with smileys, and sets the | 47 * Sets up a gtkimhtml widget, loads it with smileys, and sets the |
32 * default signal handlers. | 48 * default signal handlers. |
33 * | 49 * |
166 const char *icon, GtkSignalFunc sf, | 182 const char *icon, GtkSignalFunc sf, |
167 gpointer data, guint accel_key, | 183 gpointer data, guint accel_key, |
168 guint accel_mods, char *mod); | 184 guint accel_mods, char *mod); |
169 | 185 |
170 /** | 186 /** |
187 * Creates a button with the specified text and stock icon. | |
188 * | |
189 * @param text The text for the button. | |
190 * @param icon The stock icon name. | |
191 * @param style The orientation of the button. | |
192 * | |
193 * @return The button. | |
194 */ | |
195 GtkWidget *gaim_pixbuf_button_from_stock(const char *text, const char *icon, | |
196 GaimButtonOrientation style); | |
197 | |
198 /** | |
199 * Creates a toolbar button with the stock icon. | |
200 * | |
201 * @param icon The stock icon name. | |
202 * | |
203 * @return The button. | |
204 */ | |
205 GtkWidget *gaim_pixbuf_toolbar_button_from_stock(const char *stock); | |
206 | |
207 /** | |
171 * Creates a HIG preferences frame. | 208 * Creates a HIG preferences frame. |
172 * | 209 * |
173 * @param parent The widget to put the frame into. | 210 * @param parent The widget to put the frame into. |
174 * @param title The title for the frame. | 211 * @param title The title for the frame. |
175 * | 212 * |