[nautilus] mime-app-chooser: use g_app_info_set_as_last_used_for_content_type()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] mime-app-chooser: use g_app_info_set_as_last_used_for_content_type()
- Date: Mon, 20 Dec 2010 17:02:21 +0000 (UTC)
commit ee06a67a632476b9758cc00eaa573e12cc3cfc91
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Dec 20 17:59:19 2010 +0100
mime-app-chooser: use g_app_info_set_as_last_used_for_content_type()
Instead of add_supports_for_content_type(), which does not save the
order in which custom apps have been used.
configure.in | 2 +-
.../nautilus-mime-application-chooser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 92034b7..5a946a6 100644
--- a/configure.in
+++ b/configure.in
@@ -2,7 +2,7 @@ AC_PREREQ(2.54)
dnl ===========================================================================
-m4_define(glib_minver, 2.27.2)
+m4_define(glib_minver, 2.27.5)
m4_define(gnome_desktop_minver, 2.91.2)
m4_define(pango_minver, 1.1.2)
m4_define(gtk_minver, 2.91.6)
diff --git a/libnautilus-private/nautilus-mime-application-chooser.c b/libnautilus-private/nautilus-mime-application-chooser.c
index 77ea652..4c45859 100644
--- a/libnautilus-private/nautilus-mime-application-chooser.c
+++ b/libnautilus-private/nautilus-mime-application-chooser.c
@@ -77,7 +77,7 @@ add_clicked_cb (GtkButton *button,
if (info == NULL)
return;
- g_app_info_add_supports_type (info, chooser->details->content_type, &error);
+ g_app_info_set_as_last_used_for_type (info, chooser->details->content_type, &error);
if (error != NULL) {
message = g_strdup_printf (_("Error while adding \"%s\": %s"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]