#define GIMP_VIEWABLE_PRIORITY_IDLE, which is even lower than

2007-06-08  Sven Neumann  <sven@gimp.org>

	* 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
This commit is contained in:
Sven Neumann 2007-06-07 23:05:02 +00:00 committed by Sven Neumann
parent 345855a711
commit 3ce8d74b14
4 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,13 @@
2007-06-08 Sven Neumann <sven@gimp.org>
* 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 <sven@gimp.org> 2007-06-07 Sven Neumann <sven@gimp.org>
* app/base/tile-manager.c: formatting. * app/base/tile-manager.c: formatting.

View File

@ -432,7 +432,7 @@ gimp_undo_create_preview (GimpUndo *undo,
idle->context = g_object_ref (context); idle->context = g_object_ref (context);
undo->preview_idle_id = 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, gimp_undo_create_preview_idle, idle,
(GDestroyNotify) gimp_undo_idle_free); (GDestroyNotify) gimp_undo_idle_free);
} }

View File

@ -33,6 +33,8 @@
#define GIMP_VIEWABLE_MAX_BUTTON_SIZE 64 #define GIMP_VIEWABLE_MAX_BUTTON_SIZE 64
#define GIMP_VIEWABLE_MAX_MENU_SIZE 48 #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_TYPE_VIEWABLE (gimp_viewable_get_type ())
#define GIMP_VIEWABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_VIEWABLE, GimpViewable)) #define GIMP_VIEWABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_VIEWABLE, GimpViewable))

View File

@ -540,7 +540,7 @@ gimp_view_renderer_invalidate (GimpViewRenderer *renderer)
GIMP_VIEW_RENDERER_GET_CLASS (renderer)->invalidate (renderer); GIMP_VIEW_RENDERER_GET_CLASS (renderer)->invalidate (renderer);
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, (GSourceFunc) gimp_view_renderer_idle_update,
renderer, NULL); renderer, NULL);
} }
@ -568,7 +568,7 @@ gimp_view_renderer_update_idle (GimpViewRenderer *renderer)
g_source_remove (renderer->idle_id); g_source_remove (renderer->idle_id);
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, (GSourceFunc) gimp_view_renderer_idle_update,
renderer, NULL); renderer, NULL);
} }