1. 27 Feb, 2012 1 commit
  2. 05 Sep, 2011 1 commit
  3. 23 Aug, 2011 1 commit
  4. 27 Jul, 2011 1 commit
  5. 02 Jul, 2011 7 commits
  6. 07 Jun, 2011 1 commit
  7. 16 Nov, 2010 1 commit
  8. 13 Oct, 2010 1 commit
  9. 10 Aug, 2010 1 commit
    • Federico Mena Quintero's avatar
      bgo#625416 - Don't reload the filechooser's folder during a re-map event · 3a1ba3bd
      Federico Mena Quintero authored
      Long ago, before we had file monitoring at the GIO/Glib level, we would
      reload the current folder each time a file chooser gets (re)mapped.
      This was basically to let the GIMP recycle the same file chooser for all
      file/open or file/save operations, instead of creating a new one every time.
      In that case, we reloaded the folder with each ::map() event so that the
      file chooser would present an up-to-date view of the folder that was being
      displayed.  Now, the folder should always be up-to-date as we do
      file monitoring all the time.
      Signed-off-by: 's avatarFederico Mena Quintero <federico@novell.com>
      3a1ba3bd
  10. 15 Oct, 2009 5 commits
  11. 30 Jul, 2009 1 commit
  12. 19 Jun, 2009 1 commit
    • Federico Mena Quintero's avatar
      bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing · 3d527afa
      Federico Mena Quintero authored
      The virtual method list_shortcut_folders returns a GSList * of GFile *.
      In turn, gtk_file_chooser_list_shortcut_folders() converts those to strings.
      
      However, the delegate in gtkfilechooserutils.c was calling
      gtk_file_chooser_list_shortcut_folders() every time, so we were trying
      to convert invalid data.
      
      Now we have an internal function that deals with GFile *.  That
      function is called by the delegate, and the conversion is done only
      once by the API entry points.
      Signed-off-by: 's avatarFederico Mena Quintero <federico@novell.com>
      3d527afa
  13. 12 Jun, 2009 1 commit
  14. 11 Jun, 2009 1 commit
  15. 18 Sep, 2008 1 commit
    • Emmanuele Bassi's avatar
      Bug 325095 – show a 'size' column · 555ef89d
      Emmanuele Bassi authored
      2008-09-18  Emmanuele Bassi  <ebassi@linux.intel.com>
      
      	Bug 325095 – show a 'size' column
      
      	* gtk/gtkfilechooserdefault.c:
      	* gtk/gtkfilechooserprivate.h: Add a context menu item controlling
      	the visibility of the file size column. This works only for the
      	browse mode, and the column is not visible by default.
      
      	* gtk/gtkfilechoosersettings.[ch]: Add a ShowSizeColumn key to the
      	settings file.
      
      svn path=/trunk/; revision=21431
      555ef89d
  16. 20 Aug, 2008 1 commit
  17. 01 Jul, 2008 1 commit
  18. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  19. 16 Jun, 2008 1 commit
  20. 10 Jun, 2008 1 commit
    • Carlos Garnacho's avatar
      Bug 520874 - Should use gio directly. · 640d6877
      Carlos Garnacho authored
      2008-06-10  Carlos Garnacho  <carlos@imendio.com>
      
              Bug 520874 - Should use gio directly.
      
              * gtk/gtkfilesystem.[ch]: Turn into a private object, which mostly
              provides helper functions for asynchronous calls, folder abstraction
              and uniform handling of volumes/drives/mounts.
      
              * gtk/gtkfilesystemwin32.[ch]:
              * gtk/gtkfilesystemunix.[ch]: Removed, these are no longer required.
      
              * gtk/gtkfilechooser.c:
              * gtk/gtkfilechooserbutton.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkfilechooserentry.[ch]:
              * gtk/gtkfilechooserprivate.h:
              * gtk/gtkfilechooserutils.c:
              * gtk/gtkfilesystemmodel.[ch]:
              * gtk/gtkpathbar.[ch]: Use GIO internally. Adapt to GtkFileSystem API.
              Do not load filesystem implementation modules.
      
              * gtk/Makefile.am:
              * gtk/gtk.symbols: the gtkfilesystem.h private header isn't installed
              anymore, nor the unix/win32 implementations.
      
              * README.in: Add blurb about these changes.
      
      svn path=/trunk/; revision=20342
      640d6877
  21. 18 May, 2007 1 commit
    • Carlos Garnacho's avatar
      Refactor GtkFileChooserDialog sizing. · 7bb7cfb2
      Carlos Garnacho authored
      2007-05-18  Carlos Garnacho  <carlos@imendio.com>
      
              Refactor GtkFileChooserDialog sizing.
      
              * gtkfilechooserembed.[ch] (delegate_get_resizable_hints)
              (_gtk_file_chooser_embed_get_resizable_hints):
              s/resizable_hints/resizable/, return just one boolean value to
              determine whether the filechooser should be resizable or not.
      
              * gtkfilechooserprivate.h (struct GtkFileChooserDialogPrivate): remove
              variables related to the GtkFileChooserEmbed get_default_size() and
              get_resizable() implementations.
              (struct GtkFileChooserDefault): Move default size management here.
      
              * gtkfilechooserdefault.c (gtk_file_chooser_default_size_allocate):
              Added, store currently allocated size to calculate default size later.
              (gtk_file_chooser_default_get_resizable_hints):
              s/resizable_hints/resizable/.
              (gtk_file_chooser_default_set_property): Reload settings if the file
              chooser action changes, this way the save expander state will be known
              before mapping the window, avoiding wrong window positioning and
              flickering. (#424299, #424309)
              (find_good_size_from_style): Only get size from style if it wasn't set
              previously.
              (gtk_file_chooser_default_get_default_size): return default size based
              on stored default size and preview/extra widget sizes.
      
              * gtkfilechooserdialog.c (file_chooser_widget_update_hints)
              (file_chooser_widget_realized_size_changed)
              (file_chooser_widget_unrealized_size_changed): simplified to
              (file_chooser_widget_size_changed): set window size and resizability
              based on the GtkFileChooserEmbed interface implementation. (Bug
              #420285, Tomeu Vizoso)
              (gtk_file_chooser_dialog_map): force a dialog size change, so it's
              clamped for sure to the 75% of the screen size.
      
      
      svn path=/trunk/; revision=17859
      7bb7cfb2
  22. 11 May, 2007 3 commits
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · dfff0c0a
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Follow the sorting order of
      	the GtkTreeView displaying the files list.
      
      	(shortcuts_get_index), (shortcuts_insert_separator),
      	(shortcuts_model_create), (shortcuts_combo_filter_func): Remove
      	the separator between the Search and the Recently Used shortcuts.
      
      	(list_select_func), (list_icon_data_func), (list_name_data_func),
      	(list_mtime_data_func): Update the sensitivity of the row
      	depending on the GtkFileChooserAction used.
      
      svn path=/trunk/; revision=17828
      dfff0c0a
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 9f2d1953
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Update the contents of the
      	files list when changing the filter of the GtkFileChooserDefault
      	widget.
      
      svn path=/trunk/; revision=17827
      9f2d1953
    • Emmanuele Bassi's avatar
      GtkFileChooser search fixes and recent files support. (#435342) · 4078ef56
      Emmanuele Bassi authored
      2007-05-11  Emmanuele Bassi  <ebassi@gnome.org>
      
      	GtkFileChooser search fixes and recent files support.  (#435342)
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Add support for showing the
      	recently used files list as a special shortcut item.
      
      svn path=/trunk/; revision=17824
      4078ef56
  23. 02 May, 2007 1 commit
    • Emmanuele Bassi's avatar
      Add search file support in the GtkFileChooser. Original patch by Federico · d3aeccf7
      Emmanuele Bassi authored
      2007-05-02  Emmanuele Bassi  <ebassi@gnome.org>
      
      	Add search file support in the GtkFileChooser. Original patch
      	by Federico Mena Quintero; patch updated by Matthias Clasen.
      	See bug #344785.
      
      	* gtk/gtksearchengine.[ch]: Private search engine abstraction
      	object.
      
      	* gtk/gtksearchenginebeagle.[ch]: Private search engine
      	implementation using libbeagle (via g_module_open()).
      
      	* gtk/gtksearchenginesimple.[ch]: Private search engine
      	implementation using file tree walking.
      
      	* gtk/gtksearchenginetracker.[ch]: Private earch engine
      	implementation using libtracker (via g_module_open()).
      
      	* gtk/gtkquery.[ch]: Private query object for the search
      	engines.
      
      	* gtk/gtkfilechooserprivate.h:
      	* gtk/gtkfilechooserdefault.c: Use the GtkSearchEngine to
      	query a search engine backend using GtkQuery; create a new
      	operating mode, OPERATION_MODE_SEARCH, and call the common
      	operating mode OPERATION_MODE_BROWSE; add support for virtual
      	shortcuts inside the shortcuts model and create a new "Search"
      	virtual shortcut.
      
      	* gtk/Makefile.am: Update the build with the new files
      
      svn path=/trunk/; revision=17783
      d3aeccf7
  24. 08 Jan, 2007 1 commit
    • Peter Teichman's avatar
      Save the expanded state of the folder browser with the file chooser · 0177b219
      Peter Teichman authored
      * gtk/gtkfilechooserdefault.c:
      * gtk/gtkfilechooserprivate.h:
      * gtk/gtkfilechoosersettings.c:
      * gtk/gtkfilechoosersettings.h:
      Save the expanded state of the folder browser with the file
      chooser settings.  Resolves the expander portions of (#153828,
      Lemmit Kaplinski)
      
      svn path=/trunk/; revision=17121
      0177b219
  25. 03 Sep, 2006 1 commit
    • Kristian Rietveld's avatar
      change file_exists_and_is_not_folder checks to get the file info for the · 023cb79c
      Kristian Rietveld authored
      2006-09-03  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtkfilechooserdefault.c (save_entry_get_info_cb),
      	(file_exists_get_info_cb), (gtk_file_chooser_default_should_respond):
      	change file_exists_and_is_not_folder checks to get the file info
      	for the path directly instead of querying the current file folder
      	of the save entry.
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault): add
      	new field.
      
      	* tests/autotestfilechooser.c (wait_for_idle_idle), (wait_for_idle),
      	(test_reload_sequence), (test_button_folder_states_for_action): wait
      	for idle after setting a folder to ensure the async operations to load
      	the folder are finished,
      	(test_confirm_overwrite), (test_confirm_overwrite_for_path):
      	factor out test_confirm_overwrite code so we can add tests for more
      	paths more easily.
      023cb79c
  26. 18 Jul, 2006 1 commit
    • 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_files_last_selected_name.
      	(pending_select_paths_process): Don't use
      	impl->processing_pending_selections.
      	(update_chooser_entry): Keep track of the name that was last
      	selected in the file list.  We use this to know when to clear the
      	location entry.  The logic is similar to that of
      	gtkfilesel.c:gtk_file_selection_file_changed().  This also lets us
      	get rid of the processing_pending_selections flag.
      	(update_chooser_entry): Clear the entry if we didn't have a
      	selection before.
      	(location_switch_to_filename_entry): Do not set $cwd as the
      	contents of the location entry here...
      	(location_popup_handler): ... but do it here instead, only as the
      	result of the user asking to turn on the location entry.
      	(gtk_file_chooser_default_get_paths): If the location entry is
      	empty, do the fallback of seeing if it is sensible to say that
      	$cwd is the selected path.
      	(gtk_file_chooser_default_update_current_folder): Don't set the
      	text of the location entry; this is no longer needed with the
      	fixes above.
      	(shortcuts_activate_iter): Clear the location entry when
      	activating a shortcut if we are not in SAVE mode.  This keeps the
      	contents of the location entry consistent even when switching
      	folders via the shortcuts.
      3f498adf
  27. 03 May, 2006 1 commit
    • Federico Mena Quintero's avatar
      Merged the federico-filename-entry branch, to fix bug #136541. Combined · d955928b
      Federico Mena Quintero authored
      2006-05-03  Federico Mena Quintero  <federico@novell.com>
      
      	Merged the federico-filename-entry branch, to fix bug #136541.
      	Combined ChangeLogs:
      
      	2006-04-17  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechooserdefault.c (pending_select_paths_process):
      	Oops, we *do* need to check that we are in OPEN mode before
      	selecting the first row in the file list.  See
      	https://bugzilla.novell.com/show_bug.cgi?id=166906
      	(gtk_file_chooser_default_get_paths): If we are in the case for
      	the file list, and the list has no selected rows, jump to the case
      	for the filename entry.  This is so that
      
      	       1. The user types a filename in the SAVE filename entry
      	          ("foo.txt").
      
      	       2. He then double-clicks on a folder ("bar") in the file
      		  list.
      
      	will yield the expected "bar/foo.txt" selection.
      
      	2006-03-29  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkpathbar.c (gtk_path_bar_init): Reduce the inter-button
      	spacing to 0.
      
      	* gtk/gtkfilechooserdefault.c (browse_widgets_create): Make the
      	location label bold.
      
      	2006-03-29  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechooserdefault.c (location_mode_set): Just change the
      	location_mode field if we are in SAVE/CREATE_FOLDER modes.
      	(gtk_file_chooser_default_get_paths): Get the path based on the
      	currently focused widget, or the last-focused widget.  This is
      	what we should have been doing in the beginning, but it worked out
      	fine because we didn't have the possibility of a filename entry in
      	OPEN mode.
      	(gtk_file_chooser_default_should_respond): Handle the case where
      	the last focused widget is the location_entry.
      
      	2006-03-28  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechoosersettings.[ch]: New files with a simple
      	framework for saving/loading settings from the file chooser in
      	$XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.
      
      	* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_unmap):
      	Save the current settings.
      	(settings_save): New helper function.  We save the location_mode
      	and show_hidden flags.
      	(gtk_file_chooser_default_map): Load the settings.
      	(settings_load): New helper function.
      
      	* gtk/gtkfilechooserentry.c
      	(_gtk_file_chooser_entry_set_file_part): Oops, don't modify
      	in_change.  Our handlers are what set the file_part, so they
      	*must* be run when we modify the text.
      
      	2006-03-27  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
      	Removed the save_file_name_entry.  We'll make this be the same as
      	the location_entry widget.
      	(struct _GtkFileChooserDefault): Leave only location_button,
      	location_entry_box, location_label, location_entry.  We'll use a
      	single toggle button for the location entry, which will appear
      	below the path bar.
      	(struct _GtkFileChooserDefault): Added a
      	processing_pending_selections flag.
      
      	* gtk/gtkfilechooserdefault.c (save_widgets_create): Destroy the
      	old location_entry if necessary, and hide the location toggle
      	widgets.
      	(update_chooser_entry): In multiple selection mode, just clear the
      	location_entry.
      	(check_save_entry): Allow running in OPEN or SELECT_FOLDER modes
      	if we are in LOCATION_MODE_FILENAME_ENTRY.
      	(gtk_file_chooser_default_should_respond): Switch to a folder if
      	the location_entry contains a folder name in OPEN and SAVE mode,
      	not just SAVE mode.  If the entry doesn't contain a folder name,
      	but is otherwise well-formed, and we are in OPEN mode, return that
      	we should respond with that filename.
      	(gtk_file_chooser_default_initial_focus): Focus the location_entry
      	if appropriate.
      	(browse_widgets_create): Create the location_entry_box and the
      	location_label here.
      	(update_appearance): Call location_mode_set() when switching back
      	to OPEN/SELECT_FOLDER mode.  Hide the location_button when
      	switching to SAVE/CREATE_FOLDER mode.
      	(pending_select_paths_process): Turn the
      	processing_pending_selections flag on and off around changes to
      	the current selection.  Don't special-case OPEN mode anymore,
      	since the new flag will take care of things in
      	update_chooser_entry().
      	(update_chooser_entry): Don't do anything if
      	processing_pending_selections is TRUE.  This keeps the entry from
      	being polluted when changing folders.
      	(location_popup_handler): In OPEN/SELECT_FOLDER modes, toggle
      	between the path bar and the entry.  In SAVE/CREATE_FOLDER modes, simply focus the
      	location_entry.
      	(update_from_entry): Removed.
      	(location_entry_create): Removed.
      	(open_location_cb): Removed.
      	(file_list_build_popup_menu): Don't add an "Open _Location" menu item.
      	(location_entry_set_initial_text): Don't do anything if
      	current_folder is NULL.
      
      	* gtk/gtkfilechooserentry.c
      	(_gtk_file_chooser_entry_set_file_part): Turn in_change on and off
      	around the call to gtk_entry_set_text().  This makes completion
      	not happen when the caller has explicitly set a name.
      
      	2006-03-24  Federico Mena Quintero  <federico@novell.com>
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserDefault):
      	Added fields location_mode_box, location_pathbar_radio,
      	location_filename_radio, location_widget_box, location_label,
      	location_entry.  The radio buttons will switch between the pathbar
      	and the location entry; the other boxes are for layout purposes.
      	(enum LocationMode): New enum.
      	(struct _GtkFileChooserDefault): Added a location_mode field.
      
      	* gtk/gtkfilechooserdefault.c (browse_widgets_create): Create the
      	location radio buttons to switch between the pathbar and the
      	location entry.  Pack the browse_path_bar in the new
      	location_widget_box instead of a generic hbox.
      	(location_buttons_create): New function.
      	(gtk_file_chooser_default_init): Initialize impl->location_mode.
      	(location_switch_to_path_bar): New function.
      	(location_switch_to_filename_entry): New function.
      
      	* gtk/gtkfilechooserbutton.c (model_add_special): The display_name
      	should not be const.
      d955928b
  28. 01 May, 2006 1 commit
    • Kristian Rietveld's avatar
      Merge of the GTK+ asynchronous file chooser branch. Please see the · 2c97a8f6
      Kristian Rietveld authored
      2006-05-01  Kristian Rietveld  <kris@imendio.com>
      
      	Merge of the GTK+ asynchronous file chooser branch.  Please see
      	the kris-asynch-branch for more detailed ChangeLog entries.
      
      	* configure.in: increase binary version to 2.9.0.
      
      	* gtk.symbols:
      	* gtkfilechooser.c:
      	* gtkfilechooserbutton.c:
      	* gtkfilechooserdefault.c:
      	* gtkfilechooserdialog.c:
      	* gtkfilechooserembed.c:
      	* gtkfilechooserembed.h:
      	* gtkfilechooserentry.c:
      	* gtkfilechooserentry.h:
      	* gtkfilechooserprivate.h:
      	* gtkfilesystem.c:
      	* gtkfilesystem.h:
      	* gtkfilesystemmodel.c:
      	* gtkfilesystemmodel.h:
      	* gtkfilesystemunix.c:
      	* gtkpathbar.c:
      	* gtkpathbar.h:
      	Merge from kris-async-branch.
      2c97a8f6