[gtk+] GdkMonitor: Fix refresh-rate property



commit 8dd8c4a9dedc92c93b512543f44942cf849c840e
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon May 2 12:40:24 2016 -0400

    GdkMonitor: Fix refresh-rate property
    
    We were using g_value_set_boolean for an integer property.

 gdk/gdkmonitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkmonitor.c b/gdk/gdkmonitor.c
index f727634..58c238d 100644
--- a/gdk/gdkmonitor.c
+++ b/gdk/gdkmonitor.c
@@ -119,7 +119,7 @@ gdk_monitor_get_property (GObject    *object,
       break;
 
     case PROP_REFRESH_RATE:
-      g_value_set_boolean (value, monitor->refresh_rate);
+      g_value_set_int (value, monitor->refresh_rate);
       break;
 
     case PROP_SUBPIXEL_LAYOUT:


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