Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alefnode:branches:devel:ARM:Factory:Contrib:PinePhone
gnome-contacts
0004-ContactSheet-always-show-im-details.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-ContactSheet-always-show-im-details.patch of Package gnome-contacts
From: Julian Sparber <julian@sparber.net> Date: Thu, 28 Nov 2019 17:30:46 +0100 Subject: [PATCH] ContactSheet: always show im details --- src/contacts-contact-sheet.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala index d334d71..522ab22 100644 --- a/src/contacts-contact-sheet.vala +++ b/src/contacts-contact-sheet.vala @@ -325,7 +325,6 @@ public class Contacts.ContactSheet : Gtk.Grid { } private void add_im_addresses (Persona persona, string property) { -#if HAVE_TELEPATHY unowned var im_details = persona as ImDetails; if (im_details == null) return; @@ -333,12 +332,15 @@ public class Contacts.ContactSheet : Gtk.Grid { var rows = new GLib.List<Gtk.ListBoxRow> (); foreach (var protocol in im_details.im_addresses.get_keys ()) { foreach (var id in im_details.im_addresses[protocol]) { +#if HAVE_TELEPATHY if (!(persona is Tpf.Persona)) continue; +#endif var row = new ContactSheetRow (property, id.value, ImService.get_display_name (protocol)); +#if HAVE_TELEPATHY var button = row.add_button ("user-available-symbolic"); button.clicked.connect (() => { var im_persona = Utils.find_im_persona (individual, protocol, id.value); @@ -350,12 +352,12 @@ public class Contacts.ContactSheet : Gtk.Grid { } } }); +#endif rows.append (row); } } this.attach_rows (rows); -#endif } private void add_urls (Persona persona, string property) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor