summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-03-26 03:00:44 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-03-26 03:00:44 +0000
commit45dc8b5c9af2c74da1eed2bdd2f4893d2f6beac8 (patch)
treee7d24f439bbde8ab7d628cdb88c5abac0ee6207f /gobject
parent6e51f47e137031e7caa561724d786f48e24970a1 (diff)
Don't do the second lookup if the name was already canonical. (#171502,
2005-03-25 Matthias Clasen <mclasen@redhat.com> * gparam.c (param_spec_ht_lookup): Don't do the second lookup if the name was already canonical. (#171502, Morten Welinder)
Diffstat (limited to 'gobject')
-rw-r--r--gobject/ChangeLog6
-rw-r--r--gobject/gparam.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog
index 4f0d5e3d6..8b9636f52 100644
--- a/gobject/ChangeLog
+++ b/gobject/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-25 Matthias Clasen <mclasen@redhat.com>
+
+ * gparam.c (param_spec_ht_lookup): Don't do the second
+ lookup if the name was already canonical. (#171502, Morten
+ Welinder)
+
Tue Mar 22 14:15:23 2005 Manish Singh <yosh@gimp.org>
* gparam.c (g_param_spec_internal): cast away any constness on
diff --git a/gobject/gparam.c b/gobject/gparam.c
index b6732cb1f..914bc123d 100644
--- a/gobject/gparam.c
+++ b/gobject/gparam.c
@@ -739,7 +739,7 @@ param_spec_ht_lookup (GHashTable *hash_table,
else
pspec = g_hash_table_lookup (hash_table, &key);
- if (!pspec)
+ if (!pspec && !is_canonical (param_name))
{
/* try canonicalized form */
key.name = g_strdup (param_name);