[glib] gmain: fix g_main_context_check declaration



commit 4607bd377fce5e75466dbf95a01986b64c39a353
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Tue Nov 8 07:38:44 2016 +0530

    gmain: fix g_main_context_check declaration
    
    g_main_context_check is defined as a function returning gboolean.
    It should be declared as such.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774086

 glib/gmain.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/glib/gmain.h b/glib/gmain.h
index 1eaf9f7..e8cdeed 100644
--- a/glib/gmain.h
+++ b/glib/gmain.h
@@ -366,10 +366,10 @@ gint     g_main_context_query    (GMainContext *context,
                                   GPollFD      *fds,
                                   gint          n_fds);
 GLIB_AVAILABLE_IN_ALL
-gint     g_main_context_check    (GMainContext *context,
-                                  gint          max_priority,
-                                  GPollFD      *fds,
-                                  gint          n_fds);
+gboolean     g_main_context_check    (GMainContext *context,
+                                      gint          max_priority,
+                                      GPollFD      *fds,
+                                      gint          n_fds);
 GLIB_AVAILABLE_IN_ALL
 void     g_main_context_dispatch (GMainContext *context);
 


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