After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603027 - "Manage favorites" dialog should skip accounts which don't support rooms
"Manage favorites" dialog should skip accounts which don't support rooms
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Multi User Chat
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2009-11-26 10:37 UTC by Guillaume Desmottes
Modified: 2011-01-10 10:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Showing only IRC accounts in Manage Favorites Account Chooser (1.93 KB, patch)
2010-12-29 14:24 UTC, Chandni Verma
none Details | Review
Corrected patch (2.54 KB, patch)
2010-12-29 16:01 UTC, Chandni Verma
none Details | Review
Show only accounts supporting chatrooms in Manage Favorites Account Chooser (3.08 KB, patch)
2010-12-30 05:06 UTC, Chandni Verma
none Details | Review
fixed code reuse with a similar issue (7.69 KB, patch)
2010-12-30 16:01 UTC, Chandni Verma
none Details | Review
Corrected patch (7.70 KB, patch)
2011-01-03 16:01 UTC, Chandni Verma
accepted-commit_now Details | Review

Description Guillaume Desmottes 2009-11-26 10:37:35 UTC
As Cosimoc suggested in bug #586678.
Comment 1 Chandni Verma 2010-12-29 14:24:26 UTC
Created attachment 177192 [details] [review]
Showing only IRC accounts in Manage Favorites Account Chooser
Comment 2 Chandni Verma 2010-12-29 16:01:06 UTC
Created attachment 177195 [details] [review]
Corrected patch
Comment 3 Chandni Verma 2010-12-30 05:06:45 UTC
Created attachment 177242 [details] [review]
Show only accounts supporting chatrooms in Manage Favorites Account Chooser
Comment 4 Xavier Claessens 2010-12-30 14:05:57 UTC
I would move empathy_account_chooser_filter_supports_chatrooms() to empathy-chatrooms-window.c because it is not something we need in other places, unlike _filter_is_connected().

why did you rename "is_connected" boolean to "enabled"? is_connected seems better to me, you're not checking if the account is enabled.

Otherwise this looks fine.
Comment 5 Chandni Verma 2010-12-30 16:01:06 UTC
Created attachment 177265 [details] [review]
fixed code reuse with a similar issue
Comment 6 Xavier Claessens 2011-01-03 15:37:52 UTC
Review of attachment 177265 [details] [review]:

::: libempathy-gtk/empathy-account-chooser.c
@@ +975,3 @@
+		data->callback (FALSE, data->user_data);
+		g_slice_free (FilterCallbackData, data);
+	}

There is a missing return here. In the case it failed we shouldn't continue otherwise it will crash because data is freed.
Comment 7 Chandni Verma 2011-01-03 16:01:44 UTC
Created attachment 177414 [details] [review]
Corrected patch
Comment 8 Xavier Claessens 2011-01-10 09:49:54 UTC
Review of attachment 177414 [details] [review]:

looks all good to me
Comment 9 Guillaume Desmottes 2011-01-10 10:02:23 UTC
merged to master. thanks!

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.