app: make the first image jump to the center of the canvas before rendering

Make GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY a bit higher than
GIMP_PROJECTION_IDLE_PRIORITY which is the priority of chunk
rendering.
This commit is contained in:
Michael Natterer 2014-06-17 23:29:24 +02:00
parent 98f97a9580
commit 3af1fff5af
2 changed files with 6 additions and 6 deletions

View File

@ -43,8 +43,10 @@
#include "gimp-log.h"
/* just a bit less than GDK_PRIORITY_REDRAW */
#define GIMP_PROJECTION_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 1)
/* just a bit less than GDK_PRIORITY_REDRAW, also see
* GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY in gimpdisplayshell.c
*/
#define GIMP_PROJECTION_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 2)
/* chunk size for one iteration of the chunk renderer */
static gint GIMP_PROJECTION_CHUNK_WIDTH = 256;

View File

@ -85,11 +85,9 @@
#include "gimp-intl.h"
/* halfway between G_PRIORITY_HIGH_IDLE and G_PRIORITY_DEFAULT_IDLE - 1,
* so a bit higher than projection construction
/* a bit higher than projection construction, see gimpprojection.c
*/
#define GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY \
((G_PRIORITY_HIGH_IDLE + G_PRIORITY_DEFAULT_IDLE) / 2 - 1)
#define GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 1)
enum