Commit c2d5769d authored by Sébastien Blin's avatar Sébastien Blin Committed by Philippe Gorley

currentcallview: remove category label from callview

Change-Id: Iade8a1b2e2df33b49f37c92eb2d5b0bd7dd758c5
Reviewed-by: Philippe Gorley's avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
parent 4514eebd
......@@ -690,11 +690,7 @@ update_name_and_photo(CurrentCallView *view)
/* get contact best id, if different from name */
auto contactId = priv->call->peerContactMethod()->bestId();
if (name != contactId) {
auto cat_contactId = g_strdup_printf("(%s) %s"
,priv->call->peerContactMethod()->category()->name().toUtf8().constData()
,contactId.toUtf8().constData());
gtk_label_set_text(GTK_LABEL(priv->label_bestId), cat_contactId);
g_free(cat_contactId);
gtk_label_set_text(GTK_LABEL(priv->label_bestId), contactId.toUtf8().constData());
gtk_widget_show(priv->label_bestId);
}
}
......
......@@ -232,11 +232,7 @@ update_name_and_photo(IncomingCallView *view)
/* get uri, if different from name */
auto bestId = priv->call->peerContactMethod()->bestId();
if (name != bestId) {
auto cat_bestId = g_strdup_printf("(%s) %s"
,priv->call->peerContactMethod()->category()->name().toUtf8().constData()
,bestId.toUtf8().constData());
gtk_label_set_text(GTK_LABEL(priv->label_bestId), cat_bestId);
g_free(cat_bestId);
gtk_label_set_text(GTK_LABEL(priv->label_bestId), bestId.toUtf8().constData());
gtk_widget_show(priv->label_bestId);
}
}
......
......@@ -143,7 +143,7 @@
<object class="GtkBox" id="vbox_peer_identity">
<property name="visible">True</property>
<property name="spacing">5</property>
<property name="valign">start</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="label_name">
......@@ -154,7 +154,7 @@
<property name="halign">start</property>
<attributes>
<attribute name="scale" value="1.25"/>
<attribute name="foreground" value="#ffffffffffff"/>
<attribute name="foreground" value="#ffffff"/>
</attributes>
</object>
<packing>
......@@ -167,9 +167,10 @@
<property name="visible">False</property>
<property name="can_focus">True</property>
<property name="selectable">True</property>
<property name="halign">start</property>
<property name="ellipsize">end</property>
<attributes>
<attribute name="foreground" value="#ffffffffffff"/>
<attribute name="foreground" value="#ffffff"/>
</attributes>
</object>
<packing>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment