Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 26319 Details for
Bug 42880
Add support for gnome-url-handler if USE=gnome when emerging gaim
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gaim-0.74-gnome-url-handler.patch
gaim-0.74-gnome-url-handler.patch (text/plain), 1.81 KB, created by
Chris Gianelloni (RETIRED)
on 2004-02-25 06:08:04 UTC
(
hide
)
Description:
gaim-0.74-gnome-url-handler.patch
Filename:
MIME Type:
Creator:
Chris Gianelloni (RETIRED)
Created:
2004-02-25 06:08:04 UTC
Size:
1.81 KB
patch
obsolete
>diff -u -ru gaim-0.74-orig/src/gtknotify.c gaim-0.74/src/gtknotify.c >--- gaim-0.74-orig/src/gtknotify.c 2003-11-07 01:40:07.000000000 -0500 >+++ gaim-0.74/src/gtknotify.c 2004-01-04 22:47:44.000000000 -0500 >@@ -393,6 +393,15 @@ > gtk_widget_destroy(GTK_WIDGET(ui_handle)); > } > >+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) > { >@@ -403,7 +412,10 @@ > > web_browser = gaim_prefs_get_string("/gaim/gtk/browsers/browser"); > >- 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); > } else if (!strcmp(web_browser, "opera")) { > if (gaim_prefs_get_bool("/gaim/gtk/browsers/new_window")) >diff -u -ru gaim-0.74-orig/src/gtkprefs.c gaim-0.74/src/gtkprefs.c >--- gaim-0.74-orig/src/gtkprefs.c 2003-11-18 18:28:40.000000000 -0500 >+++ gaim-0.74/src/gtkprefs.c 2004-01-04 22:51:21.000000000 -0500 >@@ -2268,7 +2268,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++);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42880
:
26317
|
26318
| 26319