calls-call-display: Add a display of dial pad digits

Closes #57
This commit is contained in:
Bob Ham
2019-07-04 15:15:16 +01:00
parent 2d99fe16d0
commit 719b3e752f
5 changed files with 36 additions and 6 deletions

View File

@@ -68,3 +68,20 @@ calls_list_store_find (GtkListStore *store,
return find_data.found;
}
void
calls_entry_append (GtkEntry *entry,
gchar character)
{
const gchar str[] = {character, '\0'};
GtkEntryBuffer *buf;
guint len;
g_return_if_fail (GTK_IS_ENTRY (entry));
buf = gtk_entry_get_buffer (entry);
len = gtk_entry_buffer_get_length (buf);
gtk_entry_buffer_insert_text (buf, len - 1, str, 1);
}