[gimp] Move updating the shell's appearance to the right window state event handler
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Move updating the shell's appearance to the right window state event handler
- Date: Tue, 29 Sep 2009 18:39:26 +0000 (UTC)
commit 8b5b36751ddf9000109979ca8022c35eb066937b
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 25 13:58:25 2009 +0200
Move updating the shell's appearance to the right window state event handler
The shell's handler is going to go away, so move this call to
the image window.
app/display/gimpdisplayshell.c | 2 --
app/display/gimpimagewindow.c | 3 +++
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 824930c..8d935cd 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -673,8 +673,6 @@ gimp_display_shell_window_state_event (GtkWidget *widget,
window = gtk_widget_get_toplevel (widget);
- gimp_display_shell_appearance_update (shell);
-
fullscreen = gimp_image_window_get_fullscreen (GIMP_IMAGE_WINDOW (window));
if (shell->display ==
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index 2cb7805..9836328 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -34,6 +34,7 @@
#include "gimpdisplay.h"
#include "gimpdisplay-foreach.h"
#include "gimpdisplayshell.h"
+#include "gimpdisplayshell-appearance.h"
#include "gimpdisplayshell-close.h"
#include "gimpimagewindow.h"
#include "gimpstatusbar.h"
@@ -366,6 +367,8 @@ gimp_image_window_window_state_event (GtkWidget *widget,
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (window->statusbar),
! fullscreen);
+ gimp_display_shell_appearance_update (GIMP_DISPLAY_SHELL (display->shell));
+
group = gimp_ui_manager_get_action_group (window->menubar_manager, "view");
gimp_action_group_set_action_active (group,
"view-fullscreen", fullscreen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]