Warn about the ads in the messages from the egroups-hosted Win32 lists ;-)

2000-04-11  Tor Lillqvist  <tml@iki.fi>

* README: Warn about the ads in the messages from the
egroups-hosted Win32 lists ;-)

* gimprc.win32: Use correct path separators. Document help-browser
diffferently on Win32.

* plug-ins/webbrowser/webbrowser.c: Implement on Win32.

* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add it.
This commit is contained in:
Tor Lillqvist 2000-04-10 23:30:19 +00:00 committed by Tor Lillqvist
parent c893ebb5d9
commit 5a40e72bd3
7 changed files with 56 additions and 21 deletions

View File

@ -1,3 +1,16 @@
2000-04-11 Tor Lillqvist <tml@iki.fi>
* README: Warn about the ads in the messages from the
egroups-hosted Win32 lists ;-)
* gimprc.win32: Use correct path separators. Document help-browser
diffferently on Win32.
* plug-ins/webbrowser/webbrowser.c: Implement on Win32.
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Add it.
2000-04-10 Tor Lillqvist <tml@iki.fi>
* README: Correct the info about Win32 mailing lists.

5
README
View File

@ -63,7 +63,10 @@ or
respectively. You can also use the web interface at
http://www.egroups.com/group/gimpwin-users/ and
http://www.egroups.com/group/gimpwin-dev/ .
http://www.egroups.com/group/gimpwin-dev/ . Note that as these mailing
lists are hosted on egroups.com, the messages from the list contain
relatively unintrusive and easily ignored advertisements at the
end. But if you are absolutely allergic to ads, don't subscribe.
3. IRC

View File

@ -289,22 +289,21 @@
# Help browser
# Determines which program to use as browser for the GIMP help pages.
# Possible values are "gimp" which means the built-in help browser
# which comes with GIMP as a plug-in and "netscape" which will show
# the help pages using the "netscape-remote" command.
(help-browser gimp)
# The only possible value on Win32 is "netscape" which will show
# the help pages using your default web browser.
(help-browser netscape)
# Gfig search path
# This path will be searched for Gfig figures when you use the Gfig plug-in.
(gfig-path "${gimp_dir}/gfig;${gimp_data_dir}/gfig")
(gfig-path "${gimp_dir}\\gfig;${gimp_data_dir}\\gfig")
# Fractalexplorer path
# This path will be searched for fractals when you use the Fractalexplorer
# plug-in.
(fractalexplorer-path "${gimp_dir}/fractalexplorer;${gimp_data_dir}/fractalexplorer")
(fractalexplorer-path "${gimp_dir}\\fractalexplorer;${gimp_data_dir}\\fractalexplorer")
# GFlare path
# This path will be searched for gflares when you use the GFlare plug-in.
(gflare-path "${gimp_dir}/gflare;${gimp_data_dir}/gflare")
(gflare-path "${gimp_dir}\\gflare;${gimp_data_dir}\\gflare")
# [end of file]

View File

@ -289,22 +289,21 @@
# Help browser
# Determines which program to use as browser for the GIMP help pages.
# Possible values are "gimp" which means the built-in help browser
# which comes with GIMP as a plug-in and "netscape" which will show
# the help pages using the "netscape-remote" command.
(help-browser gimp)
# The only possible value on Win32 is "netscape" which will show
# the help pages using your default web browser.
(help-browser netscape)
# Gfig search path
# This path will be searched for Gfig figures when you use the Gfig plug-in.
(gfig-path "${gimp_dir}/gfig;${gimp_data_dir}/gfig")
(gfig-path "${gimp_dir}\\gfig;${gimp_data_dir}\\gfig")
# Fractalexplorer path
# This path will be searched for fractals when you use the Fractalexplorer
# plug-in.
(fractalexplorer-path "${gimp_dir}/fractalexplorer;${gimp_data_dir}/fractalexplorer")
(fractalexplorer-path "${gimp_dir}\\fractalexplorer;${gimp_data_dir}\\fractalexplorer")
# GFlare path
# This path will be searched for gflares when you use the GFlare plug-in.
(gflare-path "${gimp_dir}/gflare;${gimp_data_dir}/gflare")
(gflare-path "${gimp_dir}\\gflare;${gimp_data_dir}\\gflare")
# [end of file]

