static GtkWidget * create_empty_view (void);
-static gchar *
-translate_func (const gchar *msgid,
- const gchar *domain_name);
-
/* list my signals */
enum {
/* Folder View CSM actions */
{ "FolderViewCSMNewFolder", NULL, N_("mcen_ti_new_folder"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_new_folder) },
{ "FolderViewCSMRenameFolder", NULL, N_("mcen_me_user_renamefolder"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_rename_folder) },
- { "FolderViewCSMPasteMsgs", NULL, N_("mcen_me_inbox_paste"), NULL, NULL, NULL },
+ { "FolderViewCSMPasteMsgs", NULL, N_("mcen_me_inbox_paste"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_paste)},
{ "FolderViewCSMDeleteFolder", NULL, N_("mcen_me_inbox_delete"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_delete_folder) },
{ "FolderViewCSMSearchMessages", NULL, N_("mcen_me_inbox_search"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_search_messages) },
{ "FolderViewCSMHelp", NULL, N_("mcen_me_inbox_help"), NULL, NULL, G_CALLBACK (modest_ui_actions_on_help) },
priv = MODEST_MAIN_WINDOW_GET_PRIVATE(obj);
+ priv->queue_err_signals = NULL;
priv->msg_paned = NULL;
priv->main_paned = NULL;
priv->main_vbox = NULL;
* (without the check for >0 accounts, though that is not specified): */
TnyDevice *device = tny_account_store_get_device (store);
+
+ modest_folder_view_update_model (MODEST_FOLDER_VIEW (priv->folder_view), store);
/* Check that we are really online.
* This signal should not be emitted when we are not connected,
iter = g_slist_next (iter);
}
-
- g_slist_free (account_names);
-
+
+ modest_account_mgr_free_account_names (account_names);
+ account_names = NULL;
modest_ui_actions_do_send_receive (NULL, MODEST_WINDOW (self));
}
}
}
-/* Debugging */
-/* static void */
-/* on_window_destroy (ModestWindow *window, */
-/* ModestWindowMgr *self) */
-/* { */
-/* ModestMainWindow *mw = NULL; */
-/* ModestMainWindowPrivate *priv = NULL; */
-
-/* mw = MODEST_MAIN_WINDOW (window); */
-/* priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self); */
-
-/* g_print ("\tMW: %d\n", ((GObject*)mw)->ref_count); */
-/* g_print ("\tHV: %d\n", ((GObject*)priv->header_view)->ref_count); */
-/* g_print ("\tFV: %d\n", ((GObject*)priv->folder_view)->ref_count); */
-/* } */
-
ModestWindow *
modest_main_window_new (void)
{
action_group = gtk_action_group_new ("ModestMainWindowActions");
gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
- gtk_action_group_set_translate_func (action_group, (GtkTranslateFunc) translate_func, GETTEXT_PACKAGE, g_free);
menu_rules_group = modest_dimming_rules_group_new ("ModestMenuDimmingRules");
toolbar_rules_group = modest_dimming_rules_group_new ("ModestToolbarDimmingRules");
restore_settings (MODEST_MAIN_WINDOW(self), FALSE);
-/* { */
-/* g_signal_connect (self, "destroy", */
-/* G_CALLBACK (on_window_destroy), self); */
-/* } */
-
return MODEST_WINDOW(self);
}
iter = iter->next;
}
- g_slist_free (account_names);
+ modest_account_mgr_free_account_names (account_names);
+ account_names = NULL;
/* Order the list of accounts by its display name */
accounts = g_slist_sort (accounts, (GCompareFunc) compare_display_names);
modest_ui_actions_do_send_receive_all (win);
else
modest_ui_actions_do_send_receive (account_name, win);
+
}
static void
refresh_account ((const gchar*) user_data);
}
-static gchar *
-translate_func (const gchar *msgid,
- const gchar *domain_name)
-{
- return _(msgid);
-}