[gthumb] image viewer: the overview quickly appears and disappears sometimes
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] image viewer: the overview quickly appears and disappears sometimes
- Date: Sun, 15 Mar 2015 17:36:08 +0000 (UTC)
commit 728f88979dc4835a0579ea0989c89072028d3826
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Feb 28 13:09:05 2015 +0100
image viewer: the overview quickly appears and disappears sometimes
extensions/image_viewer/gth-image-viewer-page.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index dfc0def..04f58cd 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -369,10 +369,8 @@ hide_overview_after_timeout (gpointer data)
g_source_remove (self->priv->hide_overview_id);
self->priv->hide_overview_id = 0;
- if (! self->priv->pointer_on_overview) {
- if (gtk_revealer_get_child_revealed (GTK_REVEALER (self->priv->overview_revealer)))
- gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->overview_revealer), FALSE);
- }
+ if (! self->priv->pointer_on_overview)
+ gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->overview_revealer), FALSE);
return FALSE;
}
@@ -411,17 +409,14 @@ update_overview_visibility_now (gpointer user_data)
static void
update_overview_visibility (GthImageViewerPage *self)
{
- if (gtk_revealer_get_child_revealed (GTK_REVEALER (self->priv->overview_revealer))) {
- if (self->priv->update_visibility_id != 0) {
- g_source_remove (self->priv->update_visibility_id);
- self->priv->update_visibility_id = 0;
- }
+ if (self->priv->update_visibility_id != 0) {
+ g_source_remove (self->priv->update_visibility_id);
+ self->priv->update_visibility_id = 0;
}
- if (self->priv->update_visibility_id == 0)
- self->priv->update_visibility_id = g_timeout_add (UPDATE_VISIBILITY_DELAY,
- update_overview_visibility_now,
- self);
+ self->priv->update_visibility_id = g_timeout_add (UPDATE_VISIBILITY_DELAY,
+ update_overview_visibility_now,
+ self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]