diff options
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r-- | lib/ephy-dialog.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 2100eb1f6..aa5ed1a16 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -1283,3 +1283,25 @@ ephy_dialog_get_value (EphyDialog *dialog, return klass->get_value (dialog, property_id, value); } +void +ephy_dialog_set_size_group (EphyDialog *dialog, + int *controls_id, + guint n_controls) +{ + GtkSizeGroup *size_group; + int i; + + size_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); + + for (i = 0; i < n_controls; i++) + { + GtkWidget *widget; + guint id; + + id = controls_id[i]; + widget = dialog->priv->props[id].widget; + g_return_if_fail (GTK_IS_WIDGET (widget)); + + gtk_size_group_add_widget (size_group, widget); + } +} |