[gedit] Use proper function for retrieving 'state' property on window object ( flags instead of enum )



commit 8169570aac438d5215a98528312810acfb6235ef
Author: Sebastien Lafargue <slaf66 gmail com>
Date:   Tue Jan 7 21:21:25 2014 +0100

    Use proper function for retrieving 'state' property on window object ( flags instead of enum )
    
    https://bugzilla.gnome.org/show_bug.cgi?id=721730

 gedit/gedit-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index e5309cf..82bde2d 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -110,8 +110,8 @@ gedit_window_get_property (GObject    *object,
        switch (prop_id)
        {
                case PROP_STATE:
-                       g_value_set_enum (value,
-                                         gedit_window_get_state (window));
+                       g_value_set_flags (value,
+                                          gedit_window_get_state (window));
                        break;
                default:
                        G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);


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