- 02 Oct, 2010 8 commits
-
-
Michael Natterer authored
The fix was bogusly destroying a region that is still needed for the last end_change() if the change count is > 1.
-
Michael Natterer authored
Instead of doing it in gimp_display_shell_set_padding() from where it's called.
-
Michael Natterer authored
Remove gimp_display_shell_draw_grid().
-
Michael Natterer authored
It was correct only for the currently existing use cases.
-
Michael Natterer authored
-
Michael Natterer authored
Change the generated tag names to use #rrggbb notation and compare the colors on an 8 bit basis to make sure the comparison and the tag names exist in the same set of values (otherwise the text buffer gets into an inconsistent state that can even lead to crashes).
-
Michael Natterer authored
Shouldn't change anything, just be slightly faster in some cases.
-
Michael Natterer authored
-
- 01 Oct, 2010 14 commits
-
-
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.
-
Michael Natterer authored
because constructing the region can be expensive. Also make sure not to use g_object_set() if nothing would change to further reduce "update" emissions.
-
Michael Natterer authored
which gets emitted when the item wants to be redrawn: - Emit "update" it when any item property changes - Groups connect to their children and forward "update" for them - The shell connects to its group of canvas items and exposed the affected area - Remove gimp_display_shell_expose_item() - Move all the shell's item group code into gimpdisplayshell-items.c
-
Michael Natterer authored
because each item has a shell now. Keep the parameter in the virtual functions though because that saves a lot of code in the subclasses.
-
Michael Natterer authored
and use it in all tools which have groups.
-
Michael Natterer authored
and pass it to all constructors. The GimpDisplayShell is needed because items are going to become more powerful soon.
-
Michael Natterer authored
- Add signals GimpImage::guide_added(), removed() and moved() - Remove singal GimpImage::update_guide() - Adapt core code to emit the new signals instead of update_guide() - Have the shell connect to the new signals and update guide canvas items as needed - Remove gimp_display_shell_draw_guides()
-
Michael Natterer authored
-
Michael Natterer authored
-
Michael Natterer authored
-
Michael Natterer authored
- Add GimpImage signal "sample-point-moved" and emit it when needed - Let the shell connect to the sample point add, remove and move signals and update the canvas items accordingly - Remove gimp_display_shell_draw_sample_points()
-
Michael Natterer authored
-
Michael Natterer authored
-
Michael Natterer authored
which is a group that keeps a mapping between arbitrary pointers and canvas items. No MVC whatsoever yet, just a simple hash table.
-
- 30 Sep, 2010 13 commits
-
-
Gil Forcada authored
-
Sven Neumann authored
For consistency Use a static GParam array for the return values in all plug-ins.
-
Mukund Sivaraman authored
God knows how many other plug-ins have this.
-
Mukund Sivaraman authored
-
Michael Natterer authored
-
Sven Neumann authored
-
Michael Natterer authored
and add it to gimpcanvassamplepoint.c, it doesn't need to be public any longer.
-
Mukund Sivaraman authored
-
Mukund Sivaraman authored
-
Michael Natterer authored
-
Michael Natterer authored
and remove gimp_display_shell_expose_guide() and _sample_point().
-
Bogdan Szczurek authored
-
Michael Natterer authored
and use it in the color tool. Also rename gimp_draw_tool_add_guide_line() to gimp_draw_tool_add_guide().
-
- 29 Sep, 2010 5 commits
-
-
Michael Natterer authored
and draw all sample points in gimp_display_shell_draw_sample_points().
-
Michael Natterer authored
-
Michael Natterer authored
and use it in gimp_display_shell_draw_sample_point().
-
Michael Schumacher authored
-
Michael Natterer authored
-