* Fix some detected memory leaks
[modest] / src / gnome / modest-msg-edit-window.c
index 4d773f8..7a7a6ed 100644 (file)
@@ -153,7 +153,7 @@ get_transports (void)
        GSList *cursor, *accounts;
        
        account_mgr = modest_runtime_get_account_mgr();
-       cursor = accounts = modest_account_mgr_account_names (account_mgr);
+       cursor = accounts = modest_account_mgr_account_names (account_mgr, TRUE);
        while (cursor) {
                gchar *account_name = (gchar*)cursor->data;
                gchar *from_string  = modest_account_mgr_get_from_string (account_mgr,
@@ -475,6 +475,23 @@ modest_msg_edit_window_select_color (ModestMsgEditWindow *window)
 }
 
 void
+modest_msg_edit_window_select_file_format (ModestMsgEditWindow *window,
+                                          gint file_format)
+{
+       g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window));
+
+       g_message ("Select file format operation is not supported");
+}
+
+void
+modest_msg_edit_window_select_font (ModestMsgEditWindow *window)
+{
+       g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window));
+
+       g_message ("Select font operation is not supported");
+}
+
+void
 modest_msg_edit_window_select_background_color (ModestMsgEditWindow *window)
 {
        g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window));
@@ -506,69 +523,52 @@ modest_msg_edit_window_show_bcc (ModestMsgEditWindow *window,
 
        g_message ("not implemented yet %s", __FUNCTION__);
 }
-
-static void
-modest_msg_edit_window_set_zoom (ModestWindow *window,
-                                gdouble zoom)
+void
+modest_msg_edit_window_undo (ModestMsgEditWindow *window)
 {
        g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
-
+      
+       g_message ("not implemented yet %s", __FUNCTION__);
 }
-
-static gdouble
-modest_msg_edit_window_get_zoom (ModestWindow *window)
+void
+modest_msg_edit_window_toggle_fullscreen (ModestMsgEditWindow *window)
 {
-       g_return_val_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window), 1.0);
-
-       return 1.0;
+       g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
+      
+       g_message ("not implemented yet %s", __FUNCTION__);
 }
-
-static void
-modest_msg_edit_window_zoom_plus (GtkAction *action, ModestWindow *window)
+void
+modest_msg_edit_window_set_priority_flags (ModestMsgEditWindow *window,
+                                          TnyHeaderFlags priority_flags)
 {
-       ModestWindowPrivate *parent_priv;
-       GtkRadioAction *zoom_radio_action;
-       GSList *group, *node;
+       g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
+      
+       g_message ("not implemented yet %s", __FUNCTION__);
+}
 
-       parent_priv = MODEST_WINDOW_GET_PRIVATE (window);
-       zoom_radio_action = GTK_RADIO_ACTION (gtk_ui_manager_get_action (parent_priv->ui_manager, 
-                                                                        "/MenuBar/ViewMenu/ZoomMenu/Zoom50Menu"));
 
-       group = gtk_radio_action_get_group (zoom_radio_action);
+void
+modest_msg_edit_window_select_contacts (ModestMsgEditWindow *window)
+{
+       g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
 
-       if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (group->data))) {
-               hildon_banner_show_information (NULL, NULL, _("mcen_ib_max_zoom_level"));
-               return;
-       }
+       g_message ("not implemented yet %s", __FUNCTION__);
+}
 
-       for (node = group; node != NULL; node = g_slist_next (node)) {
-               if ((node->next != NULL) && gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (node->next->data))) {
-                       gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (node->data), TRUE);
-                       return;
-               }
-       }
+gboolean
+modest_msg_edit_window_check_names (ModestMsgEditWindow *window)
+{
+       g_return_val_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window), FALSE);
+
+       g_message ("not implemented yet %s", __FUNCTION__);
+       return TRUE;
 }
 
-static void
-modest_msg_edit_window_zoom_minus (GtkAction *action, ModestWindow *window)
+void
+modest_msg_edit_window_set_file_format (ModestMsgEditWindow *window,
+                                       gint file_format)
 {
-       ModestWindowPrivate *parent_priv;
-       GtkRadioAction *zoom_radio_action;
-       GSList *group, *node;
-
-       parent_priv = MODEST_WINDOW_GET_PRIVATE (window);
-       zoom_radio_action = GTK_RADIO_ACTION (gtk_ui_manager_get_action (parent_priv->ui_manager, 
-                                                                        "/MenuBar/ViewMenu/ZoomMenu/Zoom50Menu"));
-
-       group = gtk_radio_action_get_group (zoom_radio_action);
-
-       for (node = group; node != NULL; node = g_slist_next (node)) {
-               if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (node->data))) {
-                       if (node->next != NULL)
-                               gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (node->next->data), TRUE);
-                       else
-                               hildon_banner_show_information (NULL, NULL, _("mcen_ib_min_zoom_level"));
-                       break;
-               }
-       }
+       g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window));
+
+       g_message ("not implemented yet %s", __FUNCTION__);
 }