Change GimpImageWindow API to speak in shells, not displays

A widget container should keep around child widgets, not whatever
objects that just have widgets.
This commit is contained in:
Michael Natterer
2009-09-28 22:53:31 +02:00
parent bb8daa49a3
commit 35739c743c
10 changed files with 87 additions and 95 deletions

View File

@ -117,7 +117,7 @@ gimp_display_shell_set_show_menubar (GimpDisplayShell *shell,
g_object_set (options, "show-menubar", show, NULL);
if (gimp_image_window_get_active_display (window) == shell->display &&
if (gimp_image_window_get_active_shell (window) == shell &&
window->menubar)
{
if (show)
@ -153,7 +153,7 @@ gimp_display_shell_set_show_statusbar (GimpDisplayShell *shell,
g_object_set (options, "show-statusbar", show, NULL);
if (gimp_image_window_get_active_display (window) == shell->display)
if (gimp_image_window_get_active_shell (window) == shell)
{
gimp_statusbar_set_visible (GIMP_STATUSBAR (window->statusbar), show);
}
@ -613,7 +613,7 @@ appearance_set_action_active (GimpDisplayShell *shell,
GimpImageWindow *window = GIMP_IMAGE_WINDOW (toplevel);
GimpContext *context;
if (gimp_image_window_get_active_display (window) == shell->display)
if (gimp_image_window_get_active_shell (window) == shell)
{
GimpActionGroup *action_group;
@ -647,7 +647,7 @@ appearance_set_action_color (GimpDisplayShell *shell,
GimpImageWindow *window = GIMP_IMAGE_WINDOW (toplevel);
GimpContext *context;
if (gimp_image_window_get_active_display (window) == shell->display)
if (gimp_image_window_get_active_shell (window) == shell)
{
GimpActionGroup *action_group;