fix the namespace again
This commit is contained in:
Родитель
d5f9ab69cd
Коммит
2cde445d1d
|
@ -223,10 +223,10 @@ class SignalConnector
|
|||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern void gtk_builder_connect_signals_full(IntPtr raw, GtkSharp.BuilderConnectFuncNative func, IntPtr user_data);
|
||||
static extern void gtk_builder_connect_signals_full(IntPtr raw, GtkBeansSharp.BuilderConnectFuncNative func, IntPtr user_data);
|
||||
|
||||
public void ConnectSignals() {
|
||||
GtkSharp.BuilderConnectFuncWrapper func_wrapper = new GtkSharp.BuilderConnectFuncWrapper (new BuilderConnectFunc (ConnectFunc));
|
||||
GtkBeansSharp.BuilderConnectFuncWrapper func_wrapper = new GtkBeansSharp.BuilderConnectFuncWrapper (new GtkBeans.BuilderConnectFunc (ConnectFunc));
|
||||
gtk_builder_connect_signals_full(builder.Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<attr path="/api/namespace" name="name">GtkBeans</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkBuilder']" name="name">Builder</attr>
|
||||
<attr path="/api/namespace/enum[@cname='GtkBuilderError']" name="name">BuilderError</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GtkBuilderConnectFunc']" name="name">BuilderConnectFunc</attr>
|
||||
</metadata>
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
|
||||
|
||||
-->
|
||||
<namespace name="Gtk" library="libgtk-win32-2.0-0.dll">
|
||||
<enum name="BuilderError" cname="GtkBuilderError" type="enum">
|
||||
<namespace name="GtkBeans" library="libgtk-win32-2.0-0.dll">
|
||||
<enum name="GtkBuilderError" cname="GtkBuilderError" type="enum">
|
||||
<member cname="GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION" name="InvalidTypeFunction" />
|
||||
<member cname="GTK_BUILDER_ERROR_UNHANDLED_TAG" name="UnhandledTag" />
|
||||
<member cname="GTK_BUILDER_ERROR_MISSING_ATTRIBUTE" name="MissingAttribute" />
|
||||
|
@ -17,7 +17,7 @@
|
|||
<member cname="GTK_BUILDER_ERROR_INVALID_VALUE" name="InvalidValue" />
|
||||
<member cname="GTK_BUILDER_ERROR_VERSION_MISMATCH" name="VersionMismatch" />
|
||||
</enum>
|
||||
<callback name="BuilderConnectFunc" cname="GtkBuilderConnectFunc">
|
||||
<callback name="GtkBuilderConnectFunc" cname="GtkBuilderConnectFunc">
|
||||
<return-type type="void" />
|
||||
<parameters>
|
||||
<parameter type="GtkBuilder*" name="builder" />
|
||||
|
@ -29,7 +29,7 @@
|
|||
<parameter type="gpointer" name="user_data" />
|
||||
</parameters>
|
||||
</callback>
|
||||
<object name="Builder" cname="GtkBuilder" parent="GObject">
|
||||
<object name="GtkBuilder" cname="GtkBuilder" parent="GObject">
|
||||
<field name="GSEAL" cname="GSEAL (priv)" type="GtkBuilderPrivate*" />
|
||||
<property name="TranslationDomain" cname="translation-domain" type="gchar*" readable="true" writeable="true" />
|
||||
<virtual_method name="GetTypeFromName" cname="get_type_from_name">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<gapi-parser-input>
|
||||
<api filename="../gtk-api.raw">
|
||||
<library name="libgtk-win32-2.0-0.dll">
|
||||
<namespace name="Gtk">
|
||||
<namespace name="GtkBeans">
|
||||
<file>gtk+-2.14.7/gtk/gtkbuilder.h</file>
|
||||
<file>gtk+-2.14.7/gtk/gtkbuilder.c</file>
|
||||
</namespace>
|
||||
|
|
Загрузка…
Ссылка в новой задаче