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,
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->dispose = modest_hildon2_window_dispose;
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
priv->edit_mode_registry = g_hash_table_new_full (g_direct_hash, g_direct_equal,
NULL, edit_mode_register_destroy);
- parent_priv->ui_dimming_manager = modest_ui_dimming_manager_new();
priv->app_menu_dimming_group = modest_dimming_rules_group_new (MODEST_DIMMING_RULES_MENU, FALSE);
gtk_window_add_accel_group (GTK_WINDOW (self), priv->accel_group);
{
g_return_val_if_fail (MODEST_IS_HILDON2_WINDOW (window), FALSE);
- hildon_banner_show_information (NULL, NULL, _CS("ckct_ib_cannot_zoom_here"));
+ hildon_banner_show_information (NULL, NULL, _CS_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);
GINT_TO_POINTER (priv->edit_command));
if (reg) {
- if ((reg->action == NULL) || reg->action (self))
+ if ((reg->action == NULL) || reg->action (MODEST_WINDOW (self)))
modest_hildon2_window_unset_edit_mode (self);
} else {
modest_hildon2_window_unset_edit_mode (self);