1. 19 Nov, 2003 1 commit
    • Federico Mena Quintero's avatar
      Added a render_icon virtual method. · a3976b68
      Federico Mena Quintero authored
      2003-11-19  Federico Mena Quintero  <federico@ximian.com>
      	* gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Added a
      	render_icon virtual method.
      	* gtk/gtkfilesystem.c (gtk_file_system_render_icon): New function.
      	* gtk/gtkfilesystemunix.c (gtk_file_system_unix_render_icon):
      	Implement as a stub for now.
      	* gtk/gtkfilechooserdefault.c (shortcuts_insert_path): Use
      	(list_icon_data_func): Likewise.
      	(toolbar_create): Set the toolbar style to icons only.
      	* gtk/gtkfilechooser.c (gtk_file_chooser_add_shortcut_folder_uri):
      	Fix doc comments.
  2. 03 Nov, 2003 1 commit
    • Federico Mena Quintero's avatar
      Add a stock icon to the "Add bookmark" button. · 3dbad630
      Federico Mena Quintero authored
      2003-11-03  Federico Mena Quintero  <federico@ximian.com>
      	* gtk/gtkfilechooserdefault.c (create_shortcuts_tree): Add a stock
      	icon to the "Add bookmark" button.
      	* gtk/gtkfilesystemunix.c: Mark missing strings for translation.
      	* gtk/gtkfilesystemmodel.c: Likewise.
      	* gtk/gtkfilechooser.c: Likewise.
      	* gtk/gtkfilechooserdefault.c: Likewise.
      Mon Nov  3 20:56:28 2003  Matthias Clasen  <maclas@gmx.de>
  3. 23 Oct, 2003 1 commit
    • Owen Taylor's avatar
      gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]: Basic framework · b3bae3b4
      Owen Taylor authored
      Wed Oct 22 23:20:04 2003  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkfilechooser.[ch] gtk/gtkfilefilter.[ch]
              gtk/gtkfilechooserwidget.[ch] gtk/gtkfilechooserdialog.[ch]:
              gtk/gtkfilechooserutils.c gtk/gtkfilechooserprivate.[ch]:
              Basic framework for the new file selector widget.
              * gtk/gtkfilechooserdefault.[ch] gtk/gtkcellrenderersep.[ch]
              gtk/gtkfilechooserentry.[ch] gtk/gtkfilesystemmodel.[ch]:
              Initial implementation of the GtkFileChooser user interface.
              * gtk/gtkfilesystemunix.[ch]: GtkFileSystem implementation
              for Unix files.
              * configure.in gtk/Makefile.am gtk/xdgmime: Build code
              for freedesktop.org MIME system on Unix.
              * tests/testfilechooser.c: Test program for GtkFileChooser
              * tests/prop-editor.c: Add support for properties on interfaces.
  4. 20 Oct, 2003 1 commit
    • Federico Mena Quintero's avatar
      New utility function. (gtk_file_system_gnome_vfs_get_folder): Use · 1e49d49a
      Federico Mena Quintero authored
      2003-10-20  Federico Mena Quintero  <federico@ximian.com>
      	* gtkfilesystemgnomevfs.c (folder_child_new): New utility
      	(gtk_file_system_gnome_vfs_get_folder): Use folder_child_new().
      	(gtk_file_folder_gnome_vfs_get_info): Likewise.
      	(directory_load_callback): Likewise.
      	(monitor_callback): Likewise.
      	* TODO: Removed the item about factoring out the code that creates
      	FolderChild structures.
  5. 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.
  6. 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
      	(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
      	(gtk_file_chooser_impl_default_set_shortcut_folders): Implement.
      	(select_shortcuts_folder): New helper function.
      	(gtk_file_chooser_impl_default_set_current_folder): Use
      	(shortcuts_append_path): Get the file info here, instead of the
      	(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.
  7. 02 Sep, 2003 1 commit
    • Federico Mena Quintero's avatar
      s/nonexistant/nonexistent Likewise. Likewise. Likewise. · cc4836c9
      Federico Mena Quintero authored
      2003-09-02  Federico Mena Quintero  <federico@ximian.com>
      	* gtkfilesystem.h: s/nonexistant/nonexistent
      	* gtkfilesystem.c: Likewise.
      	* gtkfilesystemgnomevfs.c: Likewise.
      	* gtkfilesystemunix.c: Likewise.
      2003-08-27  Federico Mena Quintero  <federico@ximian.com>
      	* README: The required GtkTreeView patches are already on CVS.
      	Removed the part that mentions them.
  8. 16 Jul, 2003 1 commit
    • Owen Taylor's avatar
      auto-ize. · 7e54248b
      Owen Taylor authored
      Wed Jul 16 16:50:31 2003  Owen Taylor  <otaylor@redhat.com>
              * configure.ac Makefile.am: auto-ize.
              * xdgmime/: Add freedesktop.org MIME spec implementatin
              by Jonathan Blandford.
              * gtkfilesystem.[ch]: Add gtk_file_info_render_icon()
              gtk_file_info_set/get_icon_type to do icon handling
              based on MIME type. Add a simple icon caching system.
              * gtkfilesystemgnomevfs.c: Implement ensure_types()
              so that extending the set of types for a loaded
              directory works. Set the MIME type to get the default
              icon handling.
              * gtkfilesystemunix.c: Look up the MIME type using
              * gtkfilechooserimpldefault.c: Display icons in the list.
  9. 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.
  10. 27 Mar, 2003 1 commit
  11. 25 Mar, 2003 1 commit
  12. 21 Mar, 2003 3 commits