From 3cfd87884513b378c7372b6465fdaa137890895b Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Fri, 24 Feb 2017 21:41:19 +0100 Subject: gtk: fix build when USE_NOTIFICATIONS is off --- modules/gtk/gtk_mod.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') 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); -- cgit v1.2.3