G_CALLBACK (edit_mode_changed), (gpointer) self);
action_area_box = hildon_tree_view_get_action_area_box (GTK_TREE_VIEW (priv->folder_view));
- priv->new_message_button = hildon_button_new (0, HILDON_BUTTON_ARRANGEMENT_HORIZONTAL);
+ priv->new_message_button = hildon_button_new (MODEST_EDITABLE_SIZE, HILDON_BUTTON_ARRANGEMENT_HORIZONTAL);
hildon_button_set_title (HILDON_BUTTON (priv->new_message_button), _("mcen_ti_new_message"));
new_message_pixbuf = modest_platform_get_icon ("general_add", MODEST_ICON_SIZE_BIG);
}
static void
+edit_account (GtkButton *button,
+ ModestFolderWindow *self)
+{
+
+}
+
+static void
setup_menu (ModestFolderWindow *self)
{
g_return_if_fail (MODEST_IS_FOLDER_WINDOW(self));
MODEST_DIMMING_CALLBACK (modest_ui_dimming_rules_on_folder_window_delete));
/* send receive actions should be only one visible always */
- modest_hildon2_window_add_to_menu (MODEST_HILDON2_WINDOW (self),
- _("mcen_me_inbox_sendandreceive"),
- NULL,
+ modest_hildon2_window_add_to_menu (MODEST_HILDON2_WINDOW (self), _("mcen_me_inbox_sendandreceive"), NULL,
APP_MENU_CALLBACK (modest_ui_actions_on_send_receive),
MODEST_DIMMING_CALLBACK (modest_ui_dimming_rules_on_send_receive));
modest_hildon2_window_add_to_menu (MODEST_HILDON2_WINDOW (self), _("mcen_me_outbox_cancelsend"), NULL,
APP_MENU_CALLBACK (modest_ui_actions_cancel_send),
MODEST_DIMMING_CALLBACK (modest_ui_dimming_rules_on_cancel_sending_all));
+
+ modest_hildon2_window_add_to_menu (MODEST_HILDON2_WINDOW (self), _("mcen_me_edit_account"), NULL,
+ APP_MENU_CALLBACK (edit_account),
+ MODEST_DIMMING_CALLBACK (modest_ui_dimming_rules_on_edit_accounts));
}
static void
priv = MODEST_FOLDER_WINDOW_GET_PRIVATE (self);
- if (!folder)
- return;
-
- if (!TNY_IS_FOLDER (folder))
+ if (!folder || !TNY_IS_FOLDER (folder))
return;
/* We cannot open noselect folders (fake ones) */
{
TnyAccount *account;
+ if (!account_id)
+ return;
+
account = modest_tny_account_store_get_tny_account_by (modest_runtime_get_account_store(),
MODEST_TNY_ACCOUNT_STORE_QUERY_ID,
account_id);
/* Update window title */
- update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
-
- if (account)
+ if (account) {
+ update_window_title (MODEST_FOLDER_WINDOW (user_data), account);
g_object_unref (account);
+ }
}
static void