app: rename gimp_get_screen_resolution() to get_monitor_resolution()

Add a "monitor" parameter and return something reasonable, instead
of a useless resolution average of all the screen's monitors. Also
require a screen to be passed now.
This commit is contained in:
Michael Natterer
2014-05-02 23:56:16 +02:00
parent a25defa39e
commit 7cdede6dec
6 changed files with 43 additions and 36 deletions

View File

@ -952,9 +952,10 @@ gimp_display_shell_monitor_res_notify_handler (GObject *config,
{
if (GIMP_DISPLAY_CONFIG (config)->monitor_res_from_gdk)
{
gimp_get_screen_resolution (gtk_widget_get_screen (GTK_WIDGET (shell)),
&shell->monitor_xres,
&shell->monitor_yres);
gimp_get_monitor_resolution (gtk_widget_get_screen (GTK_WIDGET (shell)),
gimp_widget_get_monitor (GTK_WIDGET (shell)),
&shell->monitor_xres,
&shell->monitor_yres);
}
else
{