5e6fcf2935
Remove custom appstream screenshots
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 51d9b31c07876857d105fa81d16c162b13aa8c3e Mon Sep 17 00:00:00 2001
|
|
From: Cosimo Cecchi <cosimoc@gnome.org>
|
|
Date: Wed, 17 May 2017 12:11:17 -0700
|
|
Subject: font-view: make sure to hold the GApplication while doing async init
|
|
|
|
Otherwise the application will shutdown during the query_info call.
|
|
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=782738
|
|
---
|
|
src/font-view.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/src/font-view.c b/src/font-view.c
|
|
index 898e53b..21aebf4 100644
|
|
--- a/src/font-view.c
|
|
+++ b/src/font-view.c
|
|
@@ -737,6 +737,8 @@ query_info_ready_cb (GObject *object,
|
|
GFileInfo *info;
|
|
GError *error = NULL;
|
|
|
|
+ g_application_release (G_APPLICATION (self));
|
|
+
|
|
info = g_file_query_info_finish (G_FILE (object), res, &error);
|
|
if (error != NULL) {
|
|
font_view_application_do_overview (self);
|
|
@@ -756,6 +758,8 @@ font_view_application_open (GApplication *application,
|
|
const gchar *hint)
|
|
{
|
|
FontViewApplication *self = FONT_VIEW_APPLICATION (application);
|
|
+
|
|
+ g_application_hold (application);
|
|
g_file_query_info_async (files[0], G_FILE_ATTRIBUTE_STANDARD_NAME,
|
|
G_FILE_QUERY_INFO_NONE,
|
|
G_PRIORITY_DEFAULT, NULL,
|
|
--
|
|
cgit v0.12
|
|
|