Commit graph

66 commits

Author SHA1 Message Date
Michael Natterer
80997a8646 Remove most GTK_ADJUSTMENT() and (GtkAdjutment *) casts
they are obsolete in GTK+ 3.x because GtkAdjustment cannot be passed
around as GtkObject any longer, GtkObject is gone.
2018-06-24 18:15:16 +02:00
Jehan
870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Simon Budig
7d64cf62c6 libgimpwidgets: rename the _grid()-Variants of gimp_scale_entry_*
Adjust all plugins to follow accordingly.

This concludes the GtkTable'ocide.
2018-05-20 21:06:35 +02:00
Michael Natterer
bdbec7941c Use the new macros from the last commit in all files
...and gone are the annoying warnings.
2018-05-20 21:06:34 +02:00
Simon Budig
de5ab5e07a map-object: kill GtkTable 2018-05-20 21:06:33 +02:00
Michael Natterer
1b3135ca95 Get rid of using GtkMisc API globally 2018-05-20 21:06:30 +02:00
Michael Natterer
4b92434bb9 plug-ins: port map-object to GTK+ 3.x 2018-05-20 21:06:29 +02:00
Michael Natterer
ce2cd374ee Replace gdk_cursor_unref() with g_object_unref() 2018-05-20 21:06:28 +02:00
luz.paz
4a77ff2d3d Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3)
Found via `codespell` and grep.
2018-04-25 23:49:06 +02:00
Michael Natterer
e16c8a2352 Move the new "default_new_layer_mode" APIs to the image...
...in both the core and libgimp.

Images now know what the default mode for new layers is:

- NORMAL for empty images
- NORMAL for images with any non-legacy layer
- NORMAL_LEGAVY for images with only legacy layers

This changes behavior when layers are created from the UI, but *also*
when created by plug-ins (yes there is a compat issue here):

- Most (all?) single-layer file importers now create NORMAL layers
- Screenshot, Webpage etc also create NORMAL layers

Scripts that create images from scratch (logos etc) should not be
affected because they usually have NORMAL_LEGACY hardcoded.

