[gtk+] appchooserdialog: use new GLib API to modify positioning
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] appchooserdialog: use new GLib API to modify positioning
- Date: Mon, 20 Dec 2010 15:14:56 +0000 (UTC)
commit a5fe3fef7bb671bae57ede84c0895e1c08a466dc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 15 11:58:29 2010 +0100
appchooserdialog: use new GLib API to modify positioning
The dialog will always show up with the last selected application.
configure.ac | 2 +-
gtk/gtkappchooserdialog.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4040292..a77df6e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,7 +38,7 @@ AC_CONFIG_MACRO_DIR([m4])
m4_define([gtk_binary_version], [3.0.0])
# required versions of other packages
-m4_define([glib_required_version], [2.27.3])
+m4_define([glib_required_version], [2.27.5])
m4_define([pango_required_version], [1.20])
m4_define([atk_required_version], [1.29.2])
m4_define([cairo_required_version], [1.10.0])
diff --git a/gtk/gtkappchooserdialog.c b/gtk/gtkappchooserdialog.c
index 60532bb..09f575a 100644
--- a/gtk/gtkappchooserdialog.c
+++ b/gtk/gtkappchooserdialog.c
@@ -234,9 +234,9 @@ add_or_find_application (GtkAppChooserDialog *self)
app = gtk_app_chooser_get_app_info (GTK_APP_CHOOSER (self));
/* we don't care about reporting errors here */
- g_app_info_add_supports_type (app,
- self->priv->content_type,
- NULL);
+ g_app_info_set_as_last_used_for_type (app,
+ self->priv->content_type,
+ NULL);
g_object_unref (app);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]