2762100885
Show the shell after it has been associated with its image window, not before
...
...so the image window's session management has a chance to set
the window's size.
2009-09-28 22:55:46 +02:00
cf14f1ce62
Go via the tolevel to get to the image window's statusbar
2009-09-28 22:55:45 +02:00
8b5a692099
Remove display_factory member from GimpDisplayShell
2009-09-28 22:55:45 +02:00
9c5e44c566
Move the window part of gimp_display_shell_fill() to GimpImageWindow
2009-09-28 22:55:45 +02:00
4cc8f8e6f8
Move the window part of gimp_display_shell_empty() to GimpImageWindow
2009-09-28 22:55:44 +02:00
c7fdac4894
gimp_display_set_image(): emit notify::image only if the image changed
2009-09-28 22:55:44 +02:00
e5d8067a87
Unref the menubar_manager in finalize()
2009-09-28 22:55:44 +02:00
8086bc8e68
Pass the display_factory to the image window
2009-09-28 22:55:43 +02:00
e9c7b47284
Add "display-factory" construct-only property of type GimpDialogFactory
2009-09-28 22:55:43 +02:00
e7e8759710
Move image window related functions together (menubar and statusbar)
2009-09-28 22:55:43 +02:00
5804e80ad0
Get rid of all image window FIXMEs
...
Replace duplicated ugly macro constructs by proper utility functions
that do the right thing wrt GimpImageWindow being the new toplevel.
2009-09-28 22:55:43 +02:00
ac254f293d
Don't use the menubar_manager to set the quickmask toggle's tooltip
2009-09-28 22:55:42 +02:00
88ee13db56
Go via the toplevel to get to the statusbar for setting coords
...
Only a visible shell can produce cursor coordinates, so no need
to check for the image window's active display.
2009-09-28 22:55:42 +02:00
7e8a767e88
Add notify callback for GimpDisplay's "image" property
...
Will be used to do NIW things later.
2009-09-28 22:55:41 +02:00
fc75f38c03
Make gimp_statusbar_new() a void function and set a shell dynamically
2009-09-28 22:55:41 +02:00
82aa4084ab
Add gimp_statusbar_set_shell()
...
Reconnect signals when a new shell is set; reorganize internal code to
not set up permanent connections to one specific shell.
2009-09-28 22:55:41 +02:00
571cdd47ed
Set the window role and "resizable" on GimpImageWindow, not on the shell
2009-09-28 22:55:40 +02:00
a9b617235f
Make the scale dialog transient to the shell's toplevel
2009-09-28 22:55:40 +02:00
1bbcd8f7b5
Add "icon" property to GimpDisplayShell
...
Set it instead of setting the window icon and connect GimpImageWindow
to the notification.
2009-09-28 22:55:40 +02:00
660c333b55
Add "title" and "status" properties to GimpSisplayShell
...
Set the properties when updating title and status. In GimpImageWindow,
connect to notifications of the properties to update window title and
statusbar.
2009-09-28 22:55:39 +02:00
5112bc497d
Remove gimp_display_shell_title() because it was completely empty
2009-09-28 22:55:39 +02:00
3547a25390
Add a GimpDisplayShell::scaled() handler to GimpImageWindow
...
...which is connected to the window's active display. Remove updating
the window's menubar_manager from GimpDisplayShell's scaled()
impl. Had to hack around a bit with the new API to set the window's
active display because they are still the same widget.
2009-09-28 22:55:39 +02:00
a82169ee13
Keep around an "active_display" member in GimpImageWindow
...
And add gimp_image_window_set_active_display(). Call the new function
when creating a shell. Will all be done by the means of a GimpContext
later, but is a step to get rid of FIXME hacks.
2009-09-28 22:55:39 +02:00
03fcc99bbf
Move the GtkWidget::style_set() handler to GimpImageWindow
...
...and remove it from GimpDisplayShell completely.
2009-09-28 22:55:38 +02:00
10b98034d4
Move the statusbar to GimpImageWindow
...
As with the menubar, port some code properly, and add some
horrible /* FIXME image window */ hacks to make it work.
2009-09-28 22:55:38 +02:00
6793d68769
Move the menubar and the menubar_manager to GimpImageWindow
...
Also move some of their related code and update other code to
go via gtk_widget_get_toplevel(), but also add some horrid temp
/* FIXME image window */ hacks.
2009-09-28 22:55:38 +02:00
44f9fcbf6f
Move the rc style string for the fullscreen menubar to GimpImageWindow
2009-09-28 22:55:37 +02:00
1823494122
Keep the main_vbox around in the GimpImageWindow struct (temp hack)
2009-09-28 22:55:37 +02:00
639c427429
Use gtk_widget_get_toplevel() to get to a display's "iconified" state
...
Don't assume that shell->window is the toplevel GdkWindow, go thorugh
gtk_widget_get_toplevel() instead.
2009-09-28 22:55:37 +02:00
90ef404d98
Move more window managing code to GimpImageWindow
...
Move the code that (de)iconifies the docks together with an empty
image window from GimpDisplayShell to GimpImageWindow.
2009-09-28 22:55:37 +02:00
be93e6564a
Move the fullscreen API from GimpDisplayShell to GimpImageWindow
...
Also remove GimpDisplayShell's "window_state" member. Use
gtk_widget_get_toplvel() to get to the GimpImageWindow when we need a
display shell's fullscreen state.
2009-09-28 22:55:37 +02:00
fb046b097d
Add GtkWidget::window_state_event() implementation to GimpImageWindow
...
Keep an own window_state member around and update it accordingly.
Chain up in GimpDisplayShell's window_state_event() impl.
2009-09-28 22:55:36 +02:00
fcf09eea62
Add gimp_image_window_get_active_display()
...
Should probably be refactored into something involving a GimpContext,
but it's good enough as intermediate step.
2009-09-28 22:55:35 +02:00
dc436b6f86
Add menubar_manager member and "menu-factory" construct-only property
...
Create the menubar_manager when the construct property is set, assert
for its presence in constructor(). Pass the newly required construct
property to g_object_new() in gimp_display_shell_new().
2009-09-28 22:55:35 +02:00
aad8fbad3e
Derive GimpDisplayShell from GimpImageWindow
...
This is just a refactoring step, later the image window will have one
or many display shells.
2009-09-28 22:55:35 +02:00
b83a58b64e
Add new toplevel window class GimpImageWindow
...
This one will be the toplevel where GimpDisplayShells live in
once they are no toplevels any longer.
2009-09-28 22:55:35 +02:00
8bfcd14f9a
app: Add GimpSessionInfo getters and setters
2009-09-20 14:51:03 +02:00
82c48eeb9e
Indentation fix
2009-09-19 15:09:56 +02:00
b77cbdf3a1
More tool event log output and some minor whitespace cleanup
2009-09-19 15:09:55 +02:00
13ac22d800
Add %T which expends to the active drawable's type
...
This is not really generally useful, but I needed it for debugging and
it doesn't hurt.
2009-09-08 19:46:19 +02:00
9e18f771c4
Replace "Group Layer" by "Layer Group" in all user visible strings
2009-09-03 14:57:18 +02:00
a3558e3cb8
Remove GIMP_OBJECT() casts when calling gimp_object_get_name()
2009-08-31 22:47:18 +02:00
3915601544
Remove gimp_image_layer_boundary()
...
Having a function that only abstracts whether there is an active
layer or not is pretty useless. This also doesn't make the code in
selection_generate_segs() more complex but rather more obvious.
2009-08-31 20:57:52 +02:00
44be1b5d7b
Various small cleanups (no code changes)
2009-08-31 20:42:02 +02:00
064448cb50
Bug 563770 - Layer border visibility don't work with masks
...
(gimp_display_shell_selection_control): don't draw the layer boundary
if it is hidden.
2009-08-31 19:25:25 +02:00
27d036b75f
Render a layer group's boundary in a different color
...
This is probably not sufficient, but better than nothing.
2009-08-29 21:26:46 +02:00
02903d6970
Use gimp_item_is_content_locked() instead of gimp_item_get_lock_content()
...
Use the new API whenever we want to determine the item's effective
lock state (whether we can write to the item's content or not). Use
gimp_item_get_lock_content() only in code that actually deals with
*this* item's locked state, which is only the PDB wrappers and GUI to
modify the flag on the item itself.
2009-08-29 15:27:04 +02:00
957cf2cfa9
app: Always use gimp_object_get_name()
...
Begin to consider GimpObject::name as private and always use
gimp_object_get_name(). Change gimp_object_get_name() to take an
untyped pointer so we don't have to do so awfully many casts. There is
a runtime check for the type inside the function anyway.
2009-08-29 12:41:29 +02:00
35e67dae43
Don't allow dropping colors and patterns and don't allow pasting to groups
2009-08-29 12:27:57 +02:00
b277454760
Don't allow to drop stuff to locked drawables
2009-08-21 13:50:07 +02:00