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 6791 - gtk file dialog deletes filename after selecting other directory
gtk file dialog deletes filename after selecting other directory
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
1.3.x
Other other
: Low enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
: 56261 56962 59380 60166 62256 62910 63687 63733 67083 70432 70656 71876 71972 78820 79572 79606 80090 80304 80445 81486 81901 84249 84310 85311 87151 93732 (view as bug list)
Depends on:
Blocks: 62511
 
 
Reported: 2000-03-02 19:05 UTC by Jos Dehaes
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against gtk+2 (2.02 KB, patch)
2001-11-29 21:34 UTC, Kristian Rietveld
none Details | Review
Patch as applied to HEAD (6.47 KB, patch)
2002-01-17 01:36 UTC, Owen Taylor
none Details | Review
Patch from current Rawhide GTK+-1.2 RPM with backport of HEAD changes (4.94 KB, patch)
2002-04-23 16:11 UTC, Owen Taylor
none Details | Review

Description Jos Dehaes 2001-01-27 19:47:27 UTC
Package: gtk+
Severity: wishlist
Version: 1.2.6

>Synopsis: gtk file dialog deletes filename after selecting other directory
>Class: sw-bug
Distribution: Red Hat Linux release 6.1 (Cartman)
System: Linux 2.2.12-20 i686 unknown
C library: glibc-2.1.2-11
C compiler: egcs-2.91.66
glib: 1.2.6
GTK+: 1.2.6
ORBit: ORBit 0.5.0
gnome-libs: gnome-libs 1.0.55
gnome-core: gnome-core 1.1.5


>Description:
When you type a filename in a GTK (or GNOME?) FileDialog, the name is
gone after you select another directory. This is especially annoying in
Mozilla, when you want to download a file, and want to change the
directory, but not the filename. Also, when you have a file open in, say
gEdit, and want to save it under another name, it would be nice if the
original filename is presented and selected, so you can just start
typing another filename, or browse to another directory to save it there
under the same filename. 

This was also a bug (feature) in Motif, and a pain in Netscape!!

I hope I made my point clear enough.


>How-To-Repeat:
1) start Mozilla, and go to the FTP site of your preference
(ftp.gnome.org?). Click on a file you want to download. A GTK dialog
opens with the correct filename filled in. Click on '..' in the
directory pane to go one directory up. The filename is gone.

or 

2) open a textfile in gEdit. make some changes. Click 'save as' in the
menu. A file selector dialog opens with no name filled in... (having the
original name would be handy - especially if the name would remain if
you select another directory)




------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 14:47 -------
This bug was previously known as bug 6791 at http://bugs.gnome.org/
http://bugs.gnome.org/show_bug.cgi?id=6791
Originally filed under the gtk+ product and general component.

The original reporter (jos.dehaes@bigfoot.com) of this bug does not have an account here.
Reassigning to the exporter, debbugs-export@bugzilla.gnome.org.
Reassigning to the default owner of the component, gtk-bugs@gtk.org.

Comment 1 Havoc Pennington 2001-01-29 19:39:37 UTC
Put all GTK 1.3.x bugs on 2.0.0 milestone
Comment 2 Owen Taylor 2001-07-19 18:50:20 UTC
*** Bug 56962 has been marked as a duplicate of this bug. ***
Comment 3 Owen Taylor 2001-07-19 18:51:15 UTC
Seee comments in 56962 for rational for assigment to 'future'
Comment 4 Owen Taylor 2001-08-22 17:49:08 UTC
*** Bug 59380 has been marked as a duplicate of this bug. ***
Comment 5 Owen Taylor 2001-09-19 15:54:23 UTC
*** Bug 60166 has been marked as a duplicate of this bug. ***
Comment 6 Owen Taylor 2001-09-19 15:55:31 UTC
60166 includes a simple patch that fixes the most obvious 
symptoms. Needs to be looked at more closely, but may
be worth applying for 2.0.
Comment 7 Yanko Kaneti 2001-10-13 11:30:11 UTC
*** Bug 62256 has been marked as a duplicate of this bug. ***
Comment 8 Yanko Kaneti 2001-10-27 16:25:35 UTC
*** Bug 62910 has been marked as a duplicate of this bug. ***
Comment 9 Yanko Kaneti 2001-11-03 19:57:08 UTC
*** Bug 63687 has been marked as a duplicate of this bug. ***
Comment 10 Yanko Kaneti 2001-11-03 20:14:05 UTC
*** Bug 56261 has been marked as a duplicate of this bug. ***
Comment 11 Owen Taylor 2001-11-04 12:44:52 UTC
*** Bug 63733 has been marked as a duplicate of this bug. ***
Comment 12 Kristian Rietveld 2001-11-29 21:34:13 UTC
Created attachment 6114 [details] [review]
patch against gtk+2
Comment 13 Kristian Rietveld 2001-11-29 21:34:59 UTC
Just attached a patch for this bug against gtk+2, ChangeLog:

Thu Nov 29 22:33:46 2001  Kristian Rietveld  <kristian@planet.nl>

        * gtk/gtkfilesel.c: add a OLD_FILENAME_KEY,
        (gtk_file_selection_dir_button): remove data if it exists
        and this isn't a second click, add data if this is the first click
        (gtk_file_selection_populate): if this isn't a population
triggered
        by completion and there's an old filename, set the saved filename 
        as text in the entry
Comment 14 Yanko Kaneti 2001-12-17 05:01:42 UTC
*** Bug 67083 has been marked as a duplicate of this bug. ***
Comment 15 Owen Taylor 2002-01-17 01:34:20 UTC
I think the patch is working a little harder than it needs to
be. The observation I'd make is that there is absolutely
no reason why clicking on the dir list should ever affect
the text in the entry. 

Wed Jan 16 20:28:38 2002  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkfilesel.c: Fix "deleting" filename by adding
	another boolean parameter to file_selection_populate() -
	whether to clear the entry. Also, never fill in the
	entry when the user clicks on something in the 
	directory list. (#6791, Reported by Jos Dehaes and many,
	many, many others.)

Diff attached for ease in backporting for 1.2.11.
Comment 16 Owen Taylor 2002-01-17 01:36:16 UTC
Created attachment 6421 [details] [review]
Patch as applied to HEAD
Comment 17 Yanko Kaneti 2002-02-03 17:16:02 UTC
*** Bug 70432 has been marked as a duplicate of this bug. ***
Comment 18 Yanko Kaneti 2002-02-06 16:33:51 UTC
*** Bug 70656 has been marked as a duplicate of this bug. ***
Comment 19 Yanko Kaneti 2002-02-18 21:14:15 UTC
*** Bug 71876 has been marked as a duplicate of this bug. ***
Comment 20 Yanko Kaneti 2002-02-19 23:08:27 UTC
*** Bug 71972 has been marked as a duplicate of this bug. ***
Comment 21 Yanko Kaneti 2002-04-16 03:13:57 UTC
*** Bug 78820 has been marked as a duplicate of this bug. ***
Comment 22 Yanko Kaneti 2002-04-20 16:39:33 UTC
*** Bug 79319 has been marked as a duplicate of this bug. ***
Comment 23 Yanko Kaneti 2002-04-23 06:32:45 UTC
*** Bug 79572 has been marked as a duplicate of this bug. ***
Comment 24 Yanko Kaneti 2002-04-23 12:27:36 UTC
*** Bug 79606 has been marked as a duplicate of this bug. ***
Comment 25 Owen Taylor 2002-04-23 16:11:57 UTC
Created attachment 7890 [details] [review]
Patch from current Rawhide GTK+-1.2 RPM with backport of HEAD changes
Comment 26 Yanko Kaneti 2002-04-28 10:18:56 UTC
*** Bug 80090 has been marked as a duplicate of this bug. ***
Comment 27 Yanko Kaneti 2002-04-30 06:08:30 UTC
*** Bug 80304 has been marked as a duplicate of this bug. ***
Comment 28 Yanko Kaneti 2002-05-01 07:28:24 UTC
*** Bug 80445 has been marked as a duplicate of this bug. ***
Comment 29 Yanko Kaneti 2002-05-12 07:52:35 UTC
*** Bug 81486 has been marked as a duplicate of this bug. ***
Comment 30 Yanko Kaneti 2002-06-05 17:05:51 UTC
*** Bug 84249 has been marked as a duplicate of this bug. ***
Comment 31 Pawel Salek 2002-06-06 07:39:39 UTC
*** Bug 84310 has been marked as a duplicate of this bug. ***
Comment 32 Yanko Kaneti 2002-06-14 18:55:00 UTC
*** Bug 85311 has been marked as a duplicate of this bug. ***
Comment 33 Yanko Kaneti 2002-07-02 18:52:52 UTC
*** Bug 87151 has been marked as a duplicate of this bug. ***
Comment 34 Yanko Kaneti 2002-09-20 15:02:58 UTC
*** Bug 93732 has been marked as a duplicate of this bug. ***
Comment 35 Owen Taylor 2002-10-06 17:25:29 UTC
*** Bug 81901 has been marked as a duplicate of this bug. ***
Comment 36 Federico Mena Quintero 2004-01-06 21:03:01 UTC
Should we leave this open just for the 1.2.11 milestone?  Is anyone
ever going to make such a release, or can we just mark it with the
"GNOME 1.x" resolution?
Comment 37 Federico Mena Quintero 2004-02-10 20:08:51 UTC
Setting the priority to "Low" for all bugs related to GtkFileSelection.  This
has been deprecated in favor of GtkFileChooser.
Comment 38 alexander.winston 2004-02-16 15:50:00 UTC
So, now that GtkFileSelection is going away, this can be resolved,
correct?
Comment 39 Owen Taylor 2004-02-24 00:53:02 UTC
No 1.2.11 is planned, so closing all 1.2.11 specific bugs.
Comment 40 alexander.winston 2004-02-24 01:41:48 UTC
Owen, did you mean to close this bug?
Comment 41 Owen Taylor 2004-02-24 14:08:16 UTC
*Really* close all 1.2.11 bugs, instead of just adding a comment...