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

gEDA-cvs: pcb.git: branch: master updated (30609837d75111c2003a4f07fad88df09e666b00)



The branch, master has been updated
       via  30609837d75111c2003a4f07fad88df09e666b00 (commit)
      from  6eba3ba08e503112e403626d84217b4704eeed46 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/gui-dialog.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit 30609837d75111c2003a4f07fad88df09e666b00
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    hid/gtk: Select adequate folder in file-save-dialog
    
    Since now, the 'Save layout as' - dialog gives full path and filename in
    name-line, but did not switches to given path in folder-list (lower part of
    the dialog). For me, this is uncomfortable, e.g. if I just want to switch to
    another near-by - folder.
    
    This solution was suggested by Krzysztof KoÅ?ciuszkiewicz. Thank you!
    
    Closes-lp: 699491
    Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

:100644 100644 bb934bd... b622439... M	src/hid/gtk/gui-dialog.c

=========
 Changes
=========

commit 30609837d75111c2003a4f07fad88df09e666b00
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    hid/gtk: Select adequate folder in file-save-dialog
    
    Since now, the 'Save layout as' - dialog gives full path and filename in
    name-line, but did not switches to given path in folder-list (lower part of
    the dialog). For me, this is uncomfortable, e.g. if I just want to switch to
    another near-by - folder.
    
    This solution was suggested by Krzysztof KoÅ?ciuszkiewicz. Thank you!
    
    Closes-lp: 699491
    Reviewed-by: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

diff --git a/src/hid/gtk/gui-dialog.c b/src/hid/gtk/gui-dialog.c
index bb934bd..b622439 100644
--- a/src/hid/gtk/gui-dialog.c
+++ b/src/hid/gtk/gui-dialog.c
@@ -381,7 +381,12 @@ ghid_dialog_file_select_save (gchar * title, gchar ** path, gchar * file,
     gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), *path);
 
   if (file && *file)
-    gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), file);
+    {
+      gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog),
+                                         g_path_get_basename(file));
+      gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog),
+                                           g_path_get_dirname (file));
+    }
 
   if (shortcuts && *shortcuts)
     {



_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs