Michael Natterer
0cb3e75f79
app: use a lot of g_clear_object() and g_clear_pointer()
...
More than 2000 lines of code less in app/, instead of
if (instance->member)
{
g_object_unref/g_free/g_whatever (instance->member);
instance->member = NULL;
}
we now simply use
g_clear_object/pointer (&instance->member);
2017-07-15 18:42:44 +02:00
Timm Bäder
53f34ebc0b
Chain up in some size-allocate implementations
...
The default implementation does just the right thing for most widgets.
2016-09-09 21:31:09 +02:00
Michael Natterer
6fd8a362df
app: s/gimp_hsv_to_rgb4/gimp_hsv_to_rgb/ in GimpCircle
2014-06-30 17:30:05 +02:00
Michael Natterer
0df36e9dcf
app: move lots of state handling from sunclasses to GimpCircle
2014-05-30 03:25:02 +02:00
Michael Natterer
6b46dfdb71
app: clean up angle calculations in GimpCicrle and GimpDial
2014-05-27 02:08:43 +02:00
Michael Natterer
d20b576814
app: don't create and fill the background surface on each expose()
...
Instead, keep it around and only recreate it when widget size or
background type change.
2014-05-26 11:03:39 +02:00
Michael Natterer
5c37ef213d
app: restore ungrab on unmap in GimpDial
...
which I broke when splitting classes.
2014-05-26 10:56:18 +02:00
Michael Natterer
98d6f44231
app: move GimpDial's background drawing to a new parent class, GimpCircle
...
so we can use that as a parent class for other circle/wheer interactions
in other subclasses.
2014-05-26 09:23:55 +02:00