1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-12 15:47:35 +00:00

calls-call-record-row: Set call back button insensitive for anonymous caller

They can't be called back, we don't have a number

See: #144
This commit is contained in:
Guido Günther 2020-06-27 13:08:51 +02:00
parent 0bc8c7bc4e
commit 803cec41a5

View file

@ -351,10 +351,12 @@ contact_name_cb (CallsCallRecordRow *self)
if (!g_strcmp0 (target, ""))
{
gtk_label_set_text (self->target, ANONYMOUS_CALLER);
gtk_actionable_set_action_name (GTK_ACTIONABLE (self->button), NULL);
}
else
{
gtk_label_set_text (self->target, target);
gtk_actionable_set_action_name (GTK_ACTIONABLE (self->button), "app.dial");
}
}
}