[gedit] OpenDocumentSelector: suppress type-limits warning



commit fb91b9cc36d51ef9f23c2e1368235a49dd34304c
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Aug 30 10:48:14 2015 +0200

    OpenDocumentSelector: suppress type-limits warning
    
    We also simplify the condition and
    use GSource macros return values

 gedit/gedit-open-document-selector.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gedit/gedit-open-document-selector.c b/gedit/gedit-open-document-selector.c
index 7a800a8..2453a7d 100644
--- a/gedit/gedit-open-document-selector.c
+++ b/gedit/gedit-open-document-selector.c
@@ -66,8 +66,8 @@ struct _GeditOpenDocumentSelector
        GList *current_docs_items;
        GList *all_items;
 
-       gint populate_liststore_is_idle : 1;
-       gint populate_scheduled : 1;
+       guint populate_liststore_is_idle : 1;
+       guint populate_scheduled : 1;
 };
 
 typedef enum
@@ -559,14 +559,14 @@ real_populate_liststore (gpointer data)
                                  selector, DEBUG_SELECTOR_TIMER_GET););
        DEBUG_SELECTOR_TIMER_DESTROY
 
-       if (selector->populate_scheduled == TRUE)
+       if (selector->populate_scheduled)
        {
                selector->populate_scheduled = FALSE;
-               return TRUE;
+               return G_SOURCE_CONTINUE;
        }
        else
        {
-               return FALSE;
+               return G_SOURCE_REMOVE;
        }
 }
 


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