* Fixes NB#88016, set details dialog as modal
authorSergio Villar Senin <svillar@igalia.com>
Tue, 2 Sep 2008 15:57:20 +0000 (15:57 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Tue, 2 Sep 2008 15:57:20 +0000 (15:57 +0000)
pmo-trunk-r5434

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

index 18525af..511eb0c 100644 (file)
@@ -2889,6 +2889,8 @@ modest_msg_edit_window_select_font (ModestMsgEditWindow *window)
                      "family-set", !oldfmt.cs.font,
                      NULL);
 
                      "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));
        gtk_widget_show_all (dialog);
        priv->font_dialog = dialog;
        response = gtk_dialog_run (GTK_DIALOG (dialog));
index 7b56161..2dca9de 100644 (file)
@@ -4228,7 +4228,7 @@ headers_action_show_details (TnyHeader *header,
        dialog = modest_details_dialog_new_with_header (GTK_WINDOW (window), header);
 
        /* Run dialog */
        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));
 
        gtk_widget_show_all (dialog);
        gtk_dialog_run (GTK_DIALOG (dialog));