* Fixes NB#88016, set details dialog as modal. Backported from trunk
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 30 Sep 2008 09:14:39 +0000 (09:14 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 30 Sep 2008 09:14:39 +0000 (09:14 +0000)
  r5434.

pmo-diablo-r5811

src/maemo/modest-msg-edit-window.c
src/modest-ui-actions.c

index ff09fdd..65378db 100644 (file)
@@ -2877,6 +2877,8 @@ modest_msg_edit_window_select_font (ModestMsgEditWindow *window)
                      "family-set", !oldfmt.cs.font,
                      NULL);
 
+       modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), 
+                                    GTK_WINDOW (dialog));
        gtk_widget_show_all (dialog);
        priv->font_dialog = dialog;
        response = gtk_dialog_run (GTK_DIALOG (dialog));
index 7a37903..37f7fb9 100644 (file)
@@ -4221,7 +4221,7 @@ headers_action_show_details (TnyHeader *header,
        dialog = modest_details_dialog_new_with_header (GTK_WINDOW (window), header);
 
        /* Run dialog */
-       gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+       modest_window_mgr_set_modal (modest_runtime_get_window_mgr (), GTK_WINDOW (dialog));
        gtk_widget_show_all (dialog);
        gtk_dialog_run (GTK_DIALOG (dialog));