1. 20 May, 2018 1 commit
  2. 25 Sep, 2016 1 commit
  3. 02 May, 2014 1 commit
    • Michael Natterer's avatar
      app: make things behave more reasonable with multiple monitors · 843866e7
      Michael Natterer authored
      There is now a preference option that determines whether windows
      should be opened on the same monitor as before. It should be disabled
      when the machine gets monitors plugged/unplugged dynamically ("laptop")
      and enabled when there is a static multi-monitor setup ("wokstation").
      This is merely the current simplistic policy on top of the newly added
      underlying infrastructure:
      
      - pass integer monitor numbers around in all places where we already
        pass around a GdkScreen. Pass the "current" monitor to these changed
        APIs, where "current" is either the monitor where the action-triggering
        widget is, or if that is unavailable the monitor where the mouse is.
      
      - add gimp_widget_get_monitor() in order to easily get to the monitor,
        just like gtk_widget_get_screen().
      
      - add screen and monitor parameters in some places that were missed
        before.
      
      - in sessionrc, save all window positions relative to the window's
        monitor, and save the monitor separately, if it's not the screen's
        primary monitor.
      
      - when restoring window positions, use the stored monitor when the new
        prefs options says so (use the screen's primary monitor if there is
        no stored monitor), otherwise use current monitor that is now passed
        around.
      843866e7
  4. 11 Oct, 2013 1 commit
  5. 22 Jun, 2013 1 commit
    • Michael Natterer's avatar
      Bug 702369 - foreground selection doesnt work with image precision >8 bit · 31e9cc2a
      Michael Natterer authored
      This removes the obsolete check which makes the tool fail from
      gimp_display_shell_set_mask(). Also change the foreground select tool
      and the display mask from using GimpChannel to GeglBuffer, because
      that's what it needs, simply buffers. Most changed files simply newly
      include <gegl.h> because a GeglBuffer appeared in two headers.
      31e9cc2a
  6. 09 Oct, 2012 1 commit
  7. 14 Jun, 2011 1 commit
  8. 30 May, 2011 1 commit
  9. 12 May, 2011 1 commit
  10. 09 Mar, 2010 1 commit
  11. 02 Mar, 2010 1 commit
  12. 28 Feb, 2010 2 commits
    • Martin Nordholts's avatar
      app: Introduce gimp_dialog_factory_get_singleton() · 11b1300b
      Martin Nordholts authored
      Instead of including dialogs/dialogs.h everywhere, introduce
      gimp_dialog_factory_get_singleton(). The dialog factory singleton is
      still initialized by dialogs.c though.
      
      Right now the assumption is that we never will have another dialog
      factory instance around. There were so many problems before when we
      had four of them, so let's just keep one of them around.
      11b1300b
    • Martin Nordholts's avatar
      app: Store GimpDialogsState per dialog factory · 6647c495
      Martin Nordholts authored
      Get rid of the file-static variable 'dialogs_state' from
      gimpdialogfactory.c and move it into the GimpDialogFactory struct.
      6647c495
  13. 24 Feb, 2010 1 commit
    • Martin Nordholts's avatar
      Bug 602223 - Can't hide docks with Tab in single-window mode · 18f3be6b
      Martin Nordholts authored
      Add a "hide-docks" config and connect the Windows->Hide docks menu
      item to it. Also connect the image window to the config property so it
      can hide/show its docks when it needs to.
      
      Also add and use a utility function
      gimp_image_window_keep_canvas_pos() to ensure that the image in the
      window remains fixed when toggling visiblity of docks. One problem:
      When GimpDrawTool is active on the canvas, there is flicker. The end
      position is correct though.
      
      Also add regression testing for this fix to test-ui.c
      18f3be6b
  14. 20 Feb, 2010 3 commits
  15. 20 Jan, 2010 1 commit
    • Martin Nordholts's avatar
      app: Merge 'global_toolbox_factory' into 'global_dock_factory' · 1093462a
      Martin Nordholts authored
      Get rid of 'global_toolbox_factory' and manage everything dock-related
      with 'global_dock_factory'. The whole of 'global_toolbox_factory' was
      a big special-case and getting rid of it makes it easier to extend the
      session management with e.g. single-window mode dock functionality.
      
      To get rid of 'global_toolbox_factory' we, roughly, have to
       * Replace 'global_toolbox_factory' with 'global_dock_factory'
         everywhere. We can also get rid of lots of code that did special
         things for the "toolbox" factory.
       * Make the use or interaction with the toolbox explicit in some
         places. For example, a function gimp_dock_window_has_toolbox() has
         been introduced.
       * Make GimpSessionInfoDock have an 'identifier' parameter so we can
         differentiate between the "gimp-dock" and "gimp-toolbox" dock
         types.
      1093462a
  16. 19 Jan, 2010 2 commits
  17. 20 Dec, 2009 2 commits
  18. 19 Dec, 2009 2 commits
  19. 01 Dec, 2009 1 commit
  20. 04 Oct, 2009 2 commits
  21. 29 Sep, 2009 1 commit
  22. 28 Sep, 2009 1 commit
  23. 26 Sep, 2009 2 commits
    • Martin Nordholts's avatar
      Add a Single-window mode · 9fa51f70
      Martin Nordholts authored
      Add a single-window mode that can be toggled from 'Windows ->
      Single-window mode'. No code is yet hooked to the mode though.
      9fa51f70
    • Martin Nordholts's avatar
      app: Change GimpDialogFactory signals to "dock-window-added/removed" · 62dde84e
      Martin Nordholts authored
      Change the GimpDialogFactory signals "dock-added" and "dock-removed"
      to "dock-window-added" and "dock-window-removed". Doing this makes
      sense for a couple of reasons. First of all, the dialog factory is
      built around top-levels. Second of all, the listeners to the signals
      (such as the "recently closed docks" construct) work on a
      gtk-window-level, not a dock level.
      
      This change is a preparation for when GimpDock will stop being a
      GimpDockWindow.
      62dde84e
  24. 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
  25. 16 May, 2008 1 commit
    • Michael Natterer's avatar
      Implement the presistent menu of recently closed docks, still somewhat · ff5310a4
      Michael Natterer authored
      2008-05-16  Michael Natterer  <mitch@gimp.org>
      
      	Implement the presistent menu of recently closed docks, still
      	somewhat hackish but fully functional. Fixes bug #132744.
      
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.[ch]
      	* menus/image-menu.xml.in: remove the menu items that were
      	creating the hardcoded preconfigured docks.
      
      	* app/dialogs/dialogs.[ch]: add GimpContainer of recently closed
      	docks and API to load and save it.
      
      	* app/gui/session.c: call the recent dock load and save functions.
      
      	* app/widgets/gimpsessioninfo.[ch]: implement the GimpConfig interface
      	and (de)serialize via proper interface methods.
      
      	* app/gui/session.c
      	* app/widgets/gimpdialogfactory.c: use the GimpConfig API
      	to (de)serialize session infos and added the code that was
      	formerly in the info's (de)serialize functions but didn't belong
      	there.
      
      	* app/widgets/gimpaction.[ch]: add "max-width-chars" property and
      	set it on proxy menu item labels.
      
      	* app/actions/windows-actions.[ch]
      	* app/actions/windows-commands.[ch]
      	* app/menus/windows-menu.c: add actions and menu of recently
      	closed docks and code to restore the dock when the menu items are
      	selected. Use above new action property to ensure a minimum
      	width of the menu.
      
      	* app/widgets/gimpmenudock.c: use '-' instead of '|' for
      	separating notebooks in the window title. Menu items don't like	'|'.
      
      	* app/widgets/gimpdock.c: removed the confirmation dialog when
      	closing docks and simply add them to the recent docks container.
      	This code is totally misplaced and will move to another file soon.
      
      
      svn path=/trunk/; revision=25671
      ff5310a4
  26. 11 May, 2008 1 commit
  27. 10 May, 2008 1 commit
    • Michael Natterer's avatar
      Start changing the "Dialogs" menu to "Windows", still incomplete. · b1a1da88
      Michael Natterer authored
      2008-05-10  Michael Natterer  <mitch@gimp.org>
      
      	Start changing the "Dialogs" menu to "Windows", still incomplete.
      	Addresses bug #309707.
      
      	* app/actions/Makefile.am
      	* app/actions/windows-actions.[ch]
      	* app/actions/windows-commands.[ch]: new files which currently
      	hold the "show toolbox" action and callback and new code which
      	maintains automatically generated actions for accessing (raising)
      	all open images.
      
      	* app/actions/actions.c: register the new "windows" action group.
      
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.[ch]: remove "show toolbox"
      	action and callback and also the action for the "Disalogs" menu.
      
      	* app/menus/Makefile.am
      	* app/menus/windows-menu.[ch]: new files which create and destroy
      	the menu items for the image window actions.
      
      	* app/menus/menus.c: register the "windows" action group with
      	all UI managers that have the "dialogs" action group.
      
      	* app/menus/image-menu.c (image_menu_setup): call
      	windows_menu_setup().
      
      	* app/gui/gui.c: s/dialogs_show_toolbox/windows_show_toolbox/g
      
      	* menus/image-menu.xml.in: some minor s/dialogs/windows/
      	and add the "Images" submenu.
      
      
      svn path=/trunk/; revision=25623
      b1a1da88
  28. 09 Dec, 2006 1 commit
  29. 08 Jul, 2005 1 commit
    • Michael Natterer's avatar
      added boolean "sample-merged" property, API and GUI. Pick from the active · 2f7388db
      Michael Natterer authored
      2005-07-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcursorview.[ch]: added boolean "sample-merged"
      	property, API and GUI. Pick from the active drawable if it's
      	FALSE.
      
      	* app/actions/Makefile.am
      	* app/actions/actions.c
      	* app/actions/cursor-info-actions.[ch]
      	* app/actions/cursor-info-commands.[ch]: new files with actions
      	and callbacks for the cursor info dialog's menu.
      
      	* app/widgets/gimphelp-ids.h: help IDs for above actions.
      
      	* app/dialogs/dialogs.c: follow help ID change.
      
      	* app/menus/menus.c
      	* menus/Makefile.am
      	* menus/cursor-info-menu.xml: add the cursor-info menu.
      
      	* app/dialogs/dialogs-constructors.c: pass the menu factory to
      	gimp_cursor_view_new().
      2f7388db
  30. 03 Feb, 2005 1 commit
  31. 03 May, 2004 1 commit
    • Michael Natterer's avatar
      added some utility functions to get a Gimp, GimpImage, GimpDisplay and · d745841e
      Michael Natterer authored
      2004-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.[ch]: added some utility functions to get a
      	Gimp, GimpImage, GimpDisplay and GtkWidget from the "data" pointer
      	passed to action callbacks.
      
      	* app/actions/channels-actions.c
      	* app/actions/channels-commands.c
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.c
      	* app/actions/file-actions.c
      	* app/actions/file-commands.c
      	* app/actions/help-commands.c
      	* app/actions/image-actions.c
      	* app/actions/image-commands.c
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.c
      	* app/actions/tools-commands.c
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c: use the new functions instead of
      	duplicating insane macros and if() constructs over and over again.
      d745841e
  32. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Switch from GtkItemFactory to GtkUIManager. The migration is almost · 46542801
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      
      	Switch from GtkItemFactory to GtkUIManager. The migration is
      	almost complete, still stuff missing/incomplete, definitely added
      	a bunch of new bugs...
      
      	* app/actions/*-commands.[ch]: converted all callback from
      	GtkItemFactory callbacks to GtkAction callbacks.
      
      	* app/actions/debug-actions.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/help-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/qmask-actions.c
      	* app/actions/tool-options-actions.c: various fixes.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]: move everything from
      	GtkItemFactory to GtkUIManager.
      
      	* app/gui/dialogs.[ch]: added new function dialogs_get_toolbox().
      	Needed because the action callbacks don't have a widget parameter
      	and sometimes we need a parent window for showing dialogs.
      
      	* app/gui/Makefile.am
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/error-console-menu.[ch]
      	* app/gui/fonts-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/templates-menu.[ch]
      	* app/gui/vectors-menu.[ch]: removed these files.
      
      	* app/gui/gui.c: create a global UI manager for the image popup
      	menu and the toolbox menubar.
      
      	* app/gui/menus.[ch]: removed all GtkItemFactory code.
      
      	* app/gui/image-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: removed everything except the trivial
      	setup_funcs.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/tool-options-menu.c: don't use the macros from menus.h
      	any more, they are gone.
      
      	* app/gui/gui-vtable.c
      	* app/gui/plug-in-menus.[ch]: create/destroy the dynamic plug-in
      	menu entries.
      
      	* app/tools/gimpimagemaptool.c: s/gimp_item_factory_update/
      	gimp_ui_manager_update/g
      
      	* app/widgets/gimpuimanager.[ch]: added API to get an action
      	group by name.
      
      	* app/widgets/gimpmenufactory.c: don't choke on the item_factory
      	entries being NULL.
      
      	* app/widgets/gimpactiongroup.c: make sure booleans set using
      	g_object_set() only have TRUE or FALSE values.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/gimpeditor.[ch]
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: removed all GtkItemFactory
      	code and enable the #if 0'ed UI manager stuff.
      
      	* menus/gradient-editor-menu.xml: fixed typos.
      
      	* menus/image-menu.xml: duplicate everything so we have both
      	an image menubar and an image popup menu. Badly cries for an
      	XSL processor.
      
      	* menus/toolbox-menu.xml: added an "Extensions" placeholder.
      46542801