mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Stop using glib-genmarshal at build time
To help cross compilation, don't use glib-genmarshal in our build. This is easy now that we have g_cclosure_marshal_generic(). In gobject/, add gmarshal.[ch] to git (making the existing entry points stubs). In gio/, simply switch to using g_cclosure_marshal_generic(). https://bugzilla.gnome.org/show_bug.cgi?id=652168
This commit is contained in:
@@ -30,7 +30,6 @@
|
||||
#include "gdbuserror.h"
|
||||
#include "gdbusprivate.h"
|
||||
#include "gdbusconnection.h"
|
||||
#include "gio-marshal.h"
|
||||
|
||||
#include "glibintl.h"
|
||||
|
||||
@@ -668,7 +667,7 @@ watch_name_data_new (GClosure *name_appeared_closure,
|
||||
data->name_appeared_closure = g_closure_ref (name_appeared_closure);
|
||||
g_closure_sink (name_appeared_closure);
|
||||
if (G_CLOSURE_NEEDS_MARSHAL (name_appeared_closure))
|
||||
g_closure_set_marshal (name_appeared_closure, _gio_marshal_VOID__STRING_STRING);
|
||||
g_closure_set_marshal (name_appeared_closure, g_cclosure_marshal_generic);
|
||||
}
|
||||
|
||||
if (name_vanished_closure != NULL)
|
||||
@@ -676,7 +675,7 @@ watch_name_data_new (GClosure *name_appeared_closure,
|
||||
data->name_vanished_closure = g_closure_ref (name_vanished_closure);
|
||||
g_closure_sink (name_vanished_closure);
|
||||
if (G_CLOSURE_NEEDS_MARSHAL (name_vanished_closure))
|
||||
g_closure_set_marshal (name_vanished_closure, _gio_marshal_VOID__STRING);
|
||||
g_closure_set_marshal (name_vanished_closure, g_cclosure_marshal_generic);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Reference in New Issue
Block a user