Commit 60ccf2a0 authored by Adrien Plazas's avatar Adrien Plazas Committed by Adrien Plazas
Browse files

dialer: Set buttons checked instead setting relief

When digit keys are pressed, check the buttons state to checked rather
than changing the relief.
parent d11ccbf4
......@@ -169,10 +169,10 @@ press_btn (GtkButton *btn,
gboolean pressed)
if (pressed) {
gtk_button_set_relief (btn, GTK_RELIEF_NORMAL);
gtk_widget_set_state_flags (GTK_WIDGET (btn), GTK_STATE_FLAG_CHECKED, FALSE);
gtk_button_clicked (btn);
} else {
gtk_button_set_relief (btn, GTK_RELIEF_NONE);
gtk_widget_unset_state_flags (GTK_WIDGET (btn), GTK_STATE_FLAG_CHECKED);
Supports Markdown
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