[brasero] Fix uninitialized variable



commit abad2f32f75bb7d212d234a8d832f7be8a7b27c0
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Oct 26 13:18:39 2009 +0100

    Fix uninitialized variable

 libbrasero-burn/brasero-medium-properties.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/brasero-medium-properties.c b/libbrasero-burn/brasero-medium-properties.c
index c6d5760..4ead6dc 100644
--- a/libbrasero-burn/brasero-medium-properties.c
+++ b/libbrasero-burn/brasero-medium-properties.c
@@ -92,6 +92,7 @@ brasero_medium_properties_drive_properties (BraseroMediumProperties *self)
 	header = g_strdup_printf (_("Properties of %s"), display_name);
 	g_free (display_name);
 
+	toplevel = gtk_widget_get_toplevel (GTK_WIDGET (self));
 	dialog = gtk_dialog_new_with_buttons (header,
 					      GTK_WINDOW (toplevel),
 					      GTK_DIALOG_MODAL|
@@ -101,7 +102,6 @@ brasero_medium_properties_drive_properties (BraseroMediumProperties *self)
 					      NULL);
 	g_free (header);
 
-	toplevel = gtk_widget_get_toplevel (GTK_WIDGET (self));
 	gtk_window_set_icon_name (GTK_WINDOW (dialog),
 	                          gtk_window_get_icon_name (GTK_WINDOW (toplevel)));
 



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