comparison src/browser.c @ 4189:02f4eacf4c58

[gaim-migrate @ 4420] *sigh* i hate the stupid restriction on where variables can be declared in c. now browser.c compiles and the fix i committed earilier is in place. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 03 Jan 2003 17:06:31 +0000
parents c464dd315be4
children b5669740e34c
comparison
equal deleted inserted replaced
4188:c464dd315be4 4189:02f4eacf4c58
568 568
569 } 569 }
570 570
571 void open_url(GtkWidget *w, char *url) 571 void open_url(GtkWidget *w, char *url)
572 { 572 {
573 gchar *space_free_url;
573 574
574 if (web_browser == BROWSER_NETSCAPE) { 575 if (web_browser == BROWSER_NETSCAPE) {
575 char *command; 576 char *command;
576 577
577 if (misc_options & OPT_MISC_BROWSER_POPUP) 578 if (misc_options & OPT_MISC_BROWSER_POPUP)
623 args = g_new(char *, 4); 624 args = g_new(char *, 4);
624 args[0] = "mozilla"; 625 args[0] = "mozilla";
625 args[1] = url; 626 args[1] = url;
626 args[2] = NULL; 627 args[2] = NULL;
627 } else if (web_browser == BROWSER_MANUAL) { 628 } else if (web_browser == BROWSER_MANUAL) {
628 gchar *space_free_url; 629 if(strcmp(web_command,"") == 0)
630 _exit(0);
629 space_free_url = g_strdelimit(url, " ", '+'); 631 space_free_url = g_strdelimit(url, " ", '+');
630 g_snprintf(command, sizeof(command), web_command, space_free_url); 632 g_snprintf(command, sizeof(command), web_command, space_free_url);
631 g_free(space_free_url); 633 g_free(space_free_url);
632 args = g_strsplit(command, " ", 0); 634 args = g_strsplit(command, " ", 0);
633 } 635 }