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
This commit is contained in:
Johan Dahlin 2006-01-09 19:18:14 +00:00
parent bd90bfbc96
commit b3f14e09e4
5 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,14 @@
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

View File

@ -1,3 +1,14 @@
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

View File

@ -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

View File

@ -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)

View File

@ -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,