[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] GTK+ binding generator
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] GTK+ binding generator |
Date: |
Mon, 18 Oct 2010 19:18:16 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
On 10/18/2010 06:33 PM, Holger Hans Peter Freyther wrote:
> The problem is that... the function is called
>
> g_bus_something, so the awk script asssumes the Object is called GBus but in
> that case it is GDBus(Connection) or such...
Thanks for the help, try this:
--- a/packages/gtk/funcs.awk
+++ b/packages/gtk/funcs.awk
@@ -100,10 +100,12 @@ BEGIN {
ptr_type["#cObject"] = "#cObject"
# Fix asymmetry
- method_regexp =
"^g_param_values?_|^g_param_type_|^gtk_file_chooser_|^gdk_window_"
+ method_regexp =
"^g_bus_|^g_param_values?_|^g_param_type_|^gtk_file_chooser_|^gdk_window_"
+ prefix_class["g_bus_"] = "GDBusConnection"
prefix_class["g_param_value_"] = "GParamSpec"
prefix_class["g_param_values_"] = "GParamSpec"
prefix_class["g_param_type_"] = "GParamSpec"
+ self_class["g_bus_"] = "GDBusConnection"
self_class["g_param_value_"] = "GParamSpec"
self_class["g_param_values_"] = "GParamSpec"
self_class["g_param_type_"] = "GParamSpec"
Paolo