libgimpwidgets, app: add gdk_screen_get_monitor_workarea()

to the gimp3migration hack and use it where appropriate, so in the
gtk3-port branch windows will not overlap with docks, panels etc.
This commit is contained in:
Michael Natterer
2014-05-19 14:37:32 +02:00
parent 35f8355af4
commit bbf01ebabf
11 changed files with 32 additions and 11 deletions

View File

@ -1090,7 +1090,7 @@ gimp_image_window_new (Gimp *gimp,
GdkRectangle rect;
gchar geom[32];
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
gdk_screen_get_monitor_workarea (screen, monitor, &rect);
/* FIXME: image window placement
*
@ -1415,7 +1415,7 @@ gimp_image_window_shrink_wrap (GimpImageWindow *window,
monitor = gdk_screen_get_monitor_at_window (screen,
gtk_widget_get_window (widget));
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
gdk_screen_get_monitor_workarea (screen, monitor, &rect);
width = SCALEX (active_shell, gimp_image_get_width (image));
height = SCALEY (active_shell, gimp_image_get_height (image));