Martin Nordholts
90d7ffde1a
app: Make all GimpDialogFactory members private
...
Add necessary trivial API that allows us to make remaining
GimpDialogFactory instance members private, and make them private.
2009-12-20 20:21:26 +01:00
Martin Nordholts
8699511bbd
app: global_dock_window_factory -> global_dock_factory
...
With GimpDock not being a toplevel any longer, it makes more sense to
name global_dock_factory global_dock_window_factory. Do that.
2009-12-20 14:41:02 +01:00
Martin Nordholts
a5ef19fb59
app: Cleanup actions/windows-commands.c from last commit
...
I forgot to rename a function and initialie a variable.
2009-12-19 09:29:35 +01:00
Martin Nordholts
2b7f8f7a7e
app: Inline gimp_dialog_factory_show_toolbox()
...
Merge gimp_dialog_factory_show_toolbox() into the only caller
windows_show_toolbox() to get rid of one non-generic GimpDialogFactory
function.
2009-12-19 09:23:47 +01:00
Martin Nordholts
30bb7b5891
Bug 604796 - Restore keyboard method to acquire screenshot
...
Move the mnemonic 't' in the File menu from 'Create Template...' to
'Create'.
2009-12-18 18:33:51 +01:00
Michael Natterer
335597ce7d
Bug 604508 - gimp-layer-new-from-visible should work from updated projection
...
Call gimp_pickable_flush(projection) before creating a new layer from it.
2009-12-14 14:01:37 +01:00
Martin Nordholts
482f31cd3f
app: Add GimpMenuFactoryPrivate
...
Add GimpMenuFactoryPrivate. Note that we don't introduce a Gimp-getter
since the menu factory is globally accesible and we want to have as
much control as possible in who can get the Gimp instance.
2009-12-06 10:23:05 +01:00
Martin Nordholts
1bf84999e4
Move the Image Selection Menu to GimpDockWindow
...
Move the Image Selection Menu from GimpMenuDock to
GimpDockWindow. That is, if a dock window contains many docks then
they will share the same Image Selection Menu.
To do this we need to move around quite a bit of code. Move the
"context", "dialog-factory" and "ui-manager" properties from GimpDock
to GimpToolbox, GimpMenuDock doesn't need it any longer. Turn the
GimpDock getters for these properties into wrappers that go to the
GimpDockWindow properties. In some places, most notably GimpToolbox
construction, we use the GimpToolbox values of these properties, but
most of the time it works fine to just use the GimpDockWindow
properties. GimpDock::setup() and set/get_aux_info() have also been
moved to GimpDockWindow since the only aux info for docks was for the
image selection menu.
Also, we don't bother porting gimp_menu_dock_destroy() to
GimpDockWindow, but we leave the code around. If this is a problem, it
will show.
2009-12-05 21:21:24 +01:00
Martin Nordholts
df44751292
app: Add GimpMenuDockPrivate
...
Add GimpMenuDockPrivate which requires two new trivial getters.
2009-12-05 09:54:40 +01:00
Martin Nordholts
95bab5da5f
app: gimp_dialog_factory_dock_new() -> _dock_with_window_new()
2009-12-01 21:42:24 +01:00
Michael Natterer
938de3ac01
Simplify if()s a bit in dockable_toggle_view_cmd_callback()
2009-11-19 14:44:56 +01:00
Michael Natterer
e466da8616
Plug memleak found by Nelson A. de Oliveira
2009-11-19 14:40:25 +01:00
Michael Natterer
22767ca7b8
Seal GimpData completely and add the missing accessors
2009-10-31 18:48:38 +01:00
Michael Natterer
7abcfbf237
Add private struct to GimpData
...
And start sealing by moving "filename" there. Add
gimp_data_get_filename() and use it everywhere.
2009-10-31 15:24:57 +01:00
Martin Nordholts
75ee76ecb6
app: Handle gimp_image_window_get_active_shell() returning NULL
...
When rearranging the UI it is pretty common that
gimp_image_window_get_active_shell() returns NULL so check for that.
2009-10-25 20:03:51 +01:00
Michael Natterer
52dd01fdef
Change user-visible strings from "Dynamics" to "Paint Dynamics"
...
Because "Dynamics" doesn't mean anything by itself. Didn't add the
"Paint" where the context is clear, like in the dynamics dialog
context menu.
2009-10-18 13:03:40 +02:00
Alexia Death
210a4b5044
Merge resolution
2009-10-17 21:42:02 +03:00
Michael Natterer
171b449132
Build with GSEAL_ENABLE
2009-10-17 18:59:40 +02:00
Michael Natterer
bbf3c17601
Use the right stock_id for "dialogs-dynamics"
2009-10-13 23:33:27 +02:00
Michael Natterer
bc271a3906
Fix typo in menu label
2009-10-11 16:00:14 +02:00
Michael Natterer
d543de8663
Don't make the "dynamics-edit" action permanently insensitive
2009-10-11 15:32:47 +02:00
Michael Natterer
1fcfa9fe58
Reorder includes
2009-10-11 00:21:21 +02:00
Alexia Death
276a603de7
Tiny fix for a missing include
2009-10-11 01:16:51 +03:00
Michael Natterer
af8b47efe9
Some reordering and cleanup
2009-10-11 00:00:45 +02:00
Alexia Death
cf3c9b230a
some missing files
2009-10-10 11:23:40 +03:00
Alexia Death
11d6219776
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-10 10:23:25 +03:00
Michael Natterer
83c092bfe2
Use gtk_widget_get_window() instead of widget->window
2009-10-09 21:19:07 +02:00
Michael Natterer
efcc28a018
Use GtkAdjustment's accessors
2009-10-09 21:19:06 +02:00
Michael Natterer
3e500a4f7f
Use gtk_container_get_children() instead of menushell->children
2009-10-09 21:19:06 +02:00
Michael Natterer
87440be423
Use gtk_menu_item_get_submenu() instead of menuitem->submenu
2009-10-09 21:19:06 +02:00
Alexia Death
2eab9f2ca4
Merge fixes
2009-10-09 20:38:43 +03:00
Alexia Death
ac111be15d
Added dynamics list and some infrastructure. still ont 100% tho
2009-10-09 20:25:07 +03:00
Sven Neumann
8c221ebfe5
check that the action has a gimp pointer attached before using it
2009-10-09 00:33:27 +02:00
Alexia Death
88e7d5396d
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-07 19:42:04 +03:00
Michael Natterer
c5b856f16f
Use gimp_display_get_image() instead of display->image
2009-10-06 19:20:44 +02:00
Michael Natterer
23cd244c65
Make display->instance private, add an accessor and use it everywhere
2009-10-06 09:16:46 +02:00
Michael Natterer
d1ded0617f
More gimp_display_get_shell() instead of display->shell
2009-10-05 19:58:03 +02:00
Michael Natterer
8ba18309eb
Use display->gimp intead of display->image->gimp
2009-10-04 20:05:28 +02:00
Michael Natterer
ac98c2c234
Use gimp_display_get_shell() instead of directly accessing it
2009-10-04 19:56:39 +02:00
Michael Natterer
31a41c2b3d
Use gimp_display_shell_present() instead of gtk_window_present()
2009-10-04 19:27:58 +02:00
Michael Natterer
aa85917b1a
Raise the toplevel not the shell
2009-10-04 18:54:20 +02:00
Michael Natterer
dee0afed79
Move the statusbar back to GimpDisplayShell
...
Keeping it in GimpImageWindow was a bad idea because
- it wasted space
- it produced evil code because
- it conceptually didn't belong there
2009-10-04 15:33:03 +02:00
Alexia Death
7a2acf8811
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-04 11:41:30 +03:00
Martin Nordholts
2d1d2aae17
app: Handle dock windows without docks in action_data_get_foo()
2009-10-04 02:10:11 +02:00
Michael Natterer
f5f571bce5
Formatting cleanup
2009-10-03 13:53:40 +02:00
Michael Natterer
ac20b2db67
Alphabetic ordering, remove stuff from EXTRA_DIST
2009-10-03 13:44:41 +02:00
Alexia Death
155393491b
Merge commit 'origin/master' into soc-2009-dynamics
2009-10-03 14:12:53 +03:00
Martin Nordholts
e36c3ee9bd
app: Fix keyboard shortcuts not working when non-image-windows focused
...
Handle GIMP_IS_DOCK_WINDOW in action_data_get_foo(). This makes image
related keyboard shortcuts work again when e.g. a dock is the focused
window. Fix discovered by Michael Natterer.
2009-09-30 07:34:55 +02:00
Michael Natterer
1c430a2b19
Move all GimpImageWindow members to a private struct
...
Add accessor functions for publically available members and visibility
functions for menubar and statusbar.
2009-09-29 21:44:43 +02:00
Michael Natterer
253b8e2cbe
Use gimp_display_shell_get_window() instead of gtk_widget_get_toplevel()
...
The new function does the right thing, unlike get_toplevel() which
returns the shell itself if it is not in a window. Check the return
value of get_window() for being non-NULL.
2009-09-29 20:32:26 +02:00