After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 63733 - Filename should be remembered when switching directory
Filename should be remembered when switching directory
Status: RESOLVED DUPLICATE of bug 6791
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
1.2.x
Other other
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-11-04 12:41 UTC by Miroslav Bajtoš
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Miroslav Bajtoš 2001-11-04 12:41:10 UTC
Consider following situation:

You are browsing some ftp archive with galleon and found file you wanna
download. The 'Save File' dialog appears with suggested filename in input
line, but unfortunatelly you are in wrong directory. So browse for a while 
in 'Directory' list, but what happens: as you click on dir (e.g. '..') once,
it replaces suggestet filename for download. After clicking second time it
changes dir, but inputline remains clear.

Work-around: use cut-n-paste

Possible fix: remember state of inputline before changing directory ?

sth like

directory_list_clicked ()
{
  if (! old_file_name)
    old_file_name = gtk_editable_get_chars (inputline, 0, -1);
 
  { ... }
}

change_directory () 
{
  { ... }

  pos = 0;
  if (old_file_name)    gtk_editable_insert_text(inputline, old_file_name,
      strlen(old_file_name), &pos) 
  old_file_name = NULL;
}  

on_inline_changed()
{
  {...}
  old_file_name = NULL;
}
Comment 1 Owen Taylor 2001-11-04 12:44:53 UTC

*** This bug has been marked as a duplicate of 6791 ***