From bf2cf2ca01e09b01ffeb7e07e15fd8efe80f8c0a Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 23 Dec 2008 13:23:15 +0000 Subject: [PATCH] Added virtual method pack_toolbar in hildon2 window pmo-trunk-r7019 --- src/hildon2/modest-hildon2-window.c | 16 ++++++++++++++++ src/hildon2/modest-hildon2-window.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/src/hildon2/modest-hildon2-window.c b/src/hildon2/modest-hildon2-window.c index 1aa0fbc..f1fedb1 100644 --- a/src/hildon2/modest-hildon2-window.c +++ b/src/hildon2/modest-hildon2-window.c @@ -51,6 +51,9 @@ static void modest_hildon2_window_show_toolbar (ModestWindow *self, static gboolean modest_hildon2_window_toggle_menu (HildonWindow *window, guint button, guint32 time); +static void modest_hildon2_window_pack_toolbar_not_implemented (ModestHildon2Window *self, + GtkPackType pack_type, + GtkWidget *toolbar); typedef struct _ModestHildon2WindowPrivate ModestHildon2WindowPrivate; struct _ModestHildon2WindowPrivate { @@ -99,6 +102,7 @@ modest_hildon2_window_class_init (gpointer klass, gpointer class_data) gobject_class = (GObjectClass*) klass; ModestWindowClass *modest_window_class = (ModestWindowClass *) klass; HildonWindowClass *hildon_window_class = (HildonWindowClass *) klass; + ModestHildon2WindowClass *modest_hildon2_window_class = (ModestHildon2WindowClass *) klass; parent_class = g_type_class_peek_parent (klass); gobject_class->finalize = modest_hildon2_window_finalize; @@ -110,6 +114,8 @@ modest_hildon2_window_class_init (gpointer klass, gpointer class_data) modest_window_class->zoom_minus_func = on_zoom_minus_plus_not_implemented; modest_window_class->zoom_plus_func = on_zoom_minus_plus_not_implemented; modest_window_class->show_toolbar_func = modest_hildon2_window_show_toolbar; + + modest_hildon2_window_class->pack_toolbar_func = modest_hildon2_window_pack_toolbar_not_implemented; } static void @@ -161,6 +167,16 @@ on_zoom_minus_plus_not_implemented (ModestWindow *window) } +static void +modest_hildon2_window_pack_toolbar_not_implemented (ModestHildon2Window *self, + GtkPackType pack_type, + GtkWidget *toolbar) +{ + g_return_if_fail (MODEST_IS_HILDON2_WINDOW (self)); + + g_warning ("%s not implemented", __FUNCTION__); +} + 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 537eb83..837075f 100644 --- a/src/hildon2/modest-hildon2-window.h +++ b/src/hildon2/modest-hildon2-window.h @@ -54,6 +54,8 @@ struct _ModestHildon2Window { struct _ModestHildon2WindowClass { ModestWindowClass parent_class; + + void (*pack_toolbar_func) (ModestHildon2Window *self, GtkPackType pack_type, GtkWidget *toolbar); }; typedef void (*ModestHildon2AppMenuCallback) (GObject *control, gpointer userdata); -- 1.7.9.5