[brasero] brasero-burn-options: don't disable the Properties button for image files



commit 6d6ff976dca4644b19521fc42638ccc23e5e0742
Author: Joshua Lock <joshua lock intel com>
Date:   Mon Aug 19 18:30:28 2013 +0100

    brasero-burn-options: don't disable the Properties button for image files
    
    Several users have reported problems when trying to make a 1:1 copy of a
    disc to a hard drive when they have a small amount of free space in their
    home directory.
    
    Ensure that the Properties button is never desensitised for fake drives so
    that the user can always choose an alternative location.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=650362

 libbrasero-burn/brasero-burn-options.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-options.c b/libbrasero-burn/brasero-burn-options.c
index 9ae38ab..74fdf26 100644
--- a/libbrasero-burn/brasero-burn-options.c
+++ b/libbrasero-burn/brasero-burn-options.c
@@ -349,6 +349,7 @@ brasero_burn_options_update_valid (BraseroBurnOptions *self)
 {
        BraseroBurnOptionsPrivate *priv;
        BraseroSessionError valid;
+       BraseroDrive *drive;
 
        priv = BRASERO_BURN_OPTIONS_PRIVATE (self);
 
@@ -358,7 +359,13 @@ brasero_burn_options_update_valid (BraseroBurnOptions *self)
        brasero_burn_options_setup_buttons (self);
 
        gtk_widget_set_sensitive (priv->options, priv->is_valid);
-       gtk_widget_set_sensitive (priv->properties, priv->is_valid);
+       /* Ensure the user can always change the properties (i.e. file location)
+        * the target is a fake drive */
+       drive = brasero_burn_session_get_burner (BRASERO_BURN_SESSION (priv->session));
+       if (drive && brasero_drive_is_fake (drive))
+               gtk_widget_set_sensitive (priv->properties, TRUE);
+       else
+               gtk_widget_set_sensitive (priv->properties, priv->is_valid);
 
        if (priv->message_input) {
                gtk_widget_hide (priv->message_input);


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