1. 02 Oct, 2010 1 commit
  2. 01 Oct, 2010 1 commit
    • Michael Natterer's avatar
      app: add a "visible" property and API to GimpCanvasItem · 10111126
      Michael Natterer authored
      and use it to set visibility of guides and sample points, so this
      reression is fixed.
      - return NULL extents for invisible items and never draw them
      - do nothing for invisible items in more places, like the group
      While hacking this, it turned out that it was a braino to collect an
      item's region before and after a change in
      dispatch_properties_changed(), so a new update had to be devised:
      - add a "change count" and new API begin_change()/end_change()
      - in begin_change(), remember the item's extents before the change
      - in end_change(), combine old and current extents and emit "update"
      - add some protected function to emit "update", and to figure if
        it makes sense at all to emit "update" on an item.
  3. 28 Feb, 2010 1 commit
    • Martin Nordholts's avatar
      app: Keep canvas position on all display shell widgets · 78ddb193
      Martin Nordholts authored
      Don't use gimp_image_window_keep_canvas_pos() only for docks, use it
      for all widgets in the display shell: the rulers, the menu bar, the
      statusbar and the scrollbars. It is not really necessary for the two
      latter ones because they are below and/or to the right of the canvas,
      but we include them for completeness. Plus, they might get moved
      around some day...
  4. 01 Feb, 2010 1 commit
    • Martin Nordholts's avatar
      app: Get rid of config -> display module dependency · ed2d178d
      Martin Nordholts authored
      In order to make a clear separation between the core modules and the
      UI modules, move the necessary enums from display-enums.h and
      widgets-enums.h to config-enums.h and the files
      gimpdisplayoptions.[ch] from the display to the config module. This
      removes the config -> display dependency.
      This change has three main benefits
       * It lets us remove includes of display files from the config module
       * We don't have to link gimp-console and test-config with a subset of
         object files from the display module
       * It is reflected in devel-docs/gimp-module-dependencies.svg that the
         application is made up of core modules and UI modules and that no
         core module depends on any UI module
  5. 30 Jan, 2010 1 commit
  6. 24 Oct, 2009 1 commit
    • Martin Nordholts's avatar
      app: Get rid of const disqualifier warning · 65c0ce5d
      Martin Nordholts authored
      Get rid of const qualifier for a bunch of GimpDisplayShell getters to
      get rid of a disqualifier warning. The problem is that we call into
      GTK+ which sometime misses const which breaks the chain. As a general
      guideline we should avoid const for widgets.
  7. 17 Oct, 2009 1 commit
    • Martin Nordholts's avatar
      Use gtk_widget_set_visible() · eb6bef33
      Martin Nordholts authored
      In places where the pattern
        if (show)
          gtk_widget_show (widget);
          gtk_widget_hide (widget);
      is used, change to
        gtk_widget_set_visible (widget, show);
      Also do some other minor cleanups.
  8. 08 Oct, 2009 1 commit
  9. 06 Oct, 2009 1 commit
  10. 04 Oct, 2009 1 commit
  11. 02 Oct, 2009 1 commit
  12. 29 Sep, 2009 2 commits
  13. 28 Sep, 2009 7 commits
  14. 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
  15. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      	* app/pdb/*-cmds.c: regenerated.
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      svn path=/trunk/; revision=27202
  16. 10 Aug, 2008 1 commit
    • Martin Nordholts's avatar
      app/display/gimpdisplayshell-draw.[ch] · 7865481d
      Martin Nordholts authored
      2008-08-10  Martin Nordholts  <martinn@svn.gnome.org>
      	* app/display/gimpdisplayshell-draw.[ch]
      	* app/display/gimpdisplayshell-render.[ch]
      	* app/display/gimpdisplayshell-transform.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]: Sprinkle as many
      	const qualifiers we can without any implementation changes.
      svn path=/trunk/; revision=26477
  17. 28 Jun, 2008 1 commit
    • Michael Natterer's avatar
      app/actions/layers-commands.c app/actions/view-actions.c · 8c66ea4b
      Michael Natterer authored
      2008-06-28  Michael Natterer  <mitch@gimp.org>
      	* app/actions/layers-commands.c
      	* app/actions/view-actions.c
      	* app/dialogs/about-dialog.c
      	* app/dialogs/layer-options-dialog.c
      	* app/dialogs/preferences-dialog.c
      	* app/display/gimpcanvas.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpnavigationeditor.c
      	* modules/colorsel_water.c: use accessors instead of accessing
      	members of GTK+ widgets directly.
      svn path=/trunk/; revision=26006
  18. 11 Apr, 2008 2 commits
  19. 18 Mar, 2008 2 commits
    • Michael Natterer's avatar
      add new options object for the "no image" display appearance. · bd636468
      Michael Natterer authored
      2008-03-18  Michael Natterer  <mitch@gimp.org>
      	* app/display/gimpdisplayoptions.[ch]: add new options object
      	for the "no image" display appearance.
      	* app/display/gimpdisplayshell.[ch]: keep one of them around.
      	* app/display/gimpdisplayshell-appearance.[ch]: use the options
      	object when the display is empty. Add guards against no image
      	to some functions. Add gimp_display_shell_appearance_update()
      	which sets all options according to the current display state
      	(normal, fullscreen, no image).
      	* app/actions/view-actions.c: don't allow to configure the GUI
      	of the empty display.
      	* app/display/gimpdisplayshell-callbacks.c: use the new appearance
      	update function instead of doing it all here.
      	* app/display/gimpdisplayshell-close.c
      	* app/gui/gui-vtable.c: update the appearance when clearing or
      	filling the display.
      	* app/display/gimpdisplayshell-selection.c: forgot some guards
      	against empty displays.
      svn path=/trunk/; revision=25114
    • Michael Natterer's avatar
      First draft of the "no image open" window, which is implemented as a · cee3baea
      Michael Natterer authored
      2008-03-18  Michael Natterer  <mitch@gimp.org>
      	First draft of the "no image open" window, which is implemented as
      	a display without image (a view with NULL model). Didn't change
      	the display's appearance yet so I can first make sure the display
      	without image works properly in all details before hiding these
      	* app/core/gimp-gui.[ch]: add "gimp" parameter to display_create()
      	and allow "image" to be NULL.
      	* app/core/gimpcontext.c (gimp_context_real_set_display): a
      	display's image can be NULL now.
      	* app/display/gimpdisplay.[ch]: add Gimp and GimpDisplayConfig
      	members.  Add Gimp parameter to gimp_display_shell_new(). Changed
      	gimp_display_reconnect() to gimp_display_set_image() and allow to
      	set a NULL image.
      	* app/gui/gui-vtable.c (gui_display_create): if there is a single
      	display without an image, call gimp_display_set_image() on that
      	display instead of creating a new one.
      	* app/display/gimpdisplayshell-close.c: if the last display is
      	closed, don't close it but make it empty. Factored out that code
      	to gimp_display_shell_really_close().
      	* app/display/gimpdisplayshell-dnd.c: when dropping uris on an
      	empty display, open the first one into that display and the other
      	ones as layers of the newly opened image. This is consistent with
      	dropping on an existing image but maybe needs some discussion.
      	* app/display/gimpdisplayshell-callbacks.c: bail out early in the
      	tool event callback so tools never have to deal with empty
      	displays. In expose(), draw the drop zone on the empty display.
      	* app/display/gimpdisplayshell-title.c: set the empty display's
      	title to "Gimp - Drop Files".
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-autoscroll.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-preview.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpnavigationeditor.c
      	* app/display/gimpstatusbar.c: use display->gimp and
      	display->config instead of going via the image. Guard against
      	empty displays in some few places (most places can't be
      	called). Where needed, use the canvas' dimensions instead of the
      	image's dimensions so scroll offsets and scrollbars still have
      	sane values instead of the last image's ones.
      	* app/actions/actions.c (action_data_get_gimp)
      	(action_data_get_context): use display->gimp instead of
      	* app/actions/edit-commands.c (edit_paste_cmd_callback): redirect
      	to "paste as new" if there is an empty display.
      	* app/actions/tools-commands.c (tools_select_cmd_callback): don't
      	initialize the new tool on an empty display.
      	* app/actions/view-actions.c (view_actions_update): changed lots
      	of sensitivity settings to be insensitive when there is no image
      	(instead of no display).
      	* app/actions/view-commands.c: use the display's config object
      	instead of gimp's.
      svn path=/trunk/; revision=25113
  20. 28 Dec, 2007 1 commit
    • Sven Neumann's avatar
      addec const qualifiers to GimpRGB parameters. · b194e6fb
      Sven Neumann authored
      2007-12-28  Sven Neumann  <sven@gimp.org>
      	* libgimpwidgets/gimpcairo-utils.[ch]: addec const qualifiers to
      	GimpRGB parameters.
      	* app/widgets/gimprender.[ch]: removed global variables for
      	checkerboard colors and introduced functions to get the
      	checkerboard colors as pointers to GimpRGB structs.
      	* app/actions/view-actions.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/widgets/gimpviewrenderer.c
      	* app/widgets/gimpcolormapeditor.c: changed accordingly.
      svn path=/trunk/; revision=24451
  21. 25 Dec, 2007 1 commit
    • Michael Natterer's avatar
      app/core/gimpimage-guides.[ch] add accessors for the lists of guides and · 6074f7e2
      Michael Natterer authored
      2007-12-25  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpimage-guides.[ch]
      	* app/core/gimpimage-sample-points.[ch]: add accessors for the lists
      	of guides and sample points.
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c
      	* app/widgets/gimpsamplepointeditor.c
      	* app/xcf/xcf-save.c: use the new accessors.
      svn path=/trunk/; revision=24434
  22. 13 Dec, 2007 1 commit
    • Sven Neumann's avatar
      export the light and dark check color so that places that just need this · daf03994
      Sven Neumann authored
      2007-12-13  Sven Neumann  <sven@gimp.org>
      	* app/widgets/gimprender.[ch]: export the light and dark check
      	color so that places that just need this information don't have to
      	access the gimp_render_blend_{dark,light}_check arrays.
      	* app/actions/view-actions.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/widgets/gimpcolormapeditor.c: changed accordingly.
      svn path=/trunk/; revision=24351
  23. 28 May, 2007 1 commit
    • Michael Natterer's avatar
      Don't leave the user without progress bar just because the display's · 2fe95848
      Michael Natterer authored
      2007-05-28  Michael Natterer  <mitch@gimp.org>
      	Don't leave the user without progress bar just because the
      	display's statusbar is invisible:
      	* app/display/gimpstatusbar.[ch]: if the statusbar is invisible
      	when a progress wants to be shown, temporarily show it, recording
      	the fact in the new boolean "progress_shown" member. Added new API
      	gimp_statusbar_get/set_visible() which is aware of the new
      	temporary visibility state.
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-progress.c
      	(gimp_display_shell_progress_message): use the new API instead of
      	showing/hiding the widget directly.
      svn path=/trunk/; revision=22642
  24. 12 Dec, 2006 1 commit
    • Sven Neumann's avatar
      slightly increased size of the quick-mask and zoom-mode buttons. Also · d0e118dc
      Sven Neumann authored
      2006-12-12  Sven Neumann  <sven@gimp.org>
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new):
      	slightly increased size of the quick-mask and zoom-mode buttons.
      	Also changed the style to not displace the icon when the buttons
      	are pressed.
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpdisplayshell-appearance.c: changed "origin_button"
      	to "origin". Don't draw it as a button but use an event box just
      	like we do for the navigation icon in the lower right corner.
      	* app/display/gimpdisplayshell-title.c
      	(gimp_display_shell_format_title): use the viewable description
      	for the drawable's name. We don't want to see "Qmask" in the
      	* app/widgets/gimpwidgets-utils.c (gimp_button_menu_position): fix
      	for the case where button is not really a GtkButton but has it's
      	own window.
      	* app/widgets/gimphelp-ids.h: changed help ID, removed unused one.
      	* libgimpwidgets/gimpstock.c
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-quick-mask-off-12.png
      	* themes/Default/images/stock-quick-mask-off-16.png
      	* themes/Default/images/stock-quick-mask-on-12.png
      	* themes/Default/images/stock-quick-mask-on-16.png: cropped empty
      	space from the quick-mask icon.
  25. 09 Dec, 2006 1 commit
  26. 04 Sep, 2006 1 commit
    • Sven Neumann's avatar
      hide the internal API. · 3b92ec74
      Sven Neumann authored
      2006-09-04  Sven Neumann  <sven@gimp.org>
      	* app/display/gimpdisplayshell-selection.[ch]: hide the internal
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmovetool.c: changed accordingly.
      	* app/config/gimpdisplayconfig.c
      	* app/dialogs/preferences-dialog.c: increased the default
      	ants speed.
  27. 28 Mar, 2006 2 commits
  28. 19 Sep, 2005 1 commit
    • Michael Natterer's avatar
      Did a global s/qmask/quick-mask/: · 1adf3d71
      Michael Natterer authored
      2005-09-19  Michael Natterer  <mitch@gimp.org>
      	Did a global s/qmask/quick-mask/:
      	* app/actions/qmask-actions.[ch]
      	* app/actions/qmask-commands.[ch]
      	* app/core/gimpimage-qmask.[ch]
      	* menus/qmask-menu.xml
      	* themes/Default/images/stock-qmask-off-16.png
      	* themes/Default/images/stock-qmask-on-16.png: removed.
      	* app/actions/quick-mask-actions.[ch]
      	* app/actions/quick-mask-commands.[ch]
      	* app/core/gimpimage-quick-mask.[ch]
      	* menus/quick-mask-menu.xml
      	* themes/Default/images/stock-quick-mask-off-16.png
      	* themes/Default/images/stock-quick-mask-on-16.png: added.
      	* app/actions/Makefile.am
      	* app/actions/actions.c
      	* app/core/Makefile.am
      	* app/core/core-enums.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimpundo.[ch]
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-callbacks.[ch]
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/menus/menus.c
      	* app/widgets/gimphelp-ids.h
      	* libgimpwidgets/gimpstock.[ch]
      	* menus/Makefile.am
      	* menus/image-menu.xml.in
      	* themes/Default/images/Makefile.am: changed accordingly.
  29. 19 Jul, 2005 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new files keeping the render acceleration check · 19ea2a9d
      Michael Natterer authored
      2005-07-19  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/Makefile.am
      	* app/widgets/gimprender.[ch]: new files keeping the render
      	acceleration check buffers.
      	* app/display/gimpdisplayshell-render.[ch]: removed them here.
      	* app/gui/gui.c: initialize/shutdown the new buffers.
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpviewrenderer.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/actions/view-actions.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c: use the new stuff. Removes
      	lots of broken widgets -> display dependencies.
  30. 18 May, 2005 1 commit