Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
gThumb
Commits
8fb59384
Commit
8fb59384
authored
Jan 05, 2019
by
Paolo Bacchilega
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viewer page: do not update quality if the viewer is destroyed
parent
b08f2712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
extensions/image_viewer/gth-image-viewer-page.c
extensions/image_viewer/gth-image-viewer-page.c
+6
-0
No files found.
extensions/image_viewer/gth-image-viewer-page.c
View file @
8fb59384
...
...
@@ -450,6 +450,11 @@ update_quality_cb (gpointer user_data)
GthImageViewerPage
*
self
=
data
->
self
;
gboolean
file_changed
;
if
(
!
_gth_image_viewer_page_load_with_preloader_finish
(
self
))
{
update_quality_data_free
(
data
);
return
FALSE
;
}
if
(
self
->
priv
->
update_quality_id
!=
0
)
{
g_source_remove
(
self
->
priv
->
update_quality_id
);
self
->
priv
->
update_quality_id
=
0
;
...
...
@@ -508,6 +513,7 @@ update_image_quality_if_required (GthImageViewerPage *self)
data
->
self
=
self
;
data
->
file_data
=
_g_object_ref
(
self
->
priv
->
file_data
);
_g_object_ref
(
self
);
self
->
priv
->
update_quality_id
=
g_timeout_add
(
UPDATE_QUALITY_DELAY
,
update_quality_cb
,
data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment