1. 18 Oct, 2018 1 commit
    • Alex Samorukov's avatar
      Fix plugin focus issues on osx · 3adf4a48
      Alex Samorukov authored
      GTK/OSX does not automatically assign focus to the new windows (upstream 
      issue), so activateIgnoringOtherApps is called. However, if it is called 
      before gtk initialized it may cause number of focus issues.
  2. 11 Jul, 2018 1 commit
  3. 29 May, 2018 1 commit
    • Ell's avatar
      libgimpbase, libgimp, app: pass icon theme dir to plug-ins through config · de108498
      Ell authored
      Pass the current icon theme directory to plug-ins through the
      config message, and add a gimp_icon_theme_dir() libgimp function
      for retrieving it.  Note that we already have a similar
      gimp_icon_get_theme_dir() PDB function, which we keep around, since
      it can be used to dynamically query for the current icon dir,
      unlike the former, and since it returns a dynamically-allocated
      string, while the rest of the config-related functions return
      statically allocated strings.
      Use the new function, instead of gimp_get_icon_theme_dir(), in
      gimp_ui_init().  This allows gimp_ui_init() to run without making
      any PDB calls.  Consequently, this allows us to start plug-ins that
      call gimp_ui_init() without entering the main loop in the main app.
      We're going to add a plug-in that displays an interactive dialog
      while the main app is blocking waiting for an operation to
      complete, and we need to be able to start the plug-in without
      entering the main loop, to avoid the possibility of arbitrary code
      being executed during the wait.
      Bump the protocol version.
  4. 21 Apr, 2018 1 commit
  5. 08 Apr, 2018 1 commit
  6. 16 Jan, 2016 1 commit
    • Michael Natterer's avatar
      Bug 760579 - Plug-in dialogs fail to use UI themes · 2334cb41
      Michael Natterer authored
      Something must have changed in GTK+, probably a long time ago, because
      this code definitely used to work in the past.
      Anyway, change gimp_ui_init() in libgimpui to use gtk_rc_parse()
      instead of gtk_rc_add_default_file() which fixes the plug-in's initial
      theme, and install a GFileMonitor on themerc which calls
      gtk_rc_reparse_all() when themerc changes.
  7. 12 Dec, 2015 2 commits
  8. 31 May, 2015 1 commit
  9. 12 Nov, 2012 1 commit
  10. 11 Nov, 2012 2 commits
  11. 07 Nov, 2012 1 commit
    • Michael Natterer's avatar
      Bug 677776 - filter popup windows get hidden behind main image window · 0b56aa0d
      Michael Natterer authored
      On OSX, call [NSApp activateIgnoringOtherApps] when a plug-in dialog
      is shown, so the plug-in process becomes the active app, and the
      dialog gets focussed.
      In order to avoid doing this in GimpDialog (which is also used in
      the core), do it in gimp_ui_init() which all interactive plug-ins
      call, and when gimp_temp_proc_run() is called interactively, to
      catch repeated activation of an already running plug-in.
      Also, set GimpDialog's initial position to GTK_WIN_POS_CENTER,
      or they will pop up in the top left corner.
      Inspired by patches from Simone Karin Lehmann and Daniel Sabo.
  12. 02 May, 2012 1 commit
  13. 06 Apr, 2011 1 commit
  14. 16 Feb, 2011 1 commit
  15. 19 Oct, 2010 1 commit
  16. 07 Jul, 2010 1 commit
  17. 19 Apr, 2010 1 commit
  18. 06 Mar, 2010 1 commit
  19. 17 Oct, 2009 1 commit
  20. 22 Mar, 2009 1 commit
    • Michael Natterer's avatar
      libgimp/gimpbrushselectbutton.c libgimp/gimpexport.c · 8becbc65
      Michael Natterer authored
      2009-03-22  Michael Natterer  <mitch@gimp.org>
      	* libgimp/gimpbrushselectbutton.c
      	* libgimp/gimpexport.c
      	* libgimp/gimpfontselectbutton.c
      	* libgimp/gimpgradientselectbutton.c
      	* libgimp/gimpimagecombobox.c
      	* libgimp/gimpitemcombobox.c
      	* libgimp/gimppaletteselectbutton.c
      	* libgimp/gimppatternselectbutton.c
      	* libgimp/gimpprogressbar.c
      	* libgimp/gimpui.c
      	* libgimp/gimpzoompreview.c
      	* tools/test-clipboard.c: use accessors for various members of
      	GTK+ structures that don't exist any longer when GSEAL_ENABLE is
      svn path=/trunk/; revision=28191
  21. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      	* all files with a GPL header and all COPYING files:
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      svn path=/trunk/; revision=27913
  22. 17 Jul, 2008 1 commit
  23. 27 Mar, 2008 1 commit
    • Sven Neumann's avatar
      Properly pass the focus from the core to plug-in dialogs: · 26d1021e
      Sven Neumann authored
      2008-03-27  Sven Neumann  <sven@gimp.org>
      	Properly pass the focus from the core to plug-in dialogs:
      	* libgimpbase/gimpprotocol.[ch]: added a user_time member to the
      	GimpConfig struct. Bumped the protocol version to 0x0012.
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: added gimp_get_user_time() to get the
      	timestamp of the last user interaction.
      	* app/plug-in/gimppluginmanager-call.c
      	(gimp_plug_in_manager_call_run): pass the timestamp to in the
      	GimpConfig message.
      	* libgimp/gimp.[ch]:
      	* libgimp/gimp.def: added method to access the timestamp as set
      	in the config message.
      	* libgimp/gimpui.c (gimp_ui_init): construct a fake startup ID and
      	set the DESKTOP_STARTUP_ID environment variable.
      svn path=/trunk/; revision=25263
  24. 06 Nov, 2007 1 commit
    • Michael Natterer's avatar
      remove check for putenv(). · fb1ec398
      Michael Natterer authored
      2007-11-06  Michael Natterer  <mitch@gimp.org>
      	* configure.in: remove check for putenv().
      	* app/composite/gimp-composite-3dnow-test.c
      	* app/composite/gimp-composite-altivec-test.c
      	* app/composite/gimp-composite-mmx-test.c
      	* app/composite/gimp-composite-sse-test.c
      	* app/composite/gimp-composite-sse2-test.c
      	* app/composite/gimp-composite-vis-test.c
      	* libgimp/gimpui.c
      	* plug-ins/uri/uri-backend-wget.c
      	* tools/gimp-remote-x11.c: use g_setenv() instead of putenv().
      svn path=/trunk/; revision=24076
  25. 13 Sep, 2007 1 commit
    • Michael Natterer's avatar
      remove FOO_DISABLE_DEPRECATED for only glib >= 2.15 and gtk+ >= 2.13, GIMP · ec11dbc1
      Michael Natterer authored
      2007-09-13  Michael Natterer  <mitch@gimp.org>
      	* configure.in: remove FOO_DISABLE_DEPRECATED for only glib >= 2.15
      	and gtk+ >= 2.13, GIMP builds fine against the 2.14 and 2.12 APIs
      	apart from:
      	* app/tools/gimpselectionoptions.c
      	* libgimpwidgets/gimphelpui.c: undef GTK_DISABLE_DEPRECATED because
      	GtkTooltips is deprecated in gtk+ 2.12.
      	* libgimp/gimpui.c
      	* plug-ins/common/pat.c: the address of an array is always
      	non-NULL, no need to check for that. Fixes new gcc warnings.
      svn path=/trunk/; revision=23522
  26. 06 Jun, 2007 1 commit
  27. 22 Jan, 2007 1 commit
  28. 16 Oct, 2006 1 commit
  29. 12 Apr, 2006 1 commit
  30. 09 Sep, 2005 1 commit
    • Michael Natterer's avatar
      Added parent window API to the GimpProgress interface and to the libgimp · b10adabb
      Michael Natterer authored
      2005-09-09  Michael Natterer  <mitch@gimp.org>
      	Added parent window API to the GimpProgress interface and to
      	the libgimp progress stuff. Might look strange, but does
      	the right thing in almost all cases (image window, file dialog,
      	script-fu dialog etc). Fixes bug #62988.
      	* app/core/gimpprogress.[ch]: added GimpProgress::get_window()
      	which should return a toplevel window ID if the progress is in a
      	window that wants to be the transient parent of plug-in dialogs.
      	* app/widgets/gimpwidgets-utils.[ch] (gimp_window_get_native): new
      	function which returns the window handle of a GtkWindow's GdkWindow.
      	* app/widgets/gimpfiledialog.c: implement ::get_window().
      	* app/display/gimpdisplay.[ch]: ditto. Removed window handle API.
      	* app/gui/gui-vtable.c: changed accordingly.
      	* libgimpbase/gimpbaseenums.[ch] (enum GimpProgressCommand):
      	* app/plug-in/plug-in-progress.[ch] (plug_in_progress_get_window):
      	new function. Also renamed some functions to match the
      	GimpProgress interface, and not the legacy PDB procedure names.
      	* tools/pdbgen/pdb/progress.pdb
      	* app/core/gimppdbprogress.c: implement get_window() on both
      	sides of the wire, keeping backward compatibility (hopefully).
      	* libgimp/gimpprogress.[ch]: deprecated gimp_progress_install()
      	and added gimp_progress_install_vtable() which takes a vtable with
      	padding to be extensible. Added get_window() vtable entry and
      	dispatch it accordingly. Also added pulse() which was implemented
      	in a hackish way before. Everything is of course backward
      	* libgimp/gimpprogressbar.c: inmplement the get_window() stuff
      	so a plug-in dialog containing a progress can be the transient
      	parent of another dialog in another plug-in.
      	* libgimp/gimpui.[ch] (gimp_ui_get_progress_window): new function
      	which returns a foreign GdkWindow of this plug-ins progress
      	Renamed gimp_window_set_transient_for_default_display() to
      	gimp_window_set_transient() and make it use the progress' window
      	handle instead of the display's (which is the right thing to do in
      	almost all cases).
      	* libgimp/gimp.def
      	* libgimp/gimpui.def: add the new functions.
      	* tools/pdbgen/enums.pl
      	* app/pdb/internal_procs.c
      	* app/pdb/progress_cmds.c
      	* libgimp/gimpprogress_pdb.[ch]: regenerated.
      	* libgimp/gimpexport.c
      	* plug-ins/*/*.c: follow API change.
  31. 05 Sep, 2005 1 commit
    • Sven Neumann's avatar
      Address bug #307971: · ec56ef9d
      Sven Neumann authored
      2005-09-05  Sven Neumann  <sven@gimp.org>
      	Address bug #307971:
      	* app/core/gimp-gui.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/gui/gui-vtable.c
      	* tools/pdbgen/pdb/display.pdb: added PDB function to obtain a
      	window handle on an image display.
      	* app/pdb/display_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpdisplay_pdb.[ch]: regenerated.
      	* libgimp/gimpui.[ch]: added functions to set a GtkWindow transient
      	to an image display.
      	* plug-ins/common/gauss.c: use the new function exemplarily.
      	* libgimp/gimp.def
      	* libgimp/gimpui.def: updated.
  32. 20 Apr, 2005 1 commit
    • Sven Neumann's avatar
      cosmetics. · 9c376b38
      Sven Neumann authored
      2005-04-20  Sven Neumann  <sven@gimp.org>
      	* libgimp/gimpui.c (gimp_ensure_modules): cosmetics.
  33. 04 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/config/gimpguiconfig.[ch] added gimprc option "show-help-button". · 62b5c77c
      Sven Neumann authored
      2004-10-04  Sven Neumann  <sven@gimp.org>
              * app/config/gimpguiconfig.[ch]
              * app/config/gimprc-blurbs.h: added gimprc option "show-help-button".
              * app/dialogs/preferences-dialog.c: added a GUI for it.
              * app/dialogs/file-save-dialog.c
              * app/dialogs/image-new-dialog.c
              * app/dialogs/quit-dialog.c
              * app/display/gimpdisplayshell-close.c
              * app/widgets/gimphelp-ids.h: don't set help-ids on confirmation
              * libgimpbase/gimpprotocol.[ch]
              * libgimp/gimp.[ch]: added boolean "show_help_button" to the
              config message.
              * app/plug-in/plug-in-run.c: pass the new preference to the plug-in.
              * libgimpwidgets/gimpdialog.[ch]: added new function that allows to
              set whether new dialogs should get a help button added.
              * app/gui/gui.c
              * libgimp/gimpui.c: call gimp_dialogs_show_help_button() according
              to the gimprc settings.
  34. 22 Sep, 2004 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/Makefile.am tools/pdbgen/groups.pl removed the "Palette" pdb · 35b372ea
      Michael Natterer authored
      2004-09-22  Michael Natterer  <mitch@gimp.org>
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/palette.pdb: removed the "Palette" pdb group...
      	* tools/pdbgen/pdb/context.pdb: and added its functions to the
      	"Context" namespace instead.
      	* app/pdb/Makefile.am
      	* app/pdb/palette_cmds.c: removed.
      	* app/pdb/procedural_db.c: added them to the pdb_compat hash table.
      	* libgimp/Makefile.am
      	* libgimp/gimppalette_pdb.[ch]: removed.
      	* libgimp/gimppalette.[ch]: new files holding compat functions
      	which call gimp_context_*() functions.
      	* libgimp/gimp.h
      	* libgimp/gimpui.c: changed accordingly.
      	* app/pdb/context_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpcontext_pdb.[ch]: regenerated.
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/borderaverage.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/exchange.c
      	* plug-ins/common/film.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/grid.c
      	* plug-ins/common/mapcolor.c
      	* plug-ins/common/mblur.c
      	* plug-ins/common/mng.c
      	* plug-ins/common/mosaic.c
      	* plug-ins/common/papertile.c
      	* plug-ins/common/png.c
      	* plug-ins/common/polar.c
      	* plug-ins/common/semiflatten.c
      	* plug-ins/common/sinus.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/common/warp.c
      	* plug-ins/common/whirlpinch.c
      	* plug-ins/gfig/gfig-style.c
      	* plug-ins/gfli/gfli.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/maze/handy.c
      	* plug-ins/pagecurl/pagecurl.c
      	* plug-ins/pygimp/gimpmodule.c
      	* plug-ins/script-fu/scripts/*.scm: changed accordingly.
  35. 17 Feb, 2004 1 commit
    • Sven Neumann's avatar
      changed wm_name to app_name in the GimpConfig struct; increased · 3fb6adbc
      Sven Neumann authored
      2004-02-17  Sven Neumann  <sven@gimp.org>
      	* libgimpbase/gimpprotocol.[ch]: changed wm_name to app_name in
      	the GimpConfig struct; increased GIMP_PROTOCOL_VERSION.
      	* app/plug-in/plug-in-run.c (plug_in_run): pass the return value
      	of g_get_application_name() to the plug-ins.
      	* libgimp/gimp.[ch]: removed function gimp_wm_name(). Set the
      	plug-in's application name if an app_name is passed in the config
      	* libgimp/gimpui.c: removed usage of gimp_wm_name(); it was wrong
      	to do it this way and caused all plug-ins claim to be the gimp-1.3
      	executable in their error messages.
      	* libgimp/gimp.def: removed symbol gimp_wm_name.
      	* configure.in: reset gimp_binary_age and gimp_interface_age.
      	* app/core/gimpimage.c (gimp_image_name_changed): removed unused
  36. 20 Jan, 2004 1 commit
    • Michael Natterer's avatar
      changed "prog_name" parameter of gimp_help() to "help_domain". It's · ebcb621c
      Michael Natterer authored
      2004-01-20  Michael Natterer  <mitch@gimp.org>
      	* tools/pdbgen/pdb/help.pdb: changed "prog_name" parameter of
      	gimp_help() to "help_domain". It's useless to pass the plug-in's
      	executable name to the core because the core already knows it.
      	Instead, enabled accessing arbitrary help domains via the
      	PDB. Passing NULL as help_domain will use the domain the plug-in
      	registered, or the GIMP main help domain if it didn't register a
      	* app/pdb/help_cmds.c
      	* libgimp/gimphelp_pdb.[ch]: regenerated.
      	* libgimp/gimpui.c (gimp_ui_help_func): pass NULL as help_domain.
  37. 15 Nov, 2003 2 commits
    • Michael Natterer's avatar
      libgimpbase/Makefile.am libgimpbase/gimpbase-private.[ch] new files · 5221d4da
      Michael Natterer authored
      2003-11-15  Michael Natterer  <mitch@gimp.org>
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase-private.[ch]
      	* libgimpbase/gimpunit.c: new files implementing GimpUnitVTable
      	(formerly known as GimpWidgetsVTable). Now the unit functions
      	finally live in the same library as their header declarations.
      	* libgimpbase/gimpunit.h: removed comment about being a header for
      	two different files.
      	* libgimpwidgets/gimpwidgets-private.[ch]: removed
      	* libgimpwidgets/gimpsizeentry.c
      	* libgimpwidgets/gimpunitmenu.c
      	* libgimpwidgets/gimpwidgets.c: use normal gimp_unit functions
      	* libgimp/gimpui.c
      	* app/gui/gui.c: removed GimpWidgetVTable stuff.
      	* libgimp/Makefile.am
      	* libgimp/gimpunitcache.[ch]: new files.
      	* libgimp/gimpunit.c: removed (moved to gimpunitcache.c).
      	* libgimp/gimp.c (gimp_main): initialize GimpUnitVTable using the
      	gimp_unit_cache functions.
      	* app/Makefile.am
      	* app/units.[ch]: new files implementing GimpUnitVTable.
      	* app/libgimp_glue.[ch]: removed.
      	* app/app_procs.[ch]: made "the_gimp" a static variable. Call
      	* app/main.c: changed accordingly.
    • Sven Neumann's avatar
      reverted Yosh's change and removed the call to gtk_preview_set_gamma() · 50e8667b
      Sven Neumann authored
      2003-11-15  Sven Neumann  <sven@gimp.org>
      	* libgimp/gimpui.c (gimp_ui_init): reverted Yosh's change and
      	removed the call to gtk_preview_set_gamma() instead. The gamma
      	value isn't used anywhere else so it would only be confusing to
      	use it on plug-in previews.