diff options
| author | infirit <[email protected]> | 2014-11-20 17:17:27 +0100 | 
|---|---|---|
| committer | infirit <[email protected]> | 2014-11-20 19:40:56 +0100 | 
| commit | f121d2e1058ffbdbb602a3322a129c1e4ed5f7c4 (patch) | |
| tree | 3f57521e66a9ffb4a2773c8b387c1152b0e9396e /src | |
| parent | 745da983ede2fd45c95f3fb48984083c0ae6b9d1 (diff) | |
| download | engrampa-f121d2e1058ffbdbb602a3322a129c1e4ed5f7c4.tar.bz2 engrampa-f121d2e1058ffbdbb602a3322a129c1e4ed5f7c4.tar.xz | |
make the progresss dialog modal when not in batch mode
Based on FR commit: 35ad1e2f8b9e2f8609fd663dd3138d482930d116
From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/fr-window.c | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/src/fr-window.c b/src/fr-window.c index a0fcae2..0ff7f25 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -2451,6 +2451,7 @@ static void  create_the_progress_dialog (FrWindow *window)  {  	GtkWindow     *parent; +	GtkDialogFlags flags;  	GtkDialog     *d;  	GtkWidget     *vbox;  	GtkWidget     *align; @@ -2463,16 +2464,20 @@ create_the_progress_dialog (FrWindow *window)  	if (window->priv->progress_dialog != NULL)  		return; -	if (window->priv->batch_mode) +	flags = GTK_DIALOG_DESTROY_WITH_PARENT; +	if (window->priv->batch_mode) {  		parent = NULL; -	else +	} +	else {  		parent = GTK_WINDOW (window); +		flags |= GTK_DIALOG_MODAL; +	}  	window->priv->pd_last_action = window->priv->action;  	title = get_message_from_action (window->priv->pd_last_action);  	window->priv->progress_dialog = gtk_dialog_new_with_buttons (title,  								     parent, -								     GTK_DIALOG_DESTROY_WITH_PARENT, +								     flags,  								     NULL);  	window->priv->pd_quit_button = gtk_dialog_add_button (GTK_DIALOG (window->priv->progress_dialog), GTK_STOCK_QUIT, DIALOG_RESPONSE_QUIT); | 
