[brasero] Fix bgo #576506 – Burn dialogue shouldn't be resizable



commit 9e83269b42cec1d649e2044569625ef4c51c1827
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat May 9 14:20:05 2009 +0200

    Fix bgo #576506 â?? Burn dialogue shouldn't be resizable
    Don't let the option or the burn dialogs be maximised by the user.
---
 libbrasero-burn/brasero-burn-dialog.c |    4 ++--
 src/brasero-app.c                     |    5 -----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index f50dda5..7ef6dfa 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -1318,8 +1318,8 @@ brasero_burn_dialog_init (BraseroBurnDialog * obj)
 
 	/* buttons */
 	priv->cancel = gtk_dialog_add_button (GTK_DIALOG (obj),
-						   GTK_STOCK_CANCEL,
-						   GTK_RESPONSE_CANCEL);
+					      GTK_STOCK_CANCEL,
+					      GTK_RESPONSE_CANCEL);
 }
 
 static void
diff --git a/src/brasero-app.c b/src/brasero-app.c
index a496996..a60f7dd 100644
--- a/src/brasero-app.c
+++ b/src/brasero-app.c
@@ -935,16 +935,12 @@ brasero_app_set_toplevel (BraseroApp *app, GtkWindow *window)
 
 	if (!priv->mainwin_running) {
 		if (priv->parent) {
-			gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window), TRUE);
-			gtk_window_set_skip_pager_hint (GTK_WINDOW (window), TRUE);
 			gtk_widget_realize (GTK_WIDGET (window));
-			gtk_window_set_modal (GTK_WINDOW (window), TRUE);
 			gdk_window_set_transient_for (GTK_WIDGET (window)->window, priv->parent);
 		}
 		else {
 			gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window), FALSE);
 			gtk_window_set_skip_pager_hint (GTK_WINDOW (window), FALSE);
-			gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_NORMAL);
 			gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
 		}
 	}
@@ -957,7 +953,6 @@ brasero_app_set_toplevel (BraseroApp *app, GtkWindow *window)
 
 		gtk_window_set_skip_taskbar_hint (GTK_WINDOW (window), FALSE);
 		gtk_window_set_skip_pager_hint (GTK_WINDOW (window), FALSE);
-		gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_NORMAL);
 		gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
 	}
 



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