Commit graph

61 commits

Author SHA1 Message Date
Michael Natterer
5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Simon Budig
9cb67fa992 app: kill the last GtkTables. 2018-05-20 21:06:33 +02:00
Jehan
ff34ec33cc Bug 791455 - Please add support for barrel rotation in brush tools.
It turns out we already have the support since it uses the same axis as
the "wheel", used by other devices (for instance the Airbrush pen of
Wacom has a wheel reporting on this same axis).
We can't do any fancy support for this right now, but at least we can
clarify a bit the dynamics naming so that people understands it can be
used for both wheel and rotation input.
Fix the various "Wheel" dynamics strings into "Wheel/Rotation".
2017-12-11 18:57:17 +01:00
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
Michael Natterer
4df9a1d568 Get rid of gtk_misc_set_alignment(label) and use gtk_label_set_x,yalign() 2016-09-08 19:11:20 +02:00
Michael Natterer
58dd48564a app: simplify and fix paint dynamics editor sensitivity
Simplify because it's now a one-liner, fix because I broke it with
the previous commit.
2016-07-01 12:32:52 +02:00
Michael Natterer
af88e98afd Bug 767348 - Make Paint Dynamics icon customizable
Add an icon button to the dynamics editor's "mapping matrix" page. It
looks just as ugly as the icon button of the tool preset editor, the
two should be visually improved together.
2016-06-30 11:38:03 +02:00
Michael Natterer
e5b6806fe2 app: port tons of files to the new GIMP_CONFIG_PROP_FOO() macros
and remove lots of labels from calls to gimp_prop_foo_new(). Also
had to manually remove some unwanted labels that are now added
automatically, fixes bug #761880.
2016-02-11 23:46:24 +01:00
Michael Natterer
908f727f0a Chain up unconditionally in GObject::constructed()
It's supported since GLib 2.28.
2012-11-12 21:51:22 +01:00
Michael Natterer
867da8f293 app: add gimp_context_get_foreground,background_pixel()
which takes a Babl format to convert from/to.
Include <gegl.h> in a million places.
2012-05-02 17:50:41 +02:00
Michael Natterer
c35ff719a7 app/libgimp*: remove stuff found by -Wunused-but-set-variable 2011-05-01 23:23:19 +02:00
Michael Natterer
202124c438 app: implement GObject::constructed() instead of ::constructor() 2011-01-14 09:38:46 +01:00
Michael Natterer
88f2af98aa app: clean up the dynamics editor
Also fix its sensitivity when a read-only data is set. Fixes bug
curves).
2010-11-24 23:01:50 +01:00
Michael Natterer
1c786ae5d4 app: don't forget to free the models of the dynamics and preset editors 2010-04-11 15:54:09 +02:00
Alexia Death
5fda650281 app: Support for wheel input found in highend wacom tablets&tools 2010-03-09 22:23:44 +02:00
Michael Natterer
ba6a7d33ff app: fix code formatting and UI packing 2010-02-22 10:35:43 +01:00
Alexandre Prokoudine
dd8c65aed3 Typo fixed 2010-02-22 10:52:06 +03:00
Alexia Death
6c383b87a7 app: Add he beginnings of output editor 2010-02-22 01:04:37 +02:00
Alexia Death
53dce99bfb app: Prepare dynamics editor for output curves 2010-02-22 01:04:16 +02:00
Alexia Death
60705f79e9 app: Making spacing available as dynamic parameter
Spacing is now dynamically controllable. Unlike other parameters it
made little sense to scale down from default spacing so it scales between
current and maximum spacing.
2009-12-13 22:46:09 +02:00
Michael Natterer
0ce426cc79 Make the toggle grid insensitive when the dynamics are read-only 2009-10-18 13:24:59 +02:00
Michael Natterer
387ec40214 Remove useless frame and vbox that were copied over from the paint options 2009-10-18 13:10:58 +02:00
Michael Natterer
52dd01fdef Change user-visible strings from "Dynamics" to "Paint Dynamics"
Because "Dynamics" doesn't mean anything by itself. Didn't add the
"Paint" where the context is clear, like in the dynamics dialog
context menu.
2009-10-18 13:03:40 +02:00
Michael Natterer
57915302f6 Build with GSEAL_ENABLE 2009-10-17 21:24:12 +02:00
Michael Natterer
8fed74777d Rename boolean properties of GimpDynamicsOutput from "foo" to "use-foo" 2009-10-12 19:06:11 +02:00
Michael Natterer
824be894a1 Get rid of local unused variable "config" 2009-10-12 14:46:27 +02:00
Michael Natterer
77faffe4b7 Rename the output members of GimpDynamics from foo_dynamics to foo_output 2009-10-12 14:45:12 +02:00
Michael Natterer
db98f468cb Rename utility function 2009-10-11 22:43:46 +02:00
Michael Natterer
e23073a382 Clean up widget creation in gimp_dynamics_editor_init() 2009-10-11 22:32:14 +02:00
Michael Natterer
6a47c2a4b8 Get rid of unused cruft and reorder functions and includes 2009-10-11 22:06:54 +02:00
Michael Natterer
8df73b9323 Switch to using GimpDynamicsOutput's properties
* app/core/gimpdynamics.c: remove all boolean properties and add the
  outputs as properties instead. Make sure changes on the outputs get
  notified on the dynamics object.

