[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-devel] default web browser
From: |
Charles Kerr |
Subject: |
Re: [Pan-devel] default web browser |
Date: |
Sun, 30 Nov 2003 21:16:29 -0800 |
User-agent: |
Mutt/1.5.4i |
On Sun, Nov 30, 2003 at 06:41:02PM -0800, Evan Martin wrote:
> On Wed, Nov 26, 2003 at 02:35:10AM -0500, Alexandre Jasmin wrote:
> > Windows also have a default web browser that can be launched using the
> > base api. Unfortunately that would require some #ifdef and I don't see
> > any macro in the configure script that strive to detect windows.
>
> GLib tells you it's on windows via the G_OS_WIN32 define.
>
> This code does the trick:
>
> #ifdef G_OS_WIN32
> #include <windows.h>
> void
> spawn_url(GtkWindow *parent, const char *url) {
> ShellExecute(NULL, "open", url, NULL, NULL, SW_SHOWNORMAL);
> }
> #else
> /* tricky pan code here that provides the same function. */
> #endif
Evan, thanks for the patch!
I've put this in bugzilla at http://bugzilla.gnome.org/show_bug.cgi?id=128270
and will try to get it into CVS after I get a chance to play around in Windows.
--
cheers,
Charles
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Pan-devel] default web browser,
Charles Kerr <=