[gnome-disk-utility/udisks2-port] For the Create Disk Image dialog, don't select the .img extension



commit bcf42bf7b007d1155cf143398acb51c74e0224de
Author: David Zeuthen <davidz redhat com>
Date:   Thu Dec 1 12:51:16 2011 -0500

    For the Create Disk Image dialog, don't select the .img extension
    
    ... just like the screenshot dialog.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/palimpsest/gducreatediskimagedialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gducreatediskimagedialog.c b/src/palimpsest/gducreatediskimagedialog.c
index d8491e9..b1d5cf4 100644
--- a/src/palimpsest/gducreatediskimagedialog.c
+++ b/src/palimpsest/gducreatediskimagedialog.c
@@ -465,6 +465,9 @@ gdu_create_disk_image_dialog_show (GduWindow    *window,
   gtk_window_set_transient_for (GTK_WINDOW (data->dialog), GTK_WINDOW (window));
   gtk_dialog_set_default_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_OK);
   gtk_widget_show_all (data->dialog);
+  /* Only select the precomputed filename, not the .img extension */
+  gtk_editable_select_region (GTK_EDITABLE (data->destination_name_entry), 0,
+                              strlen (gtk_entry_get_text (GTK_ENTRY (data->destination_name_entry))) - 4);
 
  again:
   response = gtk_dialog_run (GTK_DIALOG (data->dialog));



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