Commit Graph

35366 Commits

Author SHA1 Message Date
d794d8a26b Add Windows implementation for gimp_file_show_in_file_manager() 2015-02-26 20:48:36 -05:00
9be16e00bc app: make sure name references to GimpData objects are serialized correctly
They were also serialized correctly before, but only because many
GimpData objects were (bogusly) always dirty after loading, which
caused them to always be written do disk on exit. This commit fixes
this problem and updates by-name references explicitly as things are
renamed, instead of relying on bugs.

Add gimp_data_factory_data_clean() which clears the dirty flags from
all a factory's objects. Call the new function on all factories at the
end of gimp_restore(), when all data has been loaded. This might be
total overkill, but ensures that everything is clean in the beginning.

Add new signal GimpContext::prop_name_changed() which is emitted when
any of the context's object properties (brush, gradient etc) is
renamed.

In GimpToolPreset, connect to the new signal and dirty the preset if a
relevant object propery was renamed, making sure the preset is saved
to disk later. Also optmize updates quite a bit by ignoring
notifications on tool option properties that are irrelevant to the
preset.

This might or might not address the issues discussed in bug #739487.
2015-02-26 22:31:58 +01:00
0fad7bb126 openraster: Implements exporting and loading group layers.
This preserves the layer structure and
brings it in pair to MyPaint development branch
(allowing interchange of .ora files with group layers).

Previous behavior on load was oppening all
sub-layers in a flat-space, with no groups,
and flatten layer groups on export.

The implemented behavior accords to the
openraster spec.
2015-02-26 11:37:34 -03:00
dcfe0b8925 app: fix uninitialized boolean in gimp_paned_box_drag_drop() 2015-02-24 23:29:39 +01:00
afc3d4281e app: don't let updating the gradient editor actions dirty the gradient
...at least not most of the time, gradients are beasts. Also some
unrelated minor cleanup.
2015-02-24 20:58:19 +01:00
f425f539f8 app: fix the brush editor to not dirty every brush set on it
gimp_brush_editor_update_brush(): only set the brush property whose
GtkAdjustment has changed, and only set it if it is different from the
current value. Before, simply setting a brush on the editor would
cause all properties to be written back to the brush unconditionally.

gimp_brush_editor_notify_brush(): unrelated cleanup: use brush
accessors instead of direct struct access, remove an update of the
radius property from the shape updating code that was probably left
over from copy and paste.
2015-02-24 20:23:55 +01:00
1af244b39c app: same fix as below in GimpDataFactoryView
gimp_data_factory_view_tree_name_edited(): change the GimpData's name
only if it actually changed.
2015-02-24 19:17:50 +01:00
1105e6455e app: change a GimpData's name only if it actually changed
gimp_data_editor_name_activate(): don't set a new name if it's the
same as the old one.
2015-02-24 19:07:39 +01:00
1d5bffd1c2 Fix clang complaining about missing void in function prototypes. 2015-02-23 15:12:33 -08:00
025354b914 HACKING: add some missing info 2015-02-23 08:15:03 +01:00
f4a24478bd openraster: filesystem encoding could return None - defaults to utf-8 2015-02-22 12:47:47 -03:00
78df196f12 pygimp: added new drawable.get_data method 2015-02-21 02:32:43 -02:00
d965c7cab2 pygimp: add 'precision' property to Image 2015-02-21 02:32:43 -02:00
a0398e5028 configure.ac, plug-ins: require lcms >= 2.6 and remove #ifdef from lcms.c 2015-02-21 00:33:37 +01:00
29456b96f9 Bug 744127 - Restore tab hover delay during drag-n-drops
Fix the return values of drag_motion() and drag_drop() callbacks.

Commit 7b85cf4de8 started mixing up
the two unrelated concepts

- the widgets has handled the event
- a drop here would do something / did something successfully

into one boolean value being both the function's return value and
a success indicator for the DND operation.

Untangle the concepts again by returning FALSE when
gimp_paned_box_will_handle_drag() returns TRUE (indicating that the
docking DND mechanism will kick in), and always returning TRUE
otherwise; and by using the state "drop was / would be successful"
only for calling gdk_drag_status() and gtk_drag_finish().

This way we make sure that:

- drag_leave() is called reliably again (because we return TRUE if no
  other widget will handle the event)
- drag data is freed reliably again (because we always call
  gtk_drag_finish())
