From 990d891fcd168879c5aba757c8aeb6c5e02d99b2 Mon Sep 17 00:00:00 2001 From: Jim Nelson Date: Thu, 24 Feb 2011 13:05:39 +0100 Subject: [PATCH] gtk+-2.0, gtk+-3.0: Fix GtkToggleActionEntry binding Fixes bug 643152. --- vapi/gtk+-2.0.vapi | 2 +- vapi/gtk+-3.0.vapi | 2 +- vapi/packages/gtk+-2.0/gtk+-2.0.metadata | 2 +- vapi/packages/gtk+-3.0/gtk+-3.0.metadata | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vapi/gtk+-2.0.vapi b/vapi/gtk+-2.0.vapi index 74e58670..72dbf83a 100644 --- a/vapi/gtk+-2.0.vapi +++ b/vapi/gtk+-2.0.vapi @@ -6420,7 +6420,7 @@ namespace Gtk { public weak string accelerator; public weak string tooltip; [CCode (type = "GCallback")] - public Gtk.ActionCallback callback; + public weak Gtk.ActionCallback callback; public bool is_active; } [CCode (type_id = "GTK_TYPE_TREE_ITER", cheader_filename = "gtk/gtk.h")] diff --git a/vapi/gtk+-3.0.vapi b/vapi/gtk+-3.0.vapi index fa1ffbdb..3a29a00d 100644 --- a/vapi/gtk+-3.0.vapi +++ b/vapi/gtk+-3.0.vapi @@ -6271,7 +6271,7 @@ namespace Gtk { public weak string accelerator; public weak string tooltip; [CCode (type = "GCallback")] - public Gtk.ActionCallback callback; + public weak Gtk.ActionCallback callback; public bool is_active; } [CCode (type_id = "GTK_TYPE_TREE_ITER", cheader_filename = "gtk/gtk.h")] diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata index fb3a650a..ad076ce4 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.metadata +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.metadata @@ -608,7 +608,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" +GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" 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.metadata b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata index 23d00b4c..034b2f5a 100644 --- a/vapi/packages/gtk+-3.0/gtk+-3.0.metadata +++ b/vapi/packages/gtk+-3.0/gtk+-3.0.metadata @@ -620,7 +620,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" +GtkToggleActionEntry.callback type_name="ActionCallback" ctype="GCallback" value_owned="0" GtkToggleButton::toggled has_emitter="1" GtkToolbar.GtkTooltips hidden="1" GtkToolbar.gpointer hidden="1" -- 2.11.4.GIT