From 9892a03f8564dafa2e2ac316af2cc6066d327343 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 23 Dec 2008 13:23:23 +0000 Subject: [PATCH] Added public method for pack toolbar pmo-trunk-r7020 --- src/hildon2/modest-hildon2-window.c | 10 ++++++++++ src/hildon2/modest-hildon2-window.h | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-hildon2-window.c b/src/hildon2/modest-hildon2-window.c index f1fedb1..2ec8f1e 100644 --- a/src/hildon2/modest-hildon2-window.c +++ b/src/hildon2/modest-hildon2-window.c @@ -177,6 +177,16 @@ modest_hildon2_window_pack_toolbar_not_implemented (ModestHildon2Window *self, g_warning ("%s not implemented", __FUNCTION__); } +void +modest_hildon2_window_pack_toolbar (ModestHildon2Window *self, + GtkPackType pack_type, + GtkWidget *toolbar) +{ + g_return_if_fail (MODEST_IS_HILDON2_WINDOW (self)); + + MODEST_HILDON2_WINDOW_GET_CLASS (self)->pack_toolbar_func (self, pack_type, toolbar); +} + void modest_hildon2_window_add_button_to_menu (ModestHildon2Window *self, GtkButton *button, diff --git a/src/hildon2/modest-hildon2-window.h b/src/hildon2/modest-hildon2-window.h index 837075f..efc8ba9 100644 --- a/src/hildon2/modest-hildon2-window.h +++ b/src/hildon2/modest-hildon2-window.h @@ -103,7 +103,17 @@ modest_hildon2_window_add_button_to_menu (ModestHildon2Window *self, GtkButton *button, ModestDimmingCallback dimming_callback); - +/** + * modest_hildon2_window_pack_toolbar: + * @self: a #ModestHildon2Window + * @pack_type: a #GtkPackType + * @toolbar: a toolbar widget + * + * packs a toolbar (widget @toolbar) in @self with @pack_type + */ +void modest_hildon2_window_pack_toolbar (ModestHildon2Window *self, + GtkPackType pack_type, + GtkWidget *toolbar); G_END_DECLS -- 1.7.9.5