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
Michael Natterer
e4a96c738e
app: factor out duplicated code to gimp_tool_palette_get_button_size()
...
and use that function in GimpToolPalette and GimpToolbox.
2010-11-20 10:20:52 +01:00
Michael Natterer
281969b45d
app: add GimpToolPalette which derives from GtkToolPalette
...
and move all of GimpToolbox' tool button code there.
2010-11-19 23:52:09 +01:00
Michael Natterer
6960dda6f2
app: draw GimpSpinScale's label with style->text, not style->fg
2010-11-19 14:08:37 +01:00
Michael Natterer
dc564954d5
app: namespace the ink blob
...
Blob -> GimpBlob, blob_foo() -> gimp_blob_foo() etc.
2010-11-14 16:43:21 +01:00
Michael Natterer
c4cd420ef8
app: rename GIMP_INK_BLOB_TYPE_ELLIPSE to GIMP_INK_BLOB_TYPE_CIRCLE
...
- TYPE_SQUARE is also named SQUARE and not RECTANGLE
- serialization doesn't suffer from the changed name because it's the
default value that never gets serialized
- a lot of messy code in the ink options can be replaced by a one-liner
because the enum names now match their resp. stock items
2010-11-14 16:29:42 +01:00
Michael Natterer
1741d39d8b
app: gimp_widget_flush_expose() return if the widget is not drawable
2010-11-10 00:13:07 +01:00
Michael Natterer
cacf8b550f
app: add gimp_widget_flush_expose() utility function
...
which flushes all pending exposes for a widget without running the
main loop. Useful for updating progress bars without returning to the
main loop.
2010-11-09 19:33:15 +01:00
Michael Natterer
71de3d7bdf
app: use "pixels/unit" as label for the resolution menu
...
instead of "pixels/abbreviated unit". This is soon going to be
supported generically by GimpUnitComboBox just as with the old unit
menu.
2010-11-05 16:24:37 +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
Mikael Magnusson
90e525ca09
app: use a spin scale for the brush size (have to limit size to 1000 temporarily)
2010-11-02 14:41:21 +01:00
Michael Natterer
8f991c5950
app: make the brush, pattern etc selecing boxes more compact
...
by integrating their label instead of requiring one externally. This
way we get rid of some more labels in the tool options. Also clean up
tool options further (add more spin scales, and some general
reordering and spacing cleanup).
2010-11-02 14:05:47 +01:00
Michael Natterer
37038ab77f
app: add an opacity prop scale
2010-11-01 22:07:39 +01:00
Michael Natterer
8bf497294e
app: enable adjustment based prop widgets for all numeric param types
2010-11-01 21:48:19 +01:00
Michael Natterer
e84a0eebf9
app: fix gimp_prop_spin_scale_new() by setting the pspec on the right object
2010-11-01 20:54:43 +01:00
Michael Natterer
864e6bdfc0
app: don't show a text cursor when not over the editable text
2010-11-01 20:51:13 +01:00
Michael Natterer
01f4bad1f6
app: add gimp_prop_spin_scale_new()
2010-11-01 20:04:35 +01:00
Michael Natterer
ae3afca697
app: add new widget GimpSpinScale which is a combined spinbutton and scale
2010-11-01 20:03:39 +01:00
Martin Nordholts
48690d60e1
app: Add gimp_tools_get/set_tool_options_gui()
...
Add gimp_tools_get_tool_options_gui() and
gimp_tools_set_tool_options_gui() widgets utility functions.
2010-10-31 13:05:15 +01:00
Michael Natterer
b9a7c121a4
app: don't inherit from GtkHBox or GtkVBox
...
Instead, inherit from GtkBox directly and set the orientation in
init(). Replace more gtk_container_add() by gtk_box_pack_start() in
the reparented classes.
2010-10-30 15:44:46 +02:00
Michael Natterer
060a08da5a
app: +1
2010-10-30 15:43:56 +02:00
Michael Natterer
56dee7245a
app: and one more
2010-10-30 15:43:17 +02:00
Michael Natterer
ebc92dc5b4
app: more gtk_container_add -> gtk_box_pack_start
2010-10-30 15:42:25 +02:00
Michael Natterer
0829e5b028
app: simplify how the colormap editor sets FG/BG colors
...
Set the FG/BG on the widget's own context and remove the "selected"
signal and its callback in dialogs-constructors.c
2010-10-28 03:09:53 +02:00
Michael Natterer
112ca01064
app: bye bye deprecated GtkPreview
...
Use a GimpPaletteView for the colormap editor.
2010-10-28 02:16:52 +02:00
Michael Natterer
32d5d1681b
app: don't crash if the palette is NULL
2010-10-28 02:16:52 +02:00
Michael Natterer
9dee789cfd
app: emit "update" when the viewable goes away via the weak notify
2010-10-28 02:16:51 +02:00
Alexia Death
e8df164366
app: Add dynamics selector to the tool options
2010-10-27 21:49:24 +03:00
Michael Natterer
d1307a84a4
app: return TRUE from button_press() so the event doesn't get to the notebook
2010-10-27 15:39:52 +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
6fc4c42298
Bug 348183 - palette editor doesn't show all palette colors
...
Remove a crack eventbox and a double crack alignment and suddenly the
widget behaves properly. I have no idea what "important" feature I
killed with that removal, but the whole palette editing code needs
some serious chopping soon.
2010-10-25 22:54:55 +02:00
Michael Natterer
71ab7f4291
app: cairo_translate() by allocation.x,y
2010-10-22 18:46:57 +02:00
Michael Natterer
8f8ea74d1f
app: return TRUE from button and motion callbacks because we handled the events
2010-10-21 13:19:51 +02:00
Michael Natterer
199804bce5
app: fix alphabetic order
2010-10-21 12:02:49 +02:00
Michael Natterer
8a1517f18b
app: properly select icon view items
...
so that they are visually selected also when the widget never got
focus.
2010-10-21 11:53:41 +02:00
Michael Natterer
c60e29254b
app: don't try to set properties of a NULL icon view
2010-10-21 11:38:58 +02:00
Michael Natterer
7cfda8cc33
app: use pango_cairo_show_layout() instead of a GdkPangoRenderer
2010-10-20 19:25:03 +02:00
Michael Natterer
83407d230c
app: build with GSEAL_ENABLE (don't access widget->requisition)
2010-10-20 19:09:54 +02:00
Michael Natterer
c8bef14682
app: fix Makefile.am formatting
2010-10-20 19:04:32 +02:00
Michael Natterer
090a465362
app: don't pass "GdkRectangle *draw_area" to gimp_view_renderer_draw()
...
Instead, handle the drawing offset generically by offsetting the
cairo_t in two places in the callers, and only pass the width and
height available for drawing.
2010-10-20 18:04:18 +02:00
Michael Natterer
7ab96f6b5c
app: don't chain up in GtkWidget::size-request()
...
It's useless with GTK+ 2.x and entirely breaks the widget with GTK+ 3.x
2010-10-20 17:32:54 +02:00
Sven Neumann
1130e8c890
Bug 631728 - Crash or Gtk-CRITICAL on File->Open
...
Check return value of gtk_icon_theme_lookup_by_gicon() before using it.
2010-10-18 18:28:57 +02:00
Michael Natterer
0e9442b7c0
app: fix typo in comment
2010-10-18 12:44:58 +02:00
Michael Natterer
628439bc31
app: simplify toolbox wilber drawing a lot
2010-10-15 16:03:36 +02:00
Michael Natterer
37effb99a4
app: use the window's allocation instead of gdk_drawable_get_size()
2010-10-15 15:17:12 +02:00
Michael Natterer
5af8cc1d40
app: translate the cr by allocation.x,y instead of doing this while drawing
2010-10-15 15:06:43 +02:00
Michael Natterer
b69eea8cd6
app: implement GObject::dispose() instead of GtkObject::destroy()
2010-10-15 14:08:36 +02:00
Michael Natterer
3c18ba3497
app: implement GObject::dispose() instead of GtkWidget::destroy()
2010-10-15 13:48:36 +02:00
Michael Natterer
756b7310e7
app: cairo_translate() by allocation.x,y instead of doing that when drawing
2010-10-15 13:02:05 +02:00
Michael Natterer
1cc27bcef7
app: port gimp_view_renderer_draw() to take a cairo_t* instead of GdkWindow*
...
and pass in the cr with clipping set up from the callers instead.
2010-10-15 12:53:58 +02:00
Michael Natterer
dc39857238
app: add GimpSegment as replacement for GdkSegment
2010-10-15 12:37:36 +02:00
Michael Natterer
74458f46ee
app/libgimpwidgets: move GimpUnitStore and GimpUnitComboBox to libgimpwidgets
2010-10-14 22:15:25 +02:00
Michael Natterer
b24c25d317
app: don't use GET_PRIVATE() before the precondition check
2010-10-14 17:33:07 +02:00
Christian Krippendorf
ff03681bdf
Bug 627328 - GIMP 2.6.10 segfaults when CTRL-left click on a layer mask
...
Move the g_signal_emit() to the end, because the cell->renderer could
be changed and cause a segfault. Also check cell->renderer before
dereferencing it.
2010-10-10 22:32:22 +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
7dbaf348c5
app: fix gimp_text_buffer_get_color_tag()
...
Change the generated tag names to use #rrggbb notation and compare the
colors on an 8 bit basis to make sure the comparison and the tag names
exist in the same set of values (otherwise the text buffer gets into
an inconsistent state that can even lead to crashes).
2010-10-02 19:53:39 +02:00
Michael Natterer
68b380fa4e
app: forgot to check for "color_differs" for breaking out of a loop
...
Shouldn't change anything, just be slightly faster in some cases.
2010-10-02 19:51:49 +02:00
Michael Natterer
6a2785173d
app: port GimpSamplePointEditor to the "sample-point-moved" signal
2010-10-01 09:27:57 +02:00
Michael Natterer
81cfb44047
app: use a GimpColorPanel not a GimpColorButton in the text style editor
...
so we get proper color previews in the popup menu.
2010-09-29 21:14:51 +02:00
Michael Natterer
7ed79e9fe1
app: fix off-by-0.5 in boundary drawing
...
which doesn't seem to have any visual effect...
2010-09-26 23:00:23 +02:00
Michael Natterer
8f9ec0650f
app: move code from GtkObject::destroy() to GObject::dispose()
2010-09-26 22:38:01 +02:00
Alexia Death
74e5864fa6
Merge branch 'master' into soc-2010-cage-2
2010-09-26 23:08:15 +03:00
Michael Natterer
74fe162f93
app: move adding an arc path out to a utility function
2010-09-24 13:12:34 +02:00