[gnome-control-center] default applications: Set the selected browser to handle HTTPS urls also



commit 865744496c30e70d73a3e321d80f276ec86e4893
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Mon Oct 11 15:40:43 2010 +0200

    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 b50bca8..c3a654f 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 2566c20..7fa9e3b 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);
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]