[gimp] app: update GimpDisplayShell's monitor resolution when changing monitors



commit 4202d293475921e11e0a61554f26d4ace3d6c006
Author: Michael Natterer <mitch gimp org>
Date:   Sat May 3 17:16:54 2014 +0200

    app: update GimpDisplayShell's monitor resolution when changing monitors
    
    so the image size adapts when dot-for-dot is off.

 app/display/gimpimagewindow.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpimagewindow.c b/app/display/gimpimagewindow.c
index cc02a3f..5134d87 100644
--- a/app/display/gimpimagewindow.c
+++ b/app/display/gimpimagewindow.c
@@ -765,6 +765,15 @@ gimp_image_window_monitor_changed (GimpWindow *window,
 
   for (list = private->shells; list; list = g_list_next (list))
     {
+      /*  hack, this should live here, and screen_changed call
+       *  monitor_changed
+       */
+      g_signal_emit_by_name (list->data, "screen-changed",
+                             gtk_widget_get_screen (list->data));
+
+      /*  make it fetch the new monitor's resolution  */
+      gimp_display_shell_scale_changed (GIMP_DISPLAY_SHELL (list->data));
+
       /*  make it fetch the right monitor profile  */
       gimp_color_managed_profile_changed (GIMP_COLOR_MANAGED (list->data));
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]