mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
bgo#622371 - Add gtk_accessible_set_widget() - the widget field was GSEAL()ed.
https://bugzilla.gnome.org/show_bug.cgi?id=622371
This commit is contained in:
parent
6922490fa5
commit
49943be22b
@ -47,6 +47,25 @@ gtk_accessible_class_init (GtkAccessibleClass *klass)
|
||||
klass->connect_widget_destroyed = gtk_accessible_real_connect_widget_destroyed;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accessible_set_widget:
|
||||
* @accessible: a #GtkAccessible
|
||||
* @widget: a #GtkWidget
|
||||
*
|
||||
* Sets the #GtkWidget corresponding to the #GtkAccessible.
|
||||
*
|
||||
* Since: 2.22
|
||||
**/
|
||||
void
|
||||
gtk_accessible_set_widget (GtkAccessible *accessible,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||
|
||||
accessible->widget = widget;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_accessible_get_widget:
|
||||
* @accessible: a #GtkAccessible
|
||||
|
@ -68,6 +68,8 @@ struct _GtkAccessibleClass
|
||||
|
||||
GType gtk_accessible_get_type (void) G_GNUC_CONST;
|
||||
|
||||
void gtk_accessible_set_widget (GtkAccessible *accessible,
|
||||
GtkWidget *widget);
|
||||
GtkWidget* gtk_accessible_get_widget (GtkAccessible *accessible);
|
||||
void gtk_accessible_connect_widget_destroyed (GtkAccessible *accessible);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user