Michael Natterer
b725eaa682
libgimpwidgets: don't mix GimpWidgetHelpType and GtkWidgetHelpType
...
Because latest GCC warns about it.
2011-03-17 14:41:34 +01:00
Michael Natterer
fcfb7cf160
Use the new g_[s]list_free_full() instead of foreach() and free()
2011-03-07 17:11:28 +01:00
Michael Natterer
ca1cc32e52
libgimpwidgets: use GtkComboBoxText when building against GTK+ >= 2.24
2011-03-06 11:51:24 +01:00
Michael Natterer
5dcb50ed7d
libgimpwidgets: add properties GimpEnumLabel:enum-type and :enum-value
2011-02-15 21:26:11 +01:00
Michael Natterer
31b4d3801e
libgimpwidgets: add properties GimpColorButton:area-width and :area-height
2011-02-15 20:55:32 +01:00
Michael Natterer
e44d3b46ef
libgimpwidgets: make GimpColorScale:channel a property
2011-02-15 18:52:00 +01:00
Michael Natterer
6c7e24c9b3
libgimpwidgets: don't draw a focus line to indicate "selected"
...
I have no idea what I was thinking when adding this.
2011-02-09 09:25:34 +01:00
Michael Natterer
4fd56d9640
libgimpwidgets: don't pass around uninitialized memory in GimpRuler
2011-02-06 11:20:07 +01:00
Martin Nordholts
0cbb8ac0bf
libgimpwidgets: Update gimpwidgets.def
2011-01-26 06:33:10 +01:00
Martin Nordholts
835d92e4ad
libgimpwidgets: Fix gtk-doc warning
2011-01-26 06:26:36 +01:00
Omari Stephens
5cae0bf65c
Bug 630748 - display filters do not work
...
Create and use Cairo-compatible API for display filters. Also
includes logic changes to the display filters to deal with cairo's
ARGB32 pre-multiplied buffer format.
2011-01-25 20:24:42 +01:00
Omari Stephens
14276add92
Add missing parens around macro arguments
2011-01-24 22:15:06 +01:00
Michael Natterer
3ef31e4cc8
libgimpwidgets: use new GdkWindow API only when available
2011-01-23 00:30:58 +01:00
Michael Natterer
d155be622d
libgimpwidgets: fix ruler motion event tracking on offscreen overlays
...
Add a list of "track widgets" to GimpRuler and connect to their
motion-notify-event. Correctly translate the motion event's x/y to the
ruler's coordinate system when updating the marker.
2011-01-20 20:26:35 +01:00
Michael Natterer
8d2d16ac25
libgimp*: implement GObject::constructed() instead of ::constructor()
2011-01-12 22:03:33 +01:00
Michael Natterer
413dc0331d
libgimpwidgets: don't call gtk_dialog_set_has_separator()
...
It's deprecated in GTK+ 2.22. Instead use g_object_set() and add a
comment as reminder to remove that too later.
2011-01-08 21:58:21 +01:00
Michael Natterer
73b5e1d8a6
libgimpwidgets: remove commented-out code
2011-01-07 19:38:34 +01:00
Michael Natterer
60ebedb319
libgimpwidgets: no need to set a GtkRange's update-policy to CONTINUOUS
...
because it's the default.
2011-01-07 15:06:56 +01:00
Mikael Magnusson
0e55c5e4d8
libgimpwidgets: avoid using a function only available since GTK+ 2.22
2010-12-18 00:31:56 +01:00
Mikael Magnusson
780579554a
libgimpwidgets: undef GDK_DISABLE_DEPRECATED in gimppixmap.c
2010-12-17 22:59:50 +01:00
Mikael Magnusson
2471f37660
libgimpwidgets: port the ruler from deprecated gdk to cairo
...
Backported from the gtk3-port branch.
2010-12-17 22:59:49 +01:00
Mikael Magnusson
644a272f19
libgimpwidgets: port gimppreviewarea from deprecated gdk to cairo
...
Backported from the gtk3-port branch.
2010-12-17 22:59:46 +01:00
Michael Natterer
4a4994f4db
libgimpwidgets: bring back unit format strings in GimpSizeEntry
...
Use the user-provided format string as long-format and try to create a
short-format by replacing "%s" and "%p" by "%a" for the popup. Works
nicely for all cases I've seen so far.
2010-11-05 16:30:23 +01:00
Michael Natterer
73a6ddf7b5
libgimpwidgets: use the short and long format strings for the unit combo
...
where the short one gets used for the combo itself, and the long one
for the popup.
2010-11-05 16:28:54 +01:00
Michael Natterer
e821cd4881
libgimpwidgets: add "short-format" and "long-format" properties
...
which have the are format strings for gimp_unit_format_string(). The
formatted strings are kept in the respective new model columns.
2010-11-05 16:26:58 +01:00
Alexia Death
dfd5470a2e
Merge remote branch 'origin/master' into soc-2010-cage-2
2010-11-04 20:00:36 +02:00
Alexia Death
27c77e6a5e
Merge branch 'master' into soc-2010-cage-2
2010-11-04 00:41:45 +02:00
Michael Natterer
7796760908
libgimpwidgets: style cleanup
2010-10-31 22:15:52 +01:00
Michael Natterer
b76df39f06
libgimpwidgets: use gimp_unit_format_string() in GimpUnitMenu
2010-10-31 22:11:32 +01:00
Michael Natterer
dbf1d49efe
libgimpwidgets: let the size entry's spinbutton fill the available space
...
so we at least get a nice layout if the spinbuttons have different
sizes. Makes the tool options look a bit less ugly.
2010-10-31 16:45:49 +01:00
Michael Natterer
be3ebbb65c
libgimpwidgets: tooltips no longer require an event box around no-window widgets
2010-10-31 16:30:03 +01:00
Michael Natterer
5bc3317b5a
libgimpwidgets: fix the new prop_unit_combo_box to work like the oly unit menu
...
- don't forget to set the initial value
- set has_pixels and has_percent on the unit store from the param spec
2010-10-30 19:39:31 +02:00
Michael Natterer
79f0f5639b
Don't use gtk_container_add() for adding to GtkBoxes
...
because the packing options are different for GtkH/VBox and GtkBox
itself which is now instantiable. Instead, always use
gtk_box_pack_start() and specify expanding explicitely.
2010-10-30 14:57:56 +02:00
Michael Natterer
9e28a0406b
libgimpwidgets: use accessors for GtkAdjustment members
...
so it builds with GSEAL_ENABLE. Also keep around the adjustments as
GtkAdjustment not GtkObject to avoid casting all the time.
2010-10-19 18:38:00 +02:00
Michael Natterer
d831b9a353
libgimpwidgets: fix GimpFrame's child allocation for GSEAL_ENABLE
...
Don't override GtkFrame::compute_child_allocation() because we
completely override all functions that call this virtual function
anyway. Consequently, there is no need to store the child's allocation
in the sealed frame->child_allocation.
2010-10-18 16:40:47 +02:00
Mukund Sivaraman
0ff751fd2d
Sort gimpwidgets.def entries
2010-10-16 11:53:50 +05:30
Mukund Sivaraman
8b57945ebb
Convert spaces to tab in def file
2010-10-16 11:48:48 +05:30
Mukund Sivaraman
c7f36d1546
Add missing symbols to gimpwidgets.def
2010-10-16 11:48:23 +05:30
Michael Natterer
47c6b25f23
libgimpwidgets: transform the cr to widget coords
...
Get rid of allocation.foo and also kill all the rectangle intersection
that are not really optimizations on such a small widget.
2010-10-15 11:09:47 +02:00
Michael Natterer
3584b662a6
libgimpwidgets: transform the cr to widget coords
...
and get rid if all the allocation.x and .y
2010-10-15 10:40:37 +02:00
Michael Natterer
1de338ea9d
libgimpwidgets: port the GimpChainButton lines to cairo
...
A proper two-pixel line in FG color looks a lot less shabby...
2010-10-15 10:35:28 +02:00
Michael Natterer
84274e2230
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:34:29 +02:00
Michael Natterer
b67dbdc6ca
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:25:51 +02:00
Michael Natterer
a9e6297110
libgimpwidgets: implement GObject::finalize() instead of GtkObject::destroy()
2010-10-15 02:12:33 +02:00
Michael Natterer
6a10ded221
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:07:55 +02:00
Michael Natterer
b25ac7b68d
libgimpwidgets: add "percent" support to GimpUnitStore
...
and enable "menu_show_percent" again in GimpSizeEntry.
2010-10-15 01:27:02 +02:00
Michael Natterer
e5faf090ca
libgimpwidgets: add gimp_unit_store_set,get_has_pixels()
...
to allow having unit combos without "pixels". Adapt GimpUnitComboBox
to not assume that the unit is equal to the index in the store and
enable "menu_has_pixels" in GimpSizeEntry again.
2010-10-15 00:15:48 +02:00
Michael Natterer
f2bd06e2d1
libgimpwidgets: move GimpUnitStore members to a private struct
2010-10-14 23:22:22 +02:00
Michael Natterer
c36f762f7d
libgimpwidgets: deprecate GimpUnitMenu and gimp_prop_unit_menu_new()
...
Add gimp_prop_unit_combo_box_new() and adapt all places using the
prop_unit_menu. Some things are broken now, like there are no pixel
digits set, resolution unit menus show "pixels" and warn badly when
pixels is selected, and file-pdf-load is not built right now.
More fixes to come...
2010-10-14 23:03:34 +02:00
Michael Natterer
74458f46ee
app/libgimpwidgets: move GimpUnitStore and GimpUnitComboBox to libgimpwidgets
2010-10-14 22:15:25 +02:00
Michael Natterer
af518f9e84
libgimpwidgets: use GObject::dispose() instead of GtkObject::destroy()
2010-10-14 17:47:48 +02:00
Michael Natterer
843d9e35ad
libgimpwidgets: replace GdkGC* with gpointer for an unused struct member
2010-10-14 17:22:56 +02:00
Sven Neumann
db72c72c1f
Bug 631609 - [regression] no transparency on antialiased fonts
...
Render the layout into an ARGB32 surface and convert the text layer
pixel format from that.
2010-10-07 22:21:49 +02:00
Sven Neumann
8f9ffe597d
libgimpwidgets: add const qualifiers
...
Sprinkle GIMP_CAIRO_ARGB32_SET_PIXEL() with const qualifiers.
2010-09-26 22:12:13 +02:00
Alexia Death
74e5864fa6
Merge branch 'master' into soc-2010-cage-2
2010-09-26 23:08:15 +03:00
Michael Natterer
d62c287fce
libgimpwidgets: remove the pixbuf inline data garbage from GimpPickButton
...
Instead, generate a proper header for inclusion in cursors/.
2010-09-13 02:16:18 +02:00
Michael Natterer
fb53ac6c3a
plug-ins: create the GimpPickButton from pixbuf inline data
...
instead of using GdkBitmap functions.
2010-09-12 02:44:00 +02:00
Michael Natterer
0f28b38a55
libgimpwidgets: set page_size to 0 on adjustments used for spin buttons
...
Spin buttons must always have a zero page size, fix that for all
spin buttons created with gimp_spin_button_new().
2010-09-12 00:57:13 +02:00
Michael Natterer
885147717a
libgimpwidgets: port GimpOffsetArea drawing to cairo
...
Has the same off-by-one bugs as before...
2010-09-11 22:39:05 +02:00
Michael Natterer
1770615125
libgimpwidgets: ports GimpColorSelect marker drawing to cairo
2010-09-11 22:24:08 +02:00
Michael Natterer
251177f18d
libgimpwidgets: fix GimpColorScale arrows to be as small as before
2010-09-11 22:06:00 +02:00
Michael Natterer
354a640e9e
libgimpwidgets: port the rest of GimpColorScale drawing to cairo
2010-09-10 21:33:00 +02:00
Michael Natterer
e617ecedd9
libgimpwidgets: port GimpColorScale slider drawing to cairo
2010-09-10 20:57:06 +02:00
Michael Natterer
8b4bcbb9e1
libgimpwidgets: port GimpColorArea drawing to cairo
...
And unexport an unused lib-internal function. Leave it there privately
though because it might be useful later.
2010-09-10 19:53:48 +02:00
Alexia Death
6a22f17ab3
Merge branch 'master' into soc-2010-cage-2
2010-09-02 18:49:35 +03:00
Michael Natterer
1e525ff3b9
libgimpwidgets: allow gimpcairo-utils.h inclusion from non-gui files
...
This is such a bad hack, but I currently can't decide how to properly
split this file into GTK+ and non-GTK+ parts...
2010-09-01 23:13:02 +02:00
Alexia Death
aee148a486
Merge branch 'master' into soc-2010-cage-2
2010-08-26 21:50:55 +03:00
Michael Natterer
1a609d6381
libgimpwidgets: cleanup
2010-08-11 23:32:44 +02:00
Alexia Death
951c135483
theme: Temporary icons for dynamics and tool presets
...
Staring at a row of paintbrush icons got really annoying.
2010-08-12 00:08:19 +03:00
Michael Natterer
10574e8f22
libgimpwidgets: port GimpPickButton color picking to cairo
2010-08-08 16:10:14 +02:00
Michael Natterer
789cc05baf
libgimpwidgets: add new macro GIMP_CAIRO_RGB24_GET_PIXEL()
...
which reads a pixel from a cairo image surface's data.
2010-08-08 16:09:21 +02:00
Michael Natterer
1e48f16113
libgimpwidgets: port GimpCellRendererToggle drawing to cairo
2010-08-08 15:39:16 +02:00
Michael Muré
f6316285be
structure of the cage tool, with an options object
2010-08-08 13:17:10 +02:00
Michael Natterer
8b31211639
Fix the bulid after GtkNotebookPage got deprecated in gtk-2-22
...
In all GtkNotebook::switch_page() callbacks, simply replace
GtkNotebookPage* by gpointer.
2010-07-16 15:24:25 +02:00
Michael Natterer
b3ee51794d
libgimpwidgets: fix most gtk-doc warnings
2010-07-05 19:04:15 +02:00
Michael Natterer
1f7ff98c45
libgimpwidgets: move docs from template files to inline comments
...
but leave the template file for gimpstock there because its contents
would be too much for gimpstock.h.
2010-07-05 18:01:28 +02:00
Michael Natterer
fad6053643
Make cairo code work with newer cairo backends that actually use caching
...
Call cairo_surface_flush() before reading or writing a surface's
pixels directly, and use cairo_surface_mark_dirty() after writing
pixels directly, so we don't read old pixels, and our written pixels
get actually used.
2010-06-28 12:23:31 +02:00
Martin Nordholts
87ab39a943
Bug 608622 - Desaturate icon causes confusion with Gradients tool
2010-06-18 22:35:24 +02:00
Michael Natterer
56994869cd
libgimpwidgets: register descriptions for the GdkInputMode enum
...
so the combo box in the input dialog shows proper labels and
translations instead of GDK_MODE_FOO.
2010-06-11 09:53:08 +02:00
Michael Natterer
a2c70822d4
Use accessors from GTK+ 2.20 instead of using sealed members directly
2010-04-19 19:21:07 +02:00
Alexia Death
29f7fe87b0
Base infra for tool presets.
2010-04-03 21:06:15 +03:00
Michael Natterer
1aeb315ecf
undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
...
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Michael Natterer
5f0255e269
Add GIMP_STOCK_INPUT_DEVICE icons and use them for the devices dialog
...
From icon masta Jimmac.
2010-02-19 21:25:24 +01:00
Michael Natterer
dc05c2687e
libgimp: add a frame around the color areas again, but only one frame around both
2010-01-24 23:55:36 +01:00
Kretynofil
6522fdc9b7
Bug 598344 - Make 'Current' and 'Old' colors in color selector adjacent
...
Make the color selector more slick by removing some UI cruft and
putting the 'Current' and 'Old' color fields right next to each other.
2010-01-23 09:31:05 +01:00
Michael Natterer
eac902d065
libgimp: use gtk_widget_get_visible() instead of GTK_WIDGET_VISIBLE()
2010-01-17 16:51:48 +01:00
Sven Neumann
42e31b1cc8
libgimpwidgets: clean up comment
...
Rephrase a comment so that it does not cause a false positive when
looking for deprecated GDK symbols.
2009-11-09 19:07:54 +01:00
Michael Natterer
b2e98c44ec
Don't filter out non-existing folders in the path editor
...
So the user actually has a chance to fix misconfigured paths.
2009-10-30 21:34:07 +01:00
Alexia Death
210a4b5044
Merge resolution
2009-10-17 21:42:02 +03:00
Michael Natterer
fcd346a227
Build with GSEAL_ENABLE with a few exceptions
...
Use the new accessors in GTK+ 2.18 and #undef GSEAL_ENABLE where
accessors are missing or where I'm not quite sure how to fix the
stuff yet.
2009-10-17 18:51:48 +02:00
Michael Natterer
ee48b7b06e
Use accessors instead of table->children and adjustment->value
2009-10-17 18:49:12 +02:00
Martin Nordholts
eb6bef33e4
Use gtk_widget_set_visible()
...
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.
2009-10-17 15:07:34 +02:00
Alexia Death
d2143b8886
Merging master to current state
2009-08-21 19:26:05 +03:00
Massimo Valentini
b1bbbb230d
Bug 542003 – Reset button breaks field updates on width and height boxes
...
Update all of the internal state in response to a reset request.
2009-08-05 23:42:58 +02:00
Michael Natterer
656e30cd3a
Looking at widget->requisition in size_allocate() is useless
...
Use the passed GtkAllocation for calculating things, not
widget->requisition.
2009-08-01 18:59:58 +02:00
Michael Natterer
2abca796bf
Don't touch widget->requisition in size_request()
...
gimp_ruler_size_request(): modify the passed GtkRequisition, not
widget->requisition.
2009-08-01 18:57:58 +02:00
Alexia Death
08a88f681d
Lo and behold, menu item.
2009-07-30 20:49:10 +03:00
Martin Nordholts
b2b2b41e62
Get rid of artificial compiler warnings
...
Get rid of artificial compiler warnings generated with the #warning
directive. They pollute the build output and don't work as incentives
for fixing stuff.
2009-07-20 12:47:59 +02:00
Sven Neumann
cb4aec187f
Update license to LGPL version 3 here as well.
2009-07-16 22:37:09 +02:00
Michael Natterer
997111bf0a
Use gtk_dialog_get_content_area() instead of dialog->vbox
2009-07-15 16:19:32 +02:00