[gimp] app: s/g_warning/g_printerr/ when GDK returns a bogus resolution
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: s/g_warning/g_printerr/ when GDK returns a bogus resolution
- Date: Sat, 3 May 2014 15:21:13 +0000 (UTC)
commit a07f2301bbdf44ef00fba738f2ba157cd3546e39
Author: Michael Natterer <mitch gimp org>
Date: Sat May 3 17:17:46 2014 +0200
app: s/g_warning/g_printerr/ when GDK returns a bogus resolution
This is not a programming error, so no g_warning() must be used.
app/widgets/gimpwidgets-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpwidgets-utils.c b/app/widgets/gimpwidgets-utils.c
index ceb0850..ad036d8 100644
--- a/app/widgets/gimpwidgets-utils.c
+++ b/app/widgets/gimpwidgets-utils.c
@@ -771,8 +771,8 @@ gimp_get_monitor_resolution (GdkScreen *screen,
if (x < GIMP_MIN_RESOLUTION || x > GIMP_MAX_RESOLUTION ||
y < GIMP_MIN_RESOLUTION || y > GIMP_MAX_RESOLUTION)
{
- g_warning ("GDK returned bogus values for the monitor resolution, "
- "using 96 dpi instead.");
+ g_printerr ("gimp_get_monitor_resolution(): GDK returned bogus "
+ "values for the monitor resolution, using 96 dpi instead.");
x = 96.0;
y = 96.0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]