View File

@ -30,7 +30,7 @@ COMMON4 = mapcolor max_rgb mblur newsprint nlfilt noisify normalize nova oilify
COMMON5 = sample_colorize scatter_hsv semiflatten sharpen shift smooth_palette snoise sobel sparkle spheredesigner spread sunras tga threshold_alpha tiff tile tileit tiler unsharp video vinvert vpropagate waves whirlpinch winclipboard wind winprint wmf xbm xwd zealouscrop
# These have own subdirectories each
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp borderaverage dbbrowser faxg3 fits flame fp gdyntext gfig gflare gfli gimpressionist ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain winsnap
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp borderaverage dbbrowser faxg3 fits flame fp gdyntext gfig gflare gfli gimpressionist ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain webbrowser winsnap
# These are unofficial, ie not in the CVS. To build these, you should
# get tml's source snapshot and copy this makefile to the

View File

@ -29,7 +29,7 @@ COMMON4 = mapcolor max_rgb mblur newsprint nlfilt noisify normalize nova oilify
COMMON5 = sample_colorize scatter_hsv semiflatten sharpen shift smooth_palette snoise sobel sparkle spheredesigner spread sunras tga threshold_alpha tiff tile tileit tiler unsharp video vinvert vpropagate waves whirlpinch winclipboard wind winprint wmf xbm xwd zealouscrop
# These have own subdirectories each
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp borderaverage dbbrowser faxg3 fits flame fp gdyntext gfig gflare gfli gimpressionist ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain winsnap
SEPARATE = AlienMap AlienMap2 FractalExplorer Lighting MapObject bmp borderaverage dbbrowser faxg3 fits flame fp gdyntext gfig gflare gfli gimpressionist ifscompose imagemap maze mosaic pagecurl rcm sel2path sgi sinus struc twain webbrowser winsnap
# These are unofficial, ie not in the CVS. To build these, you should
# get tml's source snapshot and copy this makefile to the

View File

@ -33,19 +33,28 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
#include <ctype.h>
#ifdef __EMX__
#include <process.h>
#endif
#include <gtk/gtk.h>
#ifdef G_OS_WIN32
#define STRICT
#include <windows.h>
#include <shellapi.h>
#else
#include <X11/X.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xmu/WinUtil.h> /* for XmuClientWindow() */
#endif
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
@ -78,10 +87,12 @@ static void new_window_callback (GtkWidget *widget,
gpointer data);
static void url_callback (GtkWidget *widget,
gpointer data);
#ifndef G_OS_WIN32
static gint mozilla_remote (gchar *command);
#endif
static gint open_url (gchar *url,
gint new_window);
static gint mozilla_remote (gchar *command);
GPlugInInfo PLUG_IN_INFO =
@ -208,6 +219,11 @@ static gint
start_browser (gchar *prog,
gchar *url)
{
#ifdef G_OS_WIN32
ShellExecute (HWND_DESKTOP, "open", url, NULL, "C:\\", SW_SHOWNORMAL);
#else
#ifndef __EMX__
pid_t cpid;
@ -221,6 +237,7 @@ start_browser (gchar *prog,
#else
return (spawnlp (P_NOWAIT, prog, prog, url, NULL) != -1);
#endif
#endif /* !G_OS_WIN32 */
}
static gint
@ -232,15 +249,15 @@ open_url (gchar *url,
while (isspace (*url))
++url;
#ifndef G_OS_WIN32
sprintf (buf, "openURL(%s%s)", url, new_window ? ",new-window" : "");
if (mozilla_remote (buf))
return (TRUE);
#endif
return (start_browser (BROWSER_PROGNAME, url));
}
static gint
open_url_dialog (void)
{
@ -368,6 +385,8 @@ url_callback (GtkWidget *widget,
strncpy (url_info.url, gtk_entry_get_text (GTK_ENTRY (widget)), URL_BUF_SIZE);
}
#ifndef G_OS_WIN32
/* -*- Mode:C; tab-width: 8 -*-
* remote.c --- remote control of Netscape Navigator for Unix.
* version 1.1.3, for Netscape Navigator 1.1 and newer.
@ -955,3 +974,5 @@ mozilla_remote (char *command)
return (!status);
}
#endif /* !G_OS_WIN32 */