summaryrefslogtreecommitdiff
path: root/modules/gtk
diff options
context:
space:
mode:
authorCharles Lehner <cel@celehner.com>2016-01-19 17:12:18 -0500
committerCharles Lehner <cel@celehner.com>2016-01-19 17:14:22 -0500
commit00ce82ce3ad5a2a995b0118e7528d77dad0cb1a4 (patch)
tree90569cb6923d82ce773bd67bda1f8c3c867bb692 /modules/gtk
parentcc0b10400e75a91023f192a6008c36c8cb176ab9 (diff)
gtk: always handle incoming calls
Even if notification support is not built in, incoming calls should get added to the app menu so the user can answer them
Diffstat (limited to 'modules/gtk')
-rw-r--r--modules/gtk/gtk_mod.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/gtk/gtk_mod.c b/modules/gtk/gtk_mod.c
index f1d8711..a7f83eb 100644
--- a/modules/gtk/gtk_mod.c
+++ b/modules/gtk/gtk_mod.c
@@ -180,7 +180,6 @@ static void menu_on_presence_set(GtkMenuItem *item, struct gtk_mod *mod)
}
-#ifdef USE_NOTIFICATIONS
static void menu_on_incoming_call_answer(GtkMenuItem *menuItem,
struct gtk_mod *mod)
{
@@ -197,7 +196,6 @@ static void menu_on_incoming_call_reject(GtkMenuItem *menuItem,
denotify_incoming_call(mod, call);
mqueue_push(mod->mq, MQ_HANGUP, call);
}
-#endif
static GtkMenuItem *accounts_menu_add_item(struct gtk_mod *mod,
@@ -494,11 +492,9 @@ static void ua_event_handler(struct ua *ua,
accounts_menu_set_status(mod, ua, ev);
break;
-#ifdef USE_NOTIFICATIONS
case UA_EVENT_CALL_INCOMING:
notify_incoming_call(mod, call);
break;
-#endif
case UA_EVENT_CALL_CLOSED:
win = get_call_window(mod, call);