1. 11 Jul, 2018 1 commit
  2. 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.
      de108498
  3. 21 Apr, 2018 1 commit
  4. 08 Apr, 2018 1 commit
  5. 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.
      2334cb41
  6. 12 Dec, 2015 2 commits
  7. 31 May, 2015 1 commit
  8. 12 Nov, 2012 1 commit
  9. 11 Nov, 2012 2 commits
  10. 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.
      0b56aa0d
  11. 02 May, 2012 1 commit
  12. 06 Apr, 2011 1 commit
  13. 16 Feb, 2011 1 commit
  14. 19 Oct, 2010 1 commit
  15. 07 Jul, 2010 1 commit
  16. 19 Apr, 2010 1 commit
  17. 06 Mar, 2010 1 commit
  18. 17 Oct, 2009 1 commit
  19. 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
      	defined.
      
      
      svn path=/trunk/; revision=28191
      8becbc65
  20. 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
      d9b5207a
  21. 17 Jul, 2008 1 commit
  22. 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
      26d1021e
  23. 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
      fb1ec398
  24. 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
      ec11dbc1
  25. 06 Jun, 2007 1 commit
  26. 22 Jan, 2007 1 commit
  27. 16 Oct, 2006 1 commit
  28. 12 Apr, 2006 1 commit
  29. 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):
      	added GIMP_PROGRESS_COMMAND_GET_WINDOW.
      
      	* 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
      	compatible.
      
      	* 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
      	window.
      
      	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.
      b10adabb
  30. 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.
      ec56ef9d
  31. 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.
      9c376b38
  32. 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
              dialogs.
      
              * 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.
      62b5c77c
  33. 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.
      35b372ea
  34. 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
      	message.
      
      	* 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
      	variable.
      3fb6adbc
  35. 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
      	domain.
      
      	* app/pdb/help_cmds.c
      	* libgimp/gimphelp_pdb.[ch]: regenerated.
      
      	* libgimp/gimpui.c (gimp_ui_help_func): pass NULL as help_domain.
      ebcb621c
  36. 15 Nov, 2003 3 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
      	GimpWidgetsVTable.
      
      	* libgimpwidgets/gimpsizeentry.c
      	* libgimpwidgets/gimpunitmenu.c
      	* libgimpwidgets/gimpwidgets.c: use normal gimp_unit functions
      	again.
      
      	* 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
      	units_init().
      
      	* app/main.c: changed accordingly.
      5221d4da
    • 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.
      50e8667b
    • Manish Singh's avatar
      and #undef GTK_DISABLE_DEPRECATED, for gtk_preview_set_gamma declaration. · 2f9e4c17
      Manish Singh authored
      2003-11-15  Manish Singh  <yosh@gimp.org>
      
              * libgimp/gimpui.c: and #undef GTK_DISABLE_DEPRECATED, for
              gtk_preview_set_gamma declaration.
      2f9e4c17