# HG changeset patch # User rtobar@csrg.inf.utfsm.cl # Date 1284825257 0 # Node ID 41c3ae96f3984fefa53e8c43f46986e26bc2d12c # Parent 00455fe8c574878bc97f909f223df7b764e08d72 Make the "Manual" browser setting's command be stored as a string instead of as a path. Storing it as a path requires specifying the full path to the command when just the command name would suffice. Fixes #12024. committer: John Bailey diff -r 00455fe8c574 -r 41c3ae96f398 pidgin/gtknotify.c --- a/pidgin/gtknotify.c Sat Sep 18 02:01:29 2010 +0000 +++ b/pidgin/gtknotify.c Sat Sep 18 15:54:17 2010 +0000 @@ -1392,7 +1392,7 @@ { const char *web_command; - web_command = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/browsers/command"); + web_command = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/browsers/command"); if (web_command == NULL || *web_command == '\0') { diff -r 00455fe8c574 -r 41c3ae96f398 pidgin/gtkprefs.c --- a/pidgin/gtkprefs.c Sat Sep 18 02:01:29 2010 +0000 +++ b/pidgin/gtkprefs.c Sat Sep 18 15:54:17 2010 +0000 @@ -1811,7 +1811,7 @@ { const char *program = gtk_entry_get_text(GTK_ENTRY(entry)); - purple_prefs_set_path(PIDGIN_PREFS_ROOT "/browsers/command", program); + purple_prefs_set_string(PIDGIN_PREFS_ROOT "/browsers/command", program); /* carry on normally */ return FALSE; @@ -1968,7 +1968,7 @@ entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), - purple_prefs_get_path(PIDGIN_PREFS_ROOT "/browsers/command")); + purple_prefs_get_string(PIDGIN_PREFS_ROOT "/browsers/command")); g_signal_connect(G_OBJECT(entry), "focus-out-event", G_CALLBACK(manual_browser_set), NULL); hbox = pidgin_add_widget_to_vbox(GTK_BOX(vbox), _("_Manual:\n(%s for URL)"), sg, entry, TRUE, NULL); @@ -2828,7 +2828,7 @@ /* Browsers */ purple_prefs_add_none(PIDGIN_PREFS_ROOT "/browsers"); purple_prefs_add_int(PIDGIN_PREFS_ROOT "/browsers/place", PIDGIN_BROWSER_DEFAULT); - purple_prefs_add_path(PIDGIN_PREFS_ROOT "/browsers/command", ""); + purple_prefs_add_string(PIDGIN_PREFS_ROOT "/browsers/command", ""); purple_prefs_add_string(PIDGIN_PREFS_ROOT "/browsers/browser", "mozilla"); #endif