gsource: Make GSource->source_funcs const
authorRyan Lortie <desrt@desrt.ca>
Mon, 29 Oct 2012 15:31:46 +0000 (16:31 +0100)
committerRyan Lortie <desrt@desrt.ca>
Tue, 15 Jan 2013 19:08:01 +0000 (14:08 -0500)
This is the vtable pointer for the source which is usually held in
static storage.  For our internal sources it points at a vtable which
the user should really never be modifying.

Mark it const.

https://bugzilla.gnome.org/show_bug.cgi?id=686853

glib/gmain.h

index 90bc035..90ff11b 100644 (file)
@@ -156,7 +156,7 @@ struct _GSource
   gpointer callback_data;
   GSourceCallbackFuncs *callback_funcs;
 
-  GSourceFuncs *source_funcs;
+  const GSourceFuncs *source_funcs;
   guint ref_count;
 
   GMainContext *context;