Michael Natterer
ac9ffde880
app: formatting and other minor cleanups
2011-02-22 16:27:18 +01:00
Michael Natterer
7a8600e6bd
app: use gdk_flush() in gimp_widget_flush_expose()
...
instead of a completely bogus event processing loop which had no
effect but flushing the event queue implicitly.
2011-02-22 15:07:17 +01:00
Michael Natterer
8333dfde7b
Add some #if GTK_CHECK_VERSION (2, 24, 0) for creating foreign window
...
so we don't use deprecated API and make the gtk3 port simpler.
2011-02-16 22:51:02 +01:00
Michael Natterer
31b4d3801e
libgimpwidgets: add properties GimpColorButton:area-width and :area-height
2011-02-15 20:55:32 +01:00
Michael Natterer
95f14f5de8
app: add an "edit-name" binding signal and default to F2
2011-02-14 20:01:08 +01:00
Mikael Magnusson
8e49a5fafb
app: fix a typo
2011-02-12 18:16:05 +01:00
Michael Natterer
ec196a8ac4
app: allow to set a color for GimpCurveView's primary curve
...
and redo how the curves tool sets its curves in order to support this
without code duplication. Also change the color of the yellow curve in
the dynamics output editor to orange because yellow is hardly visible.
2011-02-10 20:05:50 +01:00
Michael Natterer
3ba0554628
app: use proper vivid colors for the background curves
...
instead of dull ones. The curve view already displays them with 0.5
opacity, so there is no reason to make them even harder to distinguish.
2011-02-09 09:26:06 +01:00
Michael Natterer
aaee95d545
app: experimentally color the background curves
2011-02-09 01:07:48 +01:00
Michael Natterer
6c252921af
app: handle the inputs generically in GimpDynamicsOutputEditor
...
instead of having explicit code for each input in all functions.
2011-02-09 00:27:25 +01:00
Michael Natterer
5a28791cfb
app: connect to the background curves' "dirty" signal in GimpCurveView
...
and make sure curves are not added twice to the background list.
Also warn when trying to remove a non-existent background curve.
2011-02-09 00:24:43 +01:00
Michael Natterer
2ed861fb8d
Bug 638795 - Brush Dynamics Curve editor stutters
...
Update the toggles in the treeview only if a boolean property of the
output changes, and not on *each* output change which includes each
tiny curve editing.
Also fix formatting in the whole file.
2011-02-08 22:09:52 +01:00
Michael Natterer
e3b5c55ca2
Bug 597117 - impossible to drop a group as a sibling inside a group
...
Properly distinguish between dropping after a group and into it, by
having three drop areas on a collapsed row. Still handle expanded rows
as before, but indicate dropping into visually just as on a collapsed
row.
2011-02-08 09:35:38 +01:00
Michael Natterer
92f130fbc3
app: also run device history coords through the axis mapping curve function
2011-02-06 13:26:25 +01:00
Michael Natterer
f4af9b549e
Globally switch to saying "window_id" instead of just "window"
...
when dealing with native window handles. Also get rid of using
GdkNativeWindow and simply consistently use guint32 all over the
place. This is more obvious and consistent and keeps the diff to the
gtk3-port branch smaller.
2011-02-06 12:07:55 +01:00
Michael Natterer
012eb1dd93
app: zero the reallocated keys and axes arrays in GimpDeviceInfo
2011-02-06 11:20:07 +01:00
Michael Natterer
e309d3cdf8
app: check that the model is not NULL before using it in GimpContainerComboBox
...
to be safe against GimpContainerView API being called during widget
destruction.
2011-02-06 11:20:07 +01:00
Michael Natterer
11ac0296b9
app: ref/unref the context in gimp_image_editor_set_context()
2011-02-06 11:20:07 +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
d449317501
app: Add and use gimp_image_get_string_untitled()
2011-02-02 22:28:46 +01:00
Alexia Death
60a77f6db2
app: Fix and enable duplicate for dynamics
2011-02-02 21:48:10 +02: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
27179d6219
app: don't duplicate code when setting GimpSpinScale's cursor
2011-01-22 23:23:02 +01:00
Michael Natterer
e27b5f6da2
app: remove unused variable in gimp_channel_tree_view_constructed()
2011-01-20 20:26:35 +01:00
Michael Natterer
4186d0114f
app: add comment to improve readability
2011-01-20 20:26:34 +01:00
Michael Natterer
550669962b
622863 - Input Devices list is not resizeable
...
Derive from GtkPaned instead of GtkBox, and change the handle size to
12px via gtkrc so spacing rules are followed.
2011-01-20 20:26:34 +01:00
Michael Natterer
202124c438
app: implement GObject::constructed() instead of ::constructor()
2011-01-14 09:38:46 +01:00
Michael Natterer
229007106e
app: don't pass the GtkStyle to gimp_curve_view_draw_grid()
...
Instead, set the cairo color in expose() before calling
draw_grid(). Also move a few lines of code around to make
the GTK3 port simpler.
2011-01-11 15:38:23 +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
5caee48645
app: run all input axes through gimp_device_info_map_axis()
...
and let that function alone worry about whether there actually is a
curve for that axis.
2010-12-20 20:00:47 +01:00
Michael Natterer
62b0e96609
app: add gimp_devices_add_widget()
...
which is supposed to set up a widget for tablet events and make sure
the context changes on device changes. "supposed" because everything
is currently horribly broken on GTK+ 2.x. Use the function for all
affected widgets except for the canvas.
2010-12-19 21:23:54 +01:00
Michael Natterer
1e013e774c
app: some cleanup in gimp_paned_box_position_drop_indicator()
2010-12-18 23:28:20 +01:00
Michael Natterer
4609bab1dd
app: use gtk_entry_set_width_chars() to override GtkEntry's default width
2010-12-09 23:45:00 +01:00
Michael Natterer
bb91ba9d01
app: update the device name's style when devices get added/removed
...
This can't happen on GTK+ 2.x but why should I keep this generic code
on a branch.
2010-12-09 22:56:58 +01:00
Michael Natterer
9c98b0b804
app: sort present devices to the beginning of the device list
...
and make sure the core pointer is always first in the list.
2010-12-09 22:02:24 +01:00
Michael Natterer
6e2d56a9b8
app: don't reverse the device list after loading, it's sorted by name
2010-12-09 21:46:01 +01:00
Michael Natterer
8bc0e569ec
app: use gimp_object_name_collate() when sorting device names
2010-12-09 21:45:04 +01:00
Michael Natterer
d91a1d5b6c
app: don't call g_object_set_data() on a NULL object
2010-12-09 20:55:53 +01:00
Mikael Magnusson
60242667be
app: don't use -1 for geometry hints where not allowed
2010-12-08 10:18:09 +01:00
Michael Natterer
0ba0b637f2
app: add gimp_devices_check_callback() with the signature of an event callback
...
and use it in the toolbox. Will soon be used in more places.
2010-12-06 10:23:15 +01:00
Michael Natterer
e50f6aaf0f
app: make gimp_devices_select_device() private
2010-12-06 10:18:32 +01:00
Michael Natterer
d6f28f2274
Bug 550662 - DND prefers text/plain over text/svg+xml, should be other way around
...
Move the call to gimp_dnd_uri_list_dest_add() to the end of the DND
setup code because it adds text/plain for legacy URI DND support,
which is way too generic to be handled first.
2010-11-29 22:04:56 +01:00
Michael Natterer
4b729086a9
app: cast GtkTargetEntry.target to gchar* when freeing it
...
because it was made const in GTK+.
2010-11-29 15:41:38 +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
Michael Natterer
b1106845d4
app: the tool-list and tool-grid views are gone, don't try to open them
2010-11-26 10:44:46 +01:00
Michael Natterer
88f2af98aa
app: clean up the dynamics editor
...
Also fix its sensitivity when a read-only data is set. Fixes bug
curves).
2010-11-24 23:01:50 +01:00
Michael Natterer
ef87b83ff0
app: change toolbox geometry hints to something that's closer to the docs
...
Feels more correct now when resizing, but not really.
2010-11-20 20:44:16 +01:00
Michael Natterer
a598b2d1be
app: I don't know what I was thinking when changing these function names...
2010-11-20 20:37:15 +01:00
Michael Natterer
74a09704ba
app: some toolbox cleanup
...
Add precondition checks and assertions for needed members and remove
unused API.
2010-11-20 15:19:48 +01:00