Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
evince
evince-2.19.92-correct-help-uri.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File evince-2.19.92-correct-help-uri.patch of Package evince
Index: evince-2.23.5/shell/ev-window.c =================================================================== --- evince-2.23.5.orig/shell/ev-window.c +++ evince-2.23.5/shell/ev-window.c @@ -3358,48 +3358,15 @@ ev_window_cmd_help_contents (GtkAction * { GError *error = NULL; GdkScreen *screen; - char *command; - const char *lang; - char *uri = NULL; - - int i; - - const char * const * langs = g_get_language_names (); - - for (i = 0; langs[i]; i++) { - lang = langs[i]; - if (strchr (lang, '.')) { - continue; - } - - uri = g_build_filename(GNOMEDATADIR, - "/gnome/help/" PACKAGE, - lang, - "/evince.xml", - NULL); - - if (g_file_test (uri, G_FILE_TEST_EXISTS)) { - break; - } - g_free (uri); - uri = NULL; - } - - if (uri == NULL) { - g_warning ("Cannot find help"); - return; - } - - command = g_strconcat ("gnome-help ghelp://", uri, NULL); - g_free (uri); screen = gtk_widget_get_screen (GTK_WIDGET (ev_window)); - gdk_spawn_command_line_on_screen (screen, command, &error); + gdk_spawn_command_line_on_screen (screen, + "gnome-open ghelp://evince", + &error); if (error != NULL) { g_warning ("%s", error->message); g_error_free (error); } - g_free (command); } static void
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor