[vala] gtk+-2.0, gtk+-3.0: Fix ActionCallback bindings and usage in fields
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] gtk+-2.0, gtk+-3.0: Fix ActionCallback bindings and usage in fields
- Date: Sun, 26 Jun 2011 17:10:40 +0000 (UTC)
commit cca64f8124ac359aadaae33b2d4a6cfc06b8bae7
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jun 26 18:57:22 2011 +0200
gtk+-2.0, gtk+-3.0: Fix ActionCallback bindings and usage in fields
Fix the regression introduced by commit 227214f0d92b06e029961.
Fixes bug 653046.
vapi/gtk+-2.0.vapi | 6 +++---
vapi/gtk+-3.0.vapi | 6 +++---
vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala | 1 -
vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 4 ++--
vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala | 1 -
vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 4 ++--
6 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi
index c7e7edd..3f77270 100644
--- a/vapi/gtk+-2.0.vapi
+++ b/vapi/gtk+-2.0.vapi
@@ -6249,7 +6249,7 @@ namespace Gtk {
public weak string label;
public weak string accelerator;
public weak string tooltip;
- [CCode (type = "GCallback")]
+ [CCode (type = "GCallback", delegate_target = false)]
public weak Gtk.ActionCallback callback;
}
[CCode (type_id = "GTK_TYPE_ALLOCATION", cheader_filename = "gtk/gtk.h")]
@@ -6424,7 +6424,7 @@ namespace Gtk {
public weak string label;
public weak string accelerator;
public weak string tooltip;
- [CCode (type = "GCallback")]
+ [CCode (type = "GCallback", delegate_target = false)]
public weak Gtk.ActionCallback callback;
public bool is_active;
}
@@ -7405,7 +7405,7 @@ namespace Gtk {
public delegate bool AccelGroupFindFunc (Gtk.AccelKey key, GLib.Closure closure);
[CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
public delegate void AccelMapForeach (void* data, string accel_path, uint accel_key, Gdk.ModifierType accel_mods, bool changed);
- [CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
+ [CCode (cheader_filename = "gtk/gtk.h")]
public delegate void ActionCallback (Gtk.Action action);
[CCode (cheader_filename = "gtk/gtk.h")]
public delegate int AssistantPageFunc (int current_page);
diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi
index 87edc2d..fded0f7 100644
--- a/vapi/gtk+-3.0.vapi
+++ b/vapi/gtk+-3.0.vapi
@@ -6057,7 +6057,7 @@ namespace Gtk {
public weak string label;
public weak string accelerator;
public weak string tooltip;
- [CCode (type = "GCallback")]
+ [CCode (type = "GCallback", delegate_target = false)]
public weak Gtk.ActionCallback callback;
}
[CCode (type_id = "GTK_TYPE_ALLOCATION", cheader_filename = "gtk/gtk.h")]
@@ -6245,7 +6245,7 @@ namespace Gtk {
public weak string label;
public weak string accelerator;
public weak string tooltip;
- [CCode (type = "GCallback")]
+ [CCode (type = "GCallback", delegate_target = false)]
public weak Gtk.ActionCallback callback;
public bool is_active;
}
@@ -7077,7 +7077,7 @@ namespace Gtk {
public delegate bool AccelGroupFindFunc (Gtk.AccelKey key, GLib.Closure closure);
[CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
public delegate void AccelMapForeach (void* data, string accel_path, uint accel_key, Gdk.ModifierType accel_mods, bool changed);
- [CCode (cheader_filename = "gtk/gtk.h", has_target = false)]
+ [CCode (cheader_filename = "gtk/gtk.h")]
public delegate void ActionCallback (Gtk.Action action);
[CCode (cheader_filename = "gtk/gtk.h")]
public delegate int AssistantPageFunc (int current_page);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala b/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
index 111cbb6..cf494bc 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala
@@ -106,7 +106,6 @@ namespace Gtk {
[CCode (has_target = false)]
public delegate void CallbackMarshal (Object object, void* data, Arg[] args);
- [CCode (has_target = false)]
public delegate void ActionCallback (Action action);
public delegate void MenuPositionFunc (Gtk.Menu menu, out int x, out int y, out bool push_in);
diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
index 541b3fa..396bb8a 100644
--- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
+++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata
@@ -26,7 +26,7 @@ gtk_action_new.tooltip nullable="1"
gtk_action_new.stock_id nullable="1"
GtkAction::activate has_emitter="1"
GtkActionEntry is_value_type="1"
-GtkActionEntry.callback type_name="ActionCallback" ctype="GCallback" value_owned="0"
+GtkActionEntry.callback type_name="ActionCallback" ctype="GCallback" no_delegate_target="1" value_owned="0"
gtk_action_group_add_action_with_accel.accelerator nullable="1"
gtk_action_group_add_actions.user_data hidden="0"
gtk_action_group_add_actions_full.user_data hidden="0"
@@ -650,7 +650,7 @@ gtk_toggle_action_new.tooltip nullable="1"
gtk_toggle_action_new.stock_id nullable="1"
GtkToggleAction::toggled has_emitter="1"
GtkToggleActionEntry is_value_type="1"
-GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" value_owned="0"
+GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" no_delegate_target="1" value_owned="0"
GtkToggleButton::toggled has_emitter="1"
GtkToolbar.GtkTooltips hidden="1"
GtkToolbar.gpointer hidden="1"
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala b/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
index f17a93d..8ebe53b 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0-custom.vala
@@ -68,7 +68,6 @@ namespace Gtk {
public GLib.SList<GLib.File> get_files ();
}
- [CCode (has_target = false)]
public delegate void ActionCallback (Action action);
public delegate void MenuPositionFunc (Gtk.Menu menu, out int x, out int y, out bool push_in);
diff --git a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
index ce18e85..1bfcf9c 100644
--- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
+++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata
@@ -26,7 +26,7 @@ gtk_action_new.tooltip nullable="1"
gtk_action_new.stock_id nullable="1"
GtkAction::activate has_emitter="1"
GtkActionEntry is_value_type="1"
-GtkActionEntry.callback type_name="ActionCallback" ctype="GCallback" value_owned="0"
+GtkActionEntry.callback type_name="ActionCallback" ctype="GCallback" no_delegate_target="1" value_owned="0"
gtk_action_group_add_action_with_accel.accelerator nullable="1"
gtk_action_group_add_actions.user_data hidden="0"
gtk_action_group_add_actions_full.user_data hidden="0"
@@ -725,7 +725,7 @@ gtk_toggle_action_new.tooltip nullable="1"
gtk_toggle_action_new.stock_id nullable="1"
GtkToggleAction::toggled has_emitter="1"
GtkToggleActionEntry is_value_type="1"
-GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" value_owned="0"
+GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" no_delegate_target="1" value_owned="0"
GtkToggleButton::toggled has_emitter="1"
GtkToolbar.GtkTooltips hidden="1"
GtkToolbar.gpointer hidden="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]