[file-roller] set the title of the error dialog if the main window is hidden



commit 44764220cc1c45a7627a859d16b2423dd87e8852
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Jun 20 14:12:46 2012 +0200

    set the title of the error dialog if the main window is hidden

 src/fr-window.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 3fc0ba3..dacca3c 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2878,8 +2878,10 @@ fr_window_show_error_dialog (FrWindow   *window,
 
 	close_progress_dialog (window, TRUE);
 
-	if (window->priv->batch_mode)
+	if (window->priv->batch_mode) {
+		gtk_window_set_title (GTK_WINDOW (dialog), window->priv->batch_title);
 		fr_window_destroy_with_error_dialog (window);
+	}
 
 	if (dialog_parent != NULL)
 		gtk_window_set_modal (dialog_parent, FALSE);
@@ -2887,7 +2889,8 @@ fr_window_show_error_dialog (FrWindow   *window,
 			  "response",
 			  G_CALLBACK (error_dialog_response_cb),
 			  window);
-	gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+	if (dialog_parent != NULL)
+		gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 	gtk_widget_show (dialog);
 
 	window->priv->showing_error_dialog = TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]