Michael Natterer
e1e32a03a9
Bug 676978 - Improved visibility icons for Layers dialog
...
make the strike out line a bit thinner and shorter. We shouldn't
change the line's color because using proper theme colors makes sure
the line is always perfectly visible.
2012-11-09 11:37:01 +01:00
Michael Natterer
0b56aa0d13
Bug 677776 - filter popup windows get hidden behind main image window
...
On OSX, call [NSApp activateIgnoringOtherApps] when a plug-in dialog
is shown, so the plug-in process becomes the active app, and the
dialog gets focussed.
In order to avoid doing this in GimpDialog (which is also used in
the core), do it in gimp_ui_init() which all interactive plug-ins
call, and when gimp_temp_proc_run() is called interactively, to
catch repeated activation of an already running plug-in.
Also, set GimpDialog's initial position to GTK_WIN_POS_CENTER,
or they will pop up in the top left corner.
Inspired by patches from Simone Karin Lehmann and Daniel Sabo.
2012-11-07 23:44:35 +01:00
Mukund Sivaraman
bc079e6cab
build: Add $(AM_V_GEN) to more places in Makefile.am files
2012-10-10 13:13:56 +05:30
Mukund Sivaraman
2adb81ee0d
libgimpwidgets: Use AM_V_GEN in Makefile.am for pretty output
2012-10-10 03:40:32 +05:30
Michael Natterer
85ea7771d5
libgimpwidgets: make GimpIntStore behave a bit nicer (don't warn)
...
when used in "unexpected" ways. Where "unexpected" is as simple as
removing an item from the store.
2012-10-08 21:32:59 +02:00
Michael Natterer
2a30a2bb74
Bug 684698 - Preferences-Folders: only 15 folder items accepted
...
Raise "max_paths" from 16 to 256 in all calls to gimp_path_parse().
2012-09-26 23:29:51 +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
c6ba0ffbdf
app/cursors/libgimpwidgets: bye bye stone age B&W bitmap cursors
2012-08-26 22:53:04 +02:00
Mikael Magnusson
99f9d4d219
transformtool: add old "new" unified transformation tool
...
This is the proof of concept code I wrote before gsoc, with very naive
behaviour and simple interface.
2012-08-20 15:22:21 +02:00
Michael Natterer
012457e81d
libgimpwidgets: port more deprecations to GIMP_DEPRECATED
2012-05-06 00:30:54 +02:00
Michael Natterer
486e76bdab
libgimp*: use GIMP_API_VERSION in Makefile.am instead of hardcoding 2.0
2012-05-04 15:38:45 +02:00
Michael Natterer
3ad73b3658
libgimpcolor: add GdkPixbuf <-> GeglBuffer utility functions
...
and update tons of includes in libgimp and app.
2012-05-03 03:37:20 +02:00
Michael Natterer
3e119c5af7
libgimpcolor: add gimp_rgb[a]_set,get_pixel()
...
which converts from/to any pixel format using Babl. Added tons of
includes and CFLAGS now that libgimpcolor publically uses Babl.
2012-05-02 17:50:43 +02: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
39368a410d
plugged memory leaks
2012-02-07 17:32:02 +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
94c322ff70
libgimpwidgets: set GimpColorSelector's config to NULL in dispose()
...
so the subclasses have a chance to release their stuff.
2011-12-11 02:43:14 +01:00
Michael Natterer
12a8eec444
libgimpwidgets: keep GimpColorNotebook->selectors in a consistent state
...
by connecting to the notebook's "remove" signal and updating the list
in the callback, so the list is consistent during the widget's
destruction.
2011-12-11 02:41:01 +01:00
Michael Natterer
180cb656ae
Remove more gdk_pointer_grab() where they are not strictly needed
...
and replace them by gtk_grab_add()/remove().
2011-12-10 21:51:05 +01:00
Michael Natterer
ebbad40885
Doc fixes in both source comments and gtk-doc files
2011-11-25 21:39:55 +01:00
Mukund Sivaraman
324ad1e426
libgimpwidgets: Drop redundant assignment
2011-10-12 17:21:23 +05:30
Michael Natterer
6bee9df474
libgimpwidgets: don't hardcode GDK_MOD2_MASK for extended clicked
...
Instead, check for all sorts of modifiers from the new
gtk_widget_get_modifier_mask(), which are always right
on the current platform.
2011-10-09 23:59:40 +02:00
Michael Natterer
9fff65f1b2
libgimpwidgets: emit GimpButton::extended-clicked() also on MOD2-click
...
it doesn't hurt on Win/X11 and is needed on OSX for Command-click.
2011-10-06 22:56:04 +02:00
Mukund Sivaraman
643dceec02
libgimpwidgets: Add missing symbols to gimpwidgets.def
2011-10-05 09:25:21 +05:30
Michael Natterer
6e6a70b7f8
libgimpwidgets: add some modifier abstraction API to gimp3migration.[ch]
...
Work in progress and unused, will help to make things proper on OSX.
2011-10-04 23:09:09 +02:00
Mukund Sivaraman
0afe030552
libgimpwidgets: Remove dead assignments
2011-10-04 14:33:42 +05:30
Martin Nordholts
60d2536bd1
libgimpwidgets: Sort gimpwidgets.def
...
For make distcheck.
2011-10-03 07:07:10 +02:00
Michael Natterer
f1d4dde36a
libgimpwidgets: add gdk_event_triggers_context_menu() to gimp3migration.[ch]
...
and remove gimp_button_event_triggers_context_menu() again. Update
all callers to use the new function.
2011-10-02 16:23:59 +02:00
Michael Natterer
f007ce352d
libgimpwidgets: add gtk_separator_new() to gimp3migration.[ch]
...
and use it all over the place.
2011-10-02 14:36:42 +02:00
Michael Natterer
2c175b068d
libgimpwidgets: add gtk_paned_new() to gimp3migration.[ch]
...
and use it all over the place.
2011-10-02 14:36:42 +02:00
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
16817c666f
libgimpwidgets: add gtk_scrollbar_new() to gimp3migration.[ch]
...
and use it all over the place.
2011-10-02 14:36:41 +02:00
Michael Natterer
f342b50483
libgimpwidgets: add gtk_button_box_new() to gimp3migration.[ch]
...
and use it all over the place.
2011-09-30 15:44:33 +02:00
Michael Natterer
83eb6fdc9e
libgimpwidgets: use gtk_box_new()
2011-09-30 10:50:50 +02:00
Michael Natterer
030413b9f6
libgimpwidgets: add gimp3migration.[ch] to help the gtk3-port branch
...
This is such a hack, but entirely safe when linking against GTK+ 2.x.
Please ignore the uglyness.
2011-09-30 10:45:00 +02:00
Michael Natterer
bc4fa9a8c4
libgimpwidgets: support GtkCellRendererToggle's "inconsistent" state
...
and strike out GimpCellRendererToggle's icon in the inconsistent case.
2011-09-23 23:42:09 +02:00
Michael Natterer
989ac15a97
Bug 659348 - Provide a translation comment for "Empty"
2011-09-23 22:45:32 +02:00
Michael Natterer
d92cd2f6c8
Add gimp_button_event_triggers_context_menu() and use it
...
instead of checking for event->button == 3, so context menus
work correctly on the Mac. Didn't change the image menu yet
because thet requires some more refactoring.
2011-09-19 00:47:23 +02:00
Michael Natterer
9c6338900e
libgimp*: don't derive from GtkHBox and GtkVBox in libgimp either
...
I know this is not 100% compatible, but is in fact absolutely safe to
change unless somebody is using the headers in ways that are totally
wrong.
2011-07-27 19:53:34 +02:00
Massimo Valentini
c39ca0f74f
Initialize two GtkTreeIter
...
to avoid harmless, but annoying, valgrind warnings on x86_64
2011-06-17 19:02:08 +02:00
Michael Natterer
05cd8670c3
libgimpwidgets: deprecate gimp_toggle_button_sensitive_update()
...
Use g_object_bind_property() instead.
2011-05-11 22:13:33 +02:00
Michael Natterer
c35ff719a7
app/libgimp*: remove stuff found by -Wunused-but-set-variable
2011-05-01 23:23:19 +02:00
Michael Natterer
2b1807054f
libgimp*: update .def files after cairo functions moved between libs
2011-05-01 11:24:26 +02:00
Michael Natterer
1de19c8b57
libgimpwidgets: clean up class struct and add gtk-doc section comment
2011-04-28 17:57:40 +02:00
Michael Natterer
cc47b2a600
libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
...
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Michael Natterer
268930f489
libgimpwidgets: gimp_pixmap_button_new, gimp_unit_menu_update -> gimpoldwidgets
...
where they belog. gimp_unit_menu_update() is newly deprecated.
2011-04-28 14:53:49 +02:00
Michael Natterer
844df2b4df
libgimp*: add guards that #error out if individual files are included
...
This only helps to maintain proper includes in app/ and shouldn't
affect plug-ins at all, because these are supposed to only include the
main headers from libgimp/ since the beginning of time.
The gimpfootypes.h files do not have these guards, so we can continue
to maintain app/'s include policy that is very likely to error out if
wrong things are included.
2011-04-28 14:30:41 +02:00
Mukund Sivaraman
7c879dfa99
libgimpwidgets: Add back gtk-doc comment for @stack
2011-04-27 06:10:14 +05:30
Mukund Sivaraman
4f96dd311e
libgimpwidgets: Remove incorrect gtk-doc
2011-04-25 19:35:35 +05:30
Mukund Sivaraman
d04efe3a03
libappwidgets: Initialize arrays before use
2011-04-25 19:34:02 +05:30
Mukund Sivaraman
27db4d9fc0
libgimpwidgets: Fix typo in array index
2011-04-25 19:32:08 +05:30
Mukund Sivaraman
a31d8dab79
Revert "libgimpwidgets: Don't use light[3] and dark[3] as they're both uninitialized"
...
This reverts commit a0ff981041
.
2011-04-25 19:29:55 +05:30
Michael Natterer
d272159194
libgimpwidgets: use gdk_cairo_set_source_window() instead of source_pixmap()
2011-04-22 00:44:32 +02:00
Mukund Sivaraman
a0ff981041
libgimpwidgets: Don't use light[3] and dark[3] as they're both uninitialized
...
This also removes the bogus double assignment to l[2].
2011-04-21 14:22:13 +05:30
Michael Natterer
59ea89234f
app: GimpRuler: clip position marker drawing to the ruler's allocation
...
so we don't overdraw when drawing out of expose.
2011-04-20 00:31:59 +02:00
Michael Natterer
7e6c026790
Globally use GDK_KEY_foo, remove the compat defines from widgets-enums.h
2011-04-11 23:43:03 +02:00
Michael Natterer
3440f8c7e8
libgimpwidgets: no need any longer to set GtkDialog:has-separator to FALSE
2011-04-11 23:19:27 +02:00
Michael Natterer
c215677876
libgimpwidgets: turn GimpRuler into a no-window widget
...
and use an input-only window for events.
2011-04-10 02:00:40 +02:00
Mikael Magnusson
5cea6b067f
Alias the icon for mouse controller to gimp-cursor for now
2011-04-06 23:49:34 +02:00
Mikael Magnusson
ac403ce11d
Add a controller for binding mouse buttons
2011-04-06 23:35:14 +02:00
Mikael Magnusson
3eb096b239
Revert "libgimpwidgets: avoid using a function only available since GTK+ 2.22"
...
We depend on GTK+ 2.24 now.
This reverts commit 0e55c5e4d8
.
2011-04-06 20:19:09 +02:00
Michael Natterer
24ee3370b8
Depend on GTK+ >= 2.24.3, cairo >= 1.20.1, gdk-pixbuf >= 2.22.1
...
and completely separate configure and sanity checks for gdk-pixbuf
from GTK+, because it's now distributed as a separate package. Remove
all sorts of conditional compiling based on GDK_CHECK_VERSION() and
CAIRO_VERSION.
2011-04-06 19:58:24 +02:00
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
c6e35435ad
libgimpwidgets: don't treat -1 as value of enum PangoAttrType
2011-03-17 15:28:41 +01:00
Michael Natterer
b725eaa682
libgimpwidgets: don't mix GimpWidgetHelpType and GtkWidgetHelpType
...
Because latest GCC warns about it.
2011-03-17 14:41:34 +01:00
Michael Natterer
fcfb7cf160
Use the new g_[s]list_free_full() instead of foreach() and free()
2011-03-07 17:11:28 +01:00
Michael Natterer
ca1cc32e52
libgimpwidgets: use GtkComboBoxText when building against GTK+ >= 2.24
2011-03-06 11:51:24 +01:00
Michael Natterer
5dcb50ed7d
libgimpwidgets: add properties GimpEnumLabel:enum-type and :enum-value
2011-02-15 21:26:11 +01:00
Michael Natterer
31b4d3801e
libgimpwidgets: add properties GimpColorButton:area-width and :area-height
2011-02-15 20:55:32 +01:00
Michael Natterer
e44d3b46ef
libgimpwidgets: make GimpColorScale:channel a property
2011-02-15 18:52:00 +01:00
Michael Natterer
6c7e24c9b3
libgimpwidgets: don't draw a focus line to indicate "selected"
...
I have no idea what I was thinking when adding this.
2011-02-09 09:25:34 +01:00
Michael Natterer
4fd56d9640
libgimpwidgets: don't pass around uninitialized memory in GimpRuler
2011-02-06 11:20:07 +01:00
Martin Nordholts
0cbb8ac0bf
libgimpwidgets: Update gimpwidgets.def
2011-01-26 06:33:10 +01:00
Martin Nordholts
835d92e4ad
libgimpwidgets: Fix gtk-doc warning
2011-01-26 06:26:36 +01:00
Omari Stephens
5cae0bf65c
Bug 630748 - display filters do not work
...
Create and use Cairo-compatible API for display filters. Also
includes logic changes to the display filters to deal with cairo's
ARGB32 pre-multiplied buffer format.
2011-01-25 20:24:42 +01:00
Omari Stephens
14276add92
Add missing parens around macro arguments
2011-01-24 22:15:06 +01:00
Michael Natterer
3ef31e4cc8
libgimpwidgets: use new GdkWindow API only when available
2011-01-23 00:30:58 +01:00
Michael Natterer
d155be622d
libgimpwidgets: fix ruler motion event tracking on offscreen overlays
...
Add a list of "track widgets" to GimpRuler and connect to their
motion-notify-event. Correctly translate the motion event's x/y to the
ruler's coordinate system when updating the marker.
2011-01-20 20:26:35 +01:00
Michael Natterer
8d2d16ac25
libgimp*: implement GObject::constructed() instead of ::constructor()
2011-01-12 22:03:33 +01:00
Michael Natterer
413dc0331d
libgimpwidgets: don't call gtk_dialog_set_has_separator()
...
It's deprecated in GTK+ 2.22. Instead use g_object_set() and add a
comment as reminder to remove that too later.
2011-01-08 21:58:21 +01:00
Michael Natterer
73b5e1d8a6
libgimpwidgets: remove commented-out code
2011-01-07 19:38:34 +01:00
Michael Natterer
60ebedb319
libgimpwidgets: no need to set a GtkRange's update-policy to CONTINUOUS
...
because it's the default.
2011-01-07 15:06:56 +01:00
Mikael Magnusson
0e55c5e4d8
libgimpwidgets: avoid using a function only available since GTK+ 2.22
2010-12-18 00:31:56 +01:00
Mikael Magnusson
780579554a
libgimpwidgets: undef GDK_DISABLE_DEPRECATED in gimppixmap.c
2010-12-17 22:59:50 +01:00
Mikael Magnusson
2471f37660
libgimpwidgets: port the ruler from deprecated gdk to cairo
...
Backported from the gtk3-port branch.
2010-12-17 22:59:49 +01:00
Mikael Magnusson
644a272f19
libgimpwidgets: port gimppreviewarea from deprecated gdk to cairo
...
Backported from the gtk3-port branch.
2010-12-17 22:59:46 +01:00
Michael Natterer
4a4994f4db
libgimpwidgets: bring back unit format strings in GimpSizeEntry
...
Use the user-provided format string as long-format and try to create a
short-format by replacing "%s" and "%p" by "%a" for the popup. Works
nicely for all cases I've seen so far.
2010-11-05 16:30:23 +01:00
Michael Natterer
73a6ddf7b5
libgimpwidgets: use the short and long format strings for the unit combo
...
where the short one gets used for the combo itself, and the long one
for the popup.
2010-11-05 16:28:54 +01:00
Michael Natterer
e821cd4881
libgimpwidgets: add "short-format" and "long-format" properties
...
which have the are format strings for gimp_unit_format_string(). The
formatted strings are kept in the respective new model columns.
2010-11-05 16:26:58 +01:00
Alexia Death
dfd5470a2e
Merge remote branch 'origin/master' into soc-2010-cage-2
2010-11-04 20:00:36 +02:00
Alexia Death
27c77e6a5e
Merge branch 'master' into soc-2010-cage-2
2010-11-04 00:41:45 +02:00
Michael Natterer
7796760908
libgimpwidgets: style cleanup
2010-10-31 22:15:52 +01:00
Michael Natterer
b76df39f06
libgimpwidgets: use gimp_unit_format_string() in GimpUnitMenu
2010-10-31 22:11:32 +01:00
Michael Natterer
dbf1d49efe
libgimpwidgets: let the size entry's spinbutton fill the available space
...
so we at least get a nice layout if the spinbuttons have different
sizes. Makes the tool options look a bit less ugly.
2010-10-31 16:45:49 +01:00
Michael Natterer
be3ebbb65c
libgimpwidgets: tooltips no longer require an event box around no-window widgets
2010-10-31 16:30:03 +01:00
Michael Natterer
5bc3317b5a
libgimpwidgets: fix the new prop_unit_combo_box to work like the oly unit menu
...
- don't forget to set the initial value
- set has_pixels and has_percent on the unit store from the param spec
2010-10-30 19:39:31 +02: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
9e28a0406b
libgimpwidgets: use accessors for GtkAdjustment members
...
so it builds with GSEAL_ENABLE. Also keep around the adjustments as
GtkAdjustment not GtkObject to avoid casting all the time.
2010-10-19 18:38:00 +02:00
Michael Natterer
d831b9a353
libgimpwidgets: fix GimpFrame's child allocation for GSEAL_ENABLE
...
Don't override GtkFrame::compute_child_allocation() because we
completely override all functions that call this virtual function
anyway. Consequently, there is no need to store the child's allocation
in the sealed frame->child_allocation.
2010-10-18 16:40:47 +02:00
Mukund Sivaraman
0ff751fd2d
Sort gimpwidgets.def entries
2010-10-16 11:53:50 +05:30
Mukund Sivaraman
8b57945ebb
Convert spaces to tab in def file
2010-10-16 11:48:48 +05:30
Mukund Sivaraman
c7f36d1546
Add missing symbols to gimpwidgets.def
2010-10-16 11:48:23 +05:30
Michael Natterer
47c6b25f23
libgimpwidgets: transform the cr to widget coords
...
Get rid of allocation.foo and also kill all the rectangle intersection
that are not really optimizations on such a small widget.
2010-10-15 11:09:47 +02:00
Michael Natterer
3584b662a6
libgimpwidgets: transform the cr to widget coords
...
and get rid if all the allocation.x and .y
2010-10-15 10:40:37 +02:00
Michael Natterer
1de338ea9d
libgimpwidgets: port the GimpChainButton lines to cairo
...
A proper two-pixel line in FG color looks a lot less shabby...
2010-10-15 10:35:28 +02:00
Michael Natterer
84274e2230
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:34:29 +02:00
Michael Natterer
b67dbdc6ca
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:25:51 +02:00
Michael Natterer
a9e6297110
libgimpwidgets: implement GObject::finalize() instead of GtkObject::destroy()
2010-10-15 02:12:33 +02:00
Michael Natterer
6a10ded221
libgimpwidgets: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 02:07:55 +02:00
Michael Natterer
b25ac7b68d
libgimpwidgets: add "percent" support to GimpUnitStore
...
and enable "menu_show_percent" again in GimpSizeEntry.
2010-10-15 01:27:02 +02:00
Michael Natterer
e5faf090ca
libgimpwidgets: add gimp_unit_store_set,get_has_pixels()
...
to allow having unit combos without "pixels". Adapt GimpUnitComboBox
to not assume that the unit is equal to the index in the store and
enable "menu_has_pixels" in GimpSizeEntry again.
2010-10-15 00:15:48 +02:00
Michael Natterer
f2bd06e2d1
libgimpwidgets: move GimpUnitStore members to a private struct
2010-10-14 23:22:22 +02:00
Michael Natterer
c36f762f7d
libgimpwidgets: deprecate GimpUnitMenu and gimp_prop_unit_menu_new()
...
Add gimp_prop_unit_combo_box_new() and adapt all places using the
prop_unit_menu. Some things are broken now, like there are no pixel
digits set, resolution unit menus show "pixels" and warn badly when
pixels is selected, and file-pdf-load is not built right now.
More fixes to come...
2010-10-14 23:03:34 +02:00
Michael Natterer
74458f46ee
app/libgimpwidgets: move GimpUnitStore and GimpUnitComboBox to libgimpwidgets
2010-10-14 22:15:25 +02:00
Michael Natterer
af518f9e84
libgimpwidgets: use GObject::dispose() instead of GtkObject::destroy()
2010-10-14 17:47:48 +02:00
Michael Natterer
843d9e35ad
libgimpwidgets: replace GdkGC* with gpointer for an unused struct member
2010-10-14 17:22:56 +02:00
Sven Neumann
db72c72c1f
Bug 631609 - [regression] no transparency on antialiased fonts
...
Render the layout into an ARGB32 surface and convert the text layer
pixel format from that.
2010-10-07 22:21:49 +02:00
Sven Neumann
8f9ffe597d
libgimpwidgets: add const qualifiers
...
Sprinkle GIMP_CAIRO_ARGB32_SET_PIXEL() with const qualifiers.
2010-09-26 22:12:13 +02:00
Alexia Death
74e5864fa6
Merge branch 'master' into soc-2010-cage-2
2010-09-26 23:08:15 +03:00
Michael Natterer
d62c287fce
libgimpwidgets: remove the pixbuf inline data garbage from GimpPickButton
...
Instead, generate a proper header for inclusion in cursors/.
2010-09-13 02:16:18 +02:00
Michael Natterer
fb53ac6c3a
plug-ins: create the GimpPickButton from pixbuf inline data
...
instead of using GdkBitmap functions.
2010-09-12 02:44:00 +02:00
Michael Natterer
0f28b38a55
libgimpwidgets: set page_size to 0 on adjustments used for spin buttons
...
Spin buttons must always have a zero page size, fix that for all
spin buttons created with gimp_spin_button_new().
2010-09-12 00:57:13 +02:00
Michael Natterer
885147717a
libgimpwidgets: port GimpOffsetArea drawing to cairo
...
Has the same off-by-one bugs as before...
2010-09-11 22:39:05 +02:00
Michael Natterer
1770615125
libgimpwidgets: ports GimpColorSelect marker drawing to cairo
2010-09-11 22:24:08 +02:00
Michael Natterer
251177f18d
libgimpwidgets: fix GimpColorScale arrows to be as small as before
2010-09-11 22:06:00 +02:00
Michael Natterer
354a640e9e
libgimpwidgets: port the rest of GimpColorScale drawing to cairo
2010-09-10 21:33:00 +02:00
Michael Natterer
e617ecedd9
libgimpwidgets: port GimpColorScale slider drawing to cairo
2010-09-10 20:57:06 +02:00
Michael Natterer
8b4bcbb9e1
libgimpwidgets: port GimpColorArea drawing to cairo
...
And unexport an unused lib-internal function. Leave it there privately
though because it might be useful later.
2010-09-10 19:53:48 +02:00
Alexia Death
6a22f17ab3
Merge branch 'master' into soc-2010-cage-2
2010-09-02 18:49:35 +03:00
Michael Natterer
1e525ff3b9
libgimpwidgets: allow gimpcairo-utils.h inclusion from non-gui files
...
This is such a bad hack, but I currently can't decide how to properly
split this file into GTK+ and non-GTK+ parts...
2010-09-01 23:13:02 +02:00
Alexia Death
aee148a486
Merge branch 'master' into soc-2010-cage-2
2010-08-26 21:50:55 +03:00
Michael Natterer
1a609d6381
libgimpwidgets: cleanup
2010-08-11 23:32:44 +02:00
Alexia Death
951c135483
theme: Temporary icons for dynamics and tool presets
...
Staring at a row of paintbrush icons got really annoying.
2010-08-12 00:08:19 +03:00
Michael Natterer
10574e8f22
libgimpwidgets: port GimpPickButton color picking to cairo
2010-08-08 16:10:14 +02:00
Michael Natterer
789cc05baf
libgimpwidgets: add new macro GIMP_CAIRO_RGB24_GET_PIXEL()
...
which reads a pixel from a cairo image surface's data.
2010-08-08 16:09:21 +02:00
Michael Natterer
1e48f16113
libgimpwidgets: port GimpCellRendererToggle drawing to cairo
2010-08-08 15:39:16 +02:00
Michael Muré
f6316285be
structure of the cage tool, with an options object
2010-08-08 13:17:10 +02:00
Michael Natterer
8b31211639
Fix the bulid after GtkNotebookPage got deprecated in gtk-2-22
...
In all GtkNotebook::switch_page() callbacks, simply replace
GtkNotebookPage* by gpointer.
2010-07-16 15:24:25 +02:00
Michael Natterer
b3ee51794d
libgimpwidgets: fix most gtk-doc warnings
2010-07-05 19:04:15 +02:00
Michael Natterer
1f7ff98c45
libgimpwidgets: move docs from template files to inline comments
...
but leave the template file for gimpstock there because its contents
would be too much for gimpstock.h.
2010-07-05 18:01:28 +02:00
Michael Natterer
fad6053643
Make cairo code work with newer cairo backends that actually use caching
...
Call cairo_surface_flush() before reading or writing a surface's
pixels directly, and use cairo_surface_mark_dirty() after writing
pixels directly, so we don't read old pixels, and our written pixels
get actually used.
2010-06-28 12:23:31 +02:00
Martin Nordholts
87ab39a943
Bug 608622 - Desaturate icon causes confusion with Gradients tool
2010-06-18 22:35:24 +02:00
Michael Natterer
56994869cd
libgimpwidgets: register descriptions for the GdkInputMode enum
...
so the combo box in the input dialog shows proper labels and
translations instead of GDK_MODE_FOO.
2010-06-11 09:53:08 +02:00
Michael Natterer
a2c70822d4
Use accessors from GTK+ 2.20 instead of using sealed members directly
2010-04-19 19:21:07 +02:00
Alexia Death
29f7fe87b0
Base infra for tool presets.
2010-04-03 21:06:15 +03:00
Michael Natterer
1aeb315ecf
undef GTK_DISABLE_DEPRECATED in many places which undef GSEAL_ENABLE
...
because the widget flag access macros (e.g. GTK_WIDGET_REALIZED) are
now deprecated in GTK+ master.
2010-03-06 23:14:29 +01:00
Michael Natterer
5f0255e269
Add GIMP_STOCK_INPUT_DEVICE icons and use them for the devices dialog
...
From icon masta Jimmac.
2010-02-19 21:25:24 +01:00
Michael Natterer
dc05c2687e
libgimp: add a frame around the color areas again, but only one frame around both
2010-01-24 23:55:36 +01:00
Kretynofil
6522fdc9b7
Bug 598344 - Make 'Current' and 'Old' colors in color selector adjacent
...
Make the color selector more slick by removing some UI cruft and
putting the 'Current' and 'Old' color fields right next to each other.
2010-01-23 09:31:05 +01:00
Michael Natterer
eac902d065
libgimp: use gtk_widget_get_visible() instead of GTK_WIDGET_VISIBLE()
2010-01-17 16:51:48 +01:00
Sven Neumann
42e31b1cc8
libgimpwidgets: clean up comment
...
Rephrase a comment so that it does not cause a false positive when
looking for deprecated GDK symbols.
2009-11-09 19:07:54 +01:00
Michael Natterer
b2e98c44ec
Don't filter out non-existing folders in the path editor
...
So the user actually has a chance to fix misconfigured paths.
2009-10-30 21:34:07 +01:00
Alexia Death
210a4b5044
Merge resolution
2009-10-17 21:42:02 +03:00
Michael Natterer
fcd346a227
Build with GSEAL_ENABLE with a few exceptions
...
Use the new accessors in GTK+ 2.18 and #undef GSEAL_ENABLE where
accessors are missing or where I'm not quite sure how to fix the
stuff yet.
2009-10-17 18:51:48 +02:00
Michael Natterer
ee48b7b06e
Use accessors instead of table->children and adjustment->value
2009-10-17 18:49:12 +02:00
Martin Nordholts
eb6bef33e4
Use gtk_widget_set_visible()
...
In places where the pattern
if (show)
gtk_widget_show (widget);
else
gtk_widget_hide (widget);
is used, change to
gtk_widget_set_visible (widget, show);
Also do some other minor cleanups.
2009-10-17 15:07:34 +02:00
Alexia Death
d2143b8886
Merging master to current state
2009-08-21 19:26:05 +03:00
Massimo Valentini
b1bbbb230d
Bug 542003 – Reset button breaks field updates on width and height boxes
...
Update all of the internal state in response to a reset request.
2009-08-05 23:42:58 +02:00
Michael Natterer
656e30cd3a
Looking at widget->requisition in size_allocate() is useless
...
Use the passed GtkAllocation for calculating things, not
widget->requisition.
2009-08-01 18:59:58 +02:00
Michael Natterer
2abca796bf
Don't touch widget->requisition in size_request()
...
gimp_ruler_size_request(): modify the passed GtkRequisition, not
widget->requisition.
2009-08-01 18:57:58 +02:00
Alexia Death
08a88f681d
Lo and behold, menu item.
2009-07-30 20:49:10 +03:00
Martin Nordholts
b2b2b41e62
Get rid of artificial compiler warnings
...
Get rid of artificial compiler warnings generated with the #warning
directive. They pollute the build output and don't work as incentives
for fixing stuff.
2009-07-20 12:47:59 +02:00
Sven Neumann
cb4aec187f
Update license to LGPL version 3 here as well.
2009-07-16 22:37:09 +02:00
Michael Natterer
997111bf0a
Use gtk_dialog_get_content_area() instead of dialog->vbox
2009-07-15 16:19:32 +02:00
Michael Natterer
facb13fdba
Use GtkOrientable API instead of accessing range->orientation directly
2009-07-15 01:53:30 +02:00
Martin Nordholts
f1b14dd6b7
Update library .def files
2009-07-12 12:48:06 +02:00
Michael Natterer
77439d689e
Bug 584408 - If brush selection popup overlaps color gradient, clicks pass through
...
Keep track of the drag state the widget is in so it doesn't get confused
by release or motion events that don't have a related press event.
2009-06-01 22:55:43 +02:00
Sven Neumann
6c02aaa802
libgimpwidgets: set Clear icon sensitivity
...
Only set the Clear icon in the GimpBrowser Search entry sensitive if
there's text in the entry.
2009-05-24 17:24:28 +02:00
Sven Neumann
149cc5da09
libgimpwidgets: check icon position in the 'icon-press' signal handler
2009-05-24 17:06:17 +02:00
Sven Neumann
1832ba6b37
libgimpwidgets: add a Clear icon to the GimpBrowser's Search entry
2009-05-24 17:02:55 +02:00
Sven Neumann
a6d8c7c5c4
Revert "Make some GimpCoords* params const"
...
This reverts commit 063a6f03aa
.
2009-05-18 00:01:34 +02:00
Michael Natterer
063a6f03aa
Make some GimpCoords* params const
...
Add const to GimpCoords* params in GimpBrush::select_brush() and
want_null_motio().
2009-05-17 23:14:19 +02:00
Martin Nordholts
b4654d5c8d
Update .gitignore
2009-05-17 14:11:35 +02:00
Fredrik Alströmer
bcee243fa3
Bug 76616 – Size entry widgets could use some simple math
...
Add a simple parser to the GimpSizeEntry widget so that one can write
things such as "40in" and "50%" in a size entry widget and get that
converted to the current unit.
The parser also handles basic expresions such as "20cm + 20px" and
"2 * 3.14in".
2009-05-17 13:47:37 +02:00
Michael Natterer
e6af54a687
use GtkAdjustment's accessors.
...
2009-03-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpscrolledpreview.c: use GtkAdjustment's
accessors.
svn path=/trunk/; revision=28199
2009-03-22 20:46:48 +00:00
Michael Natterer
8559d94629
use GtkAdjustment's accessors.
...
2009-03-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpscaleentry.c: use GtkAdjustment's accessors.
svn path=/trunk/; revision=28198
2009-03-22 20:31:47 +00:00
Michael Natterer
377c376082
use gtk_dialog_get_content_area() instead of dialog->vbox.
...
2009-03-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpquerybox.c (create_query_box): use
gtk_dialog_get_content_area() instead of dialog->vbox.
svn path=/trunk/; revision=28197
2009-03-22 19:32:58 +00:00
Michael Natterer
3795f9b9c5
libgimpwidgets/gimpchainbutton.c libgimpwidgets/gimpcolorarea.c
...
2009-03-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpchainbutton.c
* libgimpwidgets/gimpcolorarea.c
* libgimpwidgets/gimpcolorbutton.c
* libgimpwidgets/gimpcolorscale.c
* libgimpwidgets/gimpcolorselect.c
* libgimpwidgets/gimpdialog.c
* libgimpwidgets/gimphelpui.c
* libgimpwidgets/gimpmemsizeentry.c
* libgimpwidgets/gimpoffsetarea.c
* libgimpwidgets/gimppickbutton.c
* libgimpwidgets/gimppixmap.c
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreviewarea.c
* libgimpwidgets/gimpruler.c
* libgimpwidgets/gimpscrolledpreview.c
* libgimpwidgets/gimpwidgets.c: use accessors for various members
of GTK+ structures that don't exist any longer when GSEAL_ENABLE
is defined.
svn path=/trunk/; revision=28190
2009-03-22 15:42:42 +00:00
Martin Nordholts
4d7a6b10d1
Added .gitignore files generated with git svn create-ignore.
...
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer
ef3fbab8bc
chain up if a parent impl exists to be safe against future gtk versions
...
2009-01-26 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpbutton.c (gimp_button_clicked): chain up if a
parent impl exists to be safe against future gtk versions doing
something in GtkButton::clicked() (as happened in GTK+ trunk).
svn path=/trunk/; revision=27958
2009-01-26 20:23:01 +00:00
Martin Nordholts
4d55dd33ef
Bug 563337 – Rectangle Select Tool does not allow 1:1 fixed ratio
...
* libgimpwidgets/gimpnumberpairentry.c: When testing if the value
changed on focus-out we shall test against the current values, not
the default values.
svn path=/trunk/; revision=27914
2009-01-18 07:54:59 +00:00
Michael Natterer
d9b5207aa2
Change licence to GPLv3 (and to LGPLv3 for libgimp).
...
2009-01-17 Michael Natterer <mitch@gimp.org>
* all files with a GPL header and all COPYING files:
Change licence to GPLv3 (and to LGPLv3 for libgimp).
Cleaned up some copyright headers and regenerated the parsers in
the ImageMap plugin.
svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann
19f72e4471
use the canonical spelling for the 'stock-id' property.
...
2008-12-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpintcombobox.c (gimp_int_combo_box_init):
use
the canonical spelling for the 'stock-id' property.
svn path=/trunk/; revision=27839
2008-12-28 00:08:20 +00:00
Sven Neumann
ab94f83b90
added gimp_widgets_error_quark.
...
2008-12-01 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpwidgets.def: added
gimp_widgets_error_quark.
svn path=/trunk/; revision=27744
2008-12-01 09:14:27 +00:00
Martin Nordholts
43f810870b
Added 'Since: GIMP 2.8' to GIMP_WIDGETS_ERROR.
...
* libgimpwidgets/gimpwidgets-error.h: Added 'Since: GIMP 2.8' to
GIMP_WIDGETS_ERROR.
* libgimpwidgets/gimpwidgets.h: Added gimpwidgets-error.h.
svn path=/trunk/; revision=27743
2008-12-01 07:44:14 +00:00
Martin Nordholts
725cfdfbcb
Remove trailing comma in GimpWidgetsError in gimpwidgets-error.h
...
svn path=/trunk/; revision=27742
2008-11-30 21:28:33 +00:00
Martin Nordholts
bb591631fe
New files defining GIMP_WIDGETS_ERROR domain with currently only a
...
* libgimpwidgets/gimpwidgets-error.[ch]: New files defining
GIMP_WIDGETS_ERROR domain with currently only a
GIMP_WIDGETS_PARSE_ERROR error code.
* libgimpwidgets/Makefile.am: Add the new files here.
svn path=/trunk/; revision=27741
2008-11-30 21:25:02 +00:00
Martin Nordholts
5ddcda87e1
Sort entries.
...
* libgimpwidgets/Makefile.am: Sort entries.
svn path=/trunk/; revision=27715
2008-11-24 22:11:18 +00:00
Sven Neumann
02817081ff
use NC_() to mark enum values for translation. Use a lower-case short form
...
2008-11-06 Sven Neumann <sven@gimp.org>
* tools/gimp-mkenums: use NC_() to mark enum values for
translation.
Use a lower-case short form of the type name as translation
context.
* libgimp/libgimp-intl.h: define the NC_() macro as noop.
* libgimpbase/gimpbasetypes.[ch]
* libgimpbase/gimpbase.def: added new functions to set and
get a translation context on an enum type.
* app/base/Makefile.am
* app/core/Makefile.am
* app/display/Makefile.am
* app/paint/Makefile.am
* app/plug-in/Makefile.am
* app/text/Makefile.am
* app/tools/Makefile.am
* app/widgets/Makefile.am
* libgimp/Makefile.am
* libgimpbase/Makefile.am:
* libgimpconfig/Makefile.am
* libgimpthumb/Makefile.am
* libgimpwidgets/Makefile.am: register the translation context
with the enum types.
* app/display/display-enums.h
* libgimpbase/gimpbaseenums.h
* libgimpconfig/gimpcolorconfig-enums.h: removed old-style
explicit
translation context.
* app/base/base-enums.c
* app/core/core-enums.c
* app/display/display-enums.c
* app/paint/paint-enums.c
* app/plug-in/plug-in-enums.c
* app/text/text-enums.c
* app/tools/tools-enums.c
* app/widgets/widgets-enums.c
* libgimpbase/gimpbaseenums.c
* libgimpconfig/gimpcolorconfig-enums.c
* libgimpwidgets/gimpwidgetsenums.c: regenerated.
svn path=/trunk/; revision=27562
2008-11-06 08:28:28 +00:00
Sven Neumann
fe520925b7
app/base/Makefile.am app/core/Makefile.am app/display/Makefile.am
...
2008-11-03 Sven Neumann <sven@gimp.org>
* app/base/Makefile.am
* app/core/Makefile.am
* app/display/Makefile.am
* app/paint/Makefile.am
* app/plug-in/Makefile.am
* app/text/Makefile.am
* app/tools/Makefile.am
* app/widgets/Makefile.am
* libgimp/Makefile.am
* libgimpbase/Makefile.am:
* libgimpconfig/Makefile.am
* libgimpthumb/Makefile.am
* libgimpwidgets/Makefile.am: micro-optimization in the
generated
enum registration code.
* app/base/base-enums.c
* app/core/core-enums.c
* app/display/display-enums.c
* app/paint/paint-enums.c
* app/plug-in/plug-in-enums.c
* app/text/text-enums.c
* app/tools/tools-enums.c
* app/widgets/widgets-enums.c
* libgimpbase/gimpbaseenums.c
* libgimpconfig/gimpcolorconfig-enums.c
* libgimpwidgets/gimpwidgetsenums.c: regenerated.
svn path=/trunk/; revision=27538
2008-11-03 21:38:13 +00:00
Michael Natterer
2bdb7d1e98
cosmetics.
...
2008-10-08 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpruler.c: cosmetics.
svn path=/trunk/; revision=27179
2008-10-08 18:47:13 +00:00
Sven Neumann
80b9cad58c
cache the PangoLayout. Use it not only for drawing the numbers, but also
...
2008-10-05 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpruler.c: cache the PangoLayout. Use it not
only for drawing the numbers, but also to calculate the size
requisition depending on the actual font size.
svn path=/trunk/; revision=27131
2008-10-04 23:32:41 +00:00
Sven Neumann
35b5591585
instead of hardcoding a size request, implement GtkWidget::size_request
...
2008-10-05 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpruler.c: instead of hardcoding a size
request, implement GtkWidget::size_request and set the size
depending on the font-scale.
svn path=/trunk/; revision=27130
2008-10-04 23:13:44 +00:00
Sven Neumann
61f31f307e
increased ruler font scale from X_SMALL to SMALL as it appears to be too
...
2008-10-04 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpruler.c: increased ruler font scale from
X_SMALL to SMALL as it appears to be too small for many users.
* themes/Default/gtkrc: follow that change here, but keep the
ruler font extra small in the Small theme.
svn path=/trunk/; revision=27127
2008-10-04 21:47:53 +00:00
Sven Neumann
c28b7653f5
make the font scale factor configurable in gtkrc.
...
2008-10-04 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpruler.c: make the font scale factor
configurable in gtkrc.
* themes/Default/gtkrc
* themes/Small/gtkrc: for documentation, add the default value
here.
svn path=/trunk/; revision=27121
2008-10-03 22:11:15 +00:00
Hans Breuer
d94419a9fd
updated include <string.h> for memcmp() include <string.h> for strcmp()
...
2008-10-03 Hans Breuer <hans@breuer.org>
* **/makefie.msc gimpdefs.msc app/gimpcore.def : updated
* app/core/gimpcurve.c : include <string.h> for memcmp()
* app/gegl/gimpcurvesconfig.c : include <string.h> for strcmp()
svn path=/trunk/; revision=27118
2008-10-03 19:27:54 +00:00
Michael Natterer
435f6e3974
app/display/gimpdisplayshell-callbacks.c libgimpwidgets/gimpcolorselect.c
...
2008-09-03 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
* libgimpwidgets/gimpcolorselect.c
* modules/color-selector-water.c
* plug-ins/ifs-compose/ifs-compose.c: instead of using
gdk_window_get_pointer() if GdkEventMotion::is_hint is TRUE,
simply always use the coords from the event and call
gdk_event_request_motions() to ask for more motion events. This is
the recommended way and also works for events from devices other
than the core pointer.
* plug-ins/ifs-compose/ifs-compose.c (design_area_motion): some
code cleanup while i was at it.
svn path=/trunk/; revision=26843
2008-09-03 19:24:51 +00:00
Michael Natterer
5357d42ab3
massively simplified. Don't fiddle in GtkButton's internals (like setting
...
2008-09-03 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpbutton.c: massively simplified. Don't fiddle
in GtkButton's internals (like setting "in_button" and forcing
redraws). Instead, simply remember the modifier state in
button_press() and check it in clicked(); if the state is != 0,
stop the "clicked" emission and emit "extended-clicked" instead.
svn path=/trunk/; revision=26842
2008-09-03 19:03:36 +00:00
Michael Natterer
975f6d0a1a
use gtk_widget_get_style() instead of widget->style. Reduce indentation by
...
2008-09-02 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpruler.c: use gtk_widget_get_style() instead
of widget->style. Reduce indentation by one level in
gimp_ruler_draw_pos().
svn path=/trunk/; revision=26836
2008-09-02 12:30:53 +00:00