2015-02-19 22:42:18 +01:00
97a9d1c53f libgimpbase: implement show in file manager for OS X platform 2015-02-19 21:39:05 +01:00
a51ead0aa5 file-gegl: Fix typo 2015-02-18 13:46:22 +05:30
09f64866c2 file-gegl: Add OpenEXR saving through file-gegl 2015-02-18 13:40:34 +05:30
58a557d800 libgimpbase: Avoid an assignment to self.
gimp_param_unit_value_validate() set a value to itself to not
change the value, which was strange though not particularly wrong.
Found by Coverity Scan.
2015-02-17 18:49:02 +01:00
d3600ab379 app: add File -> Copy Image Location 2015-02-17 13:33:10 +01:00
b6eba9bd1f app: consistent labels and tooltips for the "Show in File Manager" actions 2015-02-17 13:05:21 +01:00
39db88d0a5 app: add much more "Show in file manager" menu items
Brushes, patterns, documents, ...
2015-02-16 20:29:31 +01:00
4c7338c097 app: link against -lm, whatever new linker version seems to need is 2015-02-16 19:35:00 +01:00
e448cc3173 libgimpbase, app: implement File -> Show in File Manager
Add gimp_file_show_in_file_manager() to libgimpbase and a menu item
in app which shows the image's file (if any) in the file manager.

Implemented calling the org.freedesktop.FileManager1 interface
and dropped snippets found on stackoverflow for somebody to
turn into working code for OSX and Windows.
2015-02-16 18:40:26 +01:00
6a079b980b plug-ins: format prototypes in file-gif-save 2015-02-15 22:52:37 +01:00
a75a479d81 app: #include "core/gimpdynamicsoutput.c" in some files in paint/ 2015-02-15 20:05:30 +01:00
542729dd42 Bug 743612: Takes the filesystem encoding in consideration 2015-02-15 14:23:39 -02:00
ea5adf4ac0 Bug 692349: Poor placement of "Floating selection" entry in Layers dialog 2015-02-14 18:20:55 +01:00
3925466db5 libgimpcolor: change LUMINANCE Y values to match sRGB built-in profile 2015-02-14 17:40:54 +01:00
48a8104037 data: forgot to git add patterns/*/.gitignore 2015-02-12 19:43:37 +01:00
d1f8fa01a8 data: sort patterns into subdirectories so they get tagged automatically
This does not mean that our patterns are all of a sudden "proper" now,
but the categories (except "Legacy") hopefully make sense for new high
quality patterns that will be added, and it's better than having them
all untagged.
2015-02-11 21:13:33 +01:00
59417ca4b6 Fix PF_LAYER always being passed as a Layer, even if object is a LayerGroup 2015-02-10 11:57:48 -02:00
678b61a3ac Bug 742623: Equalize operation fills buffer with nan values in floating point precision
Use histogram bins count to process equalization instead of "256" hard-coded value.
2015-02-10 12:08:04 +01:00
b856a8ba76 plug-ins, pdb: remove the value-propagate plug-in and add PDB compat procedures 2015-02-08 23:09:06 +01:00
c2371a2de9 app: implement Dilate and Erode as wrappers around gegl:value-propagate
Add them to the "drawable" actions. Remove menu registration for
the value-propagate plug-in's dilate and erode procedures.
2015-02-08 19:56:45 +01:00
431f65a7a8 configure.ac: require babl 0.1.12 2015-02-08 18:30:07 +01:00
e4cdfee6ce Updated Swedish translation 2015-02-08 13:03:25 +00:00
032a9abc6c Updated Basque language 2015-02-07 16:00:21 +01:00
c0663a8edf Updated Basque language 2015-02-07 15:50:11 +01:00
03a9b314ac Updated Basque language 2015-02-07 15:49:17 +01:00
0d33b66c25 Updated Basque language 2015-02-07 15:44:41 +01:00
e44293172b Updated Basque language 2015-02-07 15:41:59 +01:00
b7e1df01fe Updated Basque language 2015-02-07 15:38:21 +01:00
00c1050dbc Updated Basque language 2015-02-07 15:35:02 +01:00
94f3089b51 Updated Basque language 2015-02-07 15:30:05 +01:00
9d75844b7a app: add a custom GUI for gegl:diffraction-patterns 2015-02-06 19:43:49 +01:00
a71d64f701 app: add gegl:value-propagate to Filters -> Distorts 2015-02-06 19:26:52 +01:00
99772c7870 Updated Icelandic translation 2015-02-05 17:22:06 +01:00
6c5f910c0f Updated documentation on the title and status bars 2015-02-04 16:45:06 -02:00
09c5fcc32b Bug 742775: Crash when editing text with certain fonts 2015-02-03 18:33:12 +01:00