aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-sidebar.h
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-01-12 12:08:16 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-01-12 12:08:16 +0800
commit410e8fb0a4aa39503f9f01f433b7112238308281 (patch)
treebf561bde5a9557685ad1bf7940d5950eb0fb1000 /shell/e-sidebar.h
parent54e2fae377ffccc0ae3c3987a8a15d2b47e98575 (diff)
downloadgsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar.gz
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar.bz2
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar.lz
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar.xz
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.tar.zst
gsoc2013-evolution-410e8fb0a4aa39503f9f01f433b7112238308281.zip
track hbox and label widget (button_free): unref them
2004-01-11 JP Rosevear <jpr@ximian.com> * e-sidebar.c (button_new): track hbox and label widget (button_free): unref them (do_layout_text_buttons): layout buttons with text (do_layout_icon_buttons): layout icon only buttons (do_layout): layout based on mode (impl_size_request): distinguish between horizontal and vertical padding (init): set a default mode (e_sidebar_add_button): align the button text to the left, only add the text if we are in the text mode (e_sidebar_get_mode): accessor (e_sidebar_set_mode): accessor * e-sidebar.h: add prototype and mode enum svn path=/trunk/; revision=24163
Diffstat (limited to 'shell/e-sidebar.h')
-rw-r--r--shell/e-sidebar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/e-sidebar.h b/shell/e-sidebar.h
index e224698346..fc4b782c96 100644
--- a/shell/e-sidebar.h
+++ b/shell/e-sidebar.h
@@ -36,6 +36,11 @@ typedef struct _ESidebar ESidebar;
typedef struct _ESidebarPrivate ESidebarPrivate;
typedef struct _ESidebarClass ESidebarClass;
+typedef enum {
+ E_SIDEBAR_MODE_TEXT,
+ E_SIDEBAR_MODE_ICON
+} ESidebarMode;
+
struct _ESidebar {
GtkContainer parent;
@@ -63,4 +68,8 @@ void e_sidebar_add_button (ESidebar *sidebar,
void e_sidebar_select_button (ESidebar *sidebar,
int id);
+ESidebarMode e_sidebar_get_mode (ESidebar *sidebar);
+void e_sidebar_set_mode (ESidebar *sidebar, ESidebarMode mode);
+
+
#endif /* _E_SIDEBAR_H_ */