[gnome-maps/wip/mlundblad/remove-contacts: 6/17] placeView: Remove handling contacts
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/remove-contacts: 6/17] placeView: Remove handling contacts
- Date: Thu, 23 Jun 2022 21:15:11 +0000 (UTC)
commit 5b8b81b03b2a57b7cc5e170368ccd0d558aeb81b
Author: Marcus Lundblad <ml dfupdate se>
Date: Wed Jun 22 22:27:48 2022 +0200
placeView: Remove handling contacts
data/ui/place-view.ui | 8 --------
src/placeView.js | 12 ------------
2 files changed, 20 deletions(-)
---
diff --git a/data/ui/place-view.ui b/data/ui/place-view.ui
index 95fee9dc..14421bbf 100644
--- a/data/ui/place-view.ui
+++ b/data/ui/place-view.ui
@@ -42,14 +42,6 @@
<property name="can_focus">False</property>
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
- <child>
- <object class="HdyAvatar" id="contact-avatar">
- <property name="visible">False</property>
- <property name="can_focus">False</property>
- <property name="show_initials">True</property>
- <property name="size">32</property>
- </object>
- </child>
<child>
<object class="GtkLabel" id="label-title">
<property name="visible">True</property>
diff --git a/src/placeView.js b/src/placeView.js
index b15abfd7..6d0e4e58 100644
--- a/src/placeView.js
+++ b/src/placeView.js
@@ -28,7 +28,6 @@ import Pango from 'gi://Pango';
const Format = imports.format;
import {Application} from './application.js';
-import {ContactPlace} from './contactPlace.js';
import {Overpass} from './overpass.js';
import {Place} from './place.js';
import * as PlaceIcons from './placeIcons.js';
@@ -71,7 +70,6 @@ export class PlaceView extends Gtk.Box {
'thumbnail-separator',
'label-title',
'native-name',
- 'contact-avatar',
'address-label',
'bubble-main-stack',
'bubble-content-area',
@@ -86,7 +84,6 @@ export class PlaceView extends Gtk.Box {
this._mainStack = ui.bubbleMainStack;
this._spinner = ui.bubbleSpinner;
this._mainBox = ui.bubbleMainBox;
- this._contactAvatar = ui.contactAvatar;
this._addressLabel = ui.addressLabel;
this.add(this._mainStack);
@@ -113,14 +110,6 @@ export class PlaceView extends Gtk.Box {
ui.titleBox.spacing = 18;
}
- /* Set up contact avatar */
- if (this.place instanceof ContactPlace) {
- this._contactAvatar.visible = true;
- Utils.load_icon(this.place.icon, 32, (pixbuf) => {
- this._contactAvatar.set_image_load_func((size) => Utils.loadAvatar(pixbuf, size));
- });
- }
-
this.loading = true;
this._placeDetails = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL,
@@ -211,7 +200,6 @@ export class PlaceView extends Gtk.Box {
}
this._title.label = formatter.title;
- this._contactAvatar.text = formatter.title;
/* hide native name by default, so that it is only shown when it
* should, in case it changed when re-applying changes from Overpass.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]