Michael Natterer
7cbb04c0f9
libgimpwidgets: don't leak the empty_iter in GimpIntStore
2014-10-06 20:31:51 +02:00
Jehan
8c1cd7caac
Makefile: fix VPATH builds for win32.
2014-09-14 18:28:26 +02:00
Michael Natterer
b7863269f0
libgimpcolor: change gimp_lcms_profile_open_from_file() from filename to GFile
...
and change most of the lcms plug-in to using GFile too.
2014-07-04 23:57:27 +02:00
Michael Natterer
b78d9c9f35
libgimpwidgets: forgot two gimp_spin_button_new()
2014-06-22 00:00:46 +02:00
Michael Natterer
eaea58f5e3
libgimpwidgets: deprecate gimp_spin_button_new()
...
it should have never been added in the first place. Port all users
to using gtk_spin_button_new() directly.
2014-06-21 22:35:39 +02:00
Michael Natterer
b9265ebfb9
Bug 731765 - "Value Propagate" dialog's "Propagating rate" spinbuttons...
...
...are much too quick
In gimp_scale_entry_new(), set the spinbutton's climb_rate to the same
value as step_increment instead of hardcoding 1.0. This should make
many spinbuttons behave better.
2014-06-21 16:52:18 +02:00
Michael Natterer
77a515dd0f
app, libgimpwidgets: don't set unchanged object properties again
...
gimp_prop_adjustment_callback(): compare the property's current value
before setting it.
2014-06-19 02:01:10 +02:00
Michael Natterer
306e81b11d
icons, libgimpwidgets: get rid of compiled-in icons
...
Register the stock icons with icon-name sources instead of inline
pixbuf sources so they simply use the icon theme icons insatead of
duplicating them.
2014-05-20 02:15:24 +02:00
Michael Natterer
bbf01ebabf
libgimpwidgets, app: add gdk_screen_get_monitor_workarea()
...
to the gimp3migration hack and use it where appropriate, so in the
gtk3-port branch windows will not overlap with docks, panels etc.
2014-05-19 14:37:32 +02:00
Michael Natterer
ae331bc7ac
libgimpwidgets: add the EEK Wilber as builtin icon
...
so gimp_widget_load_icon() always returns a pixbuf and GIMP doesn't
crash.
2014-05-15 15:40:47 +02:00
Michael Natterer
8be52f6aa7
app, libgimp*: pass translated blurbs to GIMP_CONFIG_INSTALL_PROP_FOO()
...
instead of passing N_()-strings; and remove gettext() calls on these
strings when using them. Reduces complexitx, and fixes double- and
untranslated strings. Also enables to treat properties of GIMP and
GEGL objects the same way, which was totally broken before.
2014-05-14 23:34:01 +02:00
Michael Natterer
65a65947d9
app, libgimp: replace GTK_STOCK_FOO by icon names
...
unless it's a stock ID used for an action button, will address that
later.
2014-05-11 22:49:22 +02:00
Michael Natterer
4b629e984b
libgimpwidgets: add GimpColorDisplayClass::icon_name
...
and deprecate its stock_id.
2014-05-10 11:53:07 +02:00
Michael Natterer
1ec64abb8b
libgimpwidgets: add GimpColorSelectorClass::icon_name
...
and deprecate its stock_id.
2014-05-10 08:34:42 +02:00
Michael Natterer
9331ef2456
libgimpwidgets: change GimpController's stock_id to icon_name
...
This API change is OK since the entire controller API is marked as
unstable and needs a special #define to be visible at all.
2014-05-09 09:19:06 +02:00
Michael Natterer
63c5508d4d
libgimpwidgets: use the renderer's icon-name in GimpIntComboBox
2014-05-09 02:04:25 +02:00
Michael Natterer
3e4485fdcf
libgimpwidgets: forgot a few image_new_from_stock() -> from_icon_name()
2014-05-09 00:56:25 +02:00
Michael Natterer
ed7cdba5b6
libgimpwidgets: add gimp_prop_icon_image_new()
...
and deprecate gimp_prop_stock_image_new().
2014-05-09 00:56:24 +02:00
Michael Natterer
3372ca82da
libgimpwidgets: properly implement GimpCellRendererToggle's icon-name property
...
and change the parameter of new() from stock_id to icon_name.
2014-05-08 12:38:50 +02:00
Michael Natterer
16e9188b1f
icons: rename gimp-eye.png to gimp-visible.png
2014-05-08 12:37:42 +02:00
Michael Natterer
2980f18973
libgimpwidgets: use gtk_icon_theme_load_icon() in GimpPageSelector
2014-05-08 09:22:46 +02:00
Michael Henning
ab36f26e63
libgimpwidgets: Fix error in docs for gimp_enum_combo_box_set_icon_prefix
...
This function was just added in 79bd9c60de
2014-05-07 19:15:52 -04:00
Michael Natterer
ae4a41d7a5
themes, icons: move icons from themes/Default/images/ to the toplevel icons/
...
and install them in datadir/icons.
2014-05-07 21:57:21 +02:00
Michael Natterer
6615891990
libgimpwidgets: fix warnings in last commit in GimpHintBox
2014-05-07 21:56:53 +02:00
Michael Natterer
79bd9c60de
libgimpwidgets: mostly port from stock IDs to icon names
...
Add some new API and deprecate old one.
2014-05-07 21:32:09 +02:00
Michael Natterer
b7e50079a6
libgimpwidgets: add a hackich "icon-name" property to GimpCellRendererToggle
...
half-implemented, just for the purpose of having an "icon-name", it
uses the icon name as stock ID, which works as long as we keep
both icon systems around.
2014-05-07 15:28:51 +02:00
Michael Natterer
1814641a50
themes, libgimpwidgets: install an index.theme and prepend our icon theme...
...
to the search path. The index.theme is a copy of the upstream hicolor
index.theme with our custom sizes added, and it has to be first in the
path to be used at all. This. Is. Broken.
2014-05-07 15:02:33 +02:00
Michael Natterer
9ed5b3f45e
app: port GimpAction and friends to icon names
2014-05-06 23:47:38 +02:00
Michael Natterer
bfa6edf519
libgimpwidgets: add our installed icon theme to the search path
2014-05-06 22:45:19 +02:00
Michael Natterer
cffc8234fa
themes, libgimpwidgets: prepare the icons to be named icons from an icon theme
...
Rename them and move them into folders, e.g.:
stock-foo-16.png -> 16/gimp-foo.png
This change only moves internal stuff around,
it's not visible on any API.
2014-05-06 19:13:04 +02:00
Rickard
5ec413a5e8
Bug 729326 - Errors found using a static code analysis program cppcheck
...
Fixed some memory and file leaks. And removed some code and variables
that are not used.
2014-05-05 10:34:08 +02:00
A Kelday
c808789e1d
Bug 728911 - Fixes to libgimpwidgets for c++ plugins using gimpui
...
Add missing G_END_DECLS to libgimpwidgets headers.
Avoid use of c++ "private" keyword.
2014-04-25 00:33:29 +02:00
Michael Natterer
c2ab3f6d50
libgimpwidgets: add a string to GIMP_STOCK_TOOL_FOREGROUND_SELECT
2014-04-18 22:14:41 +02:00
Michael Natterer
614c61a3dd
Don't #include <glib.h> before <lcms.h>
...
The include claimed to be because of "inline" in the lcms header, but
that was probably lcms1, since there is no trace of inline in the
lcms2 header.
2014-04-10 20:48:22 +02:00
Michael Natterer
661317f74c
libgimpwidgets: make using GimpColorProfileComboBox easier
...
If the passed dialog is a GimpColorProfileChooserDialog, handle its
"response" signal automatically and also destroy it when the combo box
is destroyed (before we leaked all dialogs). Remove the same callback
from all places using GimpColorProfileComboBox.
2014-04-04 17:09:54 +02:00
Michael Natterer
3f826d02fa
libgimpwidgets: make GimpColorProfileComboBox use lcms
...
and improve gimp_color_profile_combo_box_set_active() to get the
profile's label from the ICC file if no label was provided. Simplifies
all its callers and removes code duplication.
2014-04-02 13:03:52 +02:00
Michael Natterer
d7037650df
libgimpcolor: add gimp_lcms_profile_get_label()
...
which returns a string meant to label the profile in the GUI, it's
either the profile's description, its model, or "(unnamed profile)" as
a fallback. Use the function instead of duplicating that logic
inconsistently and imcompletely all over the place.
2014-03-30 03:12:42 +02:00
Michael Natterer
32e47cf70d
libgimpcolor: add gimp_lcms_profile_is_equal()
...
and remove all of our own MD5 digest code and API. is_equal() uses
lcms' own MD5 API which I missed before. Thanks Elle for pointing that
out :)
2014-03-29 10:40:47 +01:00
Michael Natterer
f6ee562884
libgimpwidgets: add padding to GimpColorProfileChooserDialogClass
2014-03-23 23:59:40 +01:00
Michael Natterer
dc8a3e8de5
libgimpwidgets: remove gimp_color_profile_chooser_dialog_get_desc()
...
and port its only user (the prefs dialog) to the code all other users
of GimpColorProfileChooserDialog use.
2014-03-23 23:50:54 +01:00
Daniel Sabo
5cee9408be
app,gimpwidgets: Add some missing libs so the tests build
2014-03-20 03:15:50 -07:00
Michael Natterer
76f47708fa
libgimpwidgets: #include gimpimageprofileview.h from gimpwidgets.h
2014-03-16 18:36:12 +01:00
Michael Natterer
c6ac6913af
libgimpwidgets: use a GimpColorProfileView in GimpColorProfileChooserDialog
2014-03-16 18:36:12 +01:00
Michael Natterer
dc6b8ec8f6
libgimpwidgets: add new widget GimpColorProfileView
...
which is a totally trivial GtkTextView subclass and displays
color profile information.
2014-03-16 18:36:11 +01:00
Michael Natterer
abb3f27cdb
libgimpwidgets: use gimp_lcms_profile_open_from_file() in the profile chooser
2014-03-16 15:57:14 +01:00
Daniel Sabo
b54b59c9e8
Use EXTRA_foo_DEPENDENCIES for adding .def files
...
The foo_DEPENDENCIES rule replaces the default dependencies, where
EXTRA_foo_DEPENDENCIES just appends to it. This was causing libgimp
and libgimpui to build out of order.
2014-03-15 14:23:38 -07:00
Michael Natterer
3ac04f9fe1
libgimpwidgets: more spacing around the profile chooser's preview textview
2014-03-15 00:09:35 +01:00
Michael Natterer
13ee151a1e
libgimp*: use LIBADD and DEPENDENCIES consistently in all Makefiles
2014-03-14 22:39:51 +01:00
Michael Natterer
9c7cd2508f
app, libgimpwidgets: move GimpProfileChooserDialog to libgimpwidgets
...
and call it GimpColorProfileChooserDialog. Make libgimpwidgets
depend on lcms and make it query the profile directly.
2014-03-14 22:03:08 +01:00
João S. O. Bueno
72ac53705f
Adds "fill" arrange modes to the Align Tool
...
The Align Tool had to be used in a very hacky way if one
intended to evenly distribute items across an image,
or other reference object (it would actually require one to
calculate the item spacing out of GIMP). This adds vertical
and horizontal fill modes: the reference object is divided
in N equal segments, where N is the number of items,
and each item is placed in the center of one of
these segments. The existing "offset" parameter
is used as an extra margin for the distribution,
and can be set to negative values, so that the items can
even get moved outside the boundaries of the reference object.
2014-03-13 03:38:53 -03:00