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);
static EditModeRegister *edit_mode_register_new (const gchar *description,
const gchar *button_label,
GtkTreeView *tree_view,
modest_window_class->set_title_func = modest_hildon2_window_set_title;
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
hildon_banner_show_information (NULL, NULL, _CS("ckct_ib_cannot_zoom_here"));
return FALSE;
}
-
-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_debug ("%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_item_to_menu (ModestWindow *self,
GtkWidget *button,
reg->description);
hildon_edit_toolbar_set_button_label (HILDON_EDIT_TOOLBAR (priv->edit_toolbar),
reg->button_label);
- modest_hildon2_window_pack_toolbar (self, GTK_PACK_START,
- priv->edit_toolbar);
+ modest_window_pack_toolbar (MODEST_WINDOW (self), GTK_PACK_START,
+ priv->edit_toolbar);
g_signal_connect (G_OBJECT (priv->edit_toolbar), "button-clicked",
G_CALLBACK (edit_toolbar_button_clicked), (gpointer) self);