diff -u -ru gaim-0.77-orig/src/gtknotify.c gaim-0.77/src/gtknotify.c --- gaim-0.77-orig/src/gtknotify.c 2004-03-29 22:11:01.000000000 -0500 +++ gaim-0.77/src/gtknotify.c 2004-05-02 22:31:28.000000000 -0400 @@ -481,6 +481,17 @@ } #endif /* _WIN32 */ +gboolean +running_gnome(void) +{ + if (g_getenv ("GNOME_DESKTOP_SESSION_ID") && g_find_program_in_path ("gnome-open") != NULL) + { + return TRUE; + } + + return FALSE; +} + static void * gaim_gtk_notify_uri(const char *uri) { @@ -493,7 +504,12 @@ web_browser = gaim_prefs_get_string("/gaim/gtk/browsers/browser"); place = gaim_prefs_get_int("/gaim/gtk/browsers/place"); - if (!strcmp(web_browser, "netscape")) + /* if they are running gnome, use the gnome web browser */ + if (running_gnome() == TRUE) + { + command = g_strdup_printf("gnome-open \"%s\"", uri); + } + else if (!strcmp(web_browser, "netscape")) { command = g_strdup_printf("netscape \"%s\"", uri); diff -u -ru gaim-0.77-orig/src/gtkprefs.c gaim-0.77/src/gtkprefs.c --- gaim-0.77-orig/src/gtkprefs.c 2004-04-21 17:04:59.000000000 -0400 +++ gaim-0.77/src/gtkprefs.c 2004-05-02 22:40:48.000000000 -0400 @@ -2510,7 +2510,10 @@ prefs_notebook_add_page(_("Proxy"), NULL, proxy_page(), &p, NULL, notebook_page++); #ifndef _WIN32 /* We use the registered default browser in windows */ - prefs_notebook_add_page(_("Browser"), NULL, browser_page(), &p, NULL, notebook_page++); + /* if the user is running gnome 2.x, hide the browsers tab */ + if (running_gnome() == FALSE) { + prefs_notebook_add_page(_("Browser"), NULL, browser_page(), &p, NULL, notebook_page++); + } #endif prefs_notebook_add_page(_("Logging"), NULL, logging_page(), &p, NULL, notebook_page++); prefs_notebook_add_page(_("Sounds"), NULL, sound_page(), &p, NULL, notebook_page++);