* app/widgets/gimpdynamicseditor.c: change widget creation accordingly,
  also copy around the properties correctly when copying between
  dynamics objects (fixes NULL filenames on GimpData).
2009-10-11 21:25:28 +02:00
Michael Natterer
6409ecb389 Fix gimp_dynamics_editor_set_data() to really work this time 2009-10-10 23:02:18 +02:00
Michael Natterer
5bd751c2d2 Make model <-> data property copying work, and some cleanup 2009-10-10 21:48:17 +02:00
Alexia Death
0ffcad4688 Several small fixes. 2009-10-10 21:43:58 +03:00
Alexia Death
7f8b347677 Several small fixes. 2009-10-10 21:43:57 +03:00
Alexia Death
860c952416 Inverted maping matrix and fixes to jitter 2009-10-07 23:32:17 +03:00
Alexia Death
f89197f165 A small dynamics UI change 2009-10-07 19:32:37 +03:00
Alexia Death
3a041ad252 Lots of improvements on dynamics 2009-10-03 18:53:25 +03:00
Alexia Death
5eedaeb97a A bit better but probablt wrong state 2009-10-03 13:03:51 +03:00
Alexia Death
cd36753f17 Fixed loading for dynamics and made them actually accessible 2009-10-03 12:59:45 +03:00
Alexia Death
4cb185a8ba Fixing up the dynamics UI. Currently does not sync with the object in the context tho. 2009-08-25 21:28:24 +03:00
zhenfeng zhao
be40405fde Fix errors and warnings. 2009-08-24 22:51:46 -03:00
zhenfeng zhao
aac92da559 Have wires and function calls between dynamics and its editor 2009-08-24 15:55:44 -03:00
zhenfeng zhao
2ba3b36969 Have config value for prop button. 2009-08-24 11:15:14 -03:00
zhenfeng zhao
6f5488a046 Implement check button grid. 2009-08-24 09:44:06 -03:00
zhenfeng zhao
287f9ab887 Adjust UI code to make check button. 2009-08-23 11:56:03 -03:00
zhenfeng zhao
e61316cea1 Clean up and have a new branch. 2009-08-22 17:54:36 -03:00
Alexia Death
0a90a75705 Make the dynamics editor build and move the commented out mess to the end of the file. 2009-08-21 21:14:23 +03:00
zhenfeng zhao
d73330e3fa Add UI to dynamics editor. 2009-08-20 12:51:07 -03:00
Alexia Death
93f8216881 Renaming GimpDynamicsOptions to GimpDynamics and moving from paint/ to core/. A BIG change. 2009-08-20 04:25:26 +03:00