Skip to content

Commit

Permalink
make filename2uri() "public"
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=27412
  • Loading branch information
ulflulfl committed Feb 10, 2009
1 parent 3769308 commit 94ee3dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gtk/webbrowser.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ browser_open_url (const gchar *url)
* @param filename to (absolute pathed) filename to convert
* @return a newly allocated uri, you must g_free it later
*/
static gchar *
gchar *
filename2uri(const gchar *filename)
{
int i = 0;
Expand Down
7 changes: 7 additions & 0 deletions gtk/webbrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ extern gboolean filemanager_open_directory (const gchar *path);
/* browse a file relative to the data dir */
extern void browser_open_data_file (const gchar *filename);

/** Convert local absolute path to uri.
*
* @param filename to (absolute pathed) filename to convert
* @return a newly allocated uri, you must g_free it later
*/
extern gchar *filename2uri(const gchar *filename);

#endif /* __WEBBROWSER_H__ */

0 comments on commit 94ee3dd

Please sign in to comment.