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
9e60dd547d
app: keep a ref to the session info in gimp_session_info_restore()
...
because failing to restore a dock can destroy the newly created dock
and implicitly unref the session info.
2011-05-12 21:23:06 +02:00
Michael Natterer
68a56a861e
app: gimp_session_info_book_restore(): don't set a non-existing current page
...
Don't set the first page of the restored dockbook active if there are
less than two pages. Also add a comment that explains why we return
the dockbook even though we know that all its dockables failed to
restore.
2011-05-12 21:23:06 +02:00
Michael Natterer
80cf95319e
app: gimp_session_info_dockable_restore(): don't return existing singletons
...
Instead, return NULL. The singleton dockable can't be restored in this
dock because it's already open in another dock.
2011-05-12 21:23:06 +02:00
Martin Nordholts
c70dc8f86d
app: Add NULL check in gimp_dock_container_get_docks()
2011-05-12 06:51:40 +02:00
Mikael Magnusson
80e18bdee0
app: Fix tooltip for "Use editor" checkbox
2011-05-11 22:09:21 +02:00
Michael Natterer
3184c0f339
app: use g_object_bind_property() to set sensitivity here too
2011-05-11 11:43:19 +02:00
Martin Nordholts
6d421f9d4d
app: Add and use gimp_session_info_get_info_with_widget()
...
Add and use helper function
gimp_session_info_get_info_with_widget(). Might need it for
GimpImageWindow later...
2011-05-09 19:55:51 +02:00
Martin Nordholts
4b9243fc60
app: Make GimpDockWindow implement GimpDockContainer
...
Make GimpDockWindow implement the GimpDockContainer interface. The
plan is to make GimpImageWindow also implement the GimpDockContainer
interface when we start to session manage docks in single-window mode.
2011-05-09 19:55:51 +02:00
Martin Nordholts
2287b6e008
app: Add a GimpDockContainer interface
...
We now have to classes that contain docks, GimpDockWindow and
GimpImageWindow (in single-window mode). Introduce a GimpDockContainer
interface so we can cope with these in an abstract way.
2011-05-09 19:43:28 +02:00
Martin Nordholts
1d12dc8e86
app: Sort widgets/widgets-types.h
2011-05-09 18:37:40 +02:00
Michael Natterer
e91890f659
app: always use the first display's image window as single-window
...
so the tabs are in the order of the global display list which is the
order of the image menu items and their ALT+number shortcuts.
2011-05-08 21:41:06 +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
Michael Natterer
1ebd2b5113
Revert "app: Make alt+[number] switch tabs in single-window mode"
...
This reverts commit 110b3daa97 .
2011-05-07 23:54:54 +02:00
Michael Natterer
d7b8f8e81f
app: formatting in gimpdisplayshell-selection.c
2011-05-07 22:33:05 +02:00
Mukund Sivaraman
24ac01bfa9
app: Fix corruption while in use of imported uri
2011-05-07 05:52:31 +05:30
Mikael Magnusson
a4cf150191
Bug 649610 - Gimp does not initialize as long as the splash screen is not mapped
...
app: don't use gtk_widget_show_now as that blocks until the window maps.
2011-05-07 00:14:59 +02:00
Martin Nordholts
dfc11599d1
app: Small --dump-pdb-procedures-deprecated cleanup
2011-05-06 07:29:01 +02:00
Martin Nordholts
d9264c6bd5
app/tests: Fixup test-gimpidtable.c
...
Fixup of test-gimpidtable.c of things sleepy eyes and brains missed.
2011-05-06 07:23:16 +02:00
Michael Natterer
b77b94d3ed
app: don't rely on gimp_brush_tool_create_outline() returning an outline
...
It can just as well return NULL.
2011-05-05 12:19:25 +02:00
Martin Nordholts
ed01101429
app: Add hidden --dump-pdb-procedures-deprecated option
...
Allow to dump the names of all internal deprecated PDB
procedures. This enables us to do static analysis on *.scm files and
look for usage of deprecated procedures.
2011-05-05 01:01:17 +02:00
Martin Nordholts
3474a385f2
app: Add gimp_pdb_get_deprecated_procedures()
2011-05-05 01:01:17 +02:00
Martin Nordholts
be91f01291
app: Add gimp_procedure_name_compare()
2011-05-05 01:01:17 +02:00
Michael Natterer
91550117c7
app: fix GimpSourceTool's source position drawing for other displays
...
by adding the source outline's canvas item to the source display
directly. Poking in GimpDrawTool internals is gone and generally not
possible any longer since GimpCanvasItem based drawing.
2011-05-04 23:25:55 +02:00
Martin Nordholts
c4097d4ff4
app: void * -> gpointer in GimpIdTable
2011-05-04 23:14:21 +02:00
Martin Nordholts
0d529f7956
app: Use GimpIdTable
2011-05-04 22:54:35 +02:00
Martin Nordholts
9fefa22efe
app: Add GimpIdTable utility class
...
Not written in Vala... ;)
2011-05-04 22:54:35 +02:00
Michael Natterer
85c0fd1166
app: replace gimp_dock_get_dock_columns() by gtk_widget_get_ancestor()
2011-05-04 22:41:40 +02:00
Michael Muré
989b85988b
Cage tool: allow to add handle by clicking on an edge
2011-05-03 00:46:42 +02:00
Michael Muré
cc247b3e66
Cage tool: in cage mode, remove selected handles when hitting backspace
2011-05-03 00:46:42 +02:00
Michael Muré
bcd76a3d5b
GimpCageConfig: add function to remove all selected points
2011-05-03 00:46:42 +02:00
Michael Muré
b0cedaa677
GimpCageConfig: add function to add and remove point at arbitrary index
2011-05-03 00:46:42 +02:00
Michael Natterer
909e7833a3
app: remove some more -Wunused-but-set-variable
2011-05-02 13:53:58 +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
092e26935b
app: GimpForegroundSelectToolUndo: shorten local variable names
2011-05-01 23:19:49 +02:00
Michael Natterer
99df9e114e
app: GimpCanvasLayerBoundary: actually use the figured "edit_mask" boolean
...
instead of always passing FALSE when changing to a different
layer. For some reason we were displaying the right state anyway,
which can only mean that we do things redundantly here and call this
function twice.
2011-05-01 22:36:25 +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
2af539020b
app: don't include individual files from libgimp*
2011-04-28 14:23:33 +02:00
Michael Natterer
81911a7b02
app: allow to drop buffers and components to empty displays
...
and simply create new images from them.
2011-04-28 01:59:38 +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
Michael Natterer
69d3aa5b36
Bug 648820 - drag and drop grayscale/greyscale image causes image corruption
...
gimp_display_shell_drop_pixbuf(): use the image's type to create the
layer, not the dropped pixbuf's.
2011-04-28 01:44:48 +02:00
Michael Natterer
92ce59e1c1
app: gimp_layer_new_from_pixbuf(): refuse to create layers of wrong type
2011-04-28 01:27:04 +02:00
Martin Nordholts
e75cfd044a
app: Sort core/.gitignore
2011-04-25 16:08:15 +02:00
Mukund Sivaraman
cdb66ccbdc
app: Reformat dirty protos
2011-04-25 19:19:25 +05:30
Mukund Sivaraman
54e2d5fb68
app: Use a properly typed callback function
...
This fixes a compiler warning with the typeless proto arg.
2011-04-25 19:16:28 +05:30
Mukund Sivaraman
10b37cbcaa
app: Remove unused variables
2011-04-25 19:10:04 +05:30
Martin Nordholts
4988a97257
app: Add gimp_dock_set_id()
2011-04-21 19:57:14 +02:00
Martin Nordholts
c84d26667b
app: Add missing gimp_dock_get_id() implementation
2011-04-21 18:59:12 +02:00
Martin Nordholts
f75f61779c
app: GimpSessionInfoDock::identifier -> dock_type
...
Rename GimpSessionInfoDock::identifier to dock_type, because it isn't
really an identifier; there might be several instance with dock_type
being "gimp-dock". This is a preparation for adding an actual
'identifier' member.
2011-04-21 18:59:12 +02:00
Alexandre Prokoudine
b18d638000
More tooltips for tools options
...
Added previously missing tooltips for transformation tools, Flip tool,
text tool and Bucket Fill tool.
2011-04-21 15:28:05 +04:00