static void modest_hildon2_window_show_toolbar (ModestWindow *self,
gboolean show_toolbar);
+static void modest_hildon2_window_add_toolbar (ModestWindow *self,
+ GtkToolbar *toolbar);
static gboolean modest_hildon2_window_toggle_menu (HildonWindow *window,
guint button,
guint32 time);
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_window_class->add_toolbar_func = modest_hildon2_window_add_toolbar;
modest_window_class->show_progress_func = modest_hildon2_window_show_progress;
modest_hildon2_window_class->pack_toolbar_func = modest_hildon2_window_pack_toolbar_not_implemented;
}
static void
+modest_hildon2_window_add_toolbar (ModestWindow *self,
+ GtkToolbar *toolbar)
+{
+ hildon_window_add_toolbar (HILDON_WINDOW (self),
+ toolbar);
+}
+
+static void
modest_hildon2_window_show_progress (ModestWindow *self,
gboolean show)
{
static void modest_window_show_toolbar_default (ModestWindow *window,
gboolean show_toolbar);
+static void modest_window_add_toolbar_default (ModestWindow *window,
+ GtkToolbar *toolbar);
+
static void modest_window_set_zoom_default (ModestWindow *window,
gdouble zoom);
klass->zoom_plus_func = modest_window_zoom_plus_default;
klass->zoom_minus_func = modest_window_zoom_minus_default;
klass->show_toolbar_func = modest_window_show_toolbar_default;
+ klass->add_toolbar_func = modest_window_add_toolbar_default;
klass->disconnect_signals_func = modest_window_disconnect_signals_default;
klass->show_progress_func = modest_window_show_progress_default;
}
void
+modest_window_add_toolbar (ModestWindow *window,
+ GtkToolbar *toolbar)
+{
+ MODEST_WINDOW_GET_CLASS (window)->add_toolbar_func (window,
+ toolbar);
+}
+
+void
modest_window_disconnect_signals (ModestWindow *window)
{
MODEST_WINDOW_GET_CLASS (window)->disconnect_signals_func (window);
}
static void
+modest_window_add_toolbar_default (ModestWindow *window,
+ GtkToolbar *toolbar)
+{
+ g_warning ("modest: You should implement %s", __FUNCTION__);
+}
+
+static void
modest_window_disconnect_signals_default (ModestWindow *self)
{
g_warning ("modest: You should implement %s", __FUNCTION__);
void (*save_state_func) (ModestWindow *self);
void (*disconnect_signals_func) (ModestWindow *self);
void (*show_progress_func) (ModestWindow *self, gboolean show);
+ void (*add_toolbar_func) (ModestWindow *self, GtkToolbar *toolbar);
};
/**
void modest_window_show_progress (ModestWindow *self, gboolean show_progress);
+void modest_window_add_toolbar (ModestWindow *self, GtkToolbar *toolbar);
+
G_END_DECLS