summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-02-24 21:41:19 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-02-24 21:41:19 +0100
commit3cfd87884513b378c7372b6465fdaa137890895b (patch)
treeaf47b1b333a7c00e06564987bfa95c50076a977a /modules
parent71c85896d4552bf95927d2e326370c00df88db06 (diff)
gtk: fix build when USE_NOTIFICATIONS is off
Diffstat (limited to 'modules')
-rw-r--r--modules/gtk/gtk_mod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gtk/gtk_mod.c b/modules/gtk/gtk_mod.c
index 279446c..e01a6a1 100644
--- a/modules/gtk/gtk_mod.c
+++ b/modules/gtk/gtk_mod.c
@@ -182,6 +182,7 @@ 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)
{
@@ -198,6 +199,7 @@ 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,9 +496,11 @@ 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);