Commit Graph

41 Commits

Author SHA1 Message Date
Sven Neumann 03235e4b23 tools/Makefile.am tools/gimp-remote.[ch] split gimp-remote into common and
2007-10-25  Sven Neumann  <sven@gimp.org>

	* tools/Makefile.am
	* tools/gimp-remote.[ch]
	* tools/gimp-remote-x11.c: split gimp-remote into common and X11
	specific code.

svn path=/trunk/; revision=23947
2007-10-25 14:46:27 +00:00
Sven Neumann e4e08c59c0 check Atoms before using them. Fixes bug #392111.
2007-01-09  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c (gimp_remote_find_window): check Atoms
	before using them. Fixes bug #392111.


svn path=/trunk/; revision=21680
2007-01-09 14:03:39 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Sven Neumann 179f0cc4f4 tools/gimp-remote.c applied patch from Michael Klein that adds an option
2006-08-14  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c
	* docs/gimp-remote.1.in: applied patch from Michael Klein that
adds
	an option to print out the XID of the toolbox window (bug
#351205).
2006-08-14 19:11:15 +00:00
Sven Neumann ced16ab85c increased timeout to 5 seconds (bug #347345).
2006-07-13  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: increased timeout to 5 seconds (bug
#347345).
2006-07-13 06:01:55 +00:00
Sven Neumann 4d631d741c applied patch from Eric Lamarque that adds a new function to checks for a
2006-06-23  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: applied patch from Eric Lamarque that
adds
	a new function to checks for a valid URI. Fixes bug #332835.
2006-06-23 08:33:23 +00:00
Sven Neumann 5583a9048e tools/gimp-remote.c converted tabs to spaces.
2006-04-12  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c
	* tools/kernelgen.c: converted tabs to spaces.
2006-04-12 09:45:20 +00:00
Sven Neumann 859c8ae3cb tools/gimp-remote.c use G_OPTION_FLAG_NO_ARG where needed.
2005-09-26  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c
	* tools/test-clipboard.c: use G_OPTION_FLAG_NO_ARG where needed.
2005-09-26 10:01:22 +00:00
Sven Neumann 18943eba39 fixed signedness warnings.
2005-07-26  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: fixed signedness warnings.
2005-07-26 01:21:17 +00:00
Sven Neumann 3dcd00c127 Use the canonical form for signal names.
2005-05-27  Sven Neumann  <sven@gimp.org>

	* (lots of files): Use the canonical form for signal names.
2005-05-28 00:21:58 +00:00
Sven Neumann 2d38ab6a43 add the gtk+ options to the GOptionContext.
2005-02-08  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: add the gtk+ options to the GOptionContext.
2005-02-08 20:18:07 +00:00
Dave Neary 7a77aeabfb Added locale.h to the headers included - fixes the build.
2005-02-05  Dave Neary  <bolsh@gimp.org>

	* tools/gimp-remote.c: Added locale.h to the headers
	included - fixes the build.
2005-02-05 08:53:19 +00:00
Sven Neumann 17fc813922 tools/Makefile.am allow to localize gimp-remote.
2005-02-03  Sven Neumann  <sven@gimp.org>

	* tools/Makefile.am
	* tools/gimp-remote.c: allow to localize gimp-remote.

	* app/main.c: changed a string so it can be shared with gimp-remote.
2005-02-03 20:23:51 +00:00
Sven Neumann 91cd5ba78a ported to GOption command-line parser.
2005-02-03  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: ported to GOption command-line parser.
2005-02-03 16:56:43 +00:00
Sven Neumann 8bfc8b4aa0 added --no-splash command-line option that is passed to gimp. Addresses
2004-11-21  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: added --no-splash command-line option that
	is passed to gimp. Addresses Debian bug report #277989.

	* docs/gimp-remote.1.in: document the new option.
2004-11-21 22:47:43 +00:00
Michael Natterer fe9580449a correctly convert relative paths to URIs. Append the resulting URI only if
2004-07-22  Michael Natterer  <mitch@gimp.org>

	* tools/gimp-remote.c (main): correctly convert relative paths to
	URIs. Append the resulting URI only if it's not NULL.
2004-07-22 11:32:50 +00:00
Sven Neumann ffdf3a5bc3 reverted last change and go back to the solution using fork(). Hopefully
2004-04-13  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: reverted last change and go back to the
	solution using fork(). Hopefully fixes bug #139158 this time.
2004-04-13 16:42:03 +00:00
Sven Neumann 27addd2ed7 reverted the last change and did a different fix that involves closing the
2004-04-10  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c (start_new_gimp): reverted the last change
	and did a different fix that involves closing the X display before
	starting gimp (bug #139158).
2004-04-10 10:25:36 +00:00
Sven Neumann 7c28468722 applied a patch from Michael Matz that calls fork() before starting gimp.
2004-04-08  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c (start_new_gimp): applied a patch from
	Michael Matz that calls fork() before starting gimp. This is to
	avoid X server authentification problems (bug #139158).
2004-04-08 15:19:44 +00:00
Sven Neumann 58df261e2b use putenv(); setenv() isn't available everywhere (bug #137930).
2004-03-22  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: use putenv(); setenv() isn't available
	everywhere (bug #137930).
2004-03-22 13:26:40 +00:00
Sven Neumann de4e9fbbf4 more cleanup.
2004-03-07  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: more cleanup.
2004-03-06 23:52:19 +00:00
Sven Neumann d2fb36e60a define GIMP_APP_VERSION
2004-03-07  Sven Neumann  <sven@gimp.org>

	* tools/Makefile.am (AM_CPPFLAGS): define GIMP_APP_VERSION

	* tools/gimp-remote.c: when starting a new gimp, make sure the
	desktop-startup-id gets passed to it. Makes startup notification
	work correctly again.
2004-03-06 23:30:19 +00:00
Sven Neumann 04f09639b2 use the UTF-encoded URI in error messages, not the filename.
2004-02-02  Sven Neumann  <sven@gimp.org>

	* libgimpthumb/gimpthumbnail.c (gimp_thumbnail_save_thumb): use
	the UTF-encoded URI in error messages, not the filename.

	* app/Makefile.am: use $(EXEEXT) for dist-hook binary dependency.

	* tools/gimp-remote.c: include <unistd.h> conditionally.
2004-02-02 12:40:18 +00:00
Sven Neumann e2b5e8ed32 added new command-line options --existing and --query. The former allows
2004-01-20  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: added new command-line options --existing
	and --query. The former allows to get the old behaviour back and
	the latter might be useful one day.

	* docs/gimp-remote-1.3.1.in: document the new options.
2004-01-20 20:09:32 +00:00
Sven Neumann 4226b00b48 when starting a new gimp, pass it the display gimp-remote is running on.
2004-01-20  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: when starting a new gimp, pass it the
	display gimp-remote is running on.
2004-01-20 13:50:10 +00:00
Sven Neumann 575ec2e9e2 always open a new GIMP instance when being called without any
2004-01-20  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: always open a new GIMP instance when being
	called without any filenames/URLs. This makes it behave better when
	being used from application launchers such as the GNOME panel.

	* docs/gimp-remote-1.3.1.in: document the new behaviour.
2004-01-20 13:00:17 +00:00
Sven Neumann b5bf60ac6a made --new the default behaviour and allow gimp-remote to be called
2004-01-20  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: made --new the default behaviour and allow
	gimp-remote to be called without any image filenames.

	* docs/gimp-remote-1.3.1.in: changed accordingly.

	* data/misc/gimp.applications
	* data/misc/gimp.desktop.in.in: removed --new option from
	gimp-remote calls.
2004-01-20 12:07:26 +00:00
Manish Singh 05ece027fa search for the window role "gimp-toolbox", since the app sets that instead
2003-11-17  Manish Singh  <yosh@gimp.org>

        * tools/gimp-remote.c (gimp_remote_find_window): search for the
        window role "gimp-toolbox", since the app sets that instead of
        the class now.
2003-11-17 08:46:51 +00:00
Sven Neumann 93dadb8ae3 made multi-head safe. Let GTK+ parse the command-line before checking for
2003-10-31  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: made multi-head safe. Let GTK+ parse the
	command-line before checking for application-specific parameters.

	* docs/gimp-remote-1.3.in: document the --display command-line option.
2003-10-31 18:36:11 +00:00
Sven Neumann dda6e4822a accept URLs with https protocol.
2003-09-07  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c: accept URLs with https protocol.
2003-09-07 16:23:02 +00:00
Sven Neumann ba8060a839 include X11/Xmu/WinUtil.h after including the GTK+/GDK headers.
2003-03-26  Sven Neumann  <sven@gimp.org>

        * tools/gimp-remote.c: include X11/Xmu/WinUtil.h after including
        the GTK+/GDK headers.
2003-03-26 15:38:36 +00:00
Simon Budig c8751919f0 Implemented a heuristics that tries to start the gimp in the same
2003-01-08  Simon Budig  <simon@gimp.or>

        * tools/gimp-remote.c: Implemented a heuristics that tries to
        start the gimp in the same directory as gimp-remote-1.3.
        If this fails it falls back to the regular PATH search.

        For sanity checks this feature requires that the command name
        starts with "gimp-remote". If you do weird symlinks the heuristics
        will fall back to the PATH search silently.
2003-01-08 21:09:53 +00:00
Sven Neumann b9494c2583 Michael Natterer <mitch@gimp.org>
2003-01-06  Sven Neumann  <sven@gimp.org>
	    Michael Natterer  <mitch@gimp.org>

	* tools/gimp-remote.c (gimp_remote_find_window): re-wrote this
	function without looking at the original source, so it is finally
	free from non-GPL copyright issues.
2003-01-06 14:28:29 +00:00
Sven Neumann 9ccebbd48e restructured, added lots of comments. Reenabled build of gimp-remote.
2002-05-27  Sven Neumann  <sven@gimp.org>

	* configure.in: restructured, added lots of comments. Reenabled
	build of gimp-remote.

	* app/main.c: output name and version with usage information.

	* docs/Makefile.am: install the gimp-remote-1.3 man-page.

	* tools/Makefile.am: link gimp-remote-1.3 to gimp-remote if
	enable-default-binary was choosen at configure time.

	* tools/gimp-remote.c: make it start gimp-1.3 if called with the
	--new command-line option. Still the same bad hack as in 1.2 :-(
2002-05-27 13:59:27 +00:00
Sven Neumann de5af18f87 rewrote so gcc-3.0 doesn't complain.
2001-10-29  Sven Neumann  <sven@gimp.org>

	* app/base/temp-buf.c (temp_buf_to_gray): rewrote so gcc-3.0 doesn't
	complain.

	* app/widgets/gimpfontselection-dialog.c: use g_ascii_strcasecmp().

	* libgimp/gimpintl.h
	* libgimp/stdplugins-intl.h
	* plug-ins/script-fu/script-fu-intl.h: don't call gtk_set_locale()
	since gtk_init() does it for us now. Don't set LC_NUMERIC to "C".
	INIT_I18N_UI() is the same as INIT_I18N_UI() now.

	* app/devices.c
	* app/gimprc.c
	* app/core/gimpbrushgenerated.c
	* app/core/gimpgradient.c
	* app/gui/color-notebook.c
	* app/gui/gradients-commands.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gflare/gflare.c
	* plug-ins/gimpressionist/presets.c
	* plug-ins/ifscompose/ifscompose_storage.c: use g_ascii_formatd() and
	g_ascii_strtod() to serialize and deserialize floats. These functions
	are locale-independent. There are probably more places that need to be
	fixed in this fashion.

	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/script-fu/script-fu.c: s/INIT_I18N_UI/INIT_I18N/

	* tools/gimp-remote.c
	* app/widgets/gimpwidgets-utils.c
	* app/core/gimpimage-contiguous-region.c
	* app/paint-funcs/paint-funcs-indexeda.c
	* app/paint-funcs/paint-funcs.c
	* app/tools/gimppathtool.c
	* app/tools/path_tool.c
	* modules/colorsel_triangle.c
	* plug-ins/common/mpeg.c
	* plug-ins/imagemap/imap_csim_parse.c: cleanups
2001-10-29 12:51:21 +00:00
Sven Neumann b2c676bd74 added GTK_DISABLE_COMPAT_H back to CPPFLAGS.
2001-08-01  Sven Neumann  <sven@gimp.org>

	* configure.in: added GTK_DISABLE_COMPAT_H back to CPPFLAGS.

	* app/user_install.c
	* app/base/base.c
	* app/gui/info-window.c
	* app/gui/menus.c
	* app/gui/preferences-dialog.c
	* app/pdb/procedural_db_cmds.c
	* app/tools/gimpcurvestool.c
	* app/tools/gimptexttool.c
	* app/tools/gimptransformtool.c
	* app/widgets/gimpdialogfactory.c
	* app/widgets/gimpdockbook.c
	* app/widgets/gimpdrawablelistview.c
	* app/widgets/gimpnavigationpreview.c
	* libgimpbase/gimpparasiteio.c
	* libgimpwidgets/gimpwidgets.c
	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/uniteditor.c
	* plug-ins/dbbrowser/dbbrowser_utils.c
	* plug-ins/gap/gap_navigator_dialog.c
	* plug-ins/gdyntext/gdyntext_ui.c
	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/ifscompose/ifscompose_storage.c
	* plug-ins/print/gimp_main_window.c
	* tools/gimp-remote.c
	* tools/pdbgen/pdb/procedural_db.pdb: replaced lots of deprecated
	glib, gdk and gtk+ functions using the new API.

	* app/paint-funcs/paint-funcs-rgb.c: removed trailing commas.
2001-08-01 00:35:59 +00:00
Michael Natterer 1cd6fcc19c libgimp/.cvsignore libgimp/Makefile.am libgimp/gimp.h removed
2001-05-22  Michael Natterer  <mitch@gimp.org>

	* libgimp/.cvsignore
	* libgimp/Makefile.am
	* libgimp/gimp.h
	* libgimp/gimpfeatures.h.in: removed gimpfeatures.h

	* libgimpbase/.cvsignore
	* libgimpbase/Makefile.am
	* libgimpbase/gimpbase.h
	* libgimpbase/gimpbasetypes.h
	* libgimpbase/gimpversion.h.in: and added it as gimpversion.h

	* configure.in: changed accordingly.

	* app/app_procs.c
	* app/main.c
	* app/gui/about-dialog.c
	* app/gui/splash.c
	* app/pdb/misc_cmds.c
	* tools/pdbgen/pdb/misc.pdb: fixed includes.

	* plug-ins/bmp/bmpread.c
	* plug-ins/bmp/bmpwrite.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/ps.c
	* plug-ins/common/tiff.c
	* plug-ins/gdyntext/gdyntextcompat.h
	* plug-ins/gimpressionist/gimpressionist.c
	* plug-ins/perl/Gimp.xs
	* plug-ins/perl/Gimp/Lib.xs
	* plug-ins/pygimp/gimpmodule.c
	* tools/gimp-remote.c: removed all #ifdef GIMP_HAVE_BLAH
	conditionals as they are broken anyway since we changed all
	plug-ins with perl scripts shortly before 1.2. Also, refering to
	intermediate unstable releases is evil.
2001-05-22 00:36:38 +00:00
David Neary 0cba458c47 Got rid of some annoying warnings about stuff like exit not having a
2001-05-10  David Neary  <dneary@eircom.net>

	* tools/gimp-remote.c: Got rid of some annoying
	warnings about stuff like exit not having a prototype.
	Included string.h and stdlib.h.
2001-05-10 15:39:00 +00:00
Sven Neumann c25f06b88f added command-line option --new that starts a new gimp if no suitable
2000-08-08  Sven Neumann  <sven@gimp.org>

* tools/gimp-remote.c: added command-line option --new that starts
a new gimp if no suitable gimp-window is found.
2000-08-08 14:05:50 +00:00
Sven Neumann 2010d3a822 build gimp-remote
2000-07-15  Sven Neumann  <neo@wintermute.ochsenblut.de>

        * tools/Makefile.am: build gimp-remote

        * tools/gimp-remote.c: g_error() should only be used
        for fatal errors that can never happen.

        * plug-ins/script-fu/po/pt_BR.po
        * plug-ins/script-fu/po: removed. I guess this was
        accidentally added.
2000-07-14 22:08:37 +00:00
Simon Budig 577f191f43 new file This is a first implementation of a remote control for gimp. It
2000-07-11  Simon Budig  <simon@gimp.org>

        * tools/gimp-remote.c: new file
        This is a first implementation of a remote control for gimp.
        It synthesizes a drag'n'drop event on the toolbox to make
        Gimp load a file or an URL. Not yet built automatically since
        I have no idea about automake etc. Simply build it with
          gcc -o gimp-remote `gtk-config --cflags --libs` \
              -lXmu -Wall gimp-remote.c

        Disclaimer: Faking drag'n'drop for remote controlling an
        application is a hack. We should include a saner interface
        for this in Gimp 2.0.
2000-07-12 21:52:01 +00:00