[gthumb] g_idle_add was running gth_monitor_resume forever, bug 583891
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] g_idle_add was running gth_monitor_resume forever, bug 583891
- Date: Fri, 29 May 2009 12:37:56 -0400 (EDT)
commit dc6d0f78bd1e6b41ef8cd2b9df8fef7dfb6ed43d
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Fri May 29 12:36:45 2009 -0400
g_idle_add was running gth_monitor_resume forever, bug 583891
---
libgthumb/gth-monitor.c | 5 ++++-
libgthumb/gth-monitor.h | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libgthumb/gth-monitor.c b/libgthumb/gth-monitor.c
index 58bf022..c780207 100644
--- a/libgthumb/gth-monitor.c
+++ b/libgthumb/gth-monitor.c
@@ -462,10 +462,13 @@ gth_monitor_pause (void)
}
-void
+gboolean
gth_monitor_resume (void)
{
instance->priv->monitor_enabled = TRUE;
+
+ /* to cancel idle calls, if used */
+ return FALSE;
}
diff --git a/libgthumb/gth-monitor.h b/libgthumb/gth-monitor.h
index f75af6c..5b3b255 100644
--- a/libgthumb/gth-monitor.h
+++ b/libgthumb/gth-monitor.h
@@ -82,7 +82,7 @@ GthMonitor* gth_monitor_get_instance (void);
void gth_monitor_add_uri (const char *uri);
void gth_monitor_remove_uri (const char *uri);
void gth_monitor_pause (void);
-void gth_monitor_resume (void);
+gboolean gth_monitor_resume (void);
void gth_monitor_notify_update_icon_theme (void);
void gth_monitor_notify_update_bookmarks (void);
void gth_monitor_notify_update_cat_files (const char *catalog_path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]