From 3ce8d74b14583aefa15c03e19abb0dacde41dc9e Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 7 Jun 2007 23:05:02 +0000 Subject: [PATCH] #define GIMP_VIEWABLE_PRIORITY_IDLE, which is even lower than 2007-06-08 Sven Neumann * app/core/gimpviewable.h: #define GIMP_VIEWABLE_PRIORITY_IDLE, which is even lower than G_PRIORITY_LOW. * app/core/gimpundo.c * app/widgets/gimpviewrenderer.c: create previews with GIMP_VIEWABLE_PRIORITY_IDLE so that they are run after the projection has been invalidated. svn path=/trunk/; revision=22743 --- ChangeLog | 10 ++++++++++ app/core/gimpundo.c | 2 +- app/core/gimpviewable.h | 2 ++ app/widgets/gimpviewrenderer.c | 4 ++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8e5b6d084..ef7a760126 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-06-08 Sven Neumann + + * app/core/gimpviewable.h: #define GIMP_VIEWABLE_PRIORITY_IDLE, + which is even lower than G_PRIORITY_LOW. + + * app/core/gimpundo.c + * app/widgets/gimpviewrenderer.c: create previews with + GIMP_VIEWABLE_PRIORITY_IDLE so that they are run after the + projection has been invalidated. + 2007-06-07 Sven Neumann * app/base/tile-manager.c: formatting. diff --git a/app/core/gimpundo.c b/app/core/gimpundo.c index cb29cf4d28..9741e296b3 100644 --- a/app/core/gimpundo.c +++ b/app/core/gimpundo.c @@ -432,7 +432,7 @@ gimp_undo_create_preview (GimpUndo *undo, idle->context = g_object_ref (context); undo->preview_idle_id = - g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, + g_idle_add_full (GIMP_VIEWABLE_PRIORITY_IDLE, gimp_undo_create_preview_idle, idle, (GDestroyNotify) gimp_undo_idle_free); } diff --git a/app/core/gimpviewable.h b/app/core/gimpviewable.h index 9bc9170d0a..7443865f32 100644 --- a/app/core/gimpviewable.h +++ b/app/core/gimpviewable.h @@ -33,6 +33,8 @@ #define GIMP_VIEWABLE_MAX_BUTTON_SIZE 64 #define GIMP_VIEWABLE_MAX_MENU_SIZE 48 +#define GIMP_VIEWABLE_PRIORITY_IDLE (G_PRIORITY_LOW + 100) + #define GIMP_TYPE_VIEWABLE (gimp_viewable_get_type ()) #define GIMP_VIEWABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_VIEWABLE, GimpViewable)) diff --git a/app/widgets/gimpviewrenderer.c b/app/widgets/gimpviewrenderer.c index a559b60829..51df4ed012 100644 --- a/app/widgets/gimpviewrenderer.c +++ b/app/widgets/gimpviewrenderer.c @@ -540,7 +540,7 @@ gimp_view_renderer_invalidate (GimpViewRenderer *renderer) GIMP_VIEW_RENDERER_GET_CLASS (renderer)->invalidate (renderer); renderer->idle_id = - g_idle_add_full (G_PRIORITY_LOW, + g_idle_add_full (GIMP_VIEWABLE_PRIORITY_IDLE, (GSourceFunc) gimp_view_renderer_idle_update, renderer, NULL); } @@ -568,7 +568,7 @@ gimp_view_renderer_update_idle (GimpViewRenderer *renderer) g_source_remove (renderer->idle_id); renderer->idle_id = - g_idle_add_full (G_PRIORITY_LOW, + g_idle_add_full (GIMP_VIEWABLE_PRIORITY_IDLE, (GSourceFunc) gimp_view_renderer_idle_update, renderer, NULL); }