Commit Graph

25 Commits

Author SHA1 Message Date
Michael Natterer 1a23b9ecf2 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:20:39 +02:00
Michael Natterer e564cc2e4e Fix motion event processing on the tag popup's scroll arrows
Should work properly now wrt detecting the different speed
areas and stopping scolling upon leaving the arrow.
2009-07-18 19:58:33 +02:00
Michael Natterer 84fd35d832 Connect to widget signals in init() instead of constructor() 2009-07-18 19:34:42 +02:00
Michael Natterer 48a8b89bea Only redraw the affected tags when prelight changes, not the entire widget 2009-07-18 19:31:21 +02:00
Michael Natterer 5d76dd9bc5 Fix unprelighting of the prelighted tag when there is no hit on any tag 2009-07-18 19:23:26 +02:00
Michael Natterer 24209f7625 Use g_value_dup_object() inatead of g_value_get_object() and g_object_ref() 2009-07-18 18:57:15 +02:00
Michael Natterer 65421aa0b6 Use accessors instead of widget->style and widget->window 2009-07-15 04:05:24 +02:00
Michael Natterer 7171dad364 Tag popup scrolling cleanup
- artificially limit the popup's height again so scrolling gets some testing.
- make sure the scroll buttons' sensitivity is always correct.
- remove obsolete utility function and other cleanups.
2009-07-10 20:10:49 +02:00
Michael Natterer 48bc1d1ced Remove more obsolete variables and indentation levels 2009-07-10 20:10:49 +02:00
Michael Natterer 25a8a9ea9f Factor out tag hit detection into a utility function 2009-07-10 20:10:49 +02:00
Michael Natterer 5a26780ed9 Fix tiny miscalculation of the tag name rendering position 2009-07-10 20:10:48 +02:00
Michael Natterer bd00ac3891 More tag popup cleanup
- reorder instance struct and add some spacing
- rename member "timeout_id" to "scroll_timeout_id"
- clean up constructor() even more (still the wrong place to
  do all these things)
2009-07-10 20:10:48 +02:00
Michael Natterer e15e9c222d Some more cleanup and a fix of a tiny earlier cleanup glitch 2009-07-10 20:10:48 +02:00
Michael Natterer 4699152a4f Remove useless member "ignore_button_release" 2009-07-10 20:10:48 +02:00
Michael Natterer dd6b65179e Clean up spacings, tag size calculation and tag rendering
The area sensitive to clicks now corresponds to the area that
is drawn selected, minus a border of one pixel.
2009-07-10 20:10:48 +02:00
Michael Natterer 1f199ba060 Use GTK_SHADOW_OUT for the tag popup's frame 2009-07-10 20:10:48 +02:00
Michael Natterer 8995cdf9d7 Use #defines instead of magic values for the tag spacing constants 2009-07-10 20:10:47 +02:00
Michael Natterer 75ee288278 Remove "close_rectangles" member and the feature it implemented
Closing whatever popup by click on dead space within it is a no no,
otherwise one-pixel mis-clicks inside the widget make it go away,
which is totally unexpected.
2009-07-10 20:10:47 +02:00
Michael Natterer 3d85ee285a Various code cleanups 2009-07-10 20:10:47 +02:00
Michael Natterer 1ecf4bed67 Widget construction / showing cleanup
- create the widgets in init() instead of constructor()
- don't show the popup in constructor()
- don't use gtk_widget_show_all()
2009-07-10 20:10:47 +02:00
Michael Natterer 4d860185c1 Rename member "drawing_area" to "tag_area" 2009-07-10 20:10:47 +02:00
Michael Natterer f350e5ac51 Whitespace and minor code cleanup 2009-07-10 20:10:47 +02:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
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
2009-01-17 22:28:01 +00:00
Sven Neumann d9d657ca19 added GimpTagEntryMode.
2008-12-31  Sven Neumann  <sven@gimp.org>

	* app/widgets/widgets-enums.[ch]: added GimpTagEntryMode.

	* app/widgets/gimptagentry.[ch]: removed it here. Also did some
	code cleanup, mostly formatting.

	* app/widgets/gimpcombotagentry.[ch]
	* app/widgets/gimptagpopup.[ch]: some code cleanup, mostly
	formatting.


svn path=/trunk/; revision=27861
2008-12-31 00:01:24 +00:00
Martin Nordholts 4255e43681 Bug 555954 – Merge Tagging of Gimp Resources GSoC Project
Merge the rest of the tagging code developed on the tagging branch
by Aurimas Juška. Development will now continue in trunk.

* app/core/gimptag.[ch]: New files (not strictly true but almost)
implementing the represention of a tag.

* app/core/gimptagcache.[ch]: New files implementing functionality
for loading and saving tags to tags.xml, and assigning loaded tags
to tagged objects.

* app/core/gimpfilteredcontainer.[ch]: New files implementing a
tag filtered GimpContainer.

* app/widgets/gimptagentry.[ch]: New files implementing a
GtkEntry-like widget for entering tags.

* app/widgets/gimpcombotagentry.[ch]: New files implementing a
combobox-like widget for selecting tags.

* app/widgets/gimptagpopup.[ch]: New files implementing a popup of
all available tags that can be selected and combined in a
checkbox-like way.

* app/core/gimp.[ch]: Add a GimpTagCache member and manage tag
assignment and saving and loading to/from tags.xml.

* app/widgets/gimpdatafactoryview.c: Add the tag query and tag
assignment widgets to the UI and show the tag filtered items
instead of all items.

* app/core/Makefile.am
* app/widgets/Makefile.am: Add new files.

* app/core/core-types.h
* app/widgets/widgets-types.h: Add new types.

svn path=/trunk/; revision=27816
2008-12-20 14:46:54 +00:00