Commit b3f14e09 authored by Johan Dahlin's avatar Johan Dahlin

Add gtk_size_group_get_widgets, fixes #326324. Also mark all fields of

    * gtk/gtk.symbols:
    * gtk/gtkeditable.h:
    * gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
    * gtk/gtksizegroup.h:
    (struct _GtkSizeGroup):

    Add gtk_size_group_get_widgets, fixes #326324.
    Also mark all fields of GtkSizeGroup as private
parent bd90bfbc
2006-01-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.symbols:
* gtk/gtkeditable.h:
* gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
* gtk/gtksizegroup.h:
(struct _GtkSizeGroup):
Add gtk_size_group_get_widgets, fixes #326324.
Also mark all fields of GtkSizeGroup as private
2006-01-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
......
2006-01-09 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.symbols:
* gtk/gtkeditable.h:
* gtk/gtksizegroup.c: (gtk_size_group_get_widgets):
* gtk/gtksizegroup.h:
(struct _GtkSizeGroup):
Add gtk_size_group_get_widgets, fixes #326324.
Also mark all fields of GtkSizeGroup as private
2006-01-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
......
......@@ -2713,6 +2713,7 @@ gtk_size_group_add_widget
gtk_size_group_get_ignore_hidden
gtk_size_group_get_mode
gtk_size_group_get_type G_GNUC_CONST
gtk_size_group_get_widgets
gtk_size_group_new
gtk_size_group_remove_widget
gtk_size_group_set_ignore_hidden
......
......@@ -560,6 +560,23 @@ gtk_size_group_remove_widget (GtkSizeGroup *size_group,
g_object_unref (size_group);
}
/**
* gtk_size_group_get_widgets:
* @size_group: a #GtkSizeGrup
*
* Returns the list of widgets associated with @size_group.
*
* Return value: a #GSList of widgets. The list is owned by GTK+
* and should not be modified.
*
* Since: 2.10
**/
GSList *
gtk_size_group_get_widgets (GtkSizeGroup *size_group)
{
return size_group->widgets;
}
static gint
get_base_dimension (GtkWidget *widget,
GtkSizeGroupMode mode)
......
......@@ -40,6 +40,7 @@ struct _GtkSizeGroup
{
GObject parent_instance;
/* <private> */
GSList *widgets;
guint8 mode;
......@@ -92,6 +93,7 @@ void gtk_size_group_add_widget (GtkSizeGroup *size_group,
GtkWidget *widget);
void gtk_size_group_remove_widget (GtkSizeGroup *size_group,
GtkWidget *widget);
GSList * gtk_size_group_get_widgets (GtkSizeGroup *size_group);
void _gtk_size_group_get_child_requisition (GtkWidget *widget,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment