Mercurial > pidgin.yaz
comparison src/browser.c @ 5545:7a64114641c3
[gaim-migrate @ 5946]
I've been rewriting the prefs to move from gaimrc to prefs.xml. This will
NOT compile! I don't want to see complaints about this, as it's CVS, and
you should only be using it if you can put up with things like this. Also,
don't ask how long it'll take until it compiles again. It may be several
days. This is a big migration. Even when it works, it may not run right.
However, it's made a lot of progress, and I plan to actively work on it
today and tomorrow.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 29 May 2003 19:10:24 +0000 |
parents | 439a05a6b409 |
children | b7319c094153 |
comparison
equal
deleted
inserted
replaced
5544:0028381fa874 | 5545:7a64114641c3 |
---|---|
48 | 48 |
49 #include <gtk/gtk.h> | 49 #include <gtk/gtk.h> |
50 #include <gdk/gdkprivate.h> | 50 #include <gdk/gdkprivate.h> |
51 #include "gaim.h" | 51 #include "gaim.h" |
52 #include "notify.h" | 52 #include "notify.h" |
53 #include "prefs.h" | |
53 | 54 |
54 #ifndef _WIN32 | 55 #ifndef _WIN32 |
55 | 56 |
56 | 57 |
57 | 58 |
542 | 543 |
543 switch (web_browser) { | 544 switch (web_browser) { |
544 case BROWSER_NETSCAPE: { | 545 case BROWSER_NETSCAPE: { |
545 char *args = NULL; | 546 char *args = NULL; |
546 | 547 |
547 if (misc_options & OPT_MISC_BROWSER_POPUP) | 548 if (gaim_prefs_get_bool("/gaim/gtk/browsers/new_window")) |
548 args = g_strdup_printf("OpenURL(%s, new-window)", url); | 549 args = g_strdup_printf("OpenURL(%s, new-window)", url); |
549 else | 550 else |
550 args = g_strdup_printf("OpenURL(%s)", url); | 551 args = g_strdup_printf("OpenURL(%s)", url); |
551 | 552 |
552 if (netscape_command(args)) { | 553 if (netscape_command(args)) { |
560 command = g_strdup_printf("netscape \"%s\"", url); | 561 command = g_strdup_printf("netscape \"%s\"", url); |
561 g_free(args); | 562 g_free(args); |
562 } break; | 563 } break; |
563 | 564 |
564 case BROWSER_OPERA: | 565 case BROWSER_OPERA: |
565 if (misc_options & OPT_MISC_BROWSER_POPUP) | 566 if (gaim_prefs_get_bool("/gaim/gtk/browsers/new_window")) |
566 command = g_strdup_printf("opera -newwindow \"%s\"", url); | 567 command = g_strdup_printf("opera -newwindow \"%s\"", url); |
567 else | 568 else |
568 command = g_strdup_printf("opera \"%s\"", url); | 569 command = g_strdup_printf("opera \"%s\"", url); |
569 break; | 570 break; |
570 | 571 |
571 case BROWSER_KONQ: | 572 case BROWSER_KONQ: |
572 command = g_strdup_printf("kfmclient openURL \"%s\"", url); | 573 command = g_strdup_printf("kfmclient openURL \"%s\"", url); |
573 break; | 574 break; |
574 | 575 |
575 case BROWSER_GALEON: | 576 case BROWSER_GALEON: |
576 if (misc_options & OPT_MISC_BROWSER_POPUP) | 577 if (gaim_prefs_get_bool("/gaim/gtk/browsers/new_window")) |
577 command = g_strdup_printf("galeon -w \"%s\"", url); | 578 command = g_strdup_printf("galeon -w \"%s\"", url); |
578 else | 579 else |
579 command = g_strdup_printf("galeon \"%s\"", url); | 580 command = g_strdup_printf("galeon \"%s\"", url); |
580 break; | 581 break; |
581 | 582 |