summaryrefslogtreecommitdiff
path: root/modules/gtk/gtk_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gtk/gtk_mod.c')
-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);