[gtk+] sizegroup: Use g_hash_table_add()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] sizegroup: Use g_hash_table_add()
- Date: Sun, 25 Nov 2012 23:09:59 +0000 (UTC)
commit 4498ff314e188b0d9ec35cd6b62b28d87437a374
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Nov 25 22:57:41 2012 +0100
sizegroup: Use g_hash_table_add()
This is the function to use when treating hash tables as a set.
gtk/gtksizegroup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index a9ae863..e31dfa8 100644
--- a/gtk/gtksizegroup.c
+++ b/gtk/gtksizegroup.c
@@ -163,7 +163,7 @@ add_widget_to_closure (GHashTable *widgets,
if (g_hash_table_lookup (widgets, widget))
return;
- g_hash_table_insert (widgets, widget, widget);
+ g_hash_table_add (widgets, widget);
hidden = !gtk_widget_is_visible (widget);
for (tmp_groups = _gtk_widget_get_sizegroups (widget); tmp_groups; tmp_groups = tmp_groups->next)
@@ -180,7 +180,7 @@ add_widget_to_closure (GHashTable *widgets,
if (!(tmp_priv->mode & (1 << orientation)))
continue;
- g_hash_table_insert (groups, tmp_group, tmp_group);
+ g_hash_table_add (groups, tmp_group);
for (tmp_widgets = tmp_priv->widgets; tmp_widgets; tmp_widgets = tmp_widgets->next)
add_widget_to_closure (widgets, groups, tmp_widgets->data, orientation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]