summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrent Smith <gnome@nextreality.net>2006-02-03 05:41:57 +0000
committerBrent Smith <bmsmith@src.gnome.org>2006-02-03 05:41:57 +0000
commitfacd1303136586ca6ef8922e8a247f1ecfcc0bd9 (patch)
tree846a7a3eeea00a3014ba5b71a28f0d030ddf0191 /src
parenta7fc05a0920c16653451ae6b11a0df6b1cc8ab65 (diff)
downloadyelp-facd1303136586ca6ef8922e8a247f1ecfcc0bd9.tar.gz
call gnome_vfs_make_uri_from_input_with_dirs() to check for a relative
2006-02-02 Brent Smith <gnome@nextreality.net> * src/yelp-main.c: (main_start): call gnome_vfs_make_uri_from_input_with_dirs() to check for a relative path and make a absolute uri to pass to an existing yelp process.
Diffstat (limited to 'src')
-rw-r--r--src/yelp-main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yelp-main.c b/src/yelp-main.c
index 621b15bf..6f08f3b7 100644
--- a/src/yelp-main.c
+++ b/src/yelp-main.c
@@ -160,16 +160,20 @@ static void
main_start (gchar *url)
{
CORBA_Object yelp_base;
-
+ gchar *new_url;
+
+ new_url = gnome_vfs_make_uri_from_input_with_dirs (url,
+ GNOME_VFS_MAKE_URI_DIR_CURRENT);
+
yelp_base = main_activate_base ();
if (!yelp_base) {
g_error ("Couldn't activate YelpBase");
}
-
- main_open_new_window (yelp_base, url);
+
+ main_open_new_window (yelp_base, new_url);
gdk_notify_startup_complete ();
-
+
bonobo_object_release_unref (yelp_base, NULL);
if (url) {