forked from AuroraMiddleware/gtk
size request: Avoid unnecessary reffing
There is no particular reason why we should have to ref the widgets if they are in a size group - we are not reffing them in the simple case either.
This commit is contained in:
parent
e0be076652
commit
cd35a14bbb
@ -393,8 +393,6 @@ gtk_widget_compute_size_for_orientation (GtkWidget *widget,
|
||||
|
||||
widgets = _gtk_size_group_get_widget_peers (widget, orientation);
|
||||
|
||||
g_hash_table_foreach (widgets, (GHFunc) g_object_ref, NULL);
|
||||
|
||||
g_hash_table_iter_init (&iter, widgets);
|
||||
while (g_hash_table_iter_next (&iter, &key, NULL))
|
||||
{
|
||||
@ -407,8 +405,6 @@ gtk_widget_compute_size_for_orientation (GtkWidget *widget,
|
||||
nat_result = MAX (nat_result, nat_dimension);
|
||||
}
|
||||
|
||||
g_hash_table_foreach (widgets, (GHFunc) g_object_unref, NULL);
|
||||
|
||||
g_hash_table_destroy (widgets);
|
||||
|
||||
/* Baselines make no sense with sizegroups really */
|
||||
|
Loading…
Reference in New Issue
Block a user