diff --git a/ChangeLog b/ChangeLog index 057f8d070f..5d2da70733 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2006-01-09 Johan Dahlin + + * 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 * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 057f8d070f..5d2da70733 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,14 @@ +2006-01-09 Johan Dahlin + + * 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 * gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 4fcfd20108..567d9ff6f9 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -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 diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c index 1f87a2240f..d66586c886 100644 --- a/gtk/gtksizegroup.c +++ b/gtk/gtksizegroup.c @@ -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) diff --git a/gtk/gtksizegroup.h b/gtk/gtksizegroup.h index b331cdafe1..4a8315381e 100644 --- a/gtk/gtksizegroup.h +++ b/gtk/gtksizegroup.h @@ -40,6 +40,7 @@ struct _GtkSizeGroup { GObject parent_instance; + /* */ 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,