- 02 Oct, 2010 1 commit
-
-
Michael Natterer authored
Remove gimp_display_shell_draw_grid().
-
- 01 Oct, 2010 1 commit
-
-
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.
-
- 28 Feb, 2010 1 commit
-
-
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...
-
- 01 Feb, 2010 1 commit
-
-
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
-
- 30 Jan, 2010 1 commit
-
-
Martin Nordholts authored
Remove spacing between the canvas and the surrounding widgets so that that space can be used for the actual canvas itself instead.
-
- 24 Oct, 2009 1 commit
-
-
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.
-
- 17 Oct, 2009 1 commit
-
-
Martin Nordholts authored
In places where the pattern if (show) gtk_widget_show (widget); else gtk_widget_hide (widget); is used, change to gtk_widget_set_visible (widget, show); Also do some other minor cleanups.
-
- 08 Oct, 2009 1 commit
-
-
Michael Natterer authored
-
- 06 Oct, 2009 1 commit
-
-
Michael Natterer authored
-
- 04 Oct, 2009 1 commit
-
-
Michael Natterer authored
Keeping it in GimpImageWindow was a bad idea because - it wasted space - it produced evil code because - it conceptually didn't belong there
-
- 02 Oct, 2009 1 commit
-
-
Michael Natterer authored
-
- 29 Sep, 2009 2 commits
-
-
Michael Natterer authored
Add accessor functions for publically available members and visibility functions for menubar and statusbar.
-
Michael Natterer authored
The new function does the right thing, unlike get_toplevel() which returns the shell itself if it is not in a window. Check the return value of get_window() for being non-NULL.
-
- 28 Sep, 2009 7 commits
-
-
Michael Natterer authored
A widget container should keep around child widgets, not whatever objects that just have widgets.
-
Michael Natterer authored
Update the actions in gimp_display_shell_appearance_update() and remove all action code from the window-state-event handlers.
-
Michael Natterer authored
-
Michael Natterer authored
Replace duplicated ugly macro constructs by proper utility functions that do the right thing wrt GimpImageWindow being the new toplevel.
-
Michael Natterer authored
As with the menubar, port some code properly, and add some horrible /* FIXME image window */ hacks to make it work.
-
Michael Natterer authored
Also move some of their related code and update other code to go via gtk_widget_get_toplevel(), but also add some horrid temp /* FIXME image window */ hacks.
-
Michael Natterer authored
Also remove GimpDisplayShell's "window_state" member. Use gtk_widget_get_toplvel() to get to the GimpImageWindow when we need a display shell's fullscreen state.
-
- 17 Jan, 2009 1 commit
-
-
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
-
- 09 Oct, 2008 1 commit
-
-
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
-
- 10 Aug, 2008 1 commit
-
-
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
-
- 28 Jun, 2008 1 commit
-
-
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
-
- 11 Apr, 2008 2 commits
-
-
Michael Natterer authored
2008-04-11 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell-appearance.c (gimp_display_shell_appearance_update): don't call gtk_widget_set_name() on a NULL menubar. svn path=/trunk/; revision=25469
-
Michael Natterer authored
2008-04-11 Michael Natterer <mitch@gimp.org> * app/display/gimpdisplayshell-appearance.c (gimp_display_shell_appearance_update): don't show the status bar's resize grip in fullscreen mode. svn path=/trunk/; revision=25465
-
- 18 Mar, 2008 2 commits
-
-
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 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 details. * 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 display->image->gimp. * 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
-
- 28 Dec, 2007 1 commit
-
-
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
-
- 25 Dec, 2007 1 commit
-
-
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
-
- 13 Dec, 2007 1 commit
-
-
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
-
- 28 May, 2007 1 commit
-
-
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 (gimp_display_shell_set_show_statusbar) * 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
-
- 12 Dec, 2006 1 commit
-
-
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 statusbar. * 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.
-
- 09 Dec, 2006 1 commit
-
-
Sven Neumann authored
2006-12-09 Sven Neumann <sven@gimp.org> * In all files, changed the standard copyright notice to say "GIMP - The GNU Image Manipulation Program".
-
- 04 Sep, 2006 1 commit
-
-
Sven Neumann authored
2006-09-04 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-selection.[ch]: hide the internal API. * 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 marching ants speed.
-
- 28 Mar, 2006 2 commits
-
-
Sven Neumann authored
2006-03-28 Sven Neumann <sven@gimp.org> * app/*: did a global gdisp -> display substitution.
-
Sven Neumann authored
2006-03-28 Sven Neumann <sven@gimp.org> * app/*: did a global gimage -> image substitution.
-
- 19 Sep, 2005 1 commit
-
-
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.
-
- 19 Jul, 2005 1 commit
-
-
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.
-
- 18 May, 2005 1 commit
-
-
Sven Neumann authored
2005-05-18 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-appearance.c * app/display/gimpdisplayshell.c: removed the 2px border and replaced it with a 1px spacing in the main vbox. Makes the screen edges active when working in fullscreen mode (bug #165774).
-