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 663328 - Stop using EmpathyContactListFlags
Stop using EmpathyContactListFlags
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.33.x
Other Linux
: Normal enhancement
: ---
Assigned To: empathy-maint
empathy-maint
Depends on: 663387
Blocks:
 
 
Reported: 2011-11-03 14:38 UTC by Guillaume Desmottes
Modified: 2011-11-28 11:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
contact-menu: stop using empathy_contact_manager_get_flags_for_connection() (2.50 KB, patch)
2011-11-24 11:54 UTC, Guillaume Desmottes
none Details | Review
remove empathy_contact_manager_get_flags_for_connection() (2.09 KB, patch)
2011-11-24 11:55 UTC, Guillaume Desmottes
committed Details | Review
tp-contact-list: remove tp_contact_list_get_flags (4.86 KB, patch)
2011-11-24 11:55 UTC, Guillaume Desmottes
committed Details | Review
contact-list: remove flags (2.57 KB, patch)
2011-11-24 11:55 UTC, Guillaume Desmottes
committed Details | Review
add missing empathy-contact-list.h include (1.59 KB, patch)
2011-11-24 11:55 UTC, Guillaume Desmottes
committed Details | Review
contact-menu: stop using empathy_contact_manager_get_flags_for_connection() (2.43 KB, patch)
2011-11-28 09:50 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2011-11-03 14:38:52 UTC
As part of bug #660547 we should get rid of EmpathyContactListFlags
Comment 1 Guillaume Desmottes 2011-11-24 11:54:59 UTC
Created attachment 202050 [details] [review]
contact-menu: stop using empathy_contact_manager_get_flags_for_connection()
Comment 2 Guillaume Desmottes 2011-11-24 11:55:02 UTC
Created attachment 202051 [details] [review]
remove empathy_contact_manager_get_flags_for_connection()
Comment 3 Guillaume Desmottes 2011-11-24 11:55:05 UTC
Created attachment 202052 [details] [review]
tp-contact-list: remove tp_contact_list_get_flags
Comment 4 Guillaume Desmottes 2011-11-24 11:55:08 UTC
Created attachment 202053 [details] [review]
contact-list: remove flags
Comment 5 Guillaume Desmottes 2011-11-24 11:55:11 UTC
Created attachment 202054 [details] [review]
add missing empathy-contact-list.h include

For some reason, gcc starts complaining about this as soon as I remove
EmpathyContactListFlags from empathy-contact-list.h ?!
If you have an explanation for this please let me know...
Comment 6 Xavier Claessens 2011-11-24 12:12:21 UTC
It is a little bit more complex that than unfortunately.

1) CAN_ALIAS should check the AliasFlags on the Aliasing iface. Unfortunately spec predates dbus properties so there is only a GetAliasFlags. Ideally it should be made a property in spec and TpConnection should get it. Otoh it would be the only property so there is no benefit compared to just call GetAliasFlags atm. It would also need an extra feature on TpConnection to introspect I guess...

2) CAN_GROUP should check if groups can be stored. We have tp_connection_get_group_storage() for that.
Comment 7 Guillaume Desmottes 2011-11-25 10:18:47 UTC
(In reply to comment #6)
> It is a little bit more complex that than unfortunately.
> 
> 1) CAN_ALIAS should check the AliasFlags on the Aliasing iface. Unfortunately
> spec predates dbus properties so there is only a GetAliasFlags. Ideally it
> should be made a property in spec and TpConnection should get it. Otoh it would
> be the only property so there is no benefit compared to just call GetAliasFlags
> atm. It would also need an extra feature on TpConnection to introspect I
> guess...

https://bugs.freedesktop.org/show_bug.cgi?id=28037#c7

> 2) CAN_GROUP should check if groups can be stored. We have
> tp_connection_get_group_storage() for that.

Fixed.
Comment 8 Guillaume Desmottes 2011-11-28 09:50:53 UTC
Created attachment 202278 [details] [review]
contact-menu: stop using empathy_contact_manager_get_flags_for_connection()
Comment 9 Guillaume Desmottes 2011-11-28 09:51:35 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > It is a little bit more complex that than unfortunately.
> > 
> > 1) CAN_ALIAS should check the AliasFlags on the Aliasing iface. Unfortunately
> > spec predates dbus properties so there is only a GetAliasFlags. Ideally it
> > should be made a property in spec and TpConnection should get it. Otoh it would
> > be the only property so there is no benefit compared to just call GetAliasFlags
> > atm. It would also need an extra feature on TpConnection to introspect I
> > guess...
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=28037#c7

Fixed as well. We'll have to depend on the future tp-glib release before merging this.
Comment 10 Xavier Claessens 2011-11-28 09:54:02 UTC
+1
Comment 11 Guillaume Desmottes 2011-11-28 11:34:40 UTC
Attachment 202051 [details] pushed as 79f856c - remove empathy_contact_manager_get_flags_for_connection()
Attachment 202052 [details] pushed as b528f95 - tp-contact-list: remove tp_contact_list_get_flags
Attachment 202053 [details] pushed as 1cbe27f - contact-list: remove flags
Attachment 202054 [details] pushed as 9a353a3 - add missing empathy-contact-list.h include
Attachment 202278 [details] pushed as fb2b5ea - contact-menu: stop using empathy_contact_manager_get_flags_for_connection()