3rd party plug-ins and scripts will also behave old-style unless they
get ported to gimp_image_get_default_new_layer_mode().
2017-08-21 20:18:00 +02:00
Michael Natterer
838449254a plug-ins: use gimp_get_default_new_layer_mode() for most new layers
instead of hardcoding NORMAL_LEGACY.
2017-08-20 17:12:46 +02:00
Michael Natterer
3cf423f0cd *: rename NORMAL to NORMAL_LEGACY and NORMAL_LINEAR to NORMAL
and make NORMAL_LEGACY immutable.
2017-02-26 16:26:34 +01:00
Michael Natterer
801bd8fb3f plug-ins: get rid of icons in dialog buttons (use labels not stock IDs) 2017-02-12 16:18:54 +01:00
Simon Budig
53d4ad7c28 map-object: fix bogus if()-statement. 2017-01-30 16:43:59 +01:00
Michael Natterer
66060e3307 app, libgimp*, plug-ins: replace enum GimpLayerModeEffects by GimpLayerMode
with proper value names. Mark most values as _BROKEN because they use
weird alpha compositing that has to die. Move GimpLayerModeEffects to
libgimpbase, deprecate it, and set it as compat enum for GimpLayerMode.
Add the GimpLayerModeEffects values as compat constants to script-fu
and pygimp.
2017-01-08 23:00:19 +01:00
Michael Natterer
f5ecc53f3e Fix a lot of warnings all over the place
Deprecated stuff, unused variables. Includes parts of a patch from
Shlomi Fish from bug #768855.
2016-10-31 01:36:35 +01:00
Richard Kreckel
dd9b0fc55b Bug 768044 - Fix many typos
This fixes many typos in comments and one in a user-visible string (msgid
"center abscisse" changed to "center abscissa" in affected po files. too).
2016-06-26 00:35:24 +02:00
Andrew Worsley
455a91819b plug-ins: add back some menu entries for plugins
So we see what we have. Need some other way of dealing with this stuff...
2016-04-18 21:06:16 +01:00
Andrew Worsley
cfa9132c4d Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
Remove calls to gimp_drawable_mask_bounds() from most plug-ins.
This just leaves a python gimp interface plug-in.
2016-04-18 21:02:32 +01:00
Michael Natterer
ec786816bb */Makefile.am: merge INCLUDES into AM_CPPFLAGS
automake-1.13 finally warns about this anachronism.
2013-06-05 20:48:37 +02:00
Ville Skyttä
6b0d1038cc Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
Øyvind Kolås
1fe7b39dda plugins: remove map-object from menus 2012-05-03 04:34:08 +02:00
Øyvind Kolås
d1ced11415 plug-ins: add GEGL_CFLAGS to many Makefile.am's 2012-05-02 17:46:08 +02:00
Mikael Magnusson
0f8dd4ab88 plug-ins: make preview grid lines less blurry in map-object 2012-02-22 21:55:08 +01:00
Mukund Sivaraman
e046056059 Bug #666751: Replace M_PI with G_PI 2011-12-23 14:47:34 +05:30
Mukund Sivaraman
1808e4cbc3 build: Fix the location of the libm dependency
The plug-ins use symbols in libm and that's why -lm is necessary, not
because libgimpmath uses it.
2011-12-12 23:42:52 +05:30
Nils Philippsen
df52d7a325 map-object: explicitly specify library dependencies 2011-12-12 00:30:59 +05:30
Michael Natterer
dcb4c6e34a plug-ins: use gtk_box_new() 2011-09-30 12:18:24 +02:00
Michael Natterer
ab3fe10275 plug-ins: remove some more -Wunused-but-set-variable 2011-05-15 21:12:49 +02:00
Michael Natterer
77b615e899 plug-ins: use g_object_bind_property() to set widgets sensitive
depending on toggle buttons instead of libgimpwidgets' "set_sensitive"
hack.
2011-05-11 11:41:26 +02:00
Mukund Sivaraman
dcd447f583 map-object: Fix aliasing warnings 2011-04-21 11:08:29 +05:30
Mikael Magnusson
8ff66342b8 plug-ins: set progress to 1.0 when done 2011-04-10 19:28:43 +02:00
Michael Natterer
8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Mikael Magnusson
58cc35a0e9 plug-ins: map-object, remove newlayer option from pdb
It broke compatibility with scripts and is mostly useful for interactive use anyway.
2011-03-05 22:19:02 +01:00
Mikael Magnusson
87750d993e plug-ins: tabs to spaces in map-object 2011-02-20 15:24:22 +01:00
Mikael Magnusson
0f1da6677c plug-ins: pass the cairo_t from expose handler to drawing functions in map-object 2011-02-20 15:24:21 +01:00
Mikael Magnusson
fc1ae9e430 plug-ins: better name for new layers in map-object
Also postpones adding the layer until after the calculation.
2011-02-20 13:53:33 +01:00
Mikael Magnusson
cf7902b1ab plug-ins: cleanup map-object a bit 2011-02-20 13:52:50 +01:00
Mikael Magnusson
8be41fa9b7 plug-ins: fix directional light mode in map-object 2011-02-20 13:52:50 +01:00
Mikael Magnusson
5bd9de23b8 plug-ins: add back wireframe mode using cairo 2011-02-20 13:52:49 +01:00
Mikael Magnusson
492ab89b4e plug-ins: use an undo group in map-object 2011-02-20 13:52:48 +01:00
Mikael Magnusson
e2710c8371 plug-ins: add "Create New Layer" option to map-object 2011-02-20 13:52:48 +01:00
Mikael Magnusson
0344cb4a42 plug-ins: fix pdb input validation in map-object 2011-02-20 13:52:45 +01:00
Mikael Magnusson
85474bff18 plug-ins: remove backbuffer from map-object 2011-02-19 10:43:52 +01:00
Michael Natterer
2827819f85 plug-ins: remove light marker clearing apparatur from map-object
We draw everything in expose() now so there is no need to clear
anything.
2011-02-16 22:01:54 +01:00
Michael Natterer
491e55c4e4 plug-ins: move the expose handler to map-pbject-preview.c 2011-02-13 14:16:32 +01:00
Michael Natterer
9912e3f4ee plug-ins: separate preview computation from drawing in map-object 2011-02-13 14:12:08 +01:00
Mikael Magnusson
e68df27853 map-object: put the y value in the y spinner 2011-02-13 13:19:07 +01:00
Mikael Magnusson
49fc3a125e lighting: port to cairo, replace wireframe with live preview 2011-02-13 13:18:07 +01:00
Michael Natterer
bbd7ec6b5c plug-ins: port from gimp_image_add_foo() to gimp_image_insert_foo()
I'm sure some plug-ins need to add their items *not* at the toplevel,
but since making plug-ins really tree-aware is a lot more work than
just fixing insert positions, I went for passing -1 as parent in
almost all cases. And because of laziness...
2010-09-06 11:40:46 +02:00