Gtk.Widget.Set_Connect_Func_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

Gtk_Builder_Connect_Func

type Gtk_Builder_Connect_Func is access procedure
  (Builder        : not null access Gtk.Builder.Gtk_Builder_Record'Class;
   Object         : not null access Glib.Object.GObject_Record'Class;
   Signal_Name    : UTF8_String;
   Handler_Name   : UTF8_String;
   Connect_Object : access Glib.Object.GObject_Record'Class;
   Flags          : Glib.G_Connect_Flags;
   User_Data      : User_Data_Type);

This is the signature of a function used to connect signals. It is used by the Gtk.Builder.Connect_Signals and Gtk.Builder.Connect_Signals_Full methods. It is mainly intended for interpreted language bindings, but could be useful where the programmer wants more control over the signal connection process. Note that this function can only be called once, subsequent calls will do nothing. Since: gtk+ 2.12

Parameters
Builder

a Gtk.Builder.Gtk_Builder

Object

object to connect a signal to

Signal_Name

name of the signal

Handler_Name

name of the handler

Connect_Object

a Glib.Object.GObject, if non-null, use g_signal_connect_object

Flags

Glib.G_Connect_Flags to use

User_Data

user data

Set_Connect_Func

procedure Set_Connect_Func
   (Self                 : Glib.Object.GObject_Class;
    Connect_Func         : Gtk_Builder_Connect_Func;
    Connect_Data         : User_Data_Type;
    Connect_Data_Destroy : Glib.G_Destroy_Notify_Address)

For use in language bindings, this will override the default Gtk_Builder_Connect_Func to be used when parsing GtkBuilder XML from this class's template data. Note that this must be called from a composite widget classes class initializer after calling gtk_widget_class_set_template. Since: gtk+ 3.10

Parameters
Self
Connect_Func

The Gtk_Builder_Connect_Func to use when connecting signals in the class template

Connect_Data

The data to pass to Connect_Func

Connect_Data_Destroy

The Glib.G_Destroy_Notify_Address to free Connect_Data, this will only be used at class finalization time, when no classes of type Widget_Type are in use anymore.

User_Data_Type

type User_Data_Type (<>) is private;