From 865744496c30e70d73a3e321d80f276ec86e4893 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 11 Oct 2010 15:40:43 +0200 Subject: [PATCH] default applications: Set the selected browser to handle HTTPS urls also --- panels/default-applications/gnome-da-capplet.c | 3 ++- panels/default-applications/gnome-da-xml.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/panels/default-applications/gnome-da-capplet.c b/panels/default-applications/gnome-da-capplet.c index b50bca832..c3a654fd1 100644 --- a/panels/default-applications/gnome-da-capplet.c +++ b/panels/default-applications/gnome-da-capplet.c @@ -79,7 +79,8 @@ web_combo_changed_cb (GtkComboBox *combo, GnomeDACapplet *capplet) if (item == NULL) return; - if (!g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/http", &error)) { + if (!g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/http", &error) || + !g_app_info_set_as_default_for_type (item->app_info, "x-scheme-handler/https", &error)) { g_warning (_("Error setting default browser: %s"), error->message); g_error_free (error); } diff --git a/panels/default-applications/gnome-da-xml.c b/panels/default-applications/gnome-da-xml.c index 2566c207d..7fa9e3b4b 100644 --- a/panels/default-applications/gnome-da-xml.c +++ b/panels/default-applications/gnome-da-xml.c @@ -243,13 +243,14 @@ load_url_handlers (GnomeDACapplet *capplet, const gchar *scheme, GList **item_li executable = g_app_info_get_executable (app_info); if (is_executable_valid (executable)) { - GnomeDASimpleItem *url_item; + GnomeDAURLItem *url_item; - url_item = gnome_da_simple_item_new (); + url_item = gnome_da_url_item_new (); url_item->generic.name = g_strdup (g_app_info_get_display_name (app_info)); url_item->generic.executable = g_strdup (executable); url_item->generic.command = g_strdup (g_app_info_get_commandline (app_info)); url_item->generic.icon_name = g_strdup (g_app_info_get_name (app_info)); + url_item->app_info = g_object_ref (app_info); *item_list = g_list_append (*item_list, url_item); }