appchooserdialog: use new GLib API to modify positioning

The dialog will always show up with the last selected application.
This commit is contained in:
Cosimo Cecchi 2010-12-15 11:58:29 +01:00
parent 183bf8ac9d
commit a5fe3fef7b
2 changed files with 4 additions and 4 deletions

View File

@ -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])

View File

@ -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);
}