1. 27 Feb, 2012 1 commit
  2. 30 Aug, 2010 1 commit
  3. 25 May, 2010 1 commit
  4. 02 May, 2010 1 commit
  5. 04 Apr, 2010 1 commit
  6. 21 Dec, 2009 1 commit
  7. 30 Jul, 2009 1 commit
  8. 21 Jan, 2009 1 commit
    • Federico Mena Quintero's avatar
      Don't do completion in the middle of an incomplete hostname · e4bc68ba
      Federico Mena Quintero authored
      	Fix completion so it doesn't pop up for every character in a URI
      	hostname:
      
      	* gtk/gtkfilechooser.h (GtkFileChooserError): Add a
      	GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME.
      
      	* gtk/gtkfilesystem.c (_gtk_file_system_parse): Return an
      	"incomplete hostname" error if the user has not typed a full
      	hostname yet in an URI.
      
      	* gtk/gtkfilechooserentry.c (append_common_prefix): If we get an
      	incomplete hostname, just don't pop up an error, since that is a
      	transient state and the user doesn't need to be notified about it.
      	(refresh_current_folder_and_file_part): Don't revert to showing
      	the base folder if we have an incomplete hostname.
      	(reload_current_folder): Handle the passed folder being NULL, even
      	if we must force a reload.  Also, reload the folder if we didn't
      	have a cancellable for it (i.e. we hadn't started to load it
      	before).
      Signed-off-by: default avatarFederico Mena Quintero <federico@novell.com>
      
      svn path=/trunk/; revision=22157
      e4bc68ba
  9. 04 Aug, 2008 1 commit
    • Carlos Garnacho's avatar
      Make GFile-oriented API public. Fixes #545978. · 02c65db5
      Carlos Garnacho authored
      2008-08-04  Carlos Garnacho  <carlos@imendio.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkfilechooser.[ch]: Make GFile-oriented API public. Fixes
              #545978.
              * gtk/gtkfilechooserbutton.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtkfilechooserutils.c: Update to use public GFile API.
      
      svn path=/trunk/; revision=20971
      02c65db5
  10. 01 Jul, 2008 1 commit
  11. 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
  12. 13 Jun, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkcellrendereraccel.h gtk/gtkfilechooser.h gtk/gtkfilechooserdialog.h · d0c713bf
      Michael Natterer authored
      2008-06-13  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkcellrendereraccel.h
      	* gtk/gtkfilechooser.h
      	* gtk/gtkfilechooserdialog.h
      	* gtk/gtkfilechooserwidget.h
      	* gtk/gtkmenutoolbutton.h
      	* gtk/gtkpagesetup.h
      	* gtk/gtkpapersize.h
      	* gtk/gtkprintcontext.h
      	* gtk/gtkprintoperation.h
      	* gtk/gtkprintoperationpreview.h
      	* gtk/gtkprintsettings.h
      	* gtk/gtkradiotoolbutton.h
      	* gtk/gtkrecentchooser.h
      	* gtk/gtkrecentchooserdialog.h
      	* gtk/gtkrecentchoosermenu.h
      	* gtk/gtkrecentchooserwidget.h
      	* gtk/gtkseparatortoolitem.h
      	* gtk/gtkshow.h
      	* gtk/gtktoggletoolbutton.h
      	* gtk/gtktoolbar.h
      	* gtk/gtktoolbutton.h
      	* gtk/gtktooltip.h: #include <gtk/gtkfoo.h> instead of
      	"gtk/gtkfoo.h" or even just "gtkfoo.h" in public headers.
      
      
      svn path=/trunk/; revision=20375
      d0c713bf
  13. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  14. 10 Oct, 2005 1 commit
  15. 15 Jul, 2005 1 commit
    • Federico Mena Quintero's avatar
      Add overwrite confirmation for SAVE mode. Fixes bug #152850: · fb7d6ac4
      Federico Mena Quintero authored
      2005-07-14  Federico Mena Quintero  <federico@ximian.com>
      
      	Add overwrite confirmation for SAVE mode.  Fixes bug #152850:
      
      	* gtk/gtkfilechooser.h: Add prototypes for
      	gtk_file_chooser_set/get_do_overwrite_confirmation().
      	(GtkFileChooserConfirmation): New enum for the result of the
      	"confirm-overwrite" signal.
      
      	* gtk/gtkmarshalers.list: Add ENUM:VOID.
      
      	* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
      	"do-overwrite-confirmation" boolean property.
      	(gtk_file_chooser_set_do_overwrite_confirmation): Implement.
      	(gtk_file_chooser_get_do_overwrite_confirmation): Implement.
      	(confirm_overwrite_accumulator): New accumulator for the signal.
      
      	* gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add
      	GTK_FILE_CHOOSER_PROP_DO_OVERWRITE_CONFIRMATION.
      
      	* gtk/gtkfilechooserutils.c
      	(_gtk_file_chooser_install_properties): Override the
      	do-overwrite-confirmation property.
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add a
      	confirm_overwrite signal to the vtable.
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_set_property): Handle the new property.
      	(gtk_file_chooser_default_get_property): Likewise.
      	(get_selected_file_info_from_file_list): New helper function; code
      	taken from list_selection_changed().
      	(list_selection_changed): Use get_selected_file_info_from_file_list().
      	(should_respond_after_confirm_overwrite): New function.
      	(gtk_file_chooser_default_should_respond): Confirm when necessary.
      fb7d6ac4
  16. 12 Dec, 2004 1 commit
    • Tor Lillqvist's avatar
      gtk/gtkaccelmap.[ch] gtk/gtkfilechooser.[ch] gtk/gtkfilesel.c · f3da1705
      Tor Lillqvist authored
      2004-12-12  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkaccelmap.[ch]
      	* gtk/gtkfilechooser.[ch]
      	* gtk/gtkfilesel.c
      	* gtk/gtkfilesystemwin32.c
      	* gtk/gtkiconfactory.[ch]
      	* gtk/gtkicontheme.[ch]
      	* gtk/gtkimage.[ch]
      	* gtk/gtkimmodule.c
      	* gtk/gtkmodules.c
      	* gtk/gtkrc.[ch]
      	* gtk/gtkuimanager.[ch]
      	* gtk/gtkwindow.[ch]
      	* gtk/updateiconcache.c
      	* gtk/gtk.symbols: Use gstdio wrappers. On Windows, convert
      	environment variables referring to pathnames from locale encoding
      	to UTF-8. As in GLib, in order to preserve Windows DLL ABI
      	stability, add binary compatibility versions of functions that
      	take file names as arguments, or return file names. Add a _utf8
      	suffix to the "real" such functions on Windows. The ABI
      	compatibility versions keep the old name.
      
      	* gtk/Makefile.am: Strip PRIVATE symbols from the GNU import
      	library.
      
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Implement
      	file mapping on Win32.
      
      	* gtk/updateiconcache.c: Don't crash if invoked without
      	argument. Use binary mode when opening file.
      
      	* modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: Install
      	gtkrc in correct place, in <datadir>/themes/MS-Windows/gtk-2.0.
      f3da1705
  17. 23 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark as const. · b69987f2
      Matthias Clasen authored
      2004-11-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkuimanager.h (gtk_ui_manager_get_type):
      	* gtk/gtktreeview.h (gtk_tree_view_get_type):
      	* gtk/gtktreeviewcolumn.h (gtk_tree_view_column_get_type):
      	* gtk/gtktreestore.h (gtk_tree_store_get_type):
      	* gtk/gtktreeselection.h (gtk_tree_selection_get_type):
      	* gtk/gtktreemodelfilter.h (gtk_tree_model_filter_get_type):
      	* gtk/gtktreemodel.h (gtk_tree_iter_get_type):
      	(gtk_tree_path_get_type):
      	(gtk_tree_row_reference_get_type):
      	* gtk/gtktoolitem.h (gtk_tool_item_get_type):
      	* gtk/gtktoolbutton.h (gtk_tool_button_get_type):
      	* gtk/gtktoggleaction.h (gtk_toggle_action_get_type):
      	* gtk/gtkthemes.h (gtk_theme_engine_get_type):
      	* gtk/gtktextiter.h (gtk_text_iter_get_type):
      	* gtk/gtksettings.h (gtk_settings_get_type):
      	* gtk/gtkselection.h (gtk_selection_data_get_type):
      	* gtk/gtkradioaction.h (gtk_radio_action_get_type):
      	* gtk/gtkmenutoolbutton.h (gtk_menu_tool_button_get_type):
      	* gtk/gtkliststore.h (gtk_list_store_get_type):
      	* gtk/gtkiconview.h (gtk_icon_view_get_type):
      	* gtk/gtkicontheme.h (gtk_icon_info_get_type):
      	* gtk/gtkiconfactory.h (gtk_icon_factory_get_type):
      	(gtk_icon_set_get_type):
      	(gtk_icon_source_get_type):
      	* gtk/gtkfilesystemwin32.h (gtk_file_system_win32_get_type):
      	* gtk/gtkfilesystemunix.h (gtk_file_system_unix_get_type):
      	* gtk/gtkfilesystem.h (gtk_file_folder_get_type):
      	(gtk_file_info_get_type, gtk_file_path_get_type):
      	(gtk_file_system_get_type):
      	* gtk/gtkfilefilter.h (gtk_file_filter_get_type):
      	* gtk/gtkfilechooserwidget.h (gtk_file_chooser_widget_get_type):
      	* gtk/gtkfilechooser.h (gtk_file_chooser_get_type):
      	* gtk/gtkfilechooserdialog.h (gtk_file_chooser_dialog_get_type):
      	* gtk/gtkexpander.h (gtk_expander_get_type):
      	* gtk/gtkentrycompletion.h (gtk_entry_completion_get_type):
      	* gtk/gtkcombobox.h (gtk_combo_box_get_type):
      	* gtk/gtkcomboboxentry.h (gtk_combo_box_entry_get_type):
      	* gtk/gtkclipboard.h (gtk_clipboard_get_type):
      	* gtk/gtkcellview.h (gtk_cell_view_get_type):
      	* gtk/gtkcellrenderertoggle.h (gtk_cell_renderer_toggle_get_type):
      	* gtk/gtkcellrenderertext.h (gtk_cell_renderer_text_get_type):
      	* gtk/gtkcellrendererprogress.h (gtk_cell_renderer_progress_get_type):
      	* gtk/gtkcellrendererpixbuf.h (gtk_cell_renderer_pixbuf_get_type):
      	* gtk/gtkcellrenderercombo.h (gtk_cell_renderer_combo_get_type):
      	* gtk/gtkcelllayout.h (gtk_cell_layout_get_type):
      	* gtk/gtkactiongroup.h (gtk_action_group_get_type):
      	* gtk/gtkaction.h (gtk_action_get_type):
      	* gtk/gtkaccessible.h (gtk_accessible_get_type):
      	* gtk/gtkaccelmap.h (gtk_accel_map_get_type):
      	* gtk/gtkaccelgroup.h (gtk_accel_group_get_type):
      	* gtk/gtkmessagedialog.h (gtk_message_dialog_get_type): Mark as const.
      
      	* gtk/gtkicontheme.h:  Don't mark gtk_icon_theme_error_quark()
      	as const, to be consistent with all the other error_quark
      	functions. (technically they are const, but since these are
      	called only in error paths, giving the compiler better
      	optimization opportunities doesn't matter much)
      
      	* gtk/gtk.symbols:
      	* gdk/gdk.symbols: Add attribute annotations.
      
      	* gtk/makegtkalias.pl:
      	* gdk/makegdkalias.pl: Keep attribute annotations, but strip PRIVATE.
      
      	* gtk/Makefile.am (gtk.def):
      	* gdk/Makefile.am (gdk.def): Strip attribute annotations, but keep
      	PRIVATE.
      b69987f2
  18. 04 Aug, 2004 1 commit
  19. 05 Mar, 2004 1 commit
    • Federico Mena Quintero's avatar
      Add gboolean return values and GError arguments to ::set_current_folder() · 385bd6a5
      Federico Mena Quintero authored
      2004-03-05  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserprivate.h (struct _GtkFileChooserIface): Add
      	gboolean return values and GError arguments to
      	::set_current_folder() and ::select_path().
      
      	* gtk/gtkfilechooser.c (gtk_file_chooser_set_current_folder):
      	Return a boolean value for success/failure.
      	(gtk_file_chooser_set_current_folder_uri): Likewise.
      	(gtk_file_chooser_select_filename): Likewise.
      	(gtk_file_chooser_select_uri): Likewise.
      	(gtk_file_chooser_set_filename): Likewise.
      	(gtk_file_chooser_set_uri): Likewise.
      	(_gtk_file_chooser_set_current_folder_path): Likewise, plus take
      	in a GError.
      	(_gtk_file_chooser_select_path): Likewise.
      
      	* gtk/gtkfilechooserutils.c (delegate_set_current_folder):
      	Likewise.
      	(delegate_select_path): Likewise.
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_select_path): Likewise.
      	(gtk_file_chooser_default_set_current_folder): Likewise.
      	(error_changing_folder_dialog): New helper function.
      	(change_folder_and_display_error): New helper function.
      	(switch_to_selected_folder): Use change_folder_and_display_error().
      	(tree_selection_changed): Likewise.
      	(shortcuts_activate_volume): Likewise.
      	(shortcuts_activate_item): Likewise.
      	(list_row_activated): Likewise.
      	(path_bar_clicked): Likewise.
      	(update_from_entry): Likewise.
      	(up_folder_handler): Likewise.
      	(home_folder_handler): Get the home path from the shortcuts model,
      	and use change_folder_and_display_error().
      
      	* tests/testfilechooser.c (set_current_folder): New helper
      	function; pops up a simple error dialog if necessary.
      	(set_filename): Likewise.
      	(set_folder_nonexistent_cb): Use set_current_folder().
      	(set_folder_existing_nonexistent_cb): Likewise.
      	(set_filename_nonexistent_cb): Use set_filename().
      	(set_filename_existing_nonexistent_cb): Likewise.
      385bd6a5
  20. 29 Feb, 2004 1 commit
    • Federico Mena Quintero's avatar
      Handle GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL. · 17e840f7
      Federico Mena Quintero authored
      2004-02-29  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtk/gtkfilechooserdefault.c
      	(gtk_file_chooser_default_set_property): Handle
      	GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL.
      	(gtk_file_chooser_default_get_property): Likewise.
      	(struct _GtkFileChooserDefault): Added fields for preview_label,
      	use_preview_label, preview_display_name, preview_box.  Removed
      	preview_frame.
      	(set_preview_widget): Reorder the widget in relation to the label.
      	(update_preview_widget_visibility): Create or destroy the preview
      	label.
      	(check_preview_change): Update impl->preview_display_name and the
      	label.
      	(find_good_size_from_style): Use the preview_box.
      	(gtk_file_chooser_default_finalize): Free
      	impl->preview_display_name.
      	(gtk_file_chooser_default_init): Initialize
      	impl->use_preview_label.
      
      	* gtk/gtkfilechooser.c (gtk_file_chooser_class_init): Add a
      	"use-preview-label" property.
      	(gtk_file_chooser_set_use_preview_label): New function.  This sets
      	whether one wants the file chooser to display a stock label with
      	the previewed filename.  Apps that do really fancy previews can
      	turn this off and draw the name themselves.
      	(gtk_file_chooser_get_use_preview_label): New function.
      	(gtk_file_chooser_get_preview_widget_active): Documentation fix.
      
      	* gtk/gtkfilechooserutils.h (GtkFileChooserProp): Add a
      	GTK_FILE_CHOOSER_PROP_USE_PREVIEW_LABEL value.
      
      	* gtk/gtkfilechooserutils.c
      	(_gtk_file_chooser_install_properties): Override the
      	"use-preview-label" property.
      17e840f7
  21. 26 Feb, 2004 1 commit
    • Jonathan Blandford's avatar
      Add two more folder modes to the enum. · d40eda7e
      Jonathan Blandford authored
      Thu Feb 26 18:25:57 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtkfilechooser.h (GtkFileChooserAction): Add two more folder
              modes to the enum.
      
              * gtk/gtkfilechooser.c (gtk_file_chooser_set_folder_mode): Remove.
              (gtk_file_chooser_get_folder_mode): Remove
      d40eda7e
  22. 15 Nov, 2003 1 commit
    • Matthias Clasen's avatar
      Fix parameter name mismatches which confuse gtk-doc. · f7357a70
      Matthias Clasen authored
      Sun Nov 16 00:35:29 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkfilechooser.[hc]:
      	* gtk/gtkentrycompletion.h: Fix parameter name mismatches which
      	confuse gtk-doc.
      
      Sun Nov 16 00:41:48 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtk-sections.txt: Remove gtk_tool_item_[sg]et_pack_end.
      
      Sun Nov 16 00:32:18 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtk-sections.txt: Move GtkFileChooser out of the
      	private section, in order to get the autogenerated docs
      	on hierarchy, signals, properties, etc.
      f7357a70
  23. 18 Oct, 2003 1 commit
    • Federico Mena Quintero's avatar
      Removed. (gtk_file_system_gnome_vfs_set_bookmarks): Removed. · b49a5ec5
      Federico Mena Quintero authored
      2003-10-17  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtkfilesystemgnomevfs.c
      	(gtk_file_system_gnome_vfs_get_supports_bookmarks): Removed.
      	(gtk_file_system_gnome_vfs_set_bookmarks): Removed.
      	(gtk_file_system_gnome_vfs_add_bookmark): Implement.
      	(gtk_file_system_gnome_vfs_remove_bookmark): Implement.
      
      	* gtkfilechooserprivate.h (struct _GtkFileChooserIface): Replaced
      	the ::set_shortcut_folders() method with :;add_shortcut_folder()
      	and ::remove_shortcut_folder().
      
      	* gtkfilechooserutils.c (delegate_add_shortcut_folder): New function.
      	(delegate_remove_shortcut_folder): New function.
      	(delegate_list_shortcut_folders): New function.
      
      	* gtkfilechooserimpldefault.c (create_shortcuts_model): Insert the
      	Desktop directory as well.
      	(shortcuts_insert_path): Renamed from shortcuts_append_path; now
      	takes a position index instead of a parent node iter.  Also takes
      	a GError argument.
      	(struct _GtkFileChooserImplDefault): Removed the shortcuts_folder
      	list.  It is all kept in the model now.
      	(shortcuts_append_home): Save whether adding a shortcut for the
      	home directory was successful.
      	(shortcuts_append_desktop): Likewise for the desktop.
      	(shortcuts_append_file_system_roots): Count and save the number of
      	roots added.
      	(shortcuts_append_shortcut_folders): Removed.
      	(gtk_file_chooser_impl_default_add_shortcut_folder): Implement.
      	(shortcuts_append_bookmarks): Now that we don't have a bookmarks
      	parent node, don't expand the tree.
      	(add_bookmark_button_clicked_cb): Use gtk_file_system_add_bookmark().
      	(remove_bookmark_button_clicked_cb): Use gtk_file_system_remove_bookmark().
      	(gtk_file_chooser_impl_default_list_shortcut_folders): Get the
      	folders from the shortcuts model; we no longer keep a separate list.
      
      	* gtkfilesystem.h (struct _GtkFileSystemIface): Oops, there
      	shouldn't be shortcuts-related virtual methods here.
      
      	* gtkfilechooser.c (file_paths_to_strings): New helper function.
      	(gtk_file_chooser_get_filenames): Use file_paths_to_strings().
      	(gtk_file_chooser_get_uris): Likewise.
      	(gtk_file_chooser_set_shortcut_folders): Removed.
      	(gtk_file_chooser_list_shortcut_folders): Return a list of
      	strings, not of GtkFilePath*.
      	(gtk_file_chooser_list_shortcut_folder_uris): New function.
      	(gtk_file_chooser_add_shortcut_folder): New function.
      	(gtk_file_chooser_remove_shortcut_folder): New function.
      	(gtk_file_chooser_add_shortcut_folder_uri): New function.
      	(gtk_file_chooser_remove_shortcut_folder_uri): New function.
      	(_gtk_file_chooser_add_shortcut_folder): New function.
      	(_gtk_file_chooser_remove_shortcut_folder): New function.
      
      	* gtkfilechooser.h: New enum.
      
      	* gtkfilechooser.c (gtk_file_chooser_error_quark): New function.
      
      	* gtkfilesystem.c (gtk_file_system_get_supports_bookmarks): Removed.
      	(gtk_file_system_set_bookmarks): Removed.
      	(gtk_file_system_add_bookmark): New function.
      	(gtk_file_system_remove_bookmark): New function.
      
      	* gtkfilesystemunix.c
      	(gtk_file_system_unix_get_supports_bookmarks): Removed.
      	(gtk_file_system_unix_set_bookmarks): Removed.
      	(gtk_file_system_unix_add_bookmark): Just a stub for now.
      	(gtk_file_system_unix_remove_bookmark): Likewise.
      
      	* testfilechooser.c (main): Add a shortcut for testing purposes.
      b49a5ec5
  24. 08 Oct, 2003 1 commit
    • Federico Mena Quintero's avatar
      Added methods for ::get_supports_bookmarks(), ::set_bookmarks(), · 462aab4a
      Federico Mena Quintero authored
      2003-10-07  Federico Mena Quintero  <federico@ximian.com>
      
      	* gtkfilesystem.h (struct _GtkFileSystemIface): Added methods for
      	::get_supports_bookmarks(), ::set_bookmarks(), ::list_bookmarks().
      	Added a ::bookmarks_changed() signal.
      
      	* gtkfilesystem.c (gtk_file_system_get_supports_bookmarks): New function.
      	(gtk_file_system_set_bookmarks): New function.
      	(gtk_file_system_list_bookmarks): New function.
      	(gtk_file_system_base_init): Create the "bookmarks-changed" signal.
      	(gtk_file_paths_copy): New function.
      
      	* gtkfilesystemunix.c (gtk_file_system_unix_get_supports_bookmarks): Implement.
      	(gtk_file_system_unix_set_bookmarks): Implement.
      	(gtk_file_system_unix_get_bookmarks): Implement.
      
      	* gtkfilesystemgnomevfs.c (struct _GtkFileSystemGnomeVFS): Added
      	fields for the bookmarks and the GConfClient.
      	(gtk_file_system_gnome_vfs_set_bookmarks): Implement.
      	(gtk_file_system_gnome_vfs_list_bookmarks): Implement.
      
      	* gtkfilechooserprivate.h (struct _GtkFileChooserIface): Added
      	methods for ::set_shortcut_folders(), ::list_shortcut_folders().
      
      	* gtkfilechooser.c (gtk_file_chooser_set_shortcut_folders): New
      	function.
      	(gtk_file_chooser_list_shortcut_folders): New function.
      
      	* gtkfilechooserimpldefault.c (create_shortcuts_model): Unref the
      	old shortcuts model if it exists.  Create the nodes for the
      	app-specific shortcut folders.
      	(struct _GtkFileChooserImplDefault): Added a field for the
      	shortcut_folders.
      	(gtk_file_chooser_impl_default_set_shortcut_folders): Implement.
      	(select_shortcuts_folder): New helper function.
      	(gtk_file_chooser_impl_default_set_current_folder): Use
      	select_shortcuts_folder().
      	(shortcuts_append_path): Get the file info here, instead of the
      	caller.
      	(shortcuts_append_home): Use shortcuts_append_path().
      	(shortcuts_append_file_system_roots): Likewise.
      	(create_shortcuts_model): Add the app-specific shortcut folders
      	and the bookmarks.
      	(gtk_file_chooser_impl_default_list_shortcut_folders): Implement.
      	(create_shortcuts_tree): Added a button to let the user add the
      	current folder to the bookmarks.
      	(gtk_file_chooser_impl_default_set_property): Connect to
      	"bookmarks-changed" on the file system.
      	(shortcuts_append_bookmarks): New function.
      
      	* configure.ac: Depend on GConf.
      462aab4a
  25. 03 Sep, 2003 1 commit
    • Federico Mena Quintero's avatar
      Removed the "extra widget" bit, implemented with the following: · 36dfea8e
      Federico Mena Quintero authored
      2003-09-03  Federico Mena Quintero  <federico@ximian.com>
      
      	* TODO: Removed the "extra widget" bit, implemented with the
      	following:
      
      	* gtkfilechooser.h: Added gtk_file_chooser_{set,get}_extra_widget().
      
      	* gtkfilechooser.c (gtk_file_chooser_base_init): Install an
      	"extra-widget" interface property.
      	(gtk_file_chooser_set_extra_widget): Implemented.
      	(gtk_file_chooser_get_extra_widget): Implemented.
      
      	* gtkfilechooserutils.h (GtkFileChooserProp): Added
      	GTK_FILE_CHOOSER_PROP_EXTRA_WIDGET.
      
      	* gtkfilechooserutils.c (_gtk_file_chooser_install_properties):
      	Added the "extra-widget" property.
      
      	* gtkfilechooserimpldefault.c (struct _GtkFileChooserImplDefault):
      	Added an extra_widget field.
      	(gtk_file_chooser_impl_default_set_property): Handle the
      	"extra-widget" property.
      	(gtk_file_chooser_impl_default_get_property): Likewise.
      	(set_preview_widget): Fix the call gtk_container_remove().  Also,
      	we don't need to ref/sink/unref the preview widget, as that gets
      	already done by container_add/remove.
      	(set_extra_widget): New utility function.
      
      	* testfilechooser.c (main): Add an extra widget.
      36dfea8e
  26. 23 Jul, 2003 2 commits
    • Owen Taylor's avatar
      Add over-big test case for preview (much of size from a modified copy of · d97d7df9
      Owen Taylor authored
      Wed Jul 23 17:52:01 2003  Owen Taylor  <otaylor@redhat.com>
      
              * testfilechooser.c: Add over-big test case for preview
              (much of size from a modified copy of
              gdk_pixbuf_new_from_file_at_size())
      
              * gtkfilechooserutils.[ch] gtkfilechooser.c
              gtkfilechooserprivate.h gtkfilechooserimpldefault.c:
              Add get_preview_path() as a virtual function; implement
              update-preview signal that was in the header file.
      
              * gtkfilechooserimpldefault.c: Finish a simple preview
              widget implementation.
      d97d7df9
    • Owen Taylor's avatar
      File filter objects. · 733f4489
      Owen Taylor authored
      Wed Jul 23 11:23:43 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilefilter.[ch]: File filter objects.
      
              * gtkfilechooser.[ch] gtkfilechooserutils.[ch]: Add
              file filtering to API.
      
              * gtkfilechooserimpldefault.c: Implement file filters.
      
              * testfilechooser.c: Try out the filter functionality.
      
              * gtkfilesystemmodel.c: Add
              _gtk_file_system_model_set_filter() to set a callback
              function for filtering.
      
              * gtkfilechooserutils.c: Propagate property notification
              to the receiver.
      
              * fnmatch.c: Copy this from GTK+ temporarily to get
              UTF-8 pattern matching functionality.
      733f4489
  27. 11 Jul, 2003 1 commit
    • Owen Taylor's avatar
      Add gtk_file_chooser_set_current_name() to set the current entry contents. · 7f8ae32c
      Owen Taylor authored
      Fri Jul 11 14:37:07 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilechooser.[ch] gtkfilechooserprivate.h
              gtkfilechooserimpldefault.c: Add
              gtk_file_chooser_set_current_name() to set the current
              entry contents.
      
              * *.c: Consistently use '-' not '_' in property names and
              signal names.
      
              * gtkfilechooser.c: Document all exported functions.
      7f8ae32c
  28. 04 Apr, 2003 1 commit
    • Owen Taylor's avatar
      Move interface definition into a private header so it can refer to · bc3fb55c
      Owen Taylor authored
      Fri Apr  4 17:30:27 2003  Owen Taylor  <otaylor@redhat.com>
      
              * gtkfilechooserprivate.h gtkfilechooser.h: Move
              interface definition into a private header so it
              can refer to GtkFileSystem.
      
              * *.[ch]: Switch over from using gchar *uri internally
              to using GtkFilePath * internally, and add
              conversion routines to GtkFileSystem.
      
              * TODO README: Updates.
      bc3fb55c
  29. 26 Mar, 2003 1 commit
    • Owen Taylor's avatar
      - Add GnomeVFS backend · 5ef90224
      Owen Taylor authored
      - Add gtk_file_info_get_display_key()
      - Start switching from file_added => files_added
      - Switch over to Nautilus-like Loading.../Empty
      5ef90224
  30. 21 Mar, 2003 1 commit