[maemo-commits] [maemo-commits] r13866 - projects/haf/trunk/hildon-fm/hildon-fm
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 17 19:19:16 EEST 2007
- Previous message: [maemo-commits] r13865 - projects/haf/trunk/hildon-fm/hildon-fm
- Next message: [maemo-commits] r13867 - projects/haf/trunk/hildon-fm/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll Date: 2007-09-17 19:19:14 +0300 (Mon, 17 Sep 2007) New Revision: 13866 Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.c projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.h Log: * hildon-fm/hildon-file-system-special-location.h, hildon-fm/hildon-file-system-special-location.c (struct _HildonFileSystemSpecialLocationClass): Added rewrite_path virtual function. (hildon_file_system_special_location_rewrite_path): New. Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.c =================================================================== --- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.c 2007-09-17 16:17:55 UTC (rev 13865) +++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.c 2007-09-17 16:19:14 UTC (rev 13866) @@ -386,3 +386,20 @@ } } +GtkFilePath * +hildon_file_system_special_location_rewrite_path (HildonFileSystemSpecialLocation *location, + GtkFileSystem *file_system, + const GtkFilePath *path) +{ + HildonFileSystemSpecialLocationClass *klass; + + g_return_val_if_fail (HILDON_IS_FILE_SYSTEM_SPECIAL_LOCATION (location), + NULL); + + klass = HILDON_FILE_SYSTEM_SPECIAL_LOCATION_GET_CLASS (location); + + if (klass->rewrite_path) + return klass->rewrite_path (location, file_system, path); + else + return gtk_file_path_copy (path); +} Modified: projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.h =================================================================== --- projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.h 2007-09-17 16:17:55 UTC (rev 13865) +++ projects/haf/trunk/hildon-fm/hildon-fm/hildon-file-system-special-location.h 2007-09-17 16:19:14 UTC (rev 13866) @@ -93,10 +93,14 @@ GtkFileSystemGetFolderCallback callback, gpointer data); - /* signals */ - void (*changed) (GObject *obj); - void (*connection_state) (GObject *obj); - void (*rescan) (GObject *obj); + GtkFilePath *(*rewrite_path) (HildonFileSystemSpecialLocation *location, + GtkFileSystem *file_system, + const GtkFilePath *path); + + /* signals */ + void (*changed) (GObject *obj); + void (*connection_state) (GObject *obj); + void (*rescan) (GObject *obj); }; GType hildon_file_system_special_location_get_type (void) G_GNUC_CONST; @@ -169,6 +173,9 @@ * This small inconvenience is bacause of GtkFileSystem iface */ void hildon_file_system_special_location_set_icon (HildonFileSystemSpecialLocation *location, const gchar *icon_name); +GtkFilePath *hildon_file_system_special_location_rewrite_path (HildonFileSystemSpecialLocation *location, + GtkFileSystem *file_system, + const GtkFilePath *path); G_END_DECLS
- Previous message: [maemo-commits] r13865 - projects/haf/trunk/hildon-fm/hildon-fm
- Next message: [maemo-commits] r13867 - projects/haf/trunk/hildon-fm/hildon-fm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]