diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-03-22 20:23:19 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-03-22 20:23:19 +0000 |
commit | dce8bffc7dd084c874149699e3b1248e3acf294d (patch) | |
tree | d0ec39e79b78f2f2f8653dddd935eefb2ad1dda5 /gtk/gtkfilesystem.h | |
parent | 81ffe540561161b32878409e90651ba0716c11fe (diff) | |
download | gdk-pixbuf-dce8bffc7dd084c874149699e3b1248e3acf294d.tar.gz |
Implement bookmark renaming (#136216, Sean Middleditch)
2005-03-22 Matthias Clasen <mclasen@redhat.com>
Implement bookmark renaming (#136216, Sean Middleditch)
* gtk/gtkfilesystem.h (struct _GtkFileSystemIface): Add
get_bookmark_label and set_bookmark_label vfuncs.
* gtk/gtkfilesystem.h:
* gtk/gtkfilesystem.c (gtk_file_system_set_bookmark_label):
(gtk_file_system_get_bookmark_label): Wrappers for the
vfuncs.
* gtk/gtk.symbols: Add new exported symbols.
* gtk/gtkfilesystemunix.c (gtk_file_system_unix_set_bookmark_label):
(gtk_file_system_unix_get_bookmark_label): Implementations
for the Unix backend.
* gtk/gtkfilechooserdefault.c: Add a context menu to
the bookmarks pane, and allow to rename bookmarks.
Diffstat (limited to 'gtk/gtkfilesystem.h')
-rw-r--r-- | gtk/gtkfilesystem.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/gtk/gtkfilesystem.h b/gtk/gtkfilesystem.h index ab8ab0ac0..6f038fdbc 100644 --- a/gtk/gtkfilesystem.h +++ b/gtk/gtkfilesystem.h @@ -133,7 +133,6 @@ struct _GtkFileSystemIface /* Volumes */ - void (*volume_free) (GtkFileSystem *file_system, GtkFileSystemVolume *volume); GtkFilePath * (*volume_get_base_path) (GtkFileSystem *file_system, @@ -176,16 +175,16 @@ struct _GtkFileSystemIface GtkFilePath *(*filename_to_path) (GtkFileSystem *file_system, const gchar *path); - /* Icons */ - + /* Icons + */ GdkPixbuf * (*render_icon) (GtkFileSystem *file_system, const GtkFilePath *path, GtkWidget *widget, gint pixel_size, GError **error); - /* Bookmarks */ - + /* Bookmarks + */ gboolean (*insert_bookmark) (GtkFileSystem *file_system, const GtkFilePath *path, gint position, @@ -193,12 +192,20 @@ struct _GtkFileSystemIface gboolean (*remove_bookmark) (GtkFileSystem *file_system, const GtkFilePath *path, GError **error); - GSList * (*list_bookmarks) (GtkFileSystem *file_system); + GSList * (*list_bookmarks) (GtkFileSystem *file_system); - /* Signals + /* Signals */ void (*volumes_changed) (GtkFileSystem *file_system); void (*bookmarks_changed) (GtkFileSystem *file_system); + + /* Bookmark labels + */ + gchar * (*get_bookmark_label) (GtkFileSystem *file_system, + const GtkFilePath *path); + void (*set_bookmark_label) (GtkFileSystem *file_system, + const GtkFilePath *path, + const gchar *label); }; GType gtk_file_system_get_type (void) G_GNUC_CONST; @@ -274,6 +281,11 @@ gboolean gtk_file_system_remove_bookmark (GtkFileSystem *file_system, GError **error); GSList *gtk_file_system_list_bookmarks (GtkFileSystem *file_system); +gchar *gtk_file_system_get_bookmark_label (GtkFileSystem *file_system, + const GtkFilePath *path); +void gtk_file_system_set_bookmark_label (GtkFileSystem *file_system, + const GtkFilePath *path, + const gchar *label); /* * Detailed information about a particular folder |