brasero r2199 - in branches/gnome-2-26: . src



Author: philippr
Date: Wed Apr  1 18:39:48 2009
New Revision: 2199
URL: http://svn.gnome.org/viewvc/brasero?rev=2199&view=rev

Log:
2009-04-01  Philippe Rouquier  <bonfire-app wanadoo fr>

	Fix 573859 â Several 'Make Cover' buttons in Disc Copy dialog
	Patch by Alexey Putilov

	* src/brasero-burn-dialog.c



Modified:
   branches/gnome-2-26/ChangeLog
   branches/gnome-2-26/src/brasero-burn-dialog.c

Modified: branches/gnome-2-26/src/brasero-burn-dialog.c
==============================================================================
--- branches/gnome-2-26/src/brasero-burn-dialog.c	(original)
+++ branches/gnome-2-26/src/brasero-burn-dialog.c	Wed Apr  1 18:39:48 2009
@@ -1788,6 +1788,7 @@
 	BraseroDrive *drive;
 	gchar *primary = NULL;
 	GtkWidget *make_another = NULL;
+	GtkWidget *create_cover = NULL;
 
 	drive = brasero_burn_session_get_burner (dialog->priv->session);
 	if (dialog->priv->input.type != BRASERO_TRACK_TYPE_DISC)
@@ -1866,7 +1867,7 @@
 	|| (dialog->priv->input.type == BRASERO_TRACK_TYPE_DISC
 	&& (dialog->priv->input.subtype.media & BRASERO_MEDIUM_HAS_AUDIO))) {
 		/* since we succeed offer the possibility to create cover if that's an audio disc */
-		gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Create Cover"), GTK_RESPONSE_CLOSE);
+		create_cover = gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Create Cover"), GTK_RESPONSE_CLOSE);
 	}
 
 	res = brasero_burn_dialog_success_run (dialog);
@@ -1874,6 +1875,9 @@
 	if (make_another)
 		gtk_widget_destroy (make_another);
 
+	if (create_cover)
+		gtk_widget_destroy (create_cover);
+
 	return res;
 }
 



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