From 24f5407f6974c1125adae6ae03277e6f47982b6a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 19 Apr 2004 21:44:37 +0000 Subject: Add an enum for icon sizes (temporarily has absolute pixel sizes assigned 2004-04-19 Jeffrey Stedfast * e-icon-factory.h: Add an enum for icon sizes (temporarily has absolute pixel sizes assigned to it until I commit e-icon-factory.c changes - but only after all other code has been updated to use the enums). svn path=/trunk/; revision=25525 --- e-util/ChangeLog | 7 +++++++ e-util/e-icon-factory.h | 18 +++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/e-util/ChangeLog b/e-util/ChangeLog index e4b3172e5a..dd154f1c62 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,10 @@ +2004-04-19 Jeffrey Stedfast + + * e-icon-factory.h: Add an enum for icon sizes (temporarily has + absolute pixel sizes assigned to it until I commit + e-icon-factory.c changes - but only after all other code has been + updated to use the enums). + 2004-04-16 Michael Terry * Makefile.am: Add e-icon-factory.[ch] diff --git a/e-util/e-icon-factory.h b/e-util/e-icon-factory.h index 8dede96ca4..866fc32aba 100644 --- a/e-util/e-icon-factory.h +++ b/e-util/e-icon-factory.h @@ -25,14 +25,22 @@ #include +enum { + E_ICON_SIZE_MENU = 16, + E_ICON_SIZE_BUTTON = 20, + E_ICON_SIZE_SMALL_TOOLBAR = 18, + E_ICON_SIZE_LARGE_TOOLBAR = 24, + E_ICON_SIZE_DND = 32, + E_ICON_SIZE_DIALOG = 48, + E_ICON_NUM_SIZES +}; + void e_icon_factory_init (void); -gchar *e_icon_factory_get_icon_filename (const gchar *icon_name, - gint icon_size); +char *e_icon_factory_get_icon_filename (const char *icon_name, int icon_size); -GdkPixbuf *e_icon_factory_get_icon (const gchar *icon_name, - gint icon_size); +GdkPixbuf *e_icon_factory_get_icon (const char *icon_name, int icon_size); -GList *e_icon_factory_get_icon_list (const gchar *icon_name); +GList *e_icon_factory_get_icon_list (const char *icon_name); #endif /* _E_ICON_FACTORY_H_ */ -- cgit