summaryrefslogtreecommitdiff
path: root/capplets/default-applications/mate-da-capplet.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-06-13 17:28:41 +0200
committerraveit65 <[email protected]>2019-06-13 21:53:50 +0200
commitd1750c05b226fb204305515dab143edc4caa68b6 (patch)
treea795a4b28871e6e0d40a72a1f361d97f96ddee5f /capplets/default-applications/mate-da-capplet.c
parent57deaacfd4fc9a87da2d86f7c53c1d1fc9c00b66 (diff)
downloadmate-control-center-d1750c05b226fb204305515dab143edc4caa68b6.tar.bz2
mate-control-center-d1750c05b226fb204305515dab143edc4caa68b6.tar.xz
Set default icq/irc/ircs/sip/xmpp scheme handler
Diffstat (limited to 'capplets/default-applications/mate-da-capplet.c')
-rw-r--r--capplets/default-applications/mate-da-capplet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capplets/default-applications/mate-da-capplet.c b/capplets/default-applications/mate-da-capplet.c
index e29b23c8..07d16170 100644
--- a/capplets/default-applications/mate-da-capplet.c
+++ b/capplets/default-applications/mate-da-capplet.c
@@ -162,6 +162,11 @@ set_changed(GtkComboBox* combo, MateDACapplet* capplet, GList* list, gint type)
break;
case DA_TYPE_MESSENGER:
+ g_app_info_set_as_default_for_type(item, "x-scheme-handler/icq", NULL);
+ g_app_info_set_as_default_for_type(item, "x-scheme-handler/irc", NULL);
+ g_app_info_set_as_default_for_type(item, "x-scheme-handler/ircs", NULL);
+ g_app_info_set_as_default_for_type(item, "x-scheme-handler/sip", NULL);
+ g_app_info_set_as_default_for_type(item, "x-scheme-handler/xmpp", NULL);
g_settings_set_string (capplet->messenger_settings, MESSENGER_KEY, g_app_info_get_executable (item));
default: