Skip to content
  • Federico Mena Quintero's avatar
    Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the location · 3f498adf
    Federico Mena Quintero authored
    2006-07-18  Federico Mena Quintero  <federico@novell.com>
    
    	Fix https://bugzilla.novell.com/show_bug.cgi?id=184875 - make the
    	location entry in Save mode preserve the stuff from
    	set_filename(); it was overwriting it with $cwd.
    
    	This is the same fix for
    	http://bugzilla.gnome.org/show_bug.cgi?id=347066
    
    	* tests/autotestfilechooser.c: (test_black_box): Added black-box
    	test for set_filename() and set_current_name().
    
    	* gtk/gtkfilechooser.c (gtk_file_chooser_get_type): Cast to
    	GClassInitFunc in the call to g_type_register_static_simple(), to
    	avoid a compiler warning.
    
    	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
    	Added a browse_files_last_selected_name field.  We'll copy the
    	logic from gtkfilesel.c to see when to clear the location entry.
    	(struct _GtkFileChooserDefault): Removed the
    	processing_pending_selections field.
    
    	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_finalize):
    	Free impl->browse_...
    3f498adf