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

@@ -128,6 +128,7 @@ g_value_get_flags
g_io_channel_get_type
g_io_condition_get_type
g_source_set_closure
g_source_set_dummy_callback
#endif
#endif