Jehan
0df8ae52fb
Bug 704065 - Snap default preferences are now settable in the preferences.
...
Along with this change, the snap preferences have been moved from
GimpDisplayConfig to GimpDisplayOptions, where it makes much more sense.
One of the consequences is that there is no need to duplicate these
values in GimpDisplayShell anymore to differenciate defaults and
current settings.
2013-08-27 23:31:22 +12:00
Michael Natterer
b60d361d6c
app: add gegl:plasma to Filters -> Render -> Clouds
2013-08-27 08:14:51 +02:00
Michael Natterer
b56145626e
Bug 706221 - File/Save (As) dialog: add a link to the Export dialog...
...
...for Non-XCF files.
When the entered extension in save or export is on the other group,
add a link to the warning dialog which allows to jump directly to the
export or save dialog, with the same filename pre-entered.
2013-08-23 20:35:24 +02:00
Michael Natterer
c32c1208b0
app: return a GError when flattening the image failed
2013-08-09 21:35:36 +02:00
Téo Mazars
8bad383a3b
app: Add gegl:channel-mixer to Color/Components
2013-08-03 23:30:58 +02:00
Téo Mazars
23bc1b255c
app: Add gegl:antialias -> Filters/Enhance
2013-08-03 22:47:58 +02:00
Téo Mazars
62f65ea981
app: add gegl:tile-seamless to Filters -> Map
2013-07-28 19:15:25 +02:00
Michael Natterer
d682135d7a
app: add gegl:alien-map to Colors -> Map
2013-07-18 22:53:06 +02:00
Michael Natterer
37372555e5
Bug 704118 - crash on invalid number of PLTE entries
...
Make sure an indexed image always has a colormap. This was the case
before, except one could set a NULL colormap via the PDB.
Add gimp_image_unset_colormap(), and make gimp_image_set_colormap()
never set the colormap to NULL, even if NULL is passed. Change the
only places where actual unsetting makes sense to use unset().
Make some GUI places deal gracefully with palettes/colormaps with zero
entries.
2013-07-14 22:25:44 +02:00
Michael Natterer
f885085bcf
app: view_close_cmd_callback(): no need to check the shell for != NULL
2013-07-03 09:19:22 +02:00
Michael Natterer
f56f6d1255
app: follow the GEGL invert -> invert-linear vs. invert-gamma change
...
and invert masks using invert-linear and other drawables using
invert-gamma. drawable_invert_cmd_callback() still always uses
invert-gamma even though it can be used on layer masks.
2013-06-24 00:45:04 +02:00
Michael Natterer
5506e691b6
app: show the dither dialog when converting between linear and gamma
...
within one bit depth.
2013-06-23 17:15:30 +02:00
Michael Natterer
caf73f5f35
Add support for both gamma-corrected and linear for all bit depths
...
- Add new enum GimpComponentType which contains u8, u16, u32 etc.
- Change GimpPrecision to be u8-linear, u8-gamma, u16-linear etc.
- Add all the needed formats to gimp-babl.c
- Bump the XCF version to 5 and make sure version 4 with the old
GimpPrecision enum values is loaded correctly
This change blows up the precision enums in "New Image" and
Image->Precision so we can test all this stuff. It is undecided what
format will be user-visible options in 2.10.
2013-06-23 16:51:24 +02:00
Michael Natterer
31e9cc2ad9
Bug 702369 - foreground selection doesnt work with image precision >8 bit
...
This removes the obsolete check which makes the tool fail from
gimp_display_shell_set_mask(). Also change the foreground select tool
and the display mask from using GimpChannel to GeglBuffer, because
that's what it needs, simply buffers. Most changed files simply newly
include <gegl.h> because a GeglBuffer appeared in two headers.
2013-06-22 22:26:46 +02:00
Michael Natterer
5b999990cb
Bug 702359 - 'New Layer Group' menu command should not have ellipsis
...
so remove them.
2013-06-15 21:09:55 +02:00
Michael Natterer
2e5d1ff05e
app: enable tools_fg_select_brush_size_cmd_callback() again
2013-06-07 22:27:59 +02: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
Michael Natterer
f1e5544053
app: gegl:noise-CIE_lch was renamed to gegl:noise-cie-lch
2013-06-04 00:54:12 +02:00
Michael Natterer
cbbfe674b0
app: add gegl:motion-blur-circular and -zoom to Filters -> Blur
...
and follow the gegl:motion-blur -> gegl:motion-blur-linear rename.
2013-06-03 00:20:42 +02:00
Michael Natterer
338ca6694a
app: add gegl:waves to Filters -> Distorts
2013-06-01 15:13:40 +02:00
Michael Natterer
86d0120482
app: add gegl:grid to Filters -> Render -> Pattern
2013-06-01 01:20:30 +02:00
Michael Natterer
7a284def90
app: add gegl:dropshadow to Filters -> Light and Shadow
...
Also move gegl:vignette there from Filters -> Decor.
2013-06-01 01:13:22 +02:00
Michael Natterer
73a8d59472
app: rename the filters-laplace and filters-sobel actions
...
to filters-edge-foo because the ops are also called gegl:filter-edge-foo.
2013-05-31 22:14:45 +02:00
Michael Natterer
b593e3eb02
app: add gegl:motion-blur to Filters -> Blur
2013-05-30 20:04:10 +02:00
Michael Natterer
279abd260b
app: add gegl:noise-spread to Filters -> Noise
2013-05-29 19:22:14 +02:00
Michael Natterer
07c87c7ce1
app: add gegl:shift to Filters -> Distorts
2013-05-27 00:45:51 +02:00
Michael Natterer
9c69130f72
app: add gegl:fractal-trace to Filters -> Map
2013-05-26 23:58:12 +02:00
Michael Natterer
5f76a735af
app: add gegl:deinterlace to Filters -> Enhance
2013-05-26 22:15:36 +02:00
Michael Natterer
308431f7b6
Bug 701053 - Opening jpg files from Canon camera displays...
...
...PNG Description encoding error.
Don't unconditionally display all error messages from thumbnail saving.
Instead, return the error from gimp_imagefile_create_thumbnai()
and gimp_imagefile_save_thumbnail() and display it only if thumbnail
creation was the actual user-intended action (like clicking the preview
in a file dialog). Do not display the error when thumbnailing is just
a side effect of loading/saving an image.
2013-05-26 21:31:06 +02:00
Michael Natterer
f77b599c55
app: use the proper public GEGL API to get to the op's description
...
and use existing GIMP action API to set the tooltip.
2013-05-20 17:34:04 +02:00
Michael Natterer
8e823ec655
app: use the GEGL op's "description" as tooltip
...
and get rid of all the duplicated tooltip strings in the filter action
entries.
2013-05-20 16:43:04 +02:00
Michael Natterer
f48aacee18
app: add gegl:emboss to Filters -> Distorts
2013-05-20 02:20:09 +02:00
Michael Natterer
94294cd114
app: add gegl:whirl-pinch to Filters -> Distorts
2013-05-19 23:28:06 +02:00
Michael Natterer
dd648b1c12
app: add gegl:cubism to Filters -> Artistic
2013-05-19 22:21:38 +02:00
Michael Natterer
31f7b7fd63
app: add gegl:red-eye-removal to Filters -> Enhance
2013-05-19 20:51:35 +02:00
Michael Natterer
956b7015aa
app: remove gegl:box-blur from the menus again, apparently it's junk
2013-05-19 17:31:06 +02:00
Michael Natterer
5baabf87fd
app: add gegl:exposure to Colors, and fix glitch in previous commit
2013-05-14 22:26:16 +02:00
Michael Natterer
de12010107
app: add gegl:box-blur to Filters/Blur
2013-05-14 21:34:03 +02:00
Michael Natterer
8320381885
app: add untested infrastructure for tool-internal undo/redo
...
Add virtual functions GimpTool::undo(), ::redo(), ::get_undo_desc()
and ::get_redo_desc() and corresponding wrappers in tool_manager.
Make the edit-undo and edit-redo actions check tool undo/redo first
before invoking image undo/redo.
2013-05-12 19:51:52 +02:00
Michael Natterer
0255a01f95
app: add gegl:checkerboard to <Image>/Filters/Render/Pattern
2013-04-30 19:20:18 +02:00
Simon Budig
fba2b610c5
add default shortcut <shift>1 to reset rotation.
2013-04-23 00:36:31 +02:00
Michael Natterer
47f4bd5508
app: use the reset icon for "Reset to 0°"
2013-04-20 23:56:04 +02:00
Michael Natterer
977a194923
app: add a rotate dialog to rotate to exact degrees
2013-04-20 23:22:14 +02:00
Michael Natterer
1a755b2dbe
app: add a View -> Rotate menu
...
Which so far has "Reset", "90°", "-90°" and "180°" entries.
2013-04-20 22:16:50 +02:00
Michael Natterer
71c88aebdc
app: add gegl:vignette to Filters -> Decor
2013-03-27 01:35:49 +01:00
Michael Natterer
cdf2c7ba4b
app, menus: add CIE lch noise to the menus
2013-03-09 22:59:13 +01:00
Michael Natterer
1454234d98
app, menus: add a "Desaturate" submenu for the newly added GEGL filters
2013-03-09 20:49:57 +01:00
Michael Natterer
cf3010394b
app: strip the ellipsis from the GEGL filter dialog labels
...
We recycle the menu item's label, and ellipsis are just wrong in a
dialog title.
2013-03-09 20:19:32 +01:00
Michael Natterer
3105791933
app: set the sensitivity of the 3 newly added GEGL filter menu items
2013-03-09 20:18:39 +01:00
Michael Natterer
edec6ac8cc
app: add some more gegl ops to the menus (wip)
2013-03-09 18:10:14 +01:00
Ville Skyttä
6b0d1038cc
Bug 692641 - Various spelling fixes
2013-01-27 18:59:02 +01:00
Michael Natterer
af7916b3e6
Bug 689403 - GIMP saves files in strange directories when started from an...
...
If one single directory is passed on the command line, use it
as default folder for the open/save dialogs.
2012-12-15 00:36:19 +01:00
Michael Natterer
0ff07fa385
app: can't call view_actions_setup() from file_actions_setup()
...
This breaks Ctrl+W from docks to close the active display, we'll
need another solution for this.
2012-12-12 23:26:46 +01:00
Michael Natterer
59f67e0503
app: simpler code in view_close_cmd_callback()
2012-12-12 23:25:45 +01:00
Jehan
8a935f05a0
actions: forgot an include which was triggering an "implicit declaration" warning.
2012-12-12 16:08:16 +09:00
Jehan
2ad8634c06
Bug 685559 - view-close action modified to close only an image view.
...
view-close was closing also toolbox docks if they had the focus. Now
this action will close only the current active image view (if any),
whatever the window which has actual focus.
Additionally all other view actions are available on dock focus.
2012-12-12 15:50:08 +09:00
Jehan
28669b07d1
actions: dock-close had a default shortcut colliding with view-close.
...
When the accelerator is NULL, gtk_action_group_add_action_with_accel()
would use the default one for the stock icon used. And GTK_STOCK_CLOSE
default accelerator is "<Primary>w" which we already use for view-close.
We must use empty string when we want no default accelerator.
2012-12-12 15:36:16 +09:00
Jehan
5c6c55e50a
Bug 685557 - fix closing and saving a new image.
...
Current implementation had 2 issues, fixed by this commit:
1/ after the file save dialog is closed, the image would not close.
2/ if you switched the visible tab before saving the new image, it
would save and close the visible tab, instead of the expected one.
2012-11-27 23:57:24 +09:00
Nils Philippsen
f6f8079013
app: remove check which hides conditions that should not happen
...
Remove a GTK_IS_WINDOW() check where this would hide parent widgets
being passed in that don't have a gtk toplevel. This should not happen
and if it does we want to know about it.
2012-11-14 16:43:06 +01:00
Nils Philippsen
1a4087bd5f
app: fix marking file dialogs as transient if opened from context menu
...
GimpDisplayShell isn't a GtkWindow (anymore), therefore use
gtk_widget_get_toplevel() to find the actual toplevel window.
2012-11-14 16:42:05 +01:00
Michael Natterer
a7223bbd2d
Bug 352823 - Changing image mode discards text layer information
...
For conversions that have no dither options (like RGB -> GRAY or u8 ->
u16), always preserve text editability, for conversions that have
dither options (like RGB -> INDEXED or u16 -> u8), give the user the
choice whether to enable dithering.
2012-11-10 18:56:44 +01:00
Michael Natterer
d4933b3052
Bug 674160 - Redesign of "Lock panel"
...
Apply and heavily modify patch from remyDev which adds "lock position"
to GimpItem, similar to "lock content". Lock position disables all
sorts of translation and transform, from the GUI and the PDB.
Cleaned up some aspects of the lock content code as well because a
second instance of similar code always shows what went wrong the first
time.
2012-11-09 11:17:25 +01:00
Michael Natterer
b426acb42d
Bug 676374 - Windows->Toolbox shouldn't clear Recently Closed Docks
...
When a new toolbox is opened, don't remove all entries containing a
toolbox from the list of recently closed docks. Instead, check if
there is a toolbox already open when such an entry is chosen and tell
the user to close the existing toolbox first.
2012-10-09 22:54:28 +02:00
Sven Neumann
ca5391f42f
app: fix description of "layers-crop-to-content" action
2012-09-24 15:37:41 +02:00
Michael Natterer
0ca03e8827
app: add a "Convert Precision" dialog for choosing dithering options
...
Does absolutely nothing yet.
2012-09-23 23:47:28 +02:00
Michael Natterer
796a9474d8
app: implement "Crop Image/Layer to Content" menu items in the core
...
in a few lines using existing functionality, as replacement for the
autocrop plugin. Rename the existing "crop" actions to
"crop-to-selection".
2012-09-22 20:35:36 +02:00
Michael Natterer
303e554ab1
app: remove "gboolean active_layer_only" from gimp_image_crop()
...
Also a very historic API, it doesn't belong there. Instead, simply
call gimp_item_resize() in GimpCropTool.
2012-09-22 15:08:05 +02:00
Michael Natterer
055a52e969
app: fix signature of layers_resize_layer_callback()
2012-09-08 23:51:06 +02:00
Michael Natterer
d7588ba45c
Bug 678358 - Add option to skip text layers when resizing the image
...
Add a "Resize text layers" toggle to the canvas size dialog, and
default to FALSE because this seems the desired behavior in most
cases.
2012-09-05 23:26:54 +02:00
Michael Natterer
ce228911ce
app,menus: add some new GEGL ops to the menus
2012-08-31 22:19:43 +02:00
Michael Natterer
47c987b09e
Bug 676270 - cppcheck report
...
Fix a couple of harmless stuff pointed out in the report, and one
real bug: gimp_plug_in_close() was killing each process 10 times
on windows.
2012-08-04 03:20:36 +02:00
Michael Natterer
220b28677b
Bug 676566 - Window title becomes "Untitled" after exporting without saving
...
Fix this and other issues more globally by moving the logic that
formats the image's display name into the GimpImage object, and return
the properly formatted name, e.g. "Foo.xcf", or "[Foo] (imported)"
from gimp_image_get_display_name().
Also add gimp_image_get_display_path() which returns the full path
instead. Use the two functions for formatting the image title, and
apply various other fixes that make sure the UI always uses the same
string to identify the image.
Call gimp_object_name_changed() whenever the save/export status
changes, so the image's cached display name and path get cleared.
2012-07-17 22:52:49 +02:00
Michael Natterer
b0170ee5ea
app: don't ask to confirm reverting "Untitled" when the image was imported
2012-07-14 00:11:17 +02:00
Michael Natterer
fbb2afdf1d
app: rename gimpimage-convert.[ch] to gimpimage-convert-type.[ch]
2012-06-26 14:38:33 +02:00
Michael Natterer
88571276e9
app: rename convert-dialog.[ch] to convert-type-dialog.[ch]
2012-06-26 13:43:04 +02:00
Michael Natterer
ccae8cffc3
app: add color-reduction to the colors menu
2012-05-23 12:56:24 +02:00
Michael Natterer
513e3b6a78
app: disable the foreground select tool properly: #if 0 everything
...
so it's not in the way of further cruft removal.
2012-05-21 03:09:08 +02:00
Michael Natterer
eec5e9968e
app: remove Debug -> Benchmark Projection
2012-05-20 20:13:59 +02:00
Michael Natterer
5247f461aa
app: remove paint-funcs-types.h
2012-05-19 01:13:21 +02:00
Michael Natterer
01c92a7c4e
app: remove all use-gegl config stuff
2012-05-19 00:50:53 +02:00
Michael Natterer
d294cfb8b2
app: remove the legacy projection construction code
2012-05-19 00:06:03 +02:00
Michael Natterer
39c18e9a48
app: make file_save() aware of the difference between overwrite and export
...
by having two booleans "export_backward" and "export_forward" in the
api instead of just an "export" one that would destroy the "imported
from" state. This change fixes the state of the "Overwrite" menu item,
so it stays visible until the file got either saved or exported to
another filename.
This also reverts commit a4beeecf2b
, so
Ctrl-S is always invokable even if invisible.
2012-05-18 18:57:58 +02:00
Alexandre Prokoudine
a3e2a942e6
Added missing filters' sensitivity, restored alphabetical order
2012-05-13 18:58:54 +04:00
Alexandre Prokoudine
eb48617a38
Replaced old Difference of Gaussians, Laplace and Sobel filters with new GEGL operations
2012-05-13 06:41:19 +04:00
Alexandre Prokoudine
ac85c84a0f
Replaced old Ripple and Lens Distortion filters with new GEGL operations
2012-05-13 06:15:24 +04:00
Alexandre Prokoudine
20ae491b21
Replaced the old Unsharp Mask filter with the new GEGL operation
2012-05-13 05:38:24 +04:00
Michael Natterer
20f3cba2b6
app: rename gimp_image_base_type() to gimp_image_get_base_type()
2012-05-07 21:57:33 +02:00
Michael Natterer
69893e4f72
app: remove GimpPickable::get_tiles()
...
and change some legacy places to get their tiles from the buffer
returned by GimpPickable::get_buffer().
2012-05-06 01:01:54 +02:00
Michael Natterer
a4beeecf2b
app: make sure Ctrl+E doesn't invoke "Export to" when it's invisible
...
(cherry picked from commit 4c66e50763
)
2012-05-05 00:18:59 +02:00
Michael Natterer
af0687eb82
app: forgot to set the sensitivity of the filters-semi-flatten action
2012-05-05 00:01:34 +02:00
Michael Natterer
f1a771439a
Replace the semi-flatten plug-in by a GEGL operation
2012-05-04 23:56:10 +02:00
Michael Natterer
f24445efbc
Replace the threshold-slpha plug-in by a GEGL operation
2012-05-04 17:59:36 +02:00
Michael Natterer
7610e299ae
Use GimpValueArray and GimpParamSpecValueArray
...
instead of the deprecated stuff from GLib.
2012-05-04 00:51:50 +02:00
Simon Budig
71d5fbe6af
debug: follow new gimp_image_new signature
2012-05-02 17:51:23 +02:00
Michael Natterer
1ea3bb827e
app: add a dedicated menu entry for gegl:color-temperature
2012-05-02 17:51:23 +02:00
Michael Natterer
64a4ec12d5
app: s/unsigned integer/integer/ in UI labels
2012-05-02 17:51:22 +02:00
Michael Natterer
ee31359587
app: move gimp_image_convert_precision() to its own file
...
gimpimage-convert.c is big enough already
2012-05-02 17:51:21 +02:00
Michael Natterer
fa0faf4254
app: replace the polar-coords plug-in by gegl:polar-coordinates
2012-05-02 17:51:19 +02:00
Michael Natterer
1badcb7ce9
app: add GIMP_PRECISION_U32 and all its formats
2012-05-02 17:51:19 +02:00
Michael Natterer
2e7944cad0
app: add GIMP_PRECISION_HALF for 16 bit floating point
...
and use babl_format_get_palette() to simplify some code.
2012-05-02 17:51:18 +02:00
Michael Natterer
dc7bc8f292
app: fix menu label: it's 32 bit float not 16 bit float
2012-05-02 17:51:17 +02:00
Michael Natterer
b4580e74e6
app: implement converting images between precisions, including menu items
2012-05-02 17:51:16 +02:00
Michael Natterer
a7198ac80f
app: allow indexed images only at u8 precision
2012-05-02 17:51:16 +02:00
Michael Natterer
3a46cfbbc6
app/pdb: allow some more stuff on indexed by simply removing the restriction
2012-05-02 17:51:12 +02:00
Michael Natterer
85bd6b0dd9
app: pass a format, not bpp, to gimp_viewable_get_dummy_pixbuf()
...
and add tons of <gegl.h> includes.
2012-05-02 17:51:08 +02:00
Michael Natterer
bacf1abac2
app: don't use GIMP_IMAGE_TYPE_IS_FOO() in drawable_actions_update()
2012-05-02 17:50:57 +02:00
Michael Natterer
c14738806e
app: use gimp_image_get_layer_format() instead of dealing with image_type
2012-05-02 17:50:57 +02:00
Michael Natterer
95b1c0617b
Replace the value-invert plug-in by its GEGL counterpart
2012-05-02 17:50:52 +02:00
Michael Natterer
609e2d8cda
Replace the color-to-alpha plug-in by GEGL filter dialog
2012-05-02 17:50:49 +02:00
Michael Natterer
cf37aa7dba
app: add a GimpSettingsBox to all GEGL operation filter dialogs
...
so they store all recently used settings, and explicitly added ones,
just like the color tools.
2012-05-02 17:50:49 +02:00
Michael Natterer
b956707c51
app: follow gegl:pixelize's name change, set gaussing blur's sensitivity
2012-05-02 17:50:48 +02:00
Michael Natterer
1921fa7de3
app: always create a new tool in filters_filter_cmd_callback()
...
Things will get more complicated in GimpOperationTool soon, and we
don't want to mess around with reconfiguring *everything* in the tool.
2012-05-02 17:50:43 +02: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
f5e1dc5bf5
app: clean up includes in filters-commands.c
2012-05-02 17:46:16 +02:00
Michael Natterer
96357dbfd3
app: add infrastructure to invoke GEGL filters from a menu item
...
and for fun add pixelize and gaussian blur to Filters -> Blur.
2012-05-02 17:46:16 +02:00
Michael Natterer
be853cd239
app: remove "gboolean linear" from all apply_operation APIs
...
thes were all unused and we want to get rid of that anyway.
2012-05-02 17:46:13 +02:00
Michael Natterer
579d894778
app: turn GimpDrawable::apply_region() into ::apply_buffer()
...
and GimpDrawableUndo.src2_tiles into applied_buffer.
2012-05-02 17:46:11 +02:00
Michael Natterer
765c2cfea2
app: replace GimpDraable's type by a Babl format
...
and change gimp_drawable_new() and all gimp_layer_new() variants to
take formats instead of types.
2012-05-02 17:46:06 +02:00
Michael Natterer
e01189ca77
app: remove checks from stuff that now works on indexed layers
2012-05-02 17:46:04 +02:00
Michael Natterer
3ec245a991
app: add opacity and paint_mode to gimp_edit_fill[_full]()
...
and use it instead of bucket-fill in the non-seed-fill case.
2012-05-02 17:46:01 +02:00
Michael Natterer
88388467cc
app: move the layer mask show, edit, apply API from GimpLayerMask to GimpLayer
...
because it would require really evil hacks to honor these properties
in the gegl projection if they were on the mask, and because they
actually belong to the layer.
2012-05-02 17:45:56 +02:00
Michael Natterer
7c3a796dfc
app: added GimpPickable::get_buffer()
...
Add cached buffers to GimpProjection and GimpImageMap, and use
the new API where possible.
2012-05-02 17:45:50 +02:00
Øyvind Kolås
830b49993b
app: set GeglBuffer directly in show image-graph
2012-05-02 17:45:48 +02:00
Michael Natterer
d771249466
app: completely port GimpBuffer to using GeglBuffer not TileManager
2012-05-02 17:45:47 +02:00
Michael Natterer
63bd108afb
app: always use GEGL to invert drawables
...
and remove the now useless gimpdrawable-invert.[ch].
2012-05-02 17:45:46 +02:00
Michael Natterer
0623c7f365
app: remove the pointless core wrappers for the below simplified color stuff
...
Instead, provide gimp_drawable_apply_operation_with_config() and call
that from the PDB wrappers directly.
2012-05-02 17:45:45 +02:00
Richard Bowers
e507f406d7
Bug 589229 - Keyboard shortcuts for zoom do not work as expected
...
Add extra actions for KP_1 ... KP_5 because they are separate keys.
2012-02-23 20:17:35 +01:00
Martin Nordholts
f7aa27a7e8
app: Remove "Far from completely implemented!" in SWM action
...
Unfortunately this is a string change, but we simply can't not let it
say "Far from completely implemented!". Single-window mode works fine
now.
2012-02-23 19:29:56 +01:00
Michael Natterer
fbd746f95a
app: don't rely on gtk_container_remove() to always destroy the child
...
Instead, either destroy the child instead of removing it, or remove
*and* destroy it in cases where the remove() api on the "parent"
doesn't match GTK+'s parent/child relation (like with all our dock
widgets). We can't rely on remove() to implicitly detstroy, because
there might be arbitrary other code holding references, such as
accessibility modules and whatnot. Most likely fixes unclear crashes
in accessibility code and other crashes we blamed GTK+ for.
2012-02-21 00:36:18 +01:00
Michael Natterer
c63f34ff17
Bug 670352 - Tool tip for "Zoom Out" and "Zoom In" are not translated
...
Apply patch from Kiyotaka NISHIBORI that makes the actions use the
right translation context.
2012-02-19 12:15:41 +01:00
Michael Natterer
7f5a43f3e1
app: rename GimpToolInfo::menu_path to ::menu_label
...
"path" is a really ancient pre-GtkAction terminology here.
2012-02-14 10:00:26 +01:00
Michael Natterer
f70bc837fa
app: remove gimpdisplay-utils.[ch], move its only function to gimpdisplay.[ch]
2012-02-11 17:57:27 +01:00
Michael Natterer
2414301799
Review the last few commits and apply some style fanaticism
...
some completely unrelated,
2012-02-07 20:36:55 +01:00
Massimo Valentini
7cf2ee6397
Bug 586451: Alpha Logo scripts incorrectly become...
...
sensitive after "Refresh Scripts"
2012-02-07 17:32:02 +01:00
Massimo Valentini
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +01:00
Michael Natterer
4f61e58bb8
app: set the sensitivity of the tool options' preset menu items
...
based on "editable" and "deletable".
2012-02-06 22:04:34 +01:00
Michael Natterer
0a68527edc
app: move the GimpWindowStrategy interface from display/ to widgets/
2012-01-30 23:33:21 +01:00
Michael Natterer
325bce54a7
app: port dockable showing to using GimpWindowStrategy API
...
so it works right in SWM. Fixed actions/, tools/, and app/ for now.
2012-01-30 23:24:44 +01:00
Michael Natterer
79a66d36d2
app: rename GimpWindowStrategy::create_dockable_dialog()
...
to ::show_dockable_dialog() because that's what it wlays does, no
matter if the dialog has to be created or now.
2012-01-30 22:59:09 +01:00
Martin Nordholts
64d2dc122a
app: Add and use gimp_dialog_factory_find_widget()
2012-01-10 19:47:52 +01:00
Michael Natterer
056e09a6cb
Remove the makefile.msc build system, it is unmaintained since 2008
2011-12-16 15:53:56 +01:00
Michael Natterer
fde82c64b8
Bug 666308 - Can't leave fullscreen-mode when are no opened images
...
Allow to toggle View->Fullscreen of the empty image window. This
should probably be integrated in session management, but better a fix
that makes it somewhat work than leaving users stuck with a fullscreen
empty window.
2011-12-15 22:37:00 +01:00
Alexandre Prokoudine
3227744f5c
Marked "View > Use GEGL" for translation, spotted by Cristian Secară.
...
Apparently we are not commenting this out as discussed before, so it's a tiny break of the strings freeze.
2011-12-05 17:59:07 +04:00
Michael Natterer
9781aa65ea
Bug 658467 - Replace g_format_size_for_display() by g_format_size()
...
Use g_format_size() instead of g_format_size_for_display() because
the latter is deprecated.
2011-11-30 23:37:55 +01:00
Michael Natterer
fb87cd1c5d
app: don't leak the list returned by gimp_get_image_windows()
2011-11-04 01:30:40 +01:00
Mukund Sivaraman
fb4747b832
app (actions): Rewrite code to conditionally declare vars
2011-10-11 10:08:59 +05:30
Mukund Sivaraman
e18430e118
app (actions): Remove dead variables and code
2011-10-10 09:53:24 +05:30
Michael Natterer
b3db7e6c4e
app: rename all tool-preset dialog related things to "tool presets"
...
not just "tool preset". It's also "brushes", "patterns" etc. and not
just "brush" or "pattern".
2011-10-09 21:55:58 +02:00
Mukund Sivaraman
b7c303e5c2
app (fonts-actions): Delete dead variables and code
2011-10-08 18:10:09 +05:30
Michael Natterer
6d1b5c4241
app: pull virtual modifier replacement into gimp_get_mod_string()
...
and remove it from all other places. We only want to have the virtual
modifiers when displaying a modifier string (and in some other cases,
but these are all handled internally by GTK+).
2011-10-06 22:56:05 +02:00
Mukund Sivaraman
c9e7186a35
app: Conditionally assign show_menu
2011-10-06 19:45:32 +05:30
Michael Natterer
ad27b30525
app: get the "add" and "subtract" modifiers from the new portable API
...
instead of hardcoding SHIFT and CONTROL. Also replace virtual modifiers
before showing them as tooltips.
2011-10-05 19:26:54 +02:00
Mukund Sivaraman
f9cebd40a7
app (tool-preset-editor): Delete dead code and variables
2011-10-04 14:37:36 +05:30
Michael Natterer
19b9bfd189
libgimpwidgets: add gtk_scale_new() to gimp3migration.[ch]
...
and use it all over the place. Also change some GtkObject* variables
to GtkAdjustment*.
2011-10-02 14:36:41 +02:00
Michael Natterer
3e336199b9
app: use gtk_box_new()
2011-09-30 11:29:11 +02:00
Michael Natterer
3066a8228a
app: use <primary> instead of <control> in accelerator strings
...
but generically change it back to <control> for GTK+ < 2.24.7.
This enables using the Command modifier on OSX,
2011-09-16 22:59:58 +02:00
Bruce Cowan
841c8a7ebe
String review: fix some spelling and formatting issues
2011-08-28 20:07:55 +02:00
Michael Natterer
743f6a5035
app: fix typo: s/Dynamicss/Dynamics/
2011-08-20 08:43:29 +02:00
Martin Nordholts
3ce4c49314
app: Handle special case "Toolbox" in GimpSingleWindowStrategy
...
The special case isn't pretty, but the current design can't handle it
nicely. This is not the first special case for the toolbox.
2011-07-20 16:36:36 +02:00
Martin Nordholts
1c0115ec95
Fix some warnings
2011-07-05 22:13:18 +02:00
Martin Nordholts
07556242b0
app: Make positioning of new dockables depend on window mode
...
Add GimpWindowingStrategy with create_dockable_dialog() and use it in
dialogs_create_dockable_cmd_callback(). There are two implementations:
GimpSingleWindowStrategy and GimpMultiWindowStrategy. Depending on the
window mode, we want new dockables to appear in different places when
created. In single-window mode, they should appear inside the single
image window. In multi-window mode, a new dock window is created.
2011-07-03 21:20:36 +02:00
Martin Nordholts
91b7043aef
app: Add gimp_dockbook_add_from_dialog_factory()
2011-07-03 21:20:20 +02:00
Martin Nordholts
c73bdc0971
app: Make 'Export to' fall back to 'Export...'
...
Make 'Export to' always sensitive (as long as there is an image at
all). And make it fall back to 'Export...' if no export target has
been set yet. Note that it is not necessarily visible at all times,
sometimes 'Overwrite' shadows it. It shall still be invokable though.
Reference:
[Gimp-developer] Isn't this behaviour unintuative?
http://lists.xcf.berkeley.edu/lists/gimp-developer/2011-June/026885.html
2011-06-30 23:45:25 +02:00
Martin Nordholts
9866d70c68
app: image && drawable -> drawable
...
If there is a drawable, there is also an image, so we don't need to
check for that. Now gcc can't complain that we don't have parenthesis
around "image && drawable" for some future statements.
2011-06-30 23:45:25 +02:00
Martin Nordholts
9ae0dc034b
Make 'w' a mnemonic for File -> Overwrite ...
...
See
[Gimp-developer] Isn't this behaviour unintuative?
http://lists.xcf.berkeley.edu/lists/gimp-developer/2011-June/026885.html
2011-06-28 08:54:15 +02:00
Martin Nordholts
00d6f8e655
Move gimp_session_info_clear_info() into gimp_session_info_restore()
...
All callers of gimp_session_info_restore() call
gimp_session_info_clear_info() afterwards, so move that into the
function instead.
2011-06-14 23:34:12 +02:00
Michael Natterer
8e5f18fb9e
app: make Alt+Tab and Alt+Shift+Tab cycle through all open displays
...
in both multi- and single-window mode. This is useful especially in
multi-window mode because in single-window we can already cycle
through all tabs with Ctrl+PageUp/Down.
2011-05-30 23:46:50 +02:00
Michael Natterer
6bf7f7e429
app: ref the session info in gimp_dialog_factory_add_session_info()
...
and unref it in the callers after adding it. That's the proper way of
doing it and fixes another warning when restoring a dock fails.
2011-05-12 21:23:07 +02:00
Michael Natterer
3b71b71c4c
app: always add ALT+number accelerators to the image window menu items
...
There is no reason why we should have them only in single-window-mode.
The accels are numbered in the order the displays are opened, which is
also the order they appear in the menu. The only thing that needs to
be taken care of is that switching to SWM swallows the image windows
into the single window in the right order. Fixes bug #647524 .
2011-05-08 00:00:55 +02:00
Mukund Sivaraman
24ac01bfa9
app: Fix corruption while in use of imported uri
2011-05-07 05:52:31 +05:30
Michael Natterer
c35ff719a7
app/libgimp*: remove stuff found by -Wunused-but-set-variable
2011-05-01 23:23:19 +02:00
Michael Natterer
10b4155b95
app: never make Edit -> Buffers -> Paste Named insensitive
...
because it simply opens the buffers dockable, which is always
possible.
2011-04-28 01:56:37 +02:00
Martin Nordholts
27ac2a3c38
app: Make GimpEditor instance members private
2011-04-10 12:12:01 +02:00
Mikael Magnusson
61476aa20a
Remove two stray semicolons making if bodies always run
2011-04-08 13:20:37 +02:00
Martin Nordholts
3b243bdcfe
app: Add gimp_display_get_action_name() utility function
2011-04-07 07:12:32 +02:00
Michael Natterer
61025c6023
Bug 624824 - use gtk-image-menu-item-set-always-show-image on some menu items
...
Always show icons for:
- Fill FG/BG/Pattern
- Rotate
- Recently opened
- Open images
2011-04-02 15:38:55 +02:00
Michael Natterer
927ce61ce1
app: use a data delete dialog in the tool options' preset delete menu
2011-03-24 21:54:40 +01:00
Michael Natterer
920d1a42e9
app: move the GimpData delete confirm dialog to its own files
2011-03-24 21:46:40 +01:00
Michael Natterer
91195e8593
app: remove the old tool presets system
...
Instead, keep around a GimpFilteredContainer in GimpToolInfo that
maintains a per-tool list of presets from the global preset factory.
Turn the tool options dialog's preset Save/Restore/Edit/Delete menus
and buttons into shortcuts for managing the active tool's presets.
2011-03-23 09:27:29 +01:00
Michael Natterer
8184296b3c
app: add gimp_container_get_neighbor_of() to GimpContainer
...
instead of gimp_container_get_neighbor_of_active() in gimp-utils.c.
Move the additional GimpContext logic of the old function into the
callers, but use the new function in more places.
2011-03-13 02:14:44 +01:00
Michael Natterer
c550eae5e1
app: move all GimpImagefile members to private
2011-03-02 12:26:04 +01:00
Michael Natterer
f0f94ba6a1
app: move all GimpTemplateEditor members to private
2011-03-01 11:50:16 +01:00
Michael Natterer
02477f5563
Bug 625167 - Problem exporting floating selections from within layer groups
...
Add "gboolean merge_active_group" to gimp_image_merge_visible_layers()
and pass FALSE from the PDB wrapper so plug-in invoked layer merging
always acts on the toplevel container as it did in 2.6. Do the same
when opening an image as layer.
Also, added a "Merge within active group only" toggle to the merge
layers dialog and pass it down to the core, but default to TRUE here
so.
2011-02-14 09:45:59 +01:00
Michael Natterer
4807a1848a
app: don't make flatten and merge insensitive if there is a floating selection
2011-02-14 01:45:16 +01:00
Michael Natterer
a116681982
app: move all GimpGroupLayer members to a private struct
2011-02-03 22:30:22 +01:00
Martin Nordholts
6ea36f3383
app: Use gimp_image_set_uri()
...
I forgot to do this...
2011-02-02 22:28:47 +01:00
Martin Nordholts
366cddc856
app: gimp_image_get/set_imported/exported/save_a_copy_uri()
...
Add more proper core API for GimpImage URI management.
2011-02-02 22:28:46 +01:00
Martin Nordholts
8d61a61c0e
app: Remove GIMP_FILE_EXPORT_TO_URI_KEY
...
Remove GIMP_FILE_EXPORT_TO_URI_KEY which is always identical to
GIMP_FILE_EXPORT_URI_KEY.
2011-02-02 22:28:46 +01:00
Martin Nordholts
480d6e0cf2
app: Add and use gimp_image_get_uri()
2011-01-26 08:19:39 +01:00
Martin Nordholts
ac773489e4
app: gimp_image_get_uri() -> gimp_image_get_uri_or_untitled()
2011-01-26 07:55:14 +01:00
Michael Natterer
0f0da4c712
app: various gradient editor changes and fixes
...
- return TRUE from event handlers if we handled the event
- remove the "instant update" toggle and feature
- move the color area left of the labels now that the toggle is gone
2011-01-07 15:09:17 +01:00
Michael Natterer
c4ec18790c
Bug 598253 - Bug when copying path from a document to another document
...
Don't scale the SVG to image size when pasting or importing. SVGs have
a size just as pixel images, and there is no reason not to use that
size as-is.
2010-11-27 22:28:34 +01:00
Alexia Death
8663b22c2a
app: Fixes to brush scale->size replacement
2010-10-30 21:38:54 +03:00
Alexia Death
5d42803d7f
app: Expose brush size in pixels, not as ratio
2010-10-30 19:51:07 +03:00
Michael Natterer
79f0f5639b
Don't use gtk_container_add() for adding to GtkBoxes
...
because the packing options are different for GtkH/VBox and GtkBox
itself which is now instantiable. Instead, always use
gtk_box_pack_start() and specify expanding explicitely.
2010-10-30 14:57:56 +02:00
Michael Natterer
f46122b862
app: add lots of accessors to GimpPalette
...
and use them all over the place instead of directly accessing the struct.
2010-10-27 14:36:44 +02:00
Michael Natterer
56c50741d3
app: honor the "gtk-show-input-method-menu" setting
...
and hide the input method menu when it's FALSE.
2010-10-14 00:13:35 +02:00
Martin Nordholts
cc7755f876
Port stuff to gimp_item_is_text_layer()
...
Port stuff to gimp_item_is_text_layer() instead of
gimp_drawable_is_text_layer(). Nevermind the previous commit, it
should never have been pushed...
2010-10-05 07:39:00 +02:00
Martin Nordholts
49a0be731e
app: s/gimp_drawable_is_text_layer/gimp_item_is_text_layer/g
2010-10-05 07:12:30 +02:00
Michael Natterer
ff6d0f36b3
app: remove obsolete include
2010-10-03 02:25:53 +02:00