Added public method for pack toolbar
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 23 Dec 2008 13:23:23 +0000 (13:23 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 23 Dec 2008 13:23:23 +0000 (13:23 +0000)
pmo-trunk-r7020

src/hildon2/modest-hildon2-window.c
src/hildon2/modest-hildon2-window.h

index f1fedb1..2ec8f1e 100644 (file)
@@ -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,
index 837075f..efc8ba9 100644 (file)
@@ -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