Michael Natterer
384689b761
libgimpwidgets: add a private struct to GimpDialog and use it for help stuff
...
and remove all g_object_get/set_data() hacks.
2011-03-20 13:21:59 +01:00
Michael Natterer
c469dbb206
libgimpwidgets: turn GimpDialog's "parent" into a property
...
and remove the parent peoperty from GimpViewableDialog.
2011-03-20 12:44:03 +01:00
Michael Natterer
6d97fd3887
app: use a size entry instead of a spinbutton in GimpTextStyleEditor
...
so it's finally clear what unit the text size has.
2011-03-20 12:37:01 +01:00
Alexia Death
5f546938b6
app: Fix whitespace in last commit
2011-03-19 23:27:08 +02:00
Alexia Death
6d6ab78d2a
app: Fix stroking brush size to brush default
2011-03-19 23:26:34 +02:00
Alexia Death
ce606d9561
app: Fix a dynamics leak from new pdb fix
2011-03-19 22:48:17 +02:00
Alexia Death
5d5430e110
app: Fix pdb size and dynamics brush stuff
...
[ Mikael: deduplicated brush size setting and fixed some whitespace ]
2011-03-19 18:39:02 +01:00
Michael Natterer
b3a597c7de
Revert "app: Fix pdb size and dynamics issues"
...
This reverts commit 9bae2a15cb
.
2011-03-19 16:43:09 +01:00
Michael Natterer
bb80dfdc8e
Revert "app: Fix pdb properly this time"
...
This reverts commit 1a8edd7d1d
.
2011-03-19 16:42:53 +01:00
Alexia Death
1a8edd7d1d
app: Fix pdb properly this time
2011-03-19 17:12:14 +02:00
Alexia Death
9bae2a15cb
app: Fix pdb size and dynamics issues
2011-03-19 15:14:23 +02:00
Michael Natterer
4f62bdf436
app: paint the text cursor in the highlight color
...
so it can be distinguished from the text box rectangle more easily.
2011-03-19 10:11:47 +01:00
Michael Natterer
0789ee2669
app: add a 1px FG border around overlay frames
...
so they work on any background. Also remove disabled bling code.
2011-03-18 22:57:13 +01:00
Michael Natterer
28b6057b1a
themes: remove the experimental dark style for overlay widgets
2011-03-18 22:56:37 +01:00
Michael Natterer
140c9aae91
Bug 625273 - Insert Font and font-size into the Texteditor's Menubar
...
If the cursor position (or the current selection), doesn't contain any
font, font-size or color tags, display the default values from the
GimpText object instead of "nothing". Still display nothing if the
selection contains different fonts, sizes or colors.
2011-03-18 22:13:34 +01:00
Michael Natterer
f09360ba80
app: GimpTextLayout: use the unit conversion functions from gimpunit.[ch]
...
instead of duplicating them. Multiply by PANGO_SCALE in the callers
and ceil() fixed text box pixel extents so we don't cut off stuff by
fractions of a pixel.
2011-03-18 21:39:28 +01:00
Michael Natterer
caa3b9f4bf
libgimpbase: add gimp_units_to_points()
...
because points is used in quite some external APIs (like Pango), and
having one conversion from gimp units is better than duplicating the
code.
2011-03-18 21:34:27 +01:00
Michael Natterer
ecbfb4a9e8
app: add a GimpText property and construct param to GimpTextStyleEditor
...
which will be used to get default values from.
2011-03-18 21:16:53 +01:00
Michael Natterer
10893e6bfa
Revert "Add some extra compiler warnings to CFLAGS"
...
This reverts commit f47645dc51
.
Sorry, but the new warnings are not useful.
2011-03-18 20:41:38 +01:00
Mukund Sivaraman
f47645dc51
Add some extra compiler warnings to CFLAGS
2011-03-18 22:18:31 +05:30
Michael Natterer
61aa1854fd
app: make GimpSpinScale's slow part change the value 10x slower than the fast part
2011-03-18 15:42:50 +01:00
Michael Natterer
f1d1bb610d
app: experimentally add fine-tuning to GimpSpinScale
...
by making the lower part change things in small steps.
2011-03-18 15:07:44 +01:00
Michael Natterer
df731912a5
app: add a GimpTextStyleEditor to the text tool's editor dialog
...
so it's an alternative to on-screen editing for esoteric use cases
that can do everything on-screen editing is capable of.
2011-03-18 12:58:32 +01:00
Michael Natterer
6e45d788f8
plug-ins: undeprecate most of file-xjt
2011-03-18 09:27:54 +01:00
Kevin Cozens
422248d42a
Fixed cut and paste error that put R5RS fix before the setting of a variable.
2011-03-17 21:43:48 -04:00
Michael Natterer
f13abfa3f0
app: change image parameter in gimp_text_layout_new() to xres,yres
...
Because GimpTextLayout doesn't depend on any image, it only needs a
resolution.
2011-03-18 02:31:20 +01:00
Michael Natterer
1c8149a553
Bug 632568 - 'gimp-drawable-transform-rotate-simple' makes GIMP crash in some cases
...
Applied modified patch from Massimo that makes sure we don't use
negative width/height if source and dest regions don't overlap.
2011-03-18 00:53:21 +01:00
Mukund Sivaraman
94fa7a0471
file-jpeg: Validate ExifRational.denominator before division
2011-03-18 03:44:08 +05:30
Mukund Sivaraman
9538f4d61f
file-jpeg: Bug #594282 - Set image resolution from EXIF if available
2011-03-18 03:39:05 +05:30
Kevin Cozens
97bf01569a
Minor R5RS compatibility fix for the expt procedure.
2011-03-17 17:47:45 -04:00
Kevin Cozens
5c07d3b52d
Added a getenv procedure to the ftx extension of Script-Fu.
2011-03-17 17:47:44 -04:00
Michael Natterer
e24795f167
Bug 600554 - Implement layer group transforms
...
Same fix for the PDB: if the item to transform is a group layer, call
gimp_item_transform()/rotate()/... directly instead of going through
the wrong cut/transform/paste code path.
2011-03-17 22:00:38 +01:00
Michael Natterer
503acbae54
Bug 600554 - Implement layer group transforms
...
When transforming layer groups, don't cut out a buffer to transform.
Instead, simply call GimpTransformTool::transform() with
tr_tool->original being NULL, just as when we are transforming a
path. In the transform() implementations, simplify the code to not
look at the type of item to be transformed; instead, simply look at
tr_tool->original and transform it if it exists, otherwise call
gimp_item_transform() which does the right thing for all sorts of
items automatically.
2011-03-17 21:52:43 +01:00
Michael Natterer
d3153960df
app: rename gimp_transform_tool_doit() to gimp_transform_tool_transform()
2011-03-17 21:39:11 +01:00
Michael Natterer
d7c66c66d0
Bug 142697 - Dock separators move between sessions
...
Removing my old and evil "fix" for the issue from 2004-06-01 seems
to make things work as they should.
2011-03-17 21:03:20 +01:00
Martin Nordholts
0d0ffd1265
Bug 644891 - Ctrl+e crashes gimp
...
Don't freak out if setting an URI on GimpImage that was getted with
the corresponding getter. Fix by Massimo.
2011-03-17 20:25:43 +01:00
Mukund Sivaraman
584f9a35e7
Use correct format string for size_t args
2011-03-18 00:06:15 +05:30
Mukund Sivaraman
2deb14c9be
Use correct format string for size_t args
2011-03-18 00:06:15 +05:30
Mukund Sivaraman
9bbfac5c59
Use correct format string for size_t args
2011-03-18 00:06:14 +05:30
Mukund Sivaraman
56d8850d38
Use a proper int to pointer cast
2011-03-18 00:06:14 +05:30
Michael Natterer
bd74617756
Bug 643174 - GIMP fails to execute 'Palette to Gradient' function
...
Don't call gimp_gradient_segment_range_split_uniform() if num_segments
is 1 (which happens on a palette with two colors).
2011-03-17 19:21:07 +01:00
Michael Natterer
ac5cd62af5
plug-ins: don't use %ld to print simple integer values
...
I have no clue why %ld was used here, the values are really small...
2011-03-17 15:58:46 +01:00
Michael Natterer
e26c2777c5
plug-ins: use GimpImageType instead of GimpImageBaseType in value-propagate
...
This has been wrong forever.
2011-03-17 15:57:46 +01:00
Michael Natterer
d7c1788f2c
plug-ins: use gdk_window_get_width/height() on GTK+ >= 2.24
2011-03-17 15:56:53 +01:00
Michael Natterer
98e5c32f00
plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE
...
because the latter is from the wrong enum.
2011-03-17 15:44:47 +01:00
Michael Natterer
d23c0d3fdf
plug-ins: add a typedef for IfsCompose's token enum
...
and don't treat its values as GTokenType.
2011-03-17 15:29:43 +01:00
Michael Natterer
c6e35435ad
libgimpwidgets: don't treat -1 as value of enum PangoAttrType
2011-03-17 15:28:41 +01:00
Michael Natterer
075c7d4a4d
app: avoid the deprecated gdk_drawable_get_size() on GTK+ >= 2.24
...
Use gdk_window_get_width/height() instead.
2011-03-17 15:10:17 +01:00
Michael Natterer
fdde231869
app: use gtk_widget_get_allocation() instead of gdk_drawable_get_size()
2011-03-17 15:09:19 +01:00
Michael Natterer
42b2498a06
app: add a cast when comparing GdkCursorType with GimpCursorType
2011-03-17 14:42:44 +01:00