ayatana-commits team mailing list archive
-
ayatana-commits team
-
Mailing list archive
-
Message #02563
[Merge] lp:~ken-vandine/indicator-me/dont_complain_if_no_send_enabled into lp:indicator-me
Ken VanDine has proposed merging lp:~ken-vandine/indicator-me/dont_complain_if_no_send_enabled into lp:indicator-me.
Requested reviews:
Indicator Applet Developers (indicator-applet-developers)
Don't complain if a gwibber account has no send_enabled attribute, just return FALSE
--
https://code.launchpad.net/~ken-vandine/indicator-me/dont_complain_if_no_send_enabled/+merge/38584
Your team ayatana-commits is subscribed to branch lp:indicator-me.
=== modified file 'src/me-service-gwibber.c'
--- src/me-service-gwibber.c 2010-09-15 21:07:40 +0000
+++ src/me-service-gwibber.c 2010-10-15 18:46:17 +0000
@@ -132,7 +132,10 @@
static gboolean
check_account_send_enabled (GHashTable * account_table) {
- return g_value_get_boolean(g_hash_table_lookup(account_table, "send_enabled"));
+ if G_VALUE_HOLDS_BOOLEAN (g_hash_table_lookup(account_table, "send_enabled"))
+ return g_value_get_boolean(g_hash_table_lookup(account_table, "send_enabled"));
+ else
+ return FALSE;
}
static void
Follow ups