[gimp] app: move monitor xres, yres back to their local scope in prefs
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: move monitor xres, yres back to their local scope in prefs
- Date: Thu, 23 Mar 2017 15:05:30 +0000 (UTC)
commit b3354ba87054c0a0077fc2c7c4a1c3b1ed424389
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 23 16:00:24 2017 +0100
app: move monitor xres, yres back to their local scope in prefs
app/dialogs/preferences-dialog.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index e496be9..55770f6 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -978,8 +978,6 @@ prefs_dialog_new (Gimp *gimp,
GtkWidget *calibrate_button;
GSList *group;
GtkWidget *editor;
- gdouble xres;
- gdouble yres;
gint i;
GObject *object;
@@ -993,10 +991,6 @@ prefs_dialog_new (Gimp *gimp,
core_config = GIMP_CORE_CONFIG (config);
display_config = GIMP_DISPLAY_CONFIG (config);
- gimp_get_monitor_resolution (gdk_screen_get_default (), /* FIXME monitor */
- 0, /* FIXME monitor */
- &xres, &yres);
-
dialog = gimp_dialog_new (_("Preferences"), "gimp-preferences",
NULL, 0,
prefs_help_func,
@@ -2300,8 +2294,14 @@ prefs_dialog_new (Gimp *gimp,
group = NULL;
{
+ gdouble xres;
+ gdouble yres;
gchar *str;
+ gimp_get_monitor_resolution (gdk_screen_get_default (), /* FIXME monitor */
+ 0, /* FIXME monitor */
+ &xres, &yres);
+
str = g_strdup_printf (_("_Detect automatically (currently %d × %d ppi)"),
ROUND (xres), ROUND (yres));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]