From 2e467c33879f48e788774d5de0a5a7559531da7b Mon Sep 17 00:00:00 2001 From: Nicolas Jager <nicolas.jager@savoirfairelinux.com> Date: Wed, 18 Jan 2017 08:52:23 -0500 Subject: [PATCH] ui : update instances names - widgets used to screen the uri had _uri suffix. Now they can screen the registered name, so the suffix has been updated _bestId. Tuleap: #1248 Change-Id: I9f3d8290d4f24529303c37467d3ff1ad18fe43e0 --- src/currentcallview.cpp | 8 ++++---- src/incomingcallview.cpp | 12 ++++++------ ui/currentcallview.ui | 2 +- ui/incomingcallview.ui | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/currentcallview.cpp b/src/currentcallview.cpp index 5a3d55ca..3a3d88b6 100644 --- a/src/currentcallview.cpp +++ b/src/currentcallview.cpp @@ -66,7 +66,7 @@ struct _CurrentCallViewPrivate GtkWidget *vbox_call_smartInfo; GtkWidget *image_peer; GtkWidget *label_name; - GtkWidget *label_uri; + GtkWidget *label_bestId; GtkWidget *label_status; GtkWidget *label_duration; GtkWidget *label_smartinfo_description; @@ -505,7 +505,7 @@ current_call_view_class_init(CurrentCallViewClass *klass) gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, vbox_call_smartInfo); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, image_peer); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_name); - gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_uri); + gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_bestId); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_status); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_duration); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), CurrentCallView, label_smartinfo_description); @@ -658,9 +658,9 @@ set_call_info(CurrentCallView *view, Call *call) { 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_uri), cat_contactId); + gtk_label_set_text(GTK_LABEL(priv->label_bestId), cat_contactId); g_free(cat_contactId); - gtk_widget_show(priv->label_uri); + gtk_widget_show(priv->label_bestId); } /* change some things depending on call state */ diff --git a/src/incomingcallview.cpp b/src/incomingcallview.cpp index a9ba5df6..80bb749b 100644 --- a/src/incomingcallview.cpp +++ b/src/incomingcallview.cpp @@ -49,7 +49,7 @@ struct _IncomingCallViewPrivate GtkWidget *paned_call; GtkWidget *image_incoming; GtkWidget *label_name; - GtkWidget *label_uri; + GtkWidget *label_bestId; GtkWidget *spinner_status; GtkWidget *placeholder; GtkWidget *label_status; @@ -133,7 +133,7 @@ incoming_call_view_class_init(IncomingCallViewClass *klass) gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, paned_call); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, image_incoming); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, label_name); - gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, label_uri); + gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, label_bestId); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, spinner_status); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, placeholder); gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), IncomingCallView, label_status); @@ -214,12 +214,12 @@ set_call_info(IncomingCallView *view, Call *call) { /* get uri, if different from name */ auto uri = call->peerContactMethod()->uri(); if (name != uri) { - auto cat_uri = g_strdup_printf("(%s) %s" + auto cat_bestId = g_strdup_printf("(%s) %s" ,call->peerContactMethod()->category()->name().toUtf8().constData() ,uri.toUtf8().constData()); - gtk_label_set_text(GTK_LABEL(priv->label_uri), cat_uri); - g_free(cat_uri); - gtk_widget_show(priv->label_uri); + gtk_label_set_text(GTK_LABEL(priv->label_bestId), cat_bestId); + g_free(cat_bestId); + gtk_widget_show(priv->label_bestId); } /* change some things depending on call state */ diff --git a/ui/currentcallview.ui b/ui/currentcallview.ui index 9340d1cc..3684c8c4 100644 --- a/ui/currentcallview.ui +++ b/ui/currentcallview.ui @@ -163,7 +163,7 @@ </packing> </child> <child> - <object class="GtkLabel" id="label_uri"> + <object class="GtkLabel" id="label_bestId"> <property name="visible">False</property> <property name="can_focus">True</property> <property name="selectable">True</property> diff --git a/ui/incomingcallview.ui b/ui/incomingcallview.ui index b3be4b68..9e595700 100644 --- a/ui/incomingcallview.ui +++ b/ui/incomingcallview.ui @@ -64,7 +64,7 @@ <!-- end name or other identity of contact --> <!-- uri of contact --> <child> - <object class="GtkLabel" id="label_uri"> + <object class="GtkLabel" id="label_bestId"> <property name="visible">False</property> <property name="can_focus">True</property> <property name="halign">center</property> -- GitLab