Skip to content
Snippets Groups Projects
Commit adddb6e6 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#4064] Make instant messaging enabled by default

parent df8234dd
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,10 @@ incoming_message_cb (DBusGProxy *proxy UNUSED, const gchar* callID UNUSED, const ...@@ -130,7 +130,10 @@ incoming_message_cb (DBusGProxy *proxy UNUSED, const gchar* callID UNUSED, const
conference_obj_t *conf = NULL; conference_obj_t *conf = NULL;
// do not display message if instant messaging is disabled // do not display message if instant messaging is disabled
gboolean instant_messaging_enabled = eel_gconf_get_integer (INSTANT_MESSAGING_ENABLED); gboolean instant_messaging_enabled = TRUE;
if (eel_gconf_key_exists (INSTANT_MESSAGING_ENABLED))
instant_messaging_enabled = eel_gconf_get_integer (INSTANT_MESSAGING_ENABLED);
if (!instant_messaging_enabled) if (!instant_messaging_enabled)
return; return;
......
...@@ -191,7 +191,10 @@ update_actions() ...@@ -191,7 +191,10 @@ update_actions()
callable_obj_t * selectedCall = calltab_get_selected_call (active_calltree); callable_obj_t * selectedCall = calltab_get_selected_call (active_calltree);
conference_obj_t * selectedConf = calltab_get_selected_conf (active_calltree); conference_obj_t * selectedConf = calltab_get_selected_conf (active_calltree);
gboolean instant_messaging_enabled = eel_gconf_get_integer (INSTANT_MESSAGING_ENABLED); gboolean instant_messaging_enabled = TRUE;
if (eel_gconf_key_exists (INSTANT_MESSAGING_ENABLED))
instant_messaging_enabled = eel_gconf_get_integer (INSTANT_MESSAGING_ENABLED);
if (selectedCall) { if (selectedCall) {
// update icon in systray // update icon in systray
...@@ -1238,6 +1241,15 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event) ...@@ -1238,6 +1241,15 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event)
} }
if (im) { if (im) {
// do not display message if instant messaging is disabled
gboolean instant_messaging_enabled = TRUE;
if (eel_gconf_key_exists (INSTANT_MESSAGING_ENABLED))
instant_messaging_enabled = eel_gconf_get_integer (INSTANT_MESSAGING_ENABLED);
if (instant_messaging_enabled) {
menu_items = gtk_separator_menu_item_new(); menu_items = gtk_separator_menu_item_new();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_items);
gtk_widget_show (menu_items); gtk_widget_show (menu_items);
...@@ -1251,6 +1263,7 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event) ...@@ -1251,6 +1263,7 @@ show_popup_menu (GtkWidget *my_widget, GdkEventButton *event)
NULL); NULL);
gtk_widget_show (menu_items); gtk_widget_show (menu_items);
} }
}
} else { } else {
DEBUG ("UIManager: Build call menus"); DEBUG ("UIManager: Build call menus");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment