Add g_source_set_dummy_callback()

Use g_source_set_closure() and g_close_set_meta_marshal() to allow
setting a do-nothing callback on any source.

https://bugzilla.gnome.org/show_bug.cgi?id=634239
This commit is contained in:
Dan Winship
2010-11-07 11:49:40 -05:00
parent 73d823ac1e
commit e910205557
4 changed files with 44 additions and 3 deletions

View File

@@ -27,8 +27,10 @@
G_BEGIN_DECLS
void g_source_set_closure (GSource *source,
GClosure *closure);
void g_source_set_closure (GSource *source,
GClosure *closure);
void g_source_set_dummy_callback (GSource *source);
GType g_io_channel_get_type (void);
GType g_io_condition_get_type (void);