diff options
author | Mark Doffman <mdoff@silver-wind.(none)> | 2008-12-17 17:53:30 +0000 |
---|---|---|
committer | Mark Doffman <mdoff@silver-wind.(none)> | 2008-12-18 12:25:38 +0000 |
commit | 95ac4886d1b6649d54daffa7191be1b2bbaf2989 (patch) | |
tree | 7321b1777cd3601007548f99ac75047f21adc910 /droute/droute-pairhash.c | |
parent | b37f0b74994912dea13f33d63d3f1395554944b2 (diff) | |
download | at-spi2-atk-95ac4886d1b6649d54daffa7191be1b2bbaf2989.tar.gz |
2008-12-17 Mark Doffman <mark.doffman@codethink.co.uk>
Mega commit that changes droute, adding
an interface for creating a droute context
and registering single, or multiple objects
with the droute context. Modifies atk-adaptor
and registryd to use the new interface.
* droute/
New interface
* atk-adaptor
Use new droute interface
* registryd
Use new droute interface
* pyatspi
Bug fix, methods were using "null" interface.
Diffstat (limited to 'droute/droute-pairhash.c')
-rw-r--r-- | droute/droute-pairhash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/droute/droute-pairhash.c b/droute/droute-pairhash.c index 20ff491..0c4ace5 100644 --- a/droute/droute-pairhash.c +++ b/droute/droute-pairhash.c @@ -43,6 +43,7 @@ str_pair_new (const gchar *one, const gchar *two) pair = g_new (StrPair, 1); pair->one = one; pair->two = two; + return pair; } gint @@ -51,6 +52,11 @@ str_pair_hash (gconstpointer key) StrPair *pair = (StrPair *) key; guint hash = 0; + /*g_return_val_if_fail (pair != NULL, 0); + g_return_val_if_fail (pair->one != NULL, 0); + g_return_val_if_fail (pair->two != NULL, 0); + */ + if (*(pair->two) != '\0') { hash = *(pair->two); |