diff src/gtknotify.c @ 9405:7b48e7c07bcf

[gaim-migrate @ 10219] Support for the Epiphany web browser. This one seems silly to me. Like, people should just use gnome-default or something. Eh. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 26 Jun 2004 16:41:53 +0000
parents 0c31db6bde62
children a88c8ca91518
line wrap: on
line diff
--- a/src/gtknotify.c	Sat Jun 26 16:40:32 2004 +0000
+++ b/src/gtknotify.c	Sat Jun 26 16:41:53 2004 +0000
@@ -481,37 +481,19 @@
 	web_browser = gaim_prefs_get_string("/gaim/gtk/browsers/browser");
 	place = gaim_prefs_get_int("/gaim/gtk/browsers/place");
 
-	if (!strcmp(web_browser, "netscape"))
-	{
-		command = g_strdup_printf("netscape \"%s\"", uri);
-
-		if (place == GAIM_BROWSER_NEW_WINDOW)
-		{
-			remote_command = g_strdup_printf("netscape -remote "
-											 "\"openURL(\"%s\",new-window)\"",
-											 uri);
-		}
-		else if (place == GAIM_BROWSER_CURRENT)
-		{
-			remote_command = g_strdup_printf("netscape -remote "
-											 "\"openURL(\"%s\")\"", uri);
-		}
-	}
-	else if (!strcmp(web_browser, "opera"))
+	if (!strcmp(web_browser, "epiphany") ||
+		!strcmp(web_browser, "galeon"))
 	{
 		if (place == GAIM_BROWSER_NEW_WINDOW)
-			command = g_strdup_printf("opera -newwindow \"%s\"", uri);
+			command = g_strdup_printf("%s -w \"%s\"", web_browser, uri);
 		else if (place == GAIM_BROWSER_NEW_TAB)
-			command = g_strdup_printf("opera -newpage \"%s\"", uri);
-		else if (place == GAIM_BROWSER_CURRENT)
-		{
-			remote_command = g_strdup_printf("opera -remote "
-											 "\"openURL(\"%s\")\"", uri);
-			command = g_strdup_printf("opera \"%s\"", uri);
-		}
+			command = g_strdup_printf("%s -n \"%s\"", web_browser, uri);
 		else
-			command = g_strdup_printf("opera \"%s\"", uri);
-
+			command = g_strdup_printf("%s \"%s\"", web_browser, uri);
+	}
+	else if (!strcmp(web_browser, "gnome-open"))
+	{
+		command = g_strdup_printf("gnome-open \"%s\"", uri);
 	}
 	else if (!strcmp(web_browser, "kfmclient"))
 	{
@@ -521,19 +503,6 @@
 		 * and/or current window?
 		 */
 	}
-	else if (!strcmp(web_browser, "gnome-open"))
-	{
-		command = g_strdup_printf("gnome-open \"%s\"", uri);
-	}
-	else if (!strcmp(web_browser, "galeon"))
-	{
-		if (place == GAIM_BROWSER_NEW_WINDOW)
-			command = g_strdup_printf("galeon -w \"%s\"", uri);
-		else if (place == GAIM_BROWSER_NEW_TAB)
-			command = g_strdup_printf("galeon -n \"%s\"", uri);
-		else
-			command = g_strdup_printf("galeon \"%s\"", uri);
-	}
 	else if (!strcmp(web_browser, "mozilla") ||
 			 !strcmp(web_browser, "mozilla-firebird") ||
 			 !strcmp(web_browser, "firefox"))
@@ -567,6 +536,38 @@
 											 "\"openURL(\"%s\")\"",
 											 web_browser, args, uri);
 	}
+	else if (!strcmp(web_browser, "netscape"))
+	{
+		command = g_strdup_printf("netscape \"%s\"", uri);
+
+		if (place == GAIM_BROWSER_NEW_WINDOW)
+		{
+			remote_command = g_strdup_printf("netscape -remote "
+											 "\"openURL(\"%s\",new-window)\"",
+											 uri);
+		}
+		else if (place == GAIM_BROWSER_CURRENT)
+		{
+			remote_command = g_strdup_printf("netscape -remote "
+											 "\"openURL(\"%s\")\"", uri);
+		}
+	}
+	else if (!strcmp(web_browser, "opera"))
+	{
+		if (place == GAIM_BROWSER_NEW_WINDOW)
+			command = g_strdup_printf("opera -newwindow \"%s\"", uri);
+		else if (place == GAIM_BROWSER_NEW_TAB)
+			command = g_strdup_printf("opera -newpage \"%s\"", uri);
+		else if (place == GAIM_BROWSER_CURRENT)
+		{
+			remote_command = g_strdup_printf("opera -remote "
+											 "\"openURL(\"%s\")\"", uri);
+			command = g_strdup_printf("opera \"%s\"", uri);
+		}
+		else
+			command = g_strdup_printf("opera \"%s\"", uri);
+
+	}
 	else if (!strcmp(web_browser, "custom"))
 	{
 		const char *web_command;