mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
5c048e0108
commit
8b5b36751d
|
@ -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 ==
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue