Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/gtkutils.h Tue Aug 05 10:55:04 2003 +0000 +++ b/src/gtkutils.h Tue Aug 05 11:08:40 2003 +0000 @@ -27,6 +27,22 @@ #include "gtkconv.h" #include "prpl.h" +typedef enum +{ + GAIM_BUTTON_HORIZONTAL, + GAIM_BUTTON_VERTICAL + +} GaimButtonOrientation; + +typedef enum +{ + GAIM_BUTTON_NONE = 0, + GAIM_BUTTON_TEXT, + GAIM_BUTTON_IMAGE, + GAIM_BUTTON_TEXT_IMAGE + +} GaimButtonStyle; + /** * Sets up a gtkimhtml widget, loads it with smileys, and sets the * default signal handlers. @@ -168,6 +184,27 @@ guint accel_mods, char *mod); /** + * Creates a button with the specified text and stock icon. + * + * @param text The text for the button. + * @param icon The stock icon name. + * @param style The orientation of the button. + * + * @return The button. + */ +GtkWidget *gaim_pixbuf_button_from_stock(const char *text, const char *icon, + GaimButtonOrientation style); + +/** + * Creates a toolbar button with the stock icon. + * + * @param icon The stock icon name. + * + * @return The button. + */ +GtkWidget *gaim_pixbuf_toolbar_button_from_stock(const char *stock); + +/** * Creates a HIG preferences frame. * * @param parent The widget to put the frame into.