From 9c57bdb881efba5835fb5e04d2c5a53c4079f0f6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:30:51 +0200 Subject: [PATCH 001/249] gdkrgb: walk the colormap lut lists to their end --- gdk/gdkrgb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index e4f63ddaf..a7146bdbb 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -543,6 +543,7 @@ gdk_rgb_free_info (GdkRgbInfo *image_info) GdkRgbCmapInfo *cmap_info = tmp_list->data; cmap_info->cmap->info_list = g_slist_remove (cmap_info->cmap->info_list, cmap_info); g_free (cmap_info); + tmp_list = tmp_list->next; } g_slist_free (image_info->cmap_info_list); @@ -3739,9 +3740,10 @@ gdk_rgb_cmap_get_info (GdkRgbCmap *cmap, while (tmp_list) { - cmap_info = tmp_list->data; + cmap_info = tmp_list->data; if (cmap_info->image_info == image_info) return cmap_info; + tmp_list = tmp_list->next; } cmap_info = g_new (GdkRgbCmapInfo, 1); From 7fb43ac250c5b68a61de6aad5704aed6bf0ce983 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:30:51 +0200 Subject: [PATCH 002/249] gdkrgb: choose visuals by their color bits, 30-bit ones included --- gdk/gdkrgb.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index a7146bdbb..86413ef21 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -390,17 +390,25 @@ gdk_rgb_score_visual (GdkVisual *visual) if (visual->type == GDK_VISUAL_TRUE_COLOR || visual->type == GDK_VISUAL_DIRECT_COLOR) { - if (visual->depth == 24) - { - quality = 9; - /* Should test for MSB visual here, and set speed if so. */ - } - else if (visual->depth == 16) + /* Visuals with alpha (depth 32 with 24 color bits) are skipped */ + gint bits = visual->red_prec + visual->green_prec + visual->blue_prec; + + if (bits != visual->depth) + quality = 0; + else if (bits > 24) + quality = 10; + else if (bits == 24) + quality = 9; + else if (bits == 16) quality = 8; - else if (visual->depth == 15) + else if (bits == 15) quality = 7; - else if (visual->depth == 8) + else if (bits > 8) + quality = 5; + else if (bits == 8) quality = 4; + else if (bits >= 3) + quality = 2; } else if (visual->type == GDK_VISUAL_PSEUDO_COLOR || visual->type == GDK_VISUAL_STATIC_COLOR) From 02716d07674c008c7a9d09297bacd721f8a45a8a Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:30:51 +0200 Subject: [PATCH 003/249] gdkimage-x11: 1-bit images use their byte order for the bits too --- gdk/x11/gdkimage-x11.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdk/x11/gdkimage-x11.c b/gdk/x11/gdkimage-x11.c index 65616271e..7fa353da3 100644 --- a/gdk/x11/gdkimage-x11.c +++ b/gdk/x11/gdkimage-x11.c @@ -270,6 +270,13 @@ _gdk_image_new_for_depth (GdkScreen *screen, goto error; } + /* GdkImage has one byte order for bytes and bits; a server + * whose bitmap bit order differs gets an unshared image, + * which Xlib converts */ + if (private->ximage->bits_per_pixel == 1 && + private->ximage->bitmap_bit_order != private->ximage->byte_order) + goto error; + x_shm_info->shmid = shmget (IPC_PRIVATE, private->ximage->bytes_per_line * private->ximage->height, IPC_CREAT | 0600); @@ -335,6 +342,8 @@ _gdk_image_new_for_depth (GdkScreen *screen, case GDK_IMAGE_NORMAL: private->ximage = XCreateImage (screen_x11->xdisplay, xvisual, depth, ZPixmap, 0, NULL, width, height, 32, 0); + if (private->ximage->bits_per_pixel == 1) + private->ximage->bitmap_bit_order = private->ximage->byte_order; /* Use malloc, not g_malloc here, because X will call free() * on this data From f35ba2a424ddc523f79b43b77ab6d4dac2f4cf71 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:30:51 +0200 Subject: [PATCH 004/249] gdkrgb: one conversion engine for all depths, with gdkrgb16.c merged in --- gdk/Makefile.am | 1 - gdk/gdk.symbols | 2 +- gdk/gdkrgb.c | 3454 +++++++++++++--------------------------------- gdk/gdkrgb16.c | 742 ---------- gdk/makefile.msc | 1 - 5 files changed, 941 insertions(+), 3259 deletions(-) delete mode 100644 gdk/gdkrgb16.c diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 2b68f98a6..1fc04ae97 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -145,7 +145,6 @@ gdk_c_sources = \ gdkrectangle.c \ gdkregion-generic.c \ gdkrgb.c \ - gdkrgb16.c \ gdkscreen.c \ gdkselection.c \ gdkvisual.c \ diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index b48eac70b..7f553df52 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -1119,7 +1119,7 @@ gdk_draw_rgb_image_dithalign #endif #if IN_HEADER(__GDK_RGB_H__) -#if IN_FILE(__GDK_RGB16_C__) +#if IN_FILE(__GDK_RGB_C__) gdk_draw_rgb_48_image gdk_draw_rgb_48_image_dithalign gdk_draw_rgbx_64_image diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index 86413ef21..492f7bca9 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -46,14 +46,12 @@ typedef struct _GdkRgbInfo GdkRgbInfo; typedef struct _GdkRgbCmapInfo GdkRgbCmapInfo; -typedef void (*GdkRgbConvFunc) (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, - gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap); - -#define STAGE_ROWSTRIDE (GDK_SCRATCH_IMAGE_WIDTH * 3) +typedef void (*GdkRgbIndexRowFunc) (GdkRgbInfo *info, + guchar *out, + const guchar *in, + gint width, + const guchar *dm, + gint x_dith); /* Some of these fields should go, as they're not being used at all. (?) */ @@ -69,13 +67,10 @@ struct _GdkRgbInfo guint nreserved; guint bpp; + guint bits_per_pixel; gint cmap_alloced; gdouble gamma; - /* Generally, the stage buffer is used to convert 32bit RGB, gray, - and indexed images into 24 bit packed RGB. */ - guchar *stage_buf; - GdkRgbCmap *gray_cmap; gboolean dith_default; @@ -83,18 +78,17 @@ struct _GdkRgbInfo gboolean bitmap; /* set true if in 1 bit per pixel mode */ GdkGC *own_gc; - /* Convert functions */ - GdkRgbConvFunc conv; - GdkRgbConvFunc conv_d; + /* TrueColor: red, green and blue table (see gdk_rgb_init_truecolor()) */ + guint32 *tables; + guint32 fill; + guint8 shift16[3][2]; + guint32 dither_pack[64]; + guint8 layout; + gboolean ditherable; - GdkRgbConvFunc conv_32; - GdkRgbConvFunc conv_32_d; - - GdkRgbConvFunc conv_gray; - GdkRgbConvFunc conv_gray_d; - - GdkRgbConvFunc conv_indexed; - GdkRgbConvFunc conv_indexed_d; + /* Palettes and gray levels */ + GdkRgbIndexRowFunc index_row; + GdkRgbIndexRowFunc index_row_dither; guchar *colorcube; guchar *colorcube_d; @@ -533,7 +527,7 @@ gdk_rgb_free_info (GdkRgbInfo *image_info) { GSList *tmp_list; - g_free (image_info->stage_buf); + g_free (image_info->tables); if (image_info->gray_cmap) gdk_rgb_cmap_free (image_info->gray_cmap); @@ -584,8 +578,6 @@ gdk_rgb_create_info (GdkVisual *visual, GdkColormap *colormap) image_info->cmap_alloced = FALSE; image_info->gamma = 1.0; - image_info->stage_buf = NULL; - image_info->own_gc = NULL; image_info->cmap = colormap; @@ -670,7 +662,8 @@ gdk_rgb_create_info (GdkVisual *visual, GdkColormap *colormap) image_info->bitmap = (image_info->visual->depth == 1); - image_info->bpp = (_gdk_windowing_get_bits_for_depth (gdk_screen_get_display (screen), image_info->visual->depth) + 7) / 8; + image_info->bits_per_pixel = _gdk_windowing_get_bits_for_depth (gdk_screen_get_display (screen), image_info->visual->depth); + image_info->bpp = (image_info->bits_per_pixel + 7) / 8; gdk_rgb_select_conv (image_info); if (!gdk_rgb_quark) @@ -847,141 +840,28 @@ gdk_rgb_find_color (GdkColormap *colormap, GdkColor *color) color->red, color->green, color->blue); } -#if G_BYTE_ORDER == G_LITTLE_ENDIAN -#define HAIRY_CONVERT_8 -#endif - -#ifdef HAIRY_CONVERT_8 -static void -gdk_rgb_convert_8 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - guchar *colorcube = image_info->colorcube; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - if (((guintptr)obuf | (guintptr) bp2) & 3) - { - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - obptr[0] = colorcube[((r & 0xf0) << 4) | - (g & 0xf0) | - (b >> 4)]; - obptr++; - } - } - else - { - for (x = 0; x < width - 3; x += 4) - { - guint32 r1b0g0r0; - guint32 g2r2b1g1; - guint32 b3g3r3b2; - - r1b0g0r0 = ((guint32 *)bp2)[0]; - g2r2b1g1 = ((guint32 *)bp2)[1]; - b3g3r3b2 = ((guint32 *)bp2)[2]; - ((guint32 *)obptr)[0] = - colorcube[((r1b0g0r0 & 0xf0) << 4) | - ((r1b0g0r0 & 0xf000) >> 8) | - ((r1b0g0r0 & 0xf00000) >> 20)] | - (colorcube[((r1b0g0r0 & 0xf0000000) >> 20) | - (g2r2b1g1 & 0xf0) | - ((g2r2b1g1 & 0xf000) >> 12)] << 8) | - (colorcube[((g2r2b1g1 & 0xf00000) >> 12) | - ((g2r2b1g1 & 0xf0000000) >> 24) | - ((b3g3r3b2 & 0xf0) >> 4)] << 16) | - (colorcube[((b3g3r3b2 & 0xf000) >> 4) | - ((b3g3r3b2 & 0xf00000) >> 16) | - (b3g3r3b2 >> 28)] << 24); - bp2 += 12; - obptr += 4; - } - for (; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - obptr[0] = colorcube[((r & 0xf0) << 4) | - (g & 0xf0) | - (b >> 4)]; - obptr++; - } - } - bptr += rowstride; - obuf += bpl; - } -} -#else -static void -gdk_rgb_convert_8 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - guchar *colorcube = image_info->colorcube; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - obptr[0] = colorcube[((r & 0xf0) << 4) | - (g & 0xf0) | - (b >> 4)]; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} -#endif - - - -/* Dither matrices - * --------------- +/*** Pixel conversion * - * The original matrices are called "DM" below. The preprocessed matrices for - * 5-6-5 RGB displays are called "DM_565". These preprocessed tables can be - * generated with the gdk_rgb_preprocess_dm_565() function below. + * Images are converted row by row into scratch images. The source is + * 8-bit RGB, RGBX, gray or indexed, or 16-bit RGB or RGBX; the target + * is described by the visual: + * + * - TrueColor and DirectColor with any size and position of the + * channels, 8, 16, 24 or 32 bits per pixel, in either byte order. + * A table per channel holds its bits already in place, so all of + * these cost the same. Bits outside the channels are set. + * - Palettes and gray levels with 1 to 8 bits per pixel: a row of + * pixel values is made and packed if pixels are smaller than bytes. + * + * Nothing depends on the byte order of the machine: pixels are always + * stored in the byte order of the image. */ -#if 1 - /* This dither table was generated by Raph Levien using patented technology (US Patent 5,276,535). The dither table itself is in the public domain. */ #define DM_WIDTH 128 -#define DM_WIDTH_SHIFT 7 #define DM_HEIGHT 128 static const guchar DM[128][128] = { @@ -1115,2415 +995,809 @@ static const guchar DM[128][128] = { 51, 14, 61, 29, 59, 20, 55, 31, 0, 49, 11, 60, 3, 26, 22, 56, 0, 40, 12, 43, 41, 8, 36, 0, 17, 57, 24, 2, 46, 26, 61, 18, 0, 38, 12, 59, 6, 49, 3, 57, 19, 63, 5, 33, 18, 54, 28, 56, 0, 43, 26, 46, 63, 27, 56, 22, 27, 54, 38, 28, 63, 24, 10, 45, 0, 31, 42, 21, 12, 25, 44, 49, 59, 6, 26, 50, 3, 34, 27, 59, 0, 35, 62, 16, 4, 58, 47, 0, 43, 24, 37, 2, 54, 20, 46, 31, 0, 56, 34, 5, 55, 45, 60, 37, 0, 40, 10, 38, 63, 46, 15, 20, 0, 53, 21, 62, 30, 11, 24, 27, 40, 0, 57, 26, 3, 45, 27, 35 }, }; -static const guint32 DM_565[128 * 128] = +typedef enum { - 3072, 5243909, 2099202, 3072, 2099202, 4195332, 3072, 1051649, 7340039, 2099202, 5243909, 6291462, 3147779, 5243909, 1051649, 4195332, 6291462, 3147779, 7340039, 3147779, 3072, 7340039, 3147779, 6291462, 4195332, 3072, 5243909, 7340039, 2099202, 4195332, 1051649, 5243909, 3147779, 7340039, 5243909, 4195332, 2099202, 5243909, 4195332, 1051649, 4195332, 3147779, 6291462, 1051649, 7340039, 3072, 5243909, 1051649, 4195332, 1051649, 7340039, 2099202, 3072, 5243909, 1051649, 4195332, 3072, 7340039, 1051649, 5243909, 3072, 6291462, 4195332, 2099202, 4195332, 7340039, 1051649, 6291462, 4195332, 7340039, 1051649, 3147779, 2099202, 1051649, 7340039, 2099202, 5243909, 6291462, 3072, 2099202, 6291462, 1051649, 2099202, 6291462, 4195332, 2099202, 2099202, 4195332, 1051649, 6291462, 2099202, 7340039, 3147779, 1051649, 4195332, 3147779, 6291462, 1051649, 2099202, 5243909, 2099202, 3147779, 3072, 2099202, 6291462, 3147779, 6291462, 2099202, 3072, 4195332, 7340039, 5243909, 3147779, 4195332, 1051649, 6291462, 2099202, 5243909, 3072, 6291462, 1051649, 5243909, 4195332, 6291462, 2099202, 5243909, 1051649, 7340039, - 3147779, 7340039, 4195332, 6291462, 5243909, 4195332, 6291462, 3147779, 5243909, 3072, 3147779, 3072, 2099202, 4195332, 7340039, 1051649, 5243909, 3072, 2099202, 6291462, 4195332, 2099202, 5243909, 1051649, 3147779, 5243909, 1051649, 4195332, 3072, 6291462, 3147779, 7340039, 1051649, 3147779, 3072, 2099202, 6291462, 1051649, 7340039, 3147779, 5243909, 3072, 4195332, 3147779, 5243909, 2099202, 5243909, 3147779, 7340039, 4195332, 1051649, 4195332, 6291462, 2099202, 7340039, 3147779, 6291462, 2099202, 4195332, 3147779, 6291462, 2099202, 3072, 6291462, 2099202, 1051649, 3147779, 5243909, 3072, 4195332, 5243909, 2099202, 6291462, 5243909, 4195332, 2099202, 3147779, 1051649, 5243909, 3147779, 4195332, 7340039, 3072, 4195332, 1051649, 5243909, 7340039, 3147779, 7340039, 1051649, 5243909, 1051649, 5243909, 3072, 7340039, 3072, 2099202, 6291462, 7340039, 1051649, 6291462, 1051649, 5243909, 7340039, 1051649, 3147779, 3072, 6291462, 5243909, 3147779, 1051649, 6291462, 2099202, 7340039, 5243909, 3072, 4195332, 7340039, 4195332, 2099202, 7340039, 3147779, 2099202, 3072, 7340039, 4195332, 3147779, 4195332, - 2099202, 1051649, 2099202, 4195332, 3072, 3147779, 1051649, 7340039, 2099202, 5243909, 7340039, 4195332, 6291462, 2099202, 3072, 5243909, 2099202, 4195332, 7340039, 3072, 6291462, 1051649, 7340039, 3072, 7340039, 2099202, 6291462, 3147779, 5243909, 2099202, 3072, 6291462, 1051649, 6291462, 5243909, 6291462, 3147779, 4195332, 3072, 6291462, 2099202, 7340039, 1051649, 6291462, 3072, 4195332, 1051649, 6291462, 2099202, 3147779, 6291462, 1051649, 3147779, 6291462, 3072, 4195332, 1051649, 5243909, 3072, 6291462, 1051649, 4195332, 7340039, 3147779, 7340039, 4195332, 6291462, 1051649, 7340039, 2099202, 3072, 7340039, 3072, 3147779, 3072, 6291462, 7340039, 4195332, 1051649, 7340039, 3072, 3147779, 5243909, 3147779, 6291462, 1051649, 3072, 5243909, 3072, 4195332, 4195332, 6291462, 3147779, 6291462, 4195332, 5243909, 7340039, 3072, 3147779, 4195332, 2099202, 7340039, 3072, 4195332, 5243909, 7340039, 4195332, 2099202, 7340039, 3072, 6291462, 3147779, 3072, 4195332, 2099202, 6291462, 3147779, 1051649, 5243909, 6291462, 1051649, 3072, 7340039, 4195332, 2099202, 6291462, 3072, 5243909, - 6291462, 6291462, 5243909, 1051649, 5243909, 7340039, 3147779, 4195332, 1051649, 4195332, 2099202, 3072, 3147779, 5243909, 3147779, 7340039, 3072, 6291462, 1051649, 4195332, 3147779, 2099202, 4195332, 4195332, 2099202, 5243909, 3072, 6291462, 1051649, 7340039, 3147779, 4195332, 2099202, 4195332, 2099202, 2099202, 3072, 5243909, 4195332, 2099202, 1051649, 5243909, 3147779, 3147779, 7340039, 2099202, 7340039, 3072, 5243909, 3072, 5243909, 7340039, 3072, 3147779, 5243909, 2099202, 7340039, 3147779, 7340039, 2099202, 4195332, 5243909, 1051649, 5243909, 3072, 4195332, 3072, 4195332, 1051649, 5243909, 6291462, 4195332, 2099202, 6291462, 5243909, 1051649, 2099202, 3072, 6291462, 2099202, 6291462, 5243909, 1051649, 7340039, 2099202, 6291462, 3147779, 6291462, 2099202, 7340039, 1051649, 3072, 7340039, 2099202, 1051649, 2099202, 4195332, 4195332, 2099202, 5243909, 3072, 6291462, 3147779, 4195332, 2099202, 3072, 6291462, 1051649, 3147779, 5243909, 4195332, 2099202, 7340039, 1051649, 5243909, 1051649, 6291462, 2099202, 3072, 4195332, 3147779, 5243909, 3147779, 3072, 6291462, 1051649, 7340039, 3072, - 2099202, 3147779, 3072, 7340039, 2099202, 1051649, 6291462, 3072, 5243909, 6291462, 1051649, 7340039, 1051649, 6291462, 1051649, 4195332, 2099202, 3147779, 5243909, 1051649, 6291462, 3147779, 5243909, 3072, 6291462, 1051649, 7340039, 1051649, 4195332, 1051649, 6291462, 1051649, 7340039, 3072, 7340039, 5243909, 7340039, 1051649, 6291462, 3147779, 7340039, 4195332, 1051649, 6291462, 3072, 5243909, 3147779, 4195332, 6291462, 2099202, 4195332, 1051649, 6291462, 4195332, 1051649, 6291462, 3072, 2099202, 1051649, 5243909, 3072, 7340039, 1051649, 2099202, 6291462, 2099202, 6291462, 3147779, 7340039, 2099202, 3147779, 1051649, 5243909, 1051649, 3147779, 7340039, 5243909, 4195332, 3147779, 4195332, 1051649, 3147779, 2099202, 4195332, 3072, 5243909, 4195332, 1051649, 6291462, 4195332, 2099202, 5243909, 3147779, 5243909, 3147779, 6291462, 3072, 5243909, 6291462, 1051649, 7340039, 3147779, 1051649, 6291462, 2099202, 5243909, 4195332, 2099202, 4195332, 3072, 6291462, 1051649, 5243909, 4195332, 3072, 7340039, 3147779, 5243909, 7340039, 2099202, 1051649, 7340039, 4195332, 5243909, 1051649, 4195332, 3147779, 4195332, - 6291462, 4195332, 7340039, 3147779, 4195332, 5243909, 2099202, 7340039, 3072, 4195332, 5243909, 3147779, 5243909, 4195332, 3072, 6291462, 6291462, 1051649, 7340039, 2099202, 5243909, 3072, 7340039, 3147779, 2099202, 5243909, 4195332, 3147779, 7340039, 5243909, 2099202, 4195332, 4195332, 3147779, 5243909, 1051649, 3147779, 2099202, 3072, 5243909, 1051649, 6291462, 3072, 4195332, 2099202, 6291462, 1051649, 2099202, 3072, 7340039, 2099202, 3147779, 6291462, 2099202, 7340039, 3147779, 5243909, 4195332, 7340039, 1051649, 6291462, 4195332, 3147779, 5243909, 2099202, 7340039, 3147779, 1051649, 5243909, 3072, 4195332, 7340039, 1051649, 7340039, 3147779, 3072, 6291462, 1051649, 7340039, 3072, 5243909, 7340039, 3072, 7340039, 3147779, 2099202, 3072, 7340039, 3147779, 1051649, 7340039, 2099202, 5243909, 3072, 7340039, 4195332, 3147779, 1051649, 3147779, 4195332, 1051649, 5243909, 6291462, 3072, 6291462, 1051649, 7340039, 3072, 7340039, 1051649, 3147779, 7340039, 2099202, 6291462, 4195332, 2099202, 4195332, 1051649, 3147779, 6291462, 5243909, 2099202, 3072, 3147779, 7340039, 2099202, 6291462, 1051649, - 3147779, 3072, 3147779, 1051649, 6291462, 3072, 4195332, 3147779, 2099202, 6291462, 2099202, 7340039, 3072, 7340039, 3147779, 2099202, 3072, 4195332, 3147779, 3072, 6291462, 4195332, 1051649, 6291462, 3147779, 6291462, 2099202, 5243909, 3072, 3147779, 7340039, 3072, 6291462, 1051649, 3147779, 3072, 6291462, 5243909, 7340039, 3147779, 4195332, 1051649, 7340039, 2099202, 5243909, 1051649, 7340039, 4195332, 5243909, 3147779, 5243909, 5243909, 3072, 4195332, 1051649, 5243909, 2099202, 3072, 5243909, 3147779, 3147779, 2099202, 7340039, 3072, 4195332, 3072, 5243909, 4195332, 3147779, 6291462, 2099202, 3147779, 6291462, 3072, 4195332, 7340039, 2099202, 4195332, 2099202, 6291462, 1051649, 5243909, 3147779, 4195332, 1051649, 6291462, 5243909, 3147779, 2099202, 5243909, 4195332, 3072, 6291462, 2099202, 1051649, 1051649, 6291462, 7340039, 3072, 7340039, 5243909, 2099202, 1051649, 3147779, 7340039, 3147779, 3147779, 5243909, 3147779, 6291462, 4195332, 2099202, 5243909, 3072, 3147779, 6291462, 3072, 7340039, 3072, 4195332, 3072, 7340039, 6291462, 5243909, 1051649, 5243909, 3072, 5243909, - 2099202, 7340039, 5243909, 3072, 7340039, 3147779, 7340039, 1051649, 6291462, 1051649, 4195332, 1051649, 3147779, 5243909, 2099202, 5243909, 7340039, 3147779, 6291462, 4195332, 1051649, 7340039, 2099202, 4195332, 3072, 5243909, 3072, 7340039, 4195332, 2099202, 5243909, 1051649, 5243909, 2099202, 7340039, 5243909, 2099202, 1051649, 4195332, 2099202, 6291462, 4195332, 2099202, 7340039, 3147779, 6291462, 3147779, 3072, 2099202, 6291462, 3072, 7340039, 2099202, 7340039, 3147779, 3072, 7340039, 4195332, 2099202, 7340039, 3072, 6291462, 3072, 5243909, 3147779, 7340039, 1051649, 6291462, 1051649, 7340039, 3072, 2099202, 4195332, 2099202, 5243909, 1051649, 5243909, 3072, 5243909, 3147779, 4195332, 2099202, 6291462, 2099202, 6291462, 5243909, 1051649, 7340039, 3072, 6291462, 1051649, 6291462, 3147779, 4195332, 7340039, 2099202, 5243909, 2099202, 4195332, 3147779, 3072, 6291462, 4195332, 4195332, 3072, 5243909, 1051649, 5243909, 1051649, 2099202, 3072, 6291462, 1051649, 4195332, 7340039, 1051649, 5243909, 2099202, 6291462, 3147779, 5243909, 2099202, 3147779, 1051649, 7340039, 2099202, 4195332, 7340039, - 6291462, 4195332, 1051649, 5243909, 3147779, 2099202, 5243909, 3072, 4195332, 7340039, 3147779, 5243909, 6291462, 3072, 7340039, 1051649, 5243909, 2099202, 3072, 7340039, 2099202, 1051649, 5243909, 1051649, 7340039, 4195332, 1051649, 3147779, 3072, 6291462, 2099202, 7340039, 4195332, 6291462, 3072, 4195332, 6291462, 3147779, 7340039, 3072, 5243909, 3072, 5243909, 3072, 5243909, 3072, 6291462, 4195332, 7340039, 1051649, 4195332, 1051649, 5243909, 1051649, 4195332, 6291462, 3147779, 6291462, 1051649, 5243909, 2099202, 4195332, 7340039, 1051649, 2099202, 6291462, 4195332, 3072, 5243909, 3147779, 5243909, 6291462, 3072, 6291462, 1051649, 7340039, 3147779, 6291462, 1051649, 7340039, 3072, 6291462, 3072, 7340039, 3072, 4195332, 2099202, 4195332, 5243909, 3147779, 3147779, 7340039, 3072, 1051649, 5243909, 4195332, 3072, 6291462, 1051649, 7340039, 2099202, 5243909, 1051649, 7340039, 2099202, 7340039, 3072, 6291462, 3147779, 7340039, 5243909, 3147779, 6291462, 2099202, 5243909, 3147779, 7340039, 4195332, 2099202, 5243909, 1051649, 4195332, 3072, 6291462, 4195332, 6291462, 2099202, 1051649, - 3072, 2099202, 5243909, 2099202, 6291462, 1051649, 4195332, 6291462, 2099202, 5243909, 3072, 2099202, 3147779, 4195332, 4195332, 2099202, 3147779, 7340039, 1051649, 4195332, 5243909, 3147779, 7340039, 5243909, 3147779, 2099202, 7340039, 6291462, 5243909, 3147779, 3072, 4195332, 3072, 3147779, 2099202, 7340039, 3072, 1051649, 5243909, 3147779, 6291462, 2099202, 3147779, 6291462, 1051649, 4195332, 2099202, 1051649, 5243909, 3147779, 2099202, 6291462, 3147779, 5243909, 6291462, 1051649, 4195332, 3072, 6291462, 3147779, 6291462, 1051649, 4195332, 3147779, 5243909, 1051649, 2099202, 3147779, 7340039, 1051649, 4195332, 6291462, 2099202, 4195332, 3147779, 3072, 5243909, 2099202, 4195332, 2099202, 3147779, 5243909, 3147779, 4195332, 2099202, 6291462, 3147779, 3072, 7340039, 1051649, 5243909, 2099202, 3147779, 6291462, 2099202, 7340039, 3147779, 4195332, 5243909, 2099202, 6291462, 3147779, 3147779, 1051649, 5243909, 2099202, 4195332, 2099202, 4195332, 3072, 4195332, 1051649, 1051649, 7340039, 3072, 2099202, 1051649, 3072, 7340039, 1051649, 6291462, 3147779, 5243909, 3147779, 1051649, 3072, 3147779, 6291462, - 5243909, 3147779, 7340039, 3072, 4195332, 7340039, 3147779, 1051649, 7340039, 1051649, 6291462, 7340039, 1051649, 6291462, 1051649, 6291462, 3072, 5243909, 3147779, 6291462, 3072, 4195332, 2099202, 3072, 6291462, 4195332, 3072, 2099202, 1051649, 7340039, 6291462, 1051649, 6291462, 6291462, 5243909, 3147779, 4195332, 7340039, 1051649, 4195332, 1051649, 7340039, 4195332, 1051649, 7340039, 3147779, 7340039, 5243909, 1051649, 6291462, 5243909, 3072, 4195332, 2099202, 3072, 2099202, 7340039, 3147779, 1051649, 5243909, 3072, 6291462, 5243909, 3072, 6291462, 4195332, 6291462, 7340039, 3072, 5243909, 2099202, 3072, 7340039, 3147779, 6291462, 4195332, 7340039, 1051649, 7340039, 3147779, 5243909, 1051649, 7340039, 3072, 5243909, 1051649, 7340039, 5243909, 3147779, 4195332, 3072, 7340039, 5243909, 1051649, 4195332, 3072, 6291462, 1051649, 7340039, 3072, 4195332, 1051649, 5243909, 6291462, 3072, 6291462, 3147779, 3072, 7340039, 6291462, 3147779, 7340039, 5243909, 3147779, 4195332, 5243909, 6291462, 3147779, 5243909, 4195332, 2099202, 7340039, 3072, 7340039, 5243909, 4195332, 7340039, 2099202, - 3072, 6291462, 1051649, 6291462, 2099202, 5243909, 3072, 5243909, 3147779, 2099202, 5243909, 4195332, 3072, 5243909, 2099202, 3147779, 7340039, 1051649, 4195332, 2099202, 5243909, 6291462, 3147779, 7340039, 1051649, 6291462, 3147779, 5243909, 4195332, 2099202, 2099202, 4195332, 3147779, 1051649, 2099202, 3072, 6291462, 2099202, 4195332, 2099202, 6291462, 3072, 3147779, 5243909, 2099202, 4195332, 3072, 3147779, 4195332, 3072, 7340039, 1051649, 7340039, 4195332, 7340039, 3147779, 5243909, 2099202, 4195332, 7340039, 3147779, 2099202, 1051649, 7340039, 2099202, 3072, 2099202, 2099202, 4195332, 1051649, 7340039, 3147779, 5243909, 1051649, 1051649, 5243909, 2099202, 4195332, 3072, 6291462, 3072, 4195332, 1051649, 6291462, 3147779, 4195332, 2099202, 3072, 6291462, 1051649, 6291462, 4195332, 3147779, 3072, 7340039, 5243909, 1051649, 4195332, 2099202, 6291462, 2099202, 7340039, 3072, 4195332, 4195332, 1051649, 7340039, 5243909, 2099202, 1051649, 5243909, 3072, 4195332, 3072, 6291462, 1051649, 2099202, 6291462, 1051649, 5243909, 3072, 4195332, 2099202, 4195332, 3072, 3147779, 1051649, 4195332, - 6291462, 4195332, 3147779, 1051649, 6291462, 1051649, 4195332, 6291462, 3072, 7340039, 3072, 2099202, 6291462, 4195332, 7340039, 1051649, 5243909, 3147779, 7340039, 1051649, 6291462, 3072, 3147779, 4195332, 2099202, 5243909, 3072, 7340039, 3072, 4195332, 7340039, 3072, 5243909, 7340039, 4195332, 5243909, 3147779, 5243909, 3072, 7340039, 2099202, 5243909, 6291462, 3072, 4195332, 7340039, 6291462, 2099202, 7340039, 2099202, 5243909, 3147779, 4195332, 3072, 2099202, 5243909, 3072, 6291462, 2099202, 3072, 5243909, 4195332, 6291462, 3147779, 4195332, 7340039, 5243909, 3147779, 6291462, 4195332, 3072, 6291462, 3147779, 5243909, 7340039, 3072, 6291462, 2099202, 5243909, 3147779, 7340039, 2099202, 6291462, 2099202, 7340039, 1051649, 4195332, 7340039, 2099202, 4195332, 2099202, 3072, 6291462, 5243909, 3147779, 2099202, 3147779, 6291462, 3072, 3147779, 5243909, 2099202, 4195332, 7340039, 2099202, 5243909, 3147779, 1051649, 6291462, 4195332, 2099202, 6291462, 3147779, 7340039, 3147779, 7340039, 4195332, 3072, 7340039, 2099202, 6291462, 7340039, 1051649, 6291462, 2099202, 7340039, 5243909, 2099202, - 2099202, 3072, 7340039, 5243909, 3147779, 7340039, 3072, 2099202, 5243909, 3147779, 4195332, 7340039, 1051649, 3147779, 3072, 6291462, 1051649, 6291462, 3072, 4195332, 2099202, 7340039, 1051649, 5243909, 1051649, 6291462, 2099202, 3147779, 6291462, 3147779, 1051649, 6291462, 2099202, 3072, 6291462, 1051649, 7340039, 1051649, 6291462, 3147779, 4195332, 3072, 3147779, 7340039, 1051649, 2099202, 1051649, 5243909, 3147779, 3072, 4195332, 1051649, 6291462, 6291462, 1051649, 7340039, 1051649, 4195332, 7340039, 4195332, 1051649, 7340039, 3072, 3147779, 2099202, 3072, 5243909, 1051649, 1051649, 5243909, 2099202, 4195332, 1051649, 2099202, 3147779, 4195332, 1051649, 6291462, 3147779, 1051649, 2099202, 5243909, 3072, 4195332, 3072, 5243909, 3147779, 1051649, 6291462, 3072, 7340039, 5243909, 2099202, 4195332, 3072, 7340039, 5243909, 1051649, 4195332, 7340039, 3072, 6291462, 3147779, 3072, 2099202, 6291462, 3072, 7340039, 4195332, 3072, 7340039, 1051649, 2099202, 1051649, 1051649, 4195332, 3147779, 5243909, 4195332, 3072, 3147779, 1051649, 5243909, 3147779, 6291462, 1051649, 3147779, 7340039, - 6291462, 4195332, 2099202, 4195332, 3072, 5243909, 6291462, 4195332, 6291462, 1051649, 3147779, 6291462, 3147779, 7340039, 4195332, 2099202, 5243909, 2099202, 4195332, 7340039, 2099202, 5243909, 3147779, 3072, 7340039, 4195332, 3147779, 5243909, 1051649, 2099202, 6291462, 4195332, 5243909, 1051649, 3147779, 4195332, 1051649, 3147779, 5243909, 3072, 5243909, 6291462, 2099202, 5243909, 3147779, 5243909, 6291462, 1051649, 7340039, 6291462, 2099202, 7340039, 3072, 3147779, 5243909, 2099202, 4195332, 3147779, 1051649, 6291462, 2099202, 5243909, 1051649, 6291462, 6291462, 4195332, 7340039, 3147779, 7340039, 3147779, 7340039, 3072, 5243909, 7340039, 4195332, 7340039, 2099202, 5243909, 3072, 7340039, 6291462, 1051649, 7340039, 4195332, 6291462, 2099202, 6291462, 3147779, 4195332, 5243909, 1051649, 3147779, 6291462, 1051649, 6291462, 4195332, 2099202, 7340039, 3147779, 1051649, 5243909, 4195332, 2099202, 6291462, 4195332, 3147779, 5243909, 1051649, 3147779, 6291462, 3147779, 4195332, 5243909, 6291462, 7340039, 3072, 6291462, 1051649, 7340039, 2099202, 6291462, 6291462, 3072, 4195332, 1051649, 5243909, 3147779, 3072, - 5243909, 1051649, 7340039, 3147779, 2099202, 3147779, 2099202, 1051649, 4195332, 3072, 5243909, 1051649, 3072, 5243909, 1051649, 5243909, 3072, 6291462, 3147779, 3072, 4195332, 1051649, 6291462, 4195332, 2099202, 1051649, 6291462, 3072, 5243909, 7340039, 1051649, 3147779, 3072, 7340039, 2099202, 5243909, 3147779, 6291462, 2099202, 7340039, 2099202, 1051649, 7340039, 3072, 6291462, 3072, 4195332, 3147779, 3072, 2099202, 4195332, 5243909, 2099202, 6291462, 3147779, 3072, 6291462, 7340039, 3147779, 4195332, 3072, 7340039, 3147779, 5243909, 3072, 2099202, 1051649, 4195332, 3072, 6291462, 1051649, 5243909, 2099202, 1051649, 3072, 3147779, 6291462, 2099202, 4195332, 4195332, 3072, 5243909, 3147779, 1051649, 1051649, 5243909, 3072, 5243909, 3072, 3147779, 7340039, 3072, 3147779, 7340039, 2099202, 1051649, 3072, 5243909, 2099202, 6291462, 3147779, 3072, 7340039, 1051649, 5243909, 3072, 3147779, 7340039, 3072, 5243909, 2099202, 7340039, 3072, 4195332, 2099202, 3147779, 5243909, 2099202, 3147779, 5243909, 1051649, 3147779, 7340039, 2099202, 6291462, 1051649, 7340039, 3147779, - 2099202, 6291462, 1051649, 5243909, 7340039, 3072, 7340039, 6291462, 2099202, 7340039, 2099202, 4195332, 7340039, 2099202, 6291462, 3147779, 4195332, 7340039, 1051649, 6291462, 7340039, 5243909, 3147779, 3072, 6291462, 3147779, 7340039, 2099202, 4195332, 3072, 4195332, 7340039, 6291462, 4195332, 5243909, 3072, 7340039, 3072, 4195332, 1051649, 5243909, 4195332, 2099202, 4195332, 3147779, 1051649, 7340039, 3147779, 5243909, 4195332, 1051649, 6291462, 3072, 4195332, 1051649, 7340039, 2099202, 3072, 5243909, 2099202, 5243909, 1051649, 4195332, 2099202, 7340039, 5243909, 3147779, 6291462, 5243909, 1051649, 4195332, 3147779, 7340039, 4195332, 6291462, 3072, 5243909, 1051649, 3147779, 6291462, 3147779, 2099202, 7340039, 5243909, 3147779, 4195332, 7340039, 2099202, 7340039, 2099202, 2099202, 6291462, 4195332, 1051649, 5243909, 7340039, 3147779, 4195332, 6291462, 3072, 4195332, 7340039, 1051649, 6291462, 2099202, 7340039, 1051649, 4195332, 6291462, 3147779, 1051649, 5243909, 1051649, 3147779, 3072, 7340039, 1051649, 6291462, 3072, 7340039, 4195332, 4195332, 2099202, 5243909, 3072, 4195332, 3072, 5243909, - 3072, 7340039, 2099202, 4195332, 1051649, 5243909, 1051649, 4195332, 3072, 3147779, 6291462, 3147779, 3072, 4195332, 1051649, 7340039, 2099202, 3072, 4195332, 3147779, 2099202, 3072, 6291462, 4195332, 5243909, 1051649, 4195332, 2099202, 7340039, 5243909, 3147779, 1051649, 2099202, 1051649, 7340039, 3147779, 2099202, 6291462, 4195332, 7340039, 3072, 7340039, 1051649, 5243909, 7340039, 5243909, 1051649, 2099202, 6291462, 3072, 7340039, 1051649, 7340039, 3147779, 5243909, 2099202, 4195332, 6291462, 1051649, 7340039, 3147779, 3147779, 6291462, 3072, 4195332, 1051649, 7340039, 3072, 2099202, 7340039, 3072, 6291462, 3072, 2099202, 5243909, 3147779, 7340039, 4195332, 7340039, 1051649, 4195332, 6291462, 2099202, 3072, 7340039, 1051649, 4195332, 3147779, 1051649, 6291462, 5243909, 1051649, 5243909, 2099202, 3147779, 6291462, 3072, 4195332, 1051649, 7340039, 2099202, 5243909, 3147779, 1051649, 5243909, 3147779, 6291462, 2099202, 1051649, 4195332, 6291462, 2099202, 4195332, 6291462, 5243909, 2099202, 4195332, 3147779, 6291462, 2099202, 3072, 5243909, 3072, 6291462, 4195332, 7340039, 3147779, 4195332, - 5243909, 3147779, 3072, 4195332, 6291462, 3147779, 4195332, 7340039, 3147779, 5243909, 1051649, 5243909, 6291462, 3147779, 6291462, 3072, 5243909, 4195332, 7340039, 1051649, 3147779, 7340039, 2099202, 5243909, 1051649, 7340039, 3072, 5243909, 3072, 2099202, 5243909, 3072, 7340039, 4195332, 1051649, 6291462, 4195332, 3072, 1051649, 3147779, 2099202, 6291462, 3147779, 2099202, 3072, 3147779, 6291462, 5243909, 3147779, 2099202, 5243909, 3147779, 3147779, 5243909, 1051649, 6291462, 4195332, 3072, 5243909, 2099202, 3072, 5243909, 1051649, 6291462, 3147779, 5243909, 2099202, 4195332, 5243909, 3147779, 5243909, 2099202, 3147779, 7340039, 1051649, 6291462, 3072, 1051649, 5243909, 3072, 7340039, 3072, 5243909, 3147779, 6291462, 3072, 6291462, 2099202, 5243909, 4195332, 3072, 3147779, 6291462, 3072, 7340039, 1051649, 5243909, 2099202, 5243909, 3147779, 5243909, 3072, 4195332, 6291462, 3072, 6291462, 3072, 4195332, 5243909, 2099202, 3072, 7340039, 5243909, 3072, 2099202, 7340039, 3072, 5243909, 1051649, 4195332, 6291462, 2099202, 7340039, 1051649, 3147779, 2099202, 6291462, 1051649, - 7340039, 3147779, 6291462, 2099202, 3072, 7340039, 2099202, 3072, 6291462, 1051649, 6291462, 2099202, 4195332, 1051649, 2099202, 6291462, 3147779, 2099202, 3072, 5243909, 5243909, 3147779, 1051649, 7340039, 2099202, 3147779, 6291462, 4195332, 3147779, 6291462, 3147779, 6291462, 2099202, 3147779, 5243909, 3072, 3147779, 7340039, 5243909, 6291462, 5243909, 3072, 4195332, 7340039, 6291462, 2099202, 4195332, 3072, 6291462, 4195332, 6291462, 1051649, 6291462, 3072, 7340039, 3072, 3147779, 7340039, 3147779, 4195332, 6291462, 3147779, 7340039, 2099202, 6291462, 3072, 4195332, 7340039, 1051649, 6291462, 3072, 7340039, 1051649, 5243909, 4195332, 2099202, 4195332, 6291462, 2099202, 6291462, 3147779, 2099202, 7340039, 4195332, 1051649, 4195332, 5243909, 3072, 7340039, 1051649, 6291462, 7340039, 2099202, 5243909, 3147779, 4195332, 2099202, 7340039, 3072, 6291462, 1051649, 3147779, 7340039, 2099202, 3147779, 5243909, 2099202, 7340039, 3147779, 6291462, 3147779, 4195332, 1051649, 7340039, 1051649, 4195332, 6291462, 3147779, 7340039, 3147779, 1051649, 5243909, 3147779, 4195332, 6291462, 1051649, 5243909, 2099202, - 1051649, 5243909, 1051649, 6291462, 3147779, 5243909, 1051649, 5243909, 3147779, 3072, 4195332, 7340039, 3072, 7340039, 5243909, 3072, 7340039, 3147779, 6291462, 2099202, 1051649, 6291462, 4195332, 4195332, 3072, 5243909, 1051649, 1051649, 7340039, 3072, 1051649, 4195332, 7340039, 1051649, 2099202, 6291462, 2099202, 1051649, 3147779, 3072, 1051649, 6291462, 2099202, 1051649, 4195332, 1051649, 5243909, 7340039, 1051649, 2099202, 3072, 7340039, 4195332, 2099202, 3147779, 4195332, 5243909, 1051649, 3072, 7340039, 1051649, 4195332, 3072, 4195332, 2099202, 7340039, 3147779, 1051649, 2099202, 6291462, 4195332, 2099202, 5243909, 3147779, 3072, 7340039, 3147779, 1051649, 3147779, 5243909, 1051649, 4195332, 3072, 6291462, 2099202, 7340039, 2099202, 4195332, 1051649, 5243909, 3147779, 3072, 4195332, 1051649, 7340039, 3072, 6291462, 4195332, 3147779, 2099202, 7340039, 6291462, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 5243909, 3072, 7340039, 1051649, 4195332, 3147779, 5243909, 2099202, 3072, 2099202, 3072, 6291462, 3147779, 7340039, 2099202, 3072, 7340039, 3147779, 3072, 6291462, - 4195332, 3072, 4195332, 1051649, 3147779, 4195332, 6291462, 2099202, 7340039, 5243909, 3147779, 1051649, 3147779, 5243909, 2099202, 4195332, 1051649, 5243909, 1051649, 4195332, 6291462, 3072, 2099202, 6291462, 2099202, 3147779, 6291462, 4195332, 2099202, 5243909, 6291462, 3147779, 3072, 5243909, 5243909, 4195332, 7340039, 4195332, 6291462, 4195332, 7340039, 3147779, 4195332, 5243909, 3147779, 7340039, 3072, 3147779, 4195332, 7340039, 2099202, 5243909, 1051649, 5243909, 7340039, 1051649, 6291462, 3147779, 5243909, 2099202, 1051649, 6291462, 5243909, 1051649, 3147779, 6291462, 3072, 5243909, 4195332, 3072, 3147779, 6291462, 1051649, 6291462, 2099202, 5243909, 3072, 7340039, 5243909, 3072, 7340039, 3147779, 5243909, 1051649, 4195332, 3072, 6291462, 3147779, 7340039, 2099202, 4195332, 6291462, 3147779, 5243909, 2099202, 4195332, 1051649, 1051649, 5243909, 4195332, 3072, 4195332, 3147779, 5243909, 3072, 6291462, 1051649, 7340039, 3147779, 2099202, 5243909, 2099202, 5243909, 6291462, 3072, 7340039, 5243909, 7340039, 4195332, 5243909, 1051649, 3072, 6291462, 4195332, 1051649, 7340039, 5243909, 2099202, - 7340039, 5243909, 4195332, 7340039, 6291462, 3072, 1051649, 4195332, 1051649, 5243909, 2099202, 6291462, 4195332, 1051649, 7340039, 3147779, 6291462, 3147779, 7340039, 3072, 3147779, 5243909, 7340039, 1051649, 5243909, 7340039, 3072, 7340039, 3147779, 1051649, 4195332, 6291462, 2099202, 7340039, 2099202, 3072, 3147779, 3072, 2099202, 5243909, 1051649, 5243909, 3072, 7340039, 3072, 3147779, 6291462, 1051649, 6291462, 1051649, 3147779, 4195332, 6291462, 3072, 2099202, 4195332, 2099202, 6291462, 3072, 5243909, 7340039, 2099202, 3147779, 7340039, 5243909, 1051649, 3147779, 6291462, 2099202, 7340039, 1051649, 3147779, 4195332, 1051649, 7340039, 1051649, 5243909, 2099202, 2099202, 5243909, 4195332, 1051649, 3147779, 7340039, 5243909, 3147779, 6291462, 3072, 3147779, 7340039, 3072, 1051649, 6291462, 3072, 7340039, 3147779, 6291462, 3147779, 7340039, 1051649, 7340039, 3072, 6291462, 1051649, 5243909, 2099202, 3147779, 5243909, 1051649, 7340039, 1051649, 6291462, 3072, 2099202, 4195332, 4195332, 1051649, 1051649, 3147779, 2099202, 5243909, 4195332, 2099202, 5243909, 3147779, 1051649, 4195332, 2099202, - 3072, 3147779, 2099202, 3072, 2099202, 6291462, 5243909, 7340039, 2099202, 3072, 7340039, 1051649, 6291462, 2099202, 4195332, 3072, 2099202, 3072, 5243909, 2099202, 6291462, 1051649, 3147779, 4195332, 3072, 2099202, 5243909, 1051649, 5243909, 7340039, 2099202, 3072, 5243909, 1051649, 4195332, 6291462, 3147779, 5243909, 7340039, 2099202, 6291462, 3147779, 2099202, 5243909, 2099202, 5243909, 4195332, 3072, 5243909, 3147779, 7340039, 3072, 2099202, 5243909, 7340039, 3072, 5243909, 1051649, 6291462, 4195332, 3072, 4195332, 5243909, 3072, 2099202, 6291462, 4195332, 3072, 5243909, 4195332, 5243909, 7340039, 3072, 6291462, 4195332, 3147779, 6291462, 4195332, 6291462, 1051649, 6291462, 2099202, 6291462, 3072, 2099202, 3147779, 1051649, 4195332, 6291462, 2099202, 5243909, 3147779, 5243909, 2099202, 4195332, 3072, 2099202, 5243909, 1051649, 4195332, 2099202, 6291462, 2099202, 4195332, 3072, 7340039, 4195332, 3072, 6291462, 4195332, 6291462, 4195332, 3147779, 7340039, 1051649, 6291462, 3147779, 6291462, 7340039, 3072, 7340039, 3147779, 6291462, 3072, 7340039, 3072, 5243909, 7340039, - 1051649, 6291462, 5243909, 5243909, 7340039, 3147779, 3072, 2099202, 4195332, 6291462, 4195332, 3147779, 5243909, 3072, 5243909, 7340039, 5243909, 6291462, 4195332, 7340039, 3147779, 3072, 5243909, 5243909, 7340039, 4195332, 2099202, 6291462, 3147779, 3072, 4195332, 7340039, 3147779, 6291462, 2099202, 1051649, 5243909, 1051649, 3072, 4195332, 3072, 6291462, 1051649, 7340039, 3147779, 1051649, 6291462, 2099202, 7340039, 1051649, 2099202, 4195332, 6291462, 1051649, 3147779, 4195332, 7340039, 3147779, 2099202, 7340039, 1051649, 7340039, 1051649, 6291462, 3147779, 7340039, 1051649, 7340039, 3147779, 1051649, 5243909, 2099202, 2099202, 4195332, 6291462, 3072, 3147779, 3072, 3147779, 3072, 3147779, 5243909, 4195332, 2099202, 6291462, 7340039, 5243909, 3072, 4195332, 1051649, 3147779, 7340039, 1051649, 6291462, 2099202, 6291462, 5243909, 3072, 6291462, 5243909, 3072, 3147779, 5243909, 7340039, 3147779, 2099202, 6291462, 2099202, 3147779, 1051649, 2099202, 3072, 7340039, 3147779, 5243909, 2099202, 3072, 4195332, 2099202, 4195332, 3147779, 1051649, 5243909, 2099202, 4195332, 6291462, 2099202, 2099202, - 6291462, 4195332, 3072, 3147779, 1051649, 4195332, 7340039, 5243909, 3147779, 3072, 7340039, 3072, 3147779, 6291462, 2099202, 1051649, 1051649, 4195332, 2099202, 1051649, 4195332, 7340039, 2099202, 1051649, 1051649, 3147779, 6291462, 3072, 5243909, 6291462, 2099202, 1051649, 4195332, 3072, 6291462, 7340039, 3147779, 6291462, 4195332, 7340039, 3147779, 2099202, 6291462, 3072, 4195332, 7340039, 3147779, 3072, 4195332, 6291462, 5243909, 3072, 7340039, 4195332, 6291462, 1051649, 2099202, 6291462, 3072, 3147779, 5243909, 3147779, 4195332, 2099202, 3072, 4195332, 2099202, 5243909, 1051649, 7340039, 3072, 4195332, 7340039, 1051649, 1051649, 7340039, 2099202, 6291462, 7340039, 4195332, 7340039, 1051649, 3072, 7340039, 1051649, 4195332, 2099202, 7340039, 5243909, 3147779, 6291462, 1051649, 4195332, 3072, 7340039, 3147779, 1051649, 4195332, 3147779, 2099202, 7340039, 5243909, 1051649, 1051649, 6291462, 4195332, 3072, 5243909, 7340039, 3147779, 5243909, 4195332, 1051649, 5243909, 3072, 6291462, 3147779, 5243909, 1051649, 6291462, 1051649, 7340039, 3147779, 5243909, 4195332, 3072, 6291462, 3147779, - 1051649, 4195332, 1051649, 7340039, 6291462, 4195332, 3072, 2099202, 6291462, 1051649, 5243909, 2099202, 5243909, 2099202, 4195332, 7340039, 3147779, 7340039, 3072, 5243909, 6291462, 3072, 4195332, 6291462, 6291462, 3072, 7340039, 4195332, 2099202, 1051649, 7340039, 3147779, 7340039, 2099202, 4195332, 3072, 5243909, 2099202, 3147779, 1051649, 5243909, 4195332, 3147779, 6291462, 2099202, 1051649, 5243909, 7340039, 3147779, 3072, 2099202, 5243909, 2099202, 3147779, 3072, 5243909, 2099202, 4195332, 5243909, 1051649, 6291462, 1051649, 6291462, 3147779, 7340039, 4195332, 6291462, 3072, 4195332, 3147779, 6291462, 2099202, 3147779, 5243909, 2099202, 4195332, 5243909, 2099202, 1051649, 4195332, 2099202, 6291462, 5243909, 3147779, 5243909, 3072, 5243909, 2099202, 1051649, 6291462, 3072, 5243909, 3147779, 5243909, 2099202, 5243909, 7340039, 2099202, 6291462, 1051649, 3147779, 3072, 7340039, 4195332, 5243909, 2099202, 7340039, 4195332, 1051649, 6291462, 3072, 6291462, 3147779, 2099202, 7340039, 2099202, 6291462, 1051649, 7340039, 3072, 4195332, 5243909, 2099202, 3072, 7340039, 3147779, 1051649, 5243909, - 7340039, 3147779, 5243909, 3147779, 1051649, 2099202, 6291462, 1051649, 7340039, 3147779, 4195332, 7340039, 3072, 6291462, 3147779, 3072, 6291462, 2099202, 4195332, 1051649, 3147779, 3147779, 5243909, 2099202, 3147779, 4195332, 1051649, 3147779, 7340039, 5243909, 1051649, 4195332, 3072, 5243909, 1051649, 4195332, 7340039, 3072, 6291462, 7340039, 3072, 7340039, 1051649, 4195332, 7340039, 2099202, 4195332, 1051649, 6291462, 3147779, 7340039, 1051649, 6291462, 6291462, 4195332, 3147779, 7340039, 3072, 7340039, 3147779, 2099202, 7340039, 4195332, 3072, 5243909, 1051649, 2099202, 5243909, 3072, 7340039, 1051649, 5243909, 3072, 6291462, 4195332, 3072, 7340039, 3147779, 5243909, 6291462, 3072, 4195332, 2099202, 1051649, 7340039, 2099202, 4195332, 7340039, 3072, 3147779, 4195332, 2099202, 7340039, 1051649, 4195332, 3072, 6291462, 3072, 7340039, 4195332, 6291462, 2099202, 4195332, 2099202, 3072, 6291462, 1051649, 5243909, 3072, 2099202, 5243909, 1051649, 7340039, 4195332, 1051649, 5243909, 3072, 4195332, 3147779, 3147779, 7340039, 3072, 4195332, 6291462, 2099202, 5243909, 7340039, 2099202, - 3072, 6291462, 3072, 4195332, 5243909, 7340039, 2099202, 5243909, 4195332, 1051649, 6291462, 1051649, 4195332, 1051649, 2099202, 5243909, 2099202, 5243909, 3147779, 7340039, 6291462, 1051649, 7340039, 3072, 6291462, 2099202, 5243909, 6291462, 3072, 3147779, 5243909, 2099202, 6291462, 3147779, 7340039, 1051649, 6291462, 2099202, 4195332, 3147779, 2099202, 5243909, 1051649, 5243909, 3072, 5243909, 4195332, 3072, 5243909, 2099202, 4195332, 3147779, 2099202, 3072, 1051649, 6291462, 3147779, 4195332, 2099202, 5243909, 3072, 5243909, 1051649, 7340039, 2099202, 6291462, 3147779, 2099202, 6291462, 3147779, 3147779, 4195332, 7340039, 1051649, 6291462, 3147779, 1051649, 6291462, 3072, 2099202, 4195332, 7340039, 3072, 6291462, 3147779, 5243909, 1051649, 4195332, 6291462, 2099202, 7340039, 4195332, 3072, 7340039, 6291462, 2099202, 4195332, 3147779, 1051649, 4195332, 3072, 3147779, 6291462, 1051649, 6291462, 3147779, 3147779, 7340039, 4195332, 5243909, 1051649, 6291462, 4195332, 3072, 5243909, 3147779, 7340039, 2099202, 6291462, 1051649, 5243909, 2099202, 6291462, 1051649, 4195332, 3072, 3147779, 4195332, - 5243909, 2099202, 7340039, 2099202, 1051649, 4195332, 3147779, 3072, 3147779, 7340039, 3072, 5243909, 3147779, 7340039, 6291462, 3072, 7340039, 4195332, 3072, 2099202, 4195332, 2099202, 4195332, 5243909, 7340039, 3072, 4195332, 2099202, 5243909, 2099202, 7340039, 3072, 3147779, 5243909, 3072, 4195332, 3147779, 5243909, 1051649, 5243909, 1051649, 3147779, 6291462, 2099202, 6291462, 3147779, 3147779, 6291462, 1051649, 7340039, 3072, 6291462, 3147779, 7340039, 5243909, 3072, 6291462, 1051649, 4195332, 1051649, 6291462, 4195332, 2099202, 3147779, 5243909, 3072, 7340039, 5243909, 1051649, 6291462, 3072, 6291462, 3072, 4195332, 2099202, 5243909, 7340039, 4195332, 2099202, 7340039, 1051649, 2099202, 5243909, 4195332, 3072, 2099202, 7340039, 3072, 5243909, 1051649, 1051649, 3147779, 5243909, 1051649, 3147779, 5243909, 1051649, 6291462, 5243909, 2099202, 5243909, 7340039, 1051649, 5243909, 4195332, 1051649, 5243909, 3072, 2099202, 7340039, 2099202, 3147779, 3072, 6291462, 3147779, 6291462, 1051649, 5243909, 3072, 6291462, 2099202, 7340039, 1051649, 3147779, 6291462, 3147779, 7340039, 2099202, - 1051649, 4195332, 3147779, 6291462, 4195332, 3072, 7340039, 5243909, 2099202, 6291462, 2099202, 5243909, 1051649, 4195332, 1051649, 5243909, 3147779, 1051649, 7340039, 6291462, 3072, 7340039, 3072, 1051649, 3147779, 3147779, 6291462, 1051649, 7340039, 4195332, 4195332, 2099202, 6291462, 1051649, 7340039, 4195332, 3072, 7340039, 2099202, 4195332, 7340039, 5243909, 3072, 4195332, 1051649, 7340039, 3072, 7340039, 4195332, 2099202, 5243909, 1051649, 4195332, 3072, 4195332, 3147779, 1051649, 7340039, 2099202, 7340039, 3147779, 3072, 6291462, 1051649, 6291462, 2099202, 4195332, 3072, 4195332, 2099202, 5243909, 2099202, 5243909, 3147779, 7340039, 3072, 3147779, 1051649, 4195332, 5243909, 3147779, 6291462, 3147779, 1051649, 7340039, 5243909, 3147779, 6291462, 3147779, 6291462, 5243909, 2099202, 6291462, 2099202, 4195332, 3072, 7340039, 3147779, 1051649, 7340039, 3072, 3147779, 4195332, 3072, 3147779, 7340039, 2099202, 6291462, 3147779, 3072, 7340039, 4195332, 3147779, 7340039, 1051649, 2099202, 4195332, 2099202, 7340039, 1051649, 4195332, 3072, 4195332, 6291462, 1051649, 5243909, 3072, 6291462, - 5243909, 1051649, 6291462, 3072, 3147779, 7340039, 1051649, 4195332, 1051649, 3147779, 6291462, 2099202, 7340039, 3072, 3147779, 6291462, 3072, 6291462, 3147779, 2099202, 3147779, 4195332, 6291462, 5243909, 3072, 7340039, 1051649, 4195332, 3072, 6291462, 1051649, 5243909, 3072, 5243909, 2099202, 3147779, 6291462, 2099202, 6291462, 3072, 2099202, 3147779, 7340039, 4195332, 1051649, 5243909, 2099202, 4195332, 3072, 6291462, 1051649, 7340039, 2099202, 5243909, 2099202, 7340039, 5243909, 3147779, 4195332, 3072, 6291462, 1051649, 4195332, 5243909, 3072, 6291462, 3147779, 7340039, 1051649, 7340039, 2099202, 7340039, 1051649, 2099202, 5243909, 1051649, 6291462, 6291462, 3072, 5243909, 3072, 7340039, 3072, 6291462, 3147779, 6291462, 1051649, 2099202, 4195332, 3072, 4195332, 7340039, 3072, 5243909, 7340039, 3147779, 3072, 5243909, 3147779, 2099202, 6291462, 4195332, 7340039, 2099202, 6291462, 3072, 5243909, 1051649, 6291462, 4195332, 2099202, 5243909, 3072, 5243909, 4195332, 7340039, 3072, 6291462, 3147779, 3147779, 7340039, 5243909, 3147779, 3072, 7340039, 1051649, 4195332, 3147779, - 3072, 7340039, 2099202, 5243909, 5243909, 2099202, 6291462, 2099202, 7340039, 4195332, 3072, 5243909, 3147779, 4195332, 6291462, 2099202, 5243909, 4195332, 1051649, 5243909, 6291462, 1051649, 2099202, 4195332, 4195332, 2099202, 6291462, 3147779, 6291462, 3147779, 2099202, 7340039, 3147779, 4195332, 1051649, 6291462, 3072, 4195332, 3147779, 5243909, 6291462, 3072, 2099202, 6291462, 3147779, 7340039, 1051649, 5243909, 3147779, 5243909, 4195332, 3147779, 7340039, 3072, 6291462, 2099202, 3072, 6291462, 2099202, 5243909, 4195332, 3147779, 7340039, 2099202, 7340039, 2099202, 5243909, 1051649, 4195332, 5243909, 3072, 3147779, 4195332, 7340039, 3072, 3147779, 4195332, 2099202, 7340039, 3147779, 1051649, 5243909, 2099202, 4195332, 1051649, 3072, 4195332, 7340039, 2099202, 7340039, 3147779, 1051649, 6291462, 3147779, 1051649, 7340039, 5243909, 2099202, 4195332, 7340039, 4195332, 3072, 2099202, 5243909, 1051649, 4195332, 7340039, 3147779, 3072, 6291462, 3147779, 1051649, 7340039, 2099202, 3072, 5243909, 4195332, 1051649, 5243909, 3072, 3147779, 2099202, 5243909, 4195332, 2099202, 6291462, 2099202, 7340039, - 5243909, 3147779, 1051649, 7340039, 3072, 4195332, 3072, 5243909, 3072, 5243909, 1051649, 7340039, 3072, 5243909, 1051649, 2099202, 7340039, 1051649, 7340039, 3147779, 3072, 5243909, 7340039, 3072, 7340039, 1051649, 5243909, 2099202, 1051649, 5243909, 1051649, 3072, 6291462, 2099202, 7340039, 3147779, 6291462, 1051649, 7340039, 1051649, 1051649, 7340039, 5243909, 3072, 2099202, 4195332, 6291462, 1051649, 6291462, 3072, 2099202, 6291462, 1051649, 4195332, 1051649, 4195332, 7340039, 1051649, 2099202, 7340039, 1051649, 5243909, 3072, 3147779, 4195332, 1051649, 3147779, 6291462, 2099202, 4195332, 3147779, 6291462, 3072, 3147779, 6291462, 5243909, 3072, 4195332, 1051649, 6291462, 4195332, 6291462, 1051649, 3147779, 5243909, 7340039, 3147779, 3072, 5243909, 1051649, 4195332, 6291462, 2099202, 4195332, 3072, 2099202, 4195332, 1051649, 6291462, 3072, 1051649, 5243909, 6291462, 3147779, 7340039, 3147779, 2099202, 6291462, 4195332, 2099202, 7340039, 3147779, 4195332, 6291462, 4195332, 2099202, 3147779, 6291462, 3072, 6291462, 4195332, 7340039, 1051649, 6291462, 3072, 5243909, 2099202, 4195332, - 3147779, 3072, 6291462, 1051649, 3147779, 5243909, 6291462, 3147779, 7340039, 3147779, 6291462, 2099202, 4195332, 2099202, 7340039, 3147779, 3072, 5243909, 3147779, 6291462, 2099202, 4195332, 1051649, 3147779, 5243909, 4195332, 3072, 6291462, 3147779, 7340039, 4195332, 6291462, 3147779, 5243909, 3072, 5243909, 1051649, 4195332, 2099202, 4195332, 5243909, 3147779, 1051649, 6291462, 6291462, 3072, 2099202, 5243909, 3147779, 7340039, 4195332, 3072, 7340039, 3147779, 2099202, 5243909, 3147779, 5243909, 6291462, 3072, 3147779, 5243909, 6291462, 1051649, 5243909, 3147779, 7340039, 3072, 6291462, 2099202, 7340039, 1051649, 5243909, 2099202, 1051649, 7340039, 2099202, 7340039, 2099202, 5243909, 3072, 3147779, 7340039, 6291462, 3072, 2099202, 5243909, 6291462, 2099202, 4195332, 5243909, 3072, 3147779, 7340039, 5243909, 6291462, 1051649, 7340039, 2099202, 5243909, 7340039, 3147779, 3072, 6291462, 3072, 5243909, 1051649, 5243909, 3072, 6291462, 1051649, 6291462, 1051649, 3072, 6291462, 1051649, 7340039, 4195332, 2099202, 5243909, 1051649, 3072, 5243909, 2099202, 6291462, 3147779, 7340039, 1051649, - 5243909, 7340039, 3147779, 4195332, 6291462, 2099202, 1051649, 4195332, 2099202, 5243909, 3072, 4195332, 6291462, 6291462, 1051649, 4195332, 6291462, 2099202, 1051649, 3072, 7340039, 3147779, 5243909, 7340039, 2099202, 2099202, 6291462, 1051649, 5243909, 3072, 3147779, 1051649, 6291462, 2099202, 2099202, 7340039, 3147779, 3072, 5243909, 6291462, 3072, 7340039, 4195332, 2099202, 4195332, 3147779, 7340039, 2099202, 6291462, 1051649, 3147779, 5243909, 1051649, 5243909, 6291462, 3072, 7340039, 3072, 4195332, 6291462, 4195332, 2099202, 2099202, 7340039, 3072, 6291462, 1051649, 4195332, 5243909, 3072, 5243909, 1051649, 4195332, 6291462, 4195332, 2099202, 3147779, 5243909, 3072, 3147779, 7340039, 2099202, 4195332, 2099202, 6291462, 4195332, 1051649, 1051649, 7340039, 3072, 6291462, 2099202, 6291462, 1051649, 2099202, 3072, 6291462, 4195332, 3147779, 1051649, 4195332, 2099202, 4195332, 2099202, 4195332, 2099202, 7340039, 1051649, 3147779, 5243909, 4195332, 2099202, 5243909, 5243909, 3147779, 5243909, 2099202, 3072, 7340039, 3147779, 6291462, 4195332, 3147779, 7340039, 1051649, 4195332, 3072, 6291462, - 2099202, 4195332, 1051649, 7340039, 3072, 6291462, 3147779, 7340039, 3072, 3147779, 7340039, 1051649, 3072, 3147779, 5243909, 3072, 4195332, 6291462, 7340039, 4195332, 5243909, 1051649, 4195332, 3072, 3147779, 7340039, 4195332, 7340039, 2099202, 7340039, 4195332, 5243909, 3072, 7340039, 4195332, 3072, 5243909, 7340039, 3147779, 2099202, 5243909, 3147779, 1051649, 6291462, 3072, 4195332, 3072, 5243909, 3072, 4195332, 6291462, 2099202, 7340039, 2099202, 1051649, 5243909, 3147779, 2099202, 5243909, 1051649, 3072, 7340039, 1051649, 4195332, 4195332, 2099202, 7340039, 3147779, 1051649, 6291462, 3147779, 7340039, 3147779, 3072, 7340039, 1051649, 6291462, 4195332, 1051649, 6291462, 1051649, 5243909, 3072, 5243909, 1051649, 3147779, 7340039, 5243909, 3147779, 4195332, 2099202, 5243909, 1051649, 7340039, 4195332, 5243909, 3147779, 3072, 5243909, 6291462, 3072, 7340039, 1051649, 6291462, 7340039, 1051649, 3147779, 7340039, 4195332, 2099202, 3072, 7340039, 3147779, 2099202, 7340039, 1051649, 5243909, 3147779, 5243909, 1051649, 2099202, 6291462, 2099202, 3072, 4195332, 3147779, 7340039, 2099202, - 1051649, 5243909, 3147779, 2099202, 5243909, 4195332, 3072, 6291462, 2099202, 5243909, 1051649, 5243909, 3147779, 7340039, 2099202, 7340039, 3147779, 1051649, 3072, 3147779, 6291462, 1051649, 2099202, 6291462, 5243909, 3072, 3147779, 3072, 5243909, 1051649, 6291462, 1051649, 4195332, 3147779, 2099202, 6291462, 1051649, 4195332, 3072, 7340039, 1051649, 2099202, 5243909, 3147779, 7340039, 1051649, 6291462, 3147779, 7340039, 1051649, 2099202, 3072, 4195332, 6291462, 3147779, 4195332, 3072, 7340039, 1051649, 3147779, 6291462, 5243909, 3147779, 6291462, 1051649, 6291462, 3072, 4195332, 7340039, 4195332, 1051649, 4195332, 6291462, 2099202, 5243909, 3147779, 3072, 4195332, 7340039, 3147779, 6291462, 4195332, 7340039, 2099202, 4195332, 6291462, 3072, 2099202, 6291462, 3072, 7340039, 3147779, 5243909, 2099202, 4195332, 1051649, 6291462, 2099202, 7340039, 2099202, 5243909, 4195332, 3147779, 5243909, 3072, 4195332, 6291462, 3072, 1051649, 5243909, 7340039, 3147779, 3072, 6291462, 3072, 4195332, 6291462, 2099202, 7340039, 4195332, 7340039, 3072, 5243909, 7340039, 1051649, 6291462, 3072, 5243909, - 4195332, 3072, 6291462, 2099202, 7340039, 1051649, 2099202, 6291462, 3147779, 1051649, 7340039, 3147779, 6291462, 1051649, 5243909, 1051649, 6291462, 5243909, 5243909, 2099202, 3072, 4195332, 7340039, 1051649, 6291462, 2099202, 6291462, 4195332, 3147779, 3072, 3147779, 5243909, 2099202, 7340039, 1051649, 3147779, 6291462, 2099202, 6291462, 3147779, 4195332, 7340039, 4195332, 1051649, 5243909, 3147779, 5243909, 1051649, 4195332, 5243909, 7340039, 3147779, 5243909, 3072, 7340039, 2099202, 6291462, 3147779, 6291462, 4195332, 3147779, 3072, 7340039, 2099202, 5243909, 3147779, 2099202, 5243909, 3072, 2099202, 6291462, 3072, 1051649, 6291462, 2099202, 7340039, 5243909, 2099202, 3072, 5243909, 1051649, 3072, 3147779, 6291462, 1051649, 3147779, 5243909, 3147779, 5243909, 3147779, 1051649, 6291462, 3072, 5243909, 3072, 7340039, 3147779, 5243909, 1051649, 3147779, 1051649, 3072, 6291462, 2099202, 3147779, 5243909, 2099202, 4195332, 6291462, 4195332, 1051649, 5243909, 6291462, 1051649, 7340039, 2099202, 3072, 4195332, 3072, 1051649, 5243909, 3147779, 1051649, 4195332, 5243909, 2099202, 3147779, 6291462, - 7340039, 4195332, 1051649, 4195332, 3072, 5243909, 4195332, 1051649, 7340039, 4195332, 4195332, 3072, 4195332, 2099202, 6291462, 3072, 3147779, 2099202, 4195332, 7340039, 4195332, 6291462, 3072, 3147779, 4195332, 3072, 5243909, 1051649, 2099202, 6291462, 7340039, 3072, 6291462, 3072, 4195332, 6291462, 3072, 5243909, 1051649, 5243909, 3072, 5243909, 2099202, 6291462, 3072, 7340039, 2099202, 7340039, 2099202, 3072, 4195332, 2099202, 6291462, 1051649, 4195332, 1051649, 5243909, 2099202, 3072, 7340039, 2099202, 5243909, 1051649, 4195332, 3072, 7340039, 1051649, 6291462, 3147779, 7340039, 2099202, 5243909, 7340039, 3147779, 3072, 4195332, 1051649, 6291462, 7340039, 3147779, 5243909, 4195332, 5243909, 1051649, 7340039, 2099202, 7340039, 3072, 4195332, 1051649, 7340039, 4195332, 2099202, 6291462, 4195332, 2099202, 3072, 7340039, 2099202, 6291462, 4195332, 7340039, 3147779, 6291462, 3072, 1051649, 7340039, 3147779, 3072, 7340039, 2099202, 1051649, 4195332, 3147779, 4195332, 6291462, 3147779, 6291462, 2099202, 6291462, 3147779, 4195332, 1051649, 7340039, 3072, 4195332, 7340039, 1051649, - 2099202, 3147779, 5243909, 6291462, 3147779, 7340039, 1051649, 6291462, 3072, 2099202, 1051649, 5243909, 7340039, 4195332, 2099202, 4195332, 7340039, 3072, 6291462, 1051649, 2099202, 3147779, 7340039, 5243909, 2099202, 7340039, 3147779, 7340039, 5243909, 1051649, 4195332, 2099202, 4195332, 5243909, 2099202, 7340039, 3147779, 4195332, 1051649, 6291462, 3147779, 3072, 7340039, 2099202, 4195332, 3072, 5243909, 1051649, 6291462, 3147779, 6291462, 1051649, 4195332, 3147779, 6291462, 7340039, 2099202, 6291462, 5243909, 1051649, 4195332, 7340039, 2099202, 6291462, 3147779, 4195332, 5243909, 2099202, 4195332, 3072, 5243909, 3147779, 3072, 4195332, 3147779, 6291462, 2099202, 4195332, 2099202, 3072, 7340039, 1051649, 2099202, 6291462, 3147779, 3072, 4195332, 1051649, 7340039, 5243909, 2099202, 1051649, 7340039, 1051649, 7340039, 3147779, 6291462, 4195332, 4195332, 3072, 6291462, 3072, 5243909, 1051649, 7340039, 4195332, 1051649, 6291462, 3147779, 2099202, 6291462, 3147779, 5243909, 3072, 5243909, 1051649, 3072, 7340039, 3147779, 6291462, 3072, 7340039, 5243909, 2099202, 6291462, 3147779, 1051649, 5243909, - 3072, 7340039, 2099202, 3072, 3147779, 2099202, 4195332, 3147779, 6291462, 5243909, 6291462, 3147779, 2099202, 3072, 7340039, 3147779, 1051649, 5243909, 3147779, 5243909, 6291462, 2099202, 1051649, 5243909, 1051649, 4195332, 1051649, 4195332, 2099202, 7340039, 3147779, 7340039, 1051649, 3147779, 5243909, 1051649, 2099202, 7340039, 3147779, 2099202, 7340039, 4195332, 1051649, 5243909, 6291462, 3147779, 4195332, 4195332, 3072, 3147779, 7340039, 2099202, 7340039, 3072, 2099202, 4195332, 1051649, 4195332, 3072, 6291462, 3147779, 3072, 3147779, 5243909, 1051649, 7340039, 3072, 3147779, 6291462, 2099202, 1051649, 5243909, 7340039, 2099202, 5243909, 3072, 6291462, 3072, 5243909, 3147779, 2099202, 7340039, 5243909, 3072, 4195332, 6291462, 3147779, 6291462, 2099202, 3072, 6291462, 4195332, 3147779, 3147779, 3072, 5243909, 1051649, 1051649, 5243909, 2099202, 3147779, 5243909, 2099202, 3147779, 5243909, 2099202, 5243909, 3072, 4195332, 5243909, 3072, 7340039, 1051649, 6291462, 2099202, 7340039, 2099202, 5243909, 1051649, 1051649, 5243909, 2099202, 1051649, 4195332, 3072, 5243909, 3147779, 6291462, - 4195332, 1051649, 6291462, 4195332, 5243909, 6291462, 3072, 5243909, 2099202, 1051649, 4195332, 3072, 6291462, 5243909, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 4195332, 3072, 7340039, 3147779, 6291462, 2099202, 6291462, 3072, 6291462, 4195332, 3072, 5243909, 6291462, 3072, 5243909, 3147779, 5243909, 3072, 6291462, 5243909, 1051649, 6291462, 3147779, 2099202, 3072, 7340039, 1051649, 3147779, 6291462, 4195332, 3072, 5243909, 3147779, 5243909, 1051649, 7340039, 3147779, 6291462, 3147779, 4195332, 1051649, 7340039, 5243909, 3072, 4195332, 1051649, 5243909, 7340039, 3072, 4195332, 6291462, 3147779, 1051649, 3147779, 7340039, 2099202, 5243909, 7340039, 1051649, 6291462, 4195332, 3072, 4195332, 1051649, 7340039, 2099202, 3072, 3147779, 5243909, 4195332, 3147779, 1051649, 6291462, 5243909, 2099202, 7340039, 3147779, 6291462, 2099202, 7340039, 4195332, 3072, 7340039, 6291462, 3072, 7340039, 2099202, 3147779, 7340039, 1051649, 6291462, 2099202, 4195332, 2099202, 5243909, 1051649, 4195332, 3147779, 7340039, 5243909, 3147779, 3147779, 6291462, 2099202, 6291462, 1051649, 7340039, 2099202, - 3147779, 7340039, 2099202, 7340039, 3072, 2099202, 4195332, 1051649, 7340039, 3072, 7340039, 5243909, 1051649, 3147779, 6291462, 3072, 4195332, 6291462, 1051649, 7340039, 2099202, 5243909, 4195332, 3147779, 3072, 6291462, 3147779, 5243909, 1051649, 2099202, 5243909, 1051649, 2099202, 6291462, 1051649, 7340039, 2099202, 4195332, 1051649, 4195332, 2099202, 3072, 5243909, 7340039, 3147779, 5243909, 2099202, 6291462, 2099202, 5243909, 2099202, 6291462, 1051649, 4195332, 5243909, 3072, 5243909, 2099202, 3072, 6291462, 2099202, 5243909, 2099202, 7340039, 3147779, 6291462, 1051649, 4195332, 5243909, 1051649, 6291462, 3072, 7340039, 4195332, 1051649, 4195332, 1051649, 3147779, 4195332, 2099202, 3147779, 7340039, 3147779, 6291462, 2099202, 5243909, 7340039, 1051649, 6291462, 3072, 7340039, 6291462, 3072, 1051649, 5243909, 3072, 4195332, 3072, 5243909, 1051649, 6291462, 3147779, 4195332, 1051649, 4195332, 1051649, 6291462, 5243909, 3072, 4195332, 3147779, 5243909, 3072, 4195332, 7340039, 3147779, 5243909, 3072, 4195332, 1051649, 7340039, 5243909, 3072, 7340039, 3147779, 5243909, 3072, 4195332, - 3072, 5243909, 1051649, 3147779, 4195332, 7340039, 3147779, 5243909, 2099202, 6291462, 3147779, 2099202, 7340039, 2099202, 2099202, 5243909, 3147779, 3072, 5243909, 2099202, 6291462, 1051649, 1051649, 6291462, 5243909, 1051649, 7340039, 3072, 4195332, 7340039, 2099202, 7340039, 3147779, 6291462, 4195332, 3072, 6291462, 2099202, 7340039, 3072, 7340039, 4195332, 2099202, 4195332, 1051649, 3147779, 6291462, 3072, 4195332, 7340039, 3072, 3147779, 7340039, 3072, 3147779, 6291462, 1051649, 7340039, 5243909, 2099202, 7340039, 3072, 4195332, 2099202, 6291462, 3072, 7340039, 2099202, 2099202, 7340039, 2099202, 3147779, 5243909, 1051649, 6291462, 5243909, 3147779, 6291462, 3072, 6291462, 5243909, 3072, 4195332, 1051649, 4195332, 3072, 4195332, 7340039, 2099202, 5243909, 2099202, 4195332, 3147779, 7340039, 3147779, 6291462, 2099202, 7340039, 4195332, 3147779, 1051649, 3072, 6291462, 2099202, 7340039, 5243909, 3147779, 1051649, 3147779, 7340039, 1051649, 7340039, 6291462, 2099202, 3072, 6291462, 1051649, 6291462, 2099202, 6291462, 3072, 2099202, 4195332, 1051649, 4195332, 7340039, 2099202, 6291462, - 6291462, 3147779, 5243909, 6291462, 1051649, 6291462, 1051649, 7340039, 4195332, 3072, 4195332, 5243909, 3072, 4195332, 6291462, 1051649, 7340039, 3147779, 7340039, 3072, 3147779, 7340039, 6291462, 1051649, 3147779, 4195332, 2099202, 5243909, 3147779, 4195332, 1051649, 4195332, 3072, 2099202, 3147779, 7340039, 1051649, 4195332, 3147779, 5243909, 2099202, 6291462, 3072, 7340039, 1051649, 7340039, 3072, 5243909, 1051649, 4195332, 1051649, 6291462, 5243909, 2099202, 7340039, 4195332, 3147779, 4195332, 1051649, 6291462, 3147779, 1051649, 6291462, 1051649, 3147779, 5243909, 2099202, 4195332, 6291462, 1051649, 4195332, 7340039, 3072, 4195332, 2099202, 3072, 7340039, 1051649, 5243909, 2099202, 1051649, 5243909, 6291462, 2099202, 7340039, 3147779, 5243909, 3072, 4195332, 3147779, 1051649, 7340039, 5243909, 3072, 4195332, 1051649, 4195332, 2099202, 3072, 6291462, 5243909, 7340039, 2099202, 4195332, 2099202, 3072, 3147779, 7340039, 5243909, 2099202, 5243909, 3147779, 1051649, 7340039, 4195332, 3147779, 2099202, 4195332, 3147779, 4195332, 2099202, 6291462, 5243909, 2099202, 6291462, 3072, 4195332, 1051649, - 1051649, 4195332, 3072, 2099202, 5243909, 3072, 3147779, 3072, 4195332, 7340039, 3147779, 1051649, 7340039, 3147779, 5243909, 2099202, 5243909, 1051649, 4195332, 5243909, 4195332, 3072, 2099202, 7340039, 5243909, 3072, 6291462, 1051649, 7340039, 3072, 6291462, 3147779, 5243909, 3147779, 5243909, 3072, 5243909, 6291462, 3072, 6291462, 1051649, 3147779, 5243909, 3147779, 6291462, 2099202, 5243909, 4195332, 7340039, 2099202, 5243909, 3147779, 1051649, 5243909, 3072, 2099202, 6291462, 3072, 7340039, 3072, 4195332, 5243909, 3147779, 5243909, 1051649, 6291462, 3072, 6291462, 3072, 5243909, 3072, 3147779, 6291462, 2099202, 7340039, 4195332, 2099202, 7340039, 4195332, 2099202, 7340039, 3147779, 1051649, 6291462, 1051649, 5243909, 1051649, 6291462, 2099202, 6291462, 4195332, 1051649, 2099202, 6291462, 2099202, 7340039, 5243909, 3147779, 5243909, 2099202, 4195332, 1051649, 5243909, 3072, 6291462, 4195332, 6291462, 3072, 2099202, 6291462, 3072, 4195332, 4195332, 1051649, 5243909, 3072, 7340039, 1051649, 7340039, 3072, 7340039, 3147779, 3072, 7340039, 1051649, 5243909, 2099202, 7340039, - 1051649, 5243909, 7340039, 2099202, 6291462, 3147779, 6291462, 5243909, 2099202, 5243909, 3072, 6291462, 3147779, 3072, 1051649, 6291462, 3072, 6291462, 3147779, 1051649, 7340039, 2099202, 4195332, 3072, 2099202, 7340039, 4195332, 3147779, 1051649, 6291462, 2099202, 7340039, 3072, 7340039, 1051649, 6291462, 3147779, 2099202, 4195332, 3147779, 6291462, 1051649, 1051649, 4195332, 1051649, 3147779, 7340039, 2099202, 3072, 6291462, 1051649, 7340039, 2099202, 7340039, 3147779, 5243909, 2099202, 5243909, 3147779, 2099202, 7340039, 3072, 4195332, 7340039, 3072, 4195332, 3147779, 4195332, 2099202, 7340039, 5243909, 1051649, 6291462, 3147779, 1051649, 5243909, 3147779, 3072, 3147779, 6291462, 3072, 6291462, 5243909, 3147779, 4195332, 3072, 7340039, 3147779, 6291462, 3072, 3147779, 6291462, 4195332, 3072, 5243909, 1051649, 3072, 7340039, 1051649, 7340039, 3072, 6291462, 3147779, 4195332, 7340039, 1051649, 2099202, 6291462, 4195332, 4195332, 2099202, 6291462, 3072, 7340039, 3147779, 6291462, 4195332, 5243909, 2099202, 4195332, 5243909, 1051649, 3147779, 4195332, 6291462, 3147779, 3147779, 5243909, - 7340039, 3147779, 3072, 4195332, 1051649, 4195332, 2099202, 1051649, 6291462, 1051649, 4195332, 2099202, 4195332, 7340039, 5243909, 4195332, 3147779, 2099202, 7340039, 3147779, 2099202, 5243909, 6291462, 3147779, 5243909, 1051649, 3072, 6291462, 5243909, 2099202, 4195332, 1051649, 5243909, 2099202, 4195332, 4195332, 1051649, 7340039, 3072, 7340039, 4195332, 5243909, 7340039, 3072, 6291462, 5243909, 1051649, 3147779, 6291462, 2099202, 4195332, 3072, 4195332, 1051649, 4195332, 3072, 7340039, 1051649, 4195332, 6291462, 1051649, 5243909, 1051649, 2099202, 4195332, 7340039, 2099202, 7340039, 3147779, 1051649, 4195332, 4195332, 3072, 5243909, 1051649, 6291462, 5243909, 6291462, 5243909, 1051649, 4195332, 2099202, 3072, 2099202, 7340039, 4195332, 2099202, 3072, 5243909, 2099202, 7340039, 1051649, 3147779, 7340039, 3147779, 6291462, 3147779, 6291462, 4195332, 3147779, 6291462, 2099202, 7340039, 1051649, 2099202, 5243909, 3147779, 1051649, 7340039, 1051649, 5243909, 2099202, 4195332, 5243909, 3072, 2099202, 3072, 2099202, 6291462, 1051649, 3072, 6291462, 7340039, 3072, 2099202, 6291462, 3072, 3147779, - 3072, 5243909, 2099202, 6291462, 7340039, 3072, 7340039, 5243909, 3147779, 6291462, 2099202, 7340039, 5243909, 1051649, 2099202, 3072, 7340039, 4195332, 3072, 6291462, 3072, 5243909, 1051649, 7340039, 3147779, 6291462, 5243909, 2099202, 3072, 5243909, 3072, 7340039, 4195332, 6291462, 3072, 7340039, 2099202, 4195332, 5243909, 2099202, 3072, 2099202, 6291462, 4195332, 2099202, 3072, 6291462, 4195332, 1051649, 5243909, 3147779, 6291462, 3147779, 7340039, 2099202, 6291462, 3147779, 5243909, 3072, 4195332, 3147779, 7340039, 3147779, 6291462, 3147779, 1051649, 6291462, 3072, 5243909, 3147779, 6291462, 2099202, 7340039, 3147779, 7340039, 3072, 3147779, 2099202, 1051649, 7340039, 3147779, 7340039, 4195332, 5243909, 1051649, 3147779, 6291462, 3147779, 4195332, 5243909, 2099202, 5243909, 3072, 6291462, 1051649, 5243909, 1051649, 2099202, 3072, 5243909, 1051649, 5243909, 3072, 3147779, 6291462, 3072, 7340039, 5243909, 3072, 6291462, 3147779, 7340039, 1051649, 6291462, 3147779, 7340039, 5243909, 6291462, 3147779, 5243909, 7340039, 2099202, 4195332, 3147779, 5243909, 1051649, 7340039, 4195332, - 2099202, 6291462, 3147779, 1051649, 3147779, 2099202, 5243909, 2099202, 3072, 7340039, 1051649, 3147779, 3072, 6291462, 4195332, 6291462, 3147779, 1051649, 5243909, 2099202, 7340039, 1051649, 4195332, 3072, 4195332, 1051649, 3147779, 7340039, 4195332, 3147779, 6291462, 2099202, 3147779, 1051649, 3147779, 5243909, 3072, 6291462, 1051649, 7340039, 3147779, 5243909, 3072, 3147779, 7340039, 5243909, 2099202, 3147779, 7340039, 3072, 5243909, 1051649, 6291462, 1051649, 5243909, 3072, 2099202, 4195332, 7340039, 1051649, 6291462, 3072, 5243909, 1051649, 5243909, 4195332, 2099202, 4195332, 1051649, 7340039, 3072, 2099202, 5243909, 3072, 2099202, 4195332, 1051649, 7340039, 6291462, 1051649, 4195332, 2099202, 1051649, 6291462, 3072, 7340039, 1051649, 7340039, 1051649, 3072, 7340039, 3147779, 4195332, 2099202, 7340039, 3147779, 7340039, 4195332, 2099202, 7340039, 3147779, 4195332, 6291462, 1051649, 5243909, 3147779, 2099202, 4195332, 3147779, 4195332, 3072, 5243909, 1051649, 3147779, 2099202, 4195332, 1051649, 3147779, 3072, 2099202, 3147779, 5243909, 1051649, 7340039, 2099202, 5243909, 1051649, 4195332, - 6291462, 3072, 7340039, 4195332, 6291462, 4195332, 3072, 7340039, 4195332, 4195332, 1051649, 6291462, 3147779, 7340039, 2099202, 1051649, 6291462, 5243909, 3147779, 4195332, 3147779, 6291462, 3147779, 6291462, 2099202, 7340039, 4195332, 3072, 7340039, 1051649, 5243909, 3072, 6291462, 7340039, 4195332, 2099202, 7340039, 3147779, 5243909, 6291462, 1051649, 2099202, 6291462, 4195332, 1051649, 3147779, 7340039, 3072, 4195332, 5243909, 2099202, 6291462, 3072, 3147779, 4195332, 7340039, 6291462, 1051649, 4195332, 2099202, 5243909, 2099202, 6291462, 3072, 7340039, 3072, 6291462, 2099202, 5243909, 4195332, 6291462, 3147779, 6291462, 4195332, 6291462, 5243909, 3072, 3147779, 4195332, 5243909, 3072, 6291462, 4195332, 5243909, 3147779, 4195332, 5243909, 2099202, 4195332, 6291462, 2099202, 5243909, 1051649, 6291462, 2099202, 3072, 5243909, 2099202, 6291462, 3147779, 1051649, 5243909, 2099202, 7340039, 1051649, 6291462, 4195332, 1051649, 6291462, 1051649, 7340039, 2099202, 7340039, 5243909, 6291462, 3072, 6291462, 7340039, 4195332, 7340039, 3072, 4195332, 1051649, 6291462, 3072, 4195332, 7340039, 2099202, - 4195332, 5243909, 1051649, 5243909, 3072, 3147779, 5243909, 1051649, 6291462, 2099202, 5243909, 2099202, 5243909, 3072, 4195332, 5243909, 2099202, 3072, 7340039, 1051649, 6291462, 3072, 5243909, 1051649, 2099202, 5243909, 1051649, 5243909, 2099202, 4195332, 3147779, 7340039, 2099202, 3072, 3147779, 5243909, 1051649, 4195332, 2099202, 3072, 4195332, 7340039, 4195332, 1051649, 5243909, 3072, 4195332, 6291462, 2099202, 7340039, 1051649, 4195332, 5243909, 7340039, 2099202, 3072, 5243909, 3147779, 6291462, 1051649, 7340039, 4195332, 3147779, 3147779, 2099202, 5243909, 3147779, 7340039, 3072, 3147779, 1051649, 5243909, 3072, 2099202, 1051649, 6291462, 2099202, 7340039, 3072, 3147779, 7340039, 3072, 3147779, 2099202, 6291462, 3072, 1051649, 7340039, 3072, 3147779, 1051649, 7340039, 3072, 5243909, 3147779, 5243909, 3072, 7340039, 3072, 4195332, 7340039, 3072, 4195332, 3147779, 4195332, 3072, 3147779, 7340039, 3072, 5243909, 3147779, 3072, 4195332, 3072, 3147779, 7340039, 2099202, 1051649, 4195332, 1051649, 6291462, 3147779, 6291462, 3147779, 2099202, 6291462, 1051649, 3147779, - 3072, 3147779, 2099202, 7340039, 2099202, 6291462, 3072, 4195332, 1051649, 7340039, 3072, 3147779, 7340039, 3147779, 7340039, 3072, 3147779, 5243909, 2099202, 4195332, 2099202, 3147779, 7340039, 4195332, 6291462, 3072, 7340039, 3147779, 3072, 6291462, 1051649, 1051649, 5243909, 4195332, 1051649, 6291462, 6291462, 3072, 7340039, 3147779, 5243909, 1051649, 3072, 7340039, 3147779, 6291462, 3147779, 1051649, 5243909, 3147779, 6291462, 2099202, 1051649, 3147779, 4195332, 6291462, 2099202, 1051649, 6291462, 3072, 3147779, 3072, 6291462, 7340039, 1051649, 6291462, 1051649, 2099202, 6291462, 1051649, 7340039, 4195332, 5243909, 7340039, 4195332, 3072, 5243909, 2099202, 6291462, 4195332, 2099202, 5243909, 7340039, 3072, 4195332, 7340039, 5243909, 3147779, 4195332, 6291462, 2099202, 4195332, 4195332, 1051649, 7340039, 2099202, 4195332, 5243909, 3147779, 1051649, 6291462, 2099202, 5243909, 3072, 6291462, 2099202, 5243909, 2099202, 4195332, 2099202, 6291462, 2099202, 6291462, 3147779, 5243909, 1051649, 4195332, 5243909, 6291462, 5243909, 3072, 4195332, 1051649, 5243909, 7340039, 3072, 5243909, 6291462, - 7340039, 5243909, 4195332, 1051649, 5243909, 3147779, 7340039, 3147779, 5243909, 3147779, 4195332, 6291462, 1051649, 4195332, 1051649, 5243909, 6291462, 1051649, 7340039, 3072, 6291462, 5243909, 3072, 2099202, 3147779, 4195332, 2099202, 6291462, 3147779, 4195332, 7340039, 5243909, 2099202, 7340039, 4195332, 2099202, 2099202, 4195332, 1051649, 6291462, 3147779, 5243909, 2099202, 5243909, 2099202, 1051649, 5243909, 7340039, 3072, 4195332, 3072, 7340039, 3147779, 6291462, 3072, 3147779, 7340039, 4195332, 5243909, 2099202, 7340039, 4195332, 1051649, 3147779, 4195332, 2099202, 4195332, 5243909, 3147779, 5243909, 2099202, 3072, 3147779, 1051649, 3147779, 7340039, 3147779, 5243909, 1051649, 5243909, 1051649, 6291462, 2099202, 5243909, 2099202, 3147779, 1051649, 5243909, 1051649, 6291462, 3072, 7340039, 3147779, 6291462, 3147779, 3072, 6291462, 2099202, 6291462, 1051649, 4195332, 5243909, 2099202, 7340039, 1051649, 7340039, 3147779, 3072, 7340039, 5243909, 1051649, 5243909, 1051649, 7340039, 2099202, 6291462, 3072, 3147779, 1051649, 2099202, 7340039, 5243909, 3072, 3147779, 1051649, 5243909, 3147779, 2099202, - 3072, 6291462, 1051649, 6291462, 4195332, 2099202, 1051649, 6291462, 3072, 6291462, 2099202, 3072, 5243909, 6291462, 2099202, 7340039, 3072, 3147779, 4195332, 5243909, 1051649, 3147779, 5243909, 7340039, 1051649, 6291462, 4195332, 3072, 7340039, 1051649, 3147779, 3072, 3147779, 1051649, 6291462, 3072, 5243909, 3147779, 5243909, 2099202, 3072, 7340039, 1051649, 6291462, 4195332, 6291462, 2099202, 1051649, 4195332, 7340039, 2099202, 5243909, 3072, 5243909, 2099202, 5243909, 3072, 6291462, 1051649, 3147779, 5243909, 2099202, 6291462, 3072, 7340039, 3147779, 7340039, 3072, 7340039, 3072, 4195332, 7340039, 6291462, 6291462, 1051649, 4195332, 3072, 2099202, 3147779, 7340039, 3072, 4195332, 1051649, 4195332, 3072, 6291462, 6291462, 3072, 7340039, 1051649, 3147779, 5243909, 2099202, 1051649, 4195332, 7340039, 1051649, 7340039, 3072, 3147779, 7340039, 3072, 6291462, 3147779, 4195332, 1051649, 5243909, 6291462, 3147779, 1051649, 7340039, 4195332, 4195332, 3072, 4195332, 3147779, 7340039, 4195332, 7340039, 3072, 3147779, 2099202, 6291462, 4195332, 7340039, 3147779, 1051649, 5243909, - 2099202, 3147779, 7340039, 2099202, 3072, 6291462, 4195332, 3147779, 5243909, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 3147779, 4195332, 7340039, 1051649, 2099202, 6291462, 2099202, 3072, 5243909, 3147779, 1051649, 6291462, 5243909, 2099202, 5243909, 6291462, 3147779, 6291462, 5243909, 3147779, 7340039, 3072, 7340039, 1051649, 6291462, 3147779, 4195332, 3147779, 7340039, 3072, 3147779, 5243909, 3147779, 6291462, 2099202, 5243909, 1051649, 4195332, 1051649, 7340039, 3147779, 1051649, 2099202, 7340039, 4195332, 3072, 7340039, 1051649, 4195332, 5243909, 3072, 5243909, 1051649, 3147779, 5243909, 2099202, 1051649, 3072, 4195332, 2099202, 5243909, 7340039, 6291462, 4195332, 3147779, 6291462, 2099202, 7340039, 3147779, 7340039, 1051649, 3147779, 4195332, 2099202, 6291462, 4195332, 3072, 5243909, 6291462, 3072, 4195332, 2099202, 4195332, 3147779, 5243909, 2099202, 4195332, 3147779, 1051649, 6291462, 5243909, 2099202, 4195332, 3072, 6291462, 3147779, 3072, 7340039, 2099202, 6291462, 1051649, 2099202, 3072, 5243909, 3147779, 7340039, 5243909, 1051649, 6291462, 2099202, 3072, 4195332, 7340039, - 6291462, 3072, 4195332, 3147779, 5243909, 1051649, 7340039, 3072, 7340039, 5243909, 3147779, 3072, 5243909, 1051649, 6291462, 5243909, 1051649, 3147779, 6291462, 5243909, 4195332, 7340039, 4195332, 2099202, 4195332, 7340039, 3072, 2099202, 4195332, 3072, 4195332, 1051649, 5243909, 3072, 2099202, 5243909, 2099202, 3147779, 4195332, 2099202, 7340039, 3072, 5243909, 2099202, 4195332, 7340039, 3072, 4195332, 1051649, 3072, 6291462, 3147779, 7340039, 4195332, 1051649, 6291462, 5243909, 4195332, 2099202, 6291462, 1051649, 4195332, 5243909, 2099202, 6291462, 1051649, 4195332, 6291462, 2099202, 4195332, 6291462, 7340039, 4195332, 3147779, 7340039, 3072, 3147779, 1051649, 3072, 6291462, 1051649, 5243909, 3072, 6291462, 2099202, 5243909, 6291462, 2099202, 5243909, 3072, 3147779, 7340039, 2099202, 4195332, 6291462, 2099202, 5243909, 1051649, 6291462, 1051649, 7340039, 5243909, 3072, 7340039, 3147779, 3072, 7340039, 1051649, 5243909, 4195332, 2099202, 5243909, 1051649, 5243909, 2099202, 5243909, 4195332, 6291462, 4195332, 1051649, 2099202, 4195332, 2099202, 3072, 5243909, 6291462, 4195332, 1051649, - 4195332, 1051649, 5243909, 1051649, 7340039, 4195332, 2099202, 3147779, 2099202, 4195332, 2099202, 7340039, 3147779, 5243909, 2099202, 7340039, 2099202, 6291462, 3072, 2099202, 3072, 3147779, 1051649, 7340039, 3072, 5243909, 3147779, 7340039, 1051649, 6291462, 2099202, 7340039, 1051649, 7340039, 4195332, 7340039, 1051649, 6291462, 3072, 5243909, 4195332, 1051649, 6291462, 3072, 3147779, 1051649, 6291462, 2099202, 7340039, 5243909, 3147779, 3072, 3147779, 6291462, 2099202, 4195332, 3072, 7340039, 3072, 3147779, 3147779, 1051649, 7340039, 3072, 3147779, 7340039, 3147779, 2099202, 6291462, 3072, 3147779, 1051649, 2099202, 5243909, 1051649, 5243909, 2099202, 4195332, 5243909, 2099202, 7340039, 3147779, 5243909, 1051649, 4195332, 3072, 3147779, 5243909, 3072, 7340039, 4195332, 1051649, 5243909, 1051649, 3147779, 7340039, 3072, 6291462, 2099202, 4195332, 3072, 3147779, 5243909, 4195332, 2099202, 5243909, 3147779, 6291462, 2099202, 1051649, 6291462, 3147779, 7340039, 3072, 6291462, 3072, 7340039, 2099202, 1051649, 5243909, 6291462, 3072, 7340039, 4195332, 3147779, 1051649, 7340039, 3147779, - 7340039, 6291462, 3147779, 7340039, 2099202, 3072, 5243909, 6291462, 3072, 6291462, 1051649, 6291462, 3072, 2099202, 4195332, 3072, 4195332, 1051649, 7340039, 4195332, 7340039, 6291462, 5243909, 1051649, 6291462, 2099202, 6291462, 1051649, 5243909, 4195332, 3072, 3147779, 6291462, 2099202, 4195332, 3072, 4195332, 4195332, 2099202, 6291462, 1051649, 4195332, 3147779, 6291462, 7340039, 4195332, 2099202, 6291462, 3072, 6291462, 1051649, 7340039, 4195332, 3072, 5243909, 7340039, 1051649, 3147779, 5243909, 6291462, 5243909, 4195332, 2099202, 6291462, 1051649, 5243909, 3072, 7340039, 1051649, 5243909, 6291462, 5243909, 6291462, 1051649, 7340039, 3147779, 6291462, 3072, 7340039, 2099202, 4195332, 1051649, 6291462, 3147779, 7340039, 5243909, 1051649, 7340039, 2099202, 5243909, 2099202, 6291462, 3072, 7340039, 4195332, 3147779, 5243909, 3147779, 1051649, 7340039, 6291462, 2099202, 7340039, 1051649, 7340039, 4195332, 1051649, 3072, 4195332, 7340039, 5243909, 3072, 3147779, 2099202, 4195332, 5243909, 1051649, 3147779, 7340039, 3072, 3147779, 6291462, 4195332, 3072, 7340039, 2099202, 5243909, 3072, - 2099202, 3072, 5243909, 1051649, 4195332, 6291462, 3147779, 1051649, 7340039, 3147779, 5243909, 3147779, 1051649, 7340039, 6291462, 3147779, 6291462, 5243909, 1051649, 4195332, 2099202, 3072, 3147779, 7340039, 4195332, 3072, 3147779, 5243909, 2099202, 7340039, 3147779, 6291462, 1051649, 5243909, 2099202, 6291462, 1051649, 7340039, 3072, 3147779, 7340039, 5243909, 3072, 5243909, 2099202, 3072, 5243909, 3147779, 4195332, 4195332, 2099202, 5243909, 2099202, 6291462, 1051649, 2099202, 4195332, 6291462, 1051649, 2099202, 3072, 7340039, 2099202, 3147779, 6291462, 2099202, 5243909, 4195332, 4195332, 1051649, 2099202, 3072, 7340039, 4195332, 3072, 6291462, 3147779, 4195332, 1051649, 5243909, 3072, 7340039, 1051649, 4195332, 3072, 3147779, 2099202, 6291462, 4195332, 1051649, 7340039, 3147779, 4195332, 2099202, 3072, 6291462, 1051649, 6291462, 3072, 4195332, 1051649, 5243909, 2099202, 4195332, 3072, 2099202, 6291462, 3147779, 6291462, 3072, 2099202, 7340039, 4195332, 6291462, 2099202, 7340039, 3147779, 5243909, 2099202, 6291462, 5243909, 1051649, 2099202, 5243909, 4195332, 2099202, 6291462, 3147779, - 7340039, 2099202, 4195332, 6291462, 2099202, 3072, 6291462, 4195332, 2099202, 5243909, 3072, 7340039, 4195332, 3147779, 1051649, 4195332, 3072, 5243909, 1051649, 3147779, 6291462, 2099202, 5243909, 1051649, 3147779, 4195332, 7340039, 3072, 4195332, 1051649, 5243909, 1051649, 4195332, 6291462, 3072, 1051649, 5243909, 3147779, 6291462, 5243909, 2099202, 1051649, 7340039, 1051649, 6291462, 3147779, 7340039, 1051649, 7340039, 1051649, 6291462, 3072, 7340039, 4195332, 3147779, 7340039, 3072, 3147779, 5243909, 7340039, 4195332, 1051649, 5243909, 3072, 4195332, 7340039, 3072, 2099202, 7340039, 3147779, 6291462, 3147779, 2099202, 3147779, 5243909, 2099202, 1051649, 7340039, 3147779, 4195332, 2099202, 5243909, 3147779, 7340039, 2099202, 6291462, 4195332, 3072, 3147779, 5243909, 3072, 5243909, 1051649, 6291462, 5243909, 2099202, 7340039, 2099202, 4195332, 7340039, 3147779, 6291462, 3072, 6291462, 3147779, 7340039, 1051649, 5243909, 2099202, 4195332, 5243909, 3147779, 1051649, 3072, 5243909, 1051649, 6291462, 3072, 4195332, 3147779, 3072, 7340039, 6291462, 3147779, 1051649, 6291462, 3072, 5243909, - 1051649, 3147779, 7340039, 3072, 5243909, 7340039, 2099202, 4195332, 1051649, 7340039, 4195332, 1051649, 6291462, 3072, 6291462, 2099202, 7340039, 3147779, 7340039, 3072, 5243909, 4195332, 1051649, 7340039, 5243909, 1051649, 6291462, 3147779, 6291462, 2099202, 4195332, 3147779, 7340039, 2099202, 7340039, 3147779, 6291462, 3072, 3147779, 2099202, 4195332, 6291462, 3147779, 4195332, 3072, 5243909, 1051649, 5243909, 3147779, 7340039, 2099202, 4195332, 3147779, 3072, 6291462, 1051649, 3147779, 5243909, 3072, 2099202, 3147779, 6291462, 2099202, 7340039, 3147779, 1051649, 4195332, 6291462, 3072, 5243909, 1051649, 7340039, 5243909, 3072, 6291462, 4195332, 5243909, 3072, 6291462, 1051649, 7340039, 2099202, 3072, 6291462, 1051649, 5243909, 2099202, 7340039, 4195332, 3147779, 6291462, 2099202, 7340039, 3072, 3147779, 4195332, 1051649, 5243909, 3072, 5243909, 3072, 3147779, 5243909, 1051649, 5243909, 4195332, 2099202, 6291462, 3072, 7340039, 1051649, 3147779, 7340039, 4195332, 3147779, 6291462, 2099202, 4195332, 1051649, 6291462, 2099202, 4195332, 1051649, 3072, 5243909, 3147779, 1051649, 5243909, - 4195332, 1051649, 4195332, 2099202, 3147779, 1051649, 7340039, 3072, 3147779, 6291462, 2099202, 5243909, 2099202, 5243909, 1051649, 5243909, 3072, 6291462, 2099202, 4195332, 2099202, 6291462, 3147779, 4195332, 3072, 6291462, 2099202, 2099202, 3072, 7340039, 3072, 6291462, 3072, 3147779, 4195332, 5243909, 1051649, 4195332, 7340039, 3072, 7340039, 3072, 2099202, 7340039, 2099202, 4195332, 6291462, 2099202, 3072, 5243909, 1051649, 1051649, 6291462, 2099202, 5243909, 4195332, 6291462, 2099202, 7340039, 4195332, 6291462, 3072, 4195332, 5243909, 3072, 6291462, 5243909, 3147779, 2099202, 6291462, 4195332, 2099202, 4195332, 3147779, 1051649, 7340039, 2099202, 4195332, 3147779, 5243909, 3072, 5243909, 6291462, 2099202, 4195332, 3072, 6291462, 1051649, 1051649, 6291462, 1051649, 4195332, 3147779, 5243909, 1051649, 7340039, 3072, 6291462, 3147779, 2099202, 6291462, 6291462, 1051649, 3147779, 7340039, 3072, 6291462, 4195332, 2099202, 5243909, 1051649, 5243909, 3072, 6291462, 2099202, 3072, 6291462, 1051649, 7340039, 5243909, 3072, 5243909, 7340039, 4195332, 7340039, 2099202, 6291462, 3147779, - 3072, 6291462, 2099202, 5243909, 6291462, 4195332, 3147779, 5243909, 6291462, 3072, 4195332, 1051649, 7340039, 3147779, 4195332, 7340039, 2099202, 3147779, 3072, 7340039, 3147779, 3072, 6291462, 2099202, 7340039, 3147779, 4195332, 7340039, 5243909, 3147779, 4195332, 1051649, 5243909, 7340039, 2099202, 3072, 5243909, 2099202, 6291462, 2099202, 3147779, 5243909, 6291462, 1051649, 5243909, 3072, 7340039, 2099202, 4195332, 7340039, 3147779, 5243909, 3147779, 7340039, 3072, 2099202, 1051649, 5243909, 3072, 4195332, 1051649, 7340039, 3147779, 6291462, 1051649, 3147779, 1051649, 7340039, 4195332, 2099202, 3072, 7340039, 3072, 5243909, 6291462, 3072, 3147779, 1051649, 7340039, 2099202, 6291462, 3147779, 1051649, 5243909, 7340039, 3147779, 4195332, 7340039, 5243909, 2099202, 7340039, 3072, 7340039, 4195332, 6291462, 3147779, 2099202, 4195332, 2099202, 7340039, 3147779, 3072, 4195332, 5243909, 1051649, 4195332, 3147779, 1051649, 7340039, 3147779, 6291462, 2099202, 4195332, 3147779, 7340039, 4195332, 3147779, 4195332, 3147779, 3147779, 7340039, 2099202, 1051649, 3147779, 3072, 4195332, 1051649, 7340039, - 5243909, 4195332, 7340039, 3072, 2099202, 1051649, 5243909, 3072, 3147779, 7340039, 5243909, 1051649, 4195332, 3072, 4195332, 1051649, 3147779, 6291462, 5243909, 1051649, 4195332, 7340039, 3072, 5243909, 1051649, 6291462, 3072, 5243909, 1051649, 2099202, 6291462, 2099202, 5243909, 1051649, 4195332, 6291462, 3147779, 7340039, 1051649, 5243909, 1051649, 5243909, 1051649, 4195332, 4195332, 3147779, 1051649, 5243909, 3072, 4195332, 3072, 6291462, 1051649, 2099202, 5243909, 6291462, 7340039, 3147779, 7340039, 2099202, 3147779, 5243909, 1051649, 2099202, 5243909, 7340039, 2099202, 4195332, 3072, 6291462, 5243909, 2099202, 6291462, 1051649, 2099202, 5243909, 6291462, 5243909, 3072, 4195332, 1051649, 4195332, 7340039, 3072, 3147779, 1051649, 5243909, 3072, 3147779, 1051649, 5243909, 3147779, 2099202, 3072, 2099202, 6291462, 5243909, 7340039, 3072, 4195332, 1051649, 7340039, 1051649, 6291462, 3147779, 7340039, 2099202, 5243909, 3072, 4195332, 3072, 7340039, 5243909, 1051649, 5243909, 2099202, 7340039, 3072, 6291462, 1051649, 3072, 6291462, 4195332, 6291462, 2099202, 7340039, 5243909, 2099202, - 1051649, 3072, 3147779, 4195332, 7340039, 6291462, 2099202, 7340039, 2099202, 1051649, 2099202, 6291462, 3147779, 7340039, 2099202, 6291462, 5243909, 1051649, 4195332, 6291462, 2099202, 3147779, 5243909, 2099202, 4195332, 1051649, 7340039, 2099202, 4195332, 5243909, 3072, 7340039, 2099202, 3147779, 7340039, 1051649, 5243909, 3147779, 1051649, 7340039, 4195332, 2099202, 3147779, 7340039, 2099202, 6291462, 3147779, 4195332, 6291462, 2099202, 5243909, 2099202, 4195332, 7340039, 3147779, 3072, 1051649, 4195332, 1051649, 6291462, 3072, 4195332, 7340039, 4195332, 3072, 6291462, 3072, 7340039, 3147779, 4195332, 1051649, 3147779, 4195332, 3147779, 7340039, 1051649, 3147779, 2099202, 7340039, 4195332, 6291462, 3072, 2099202, 4195332, 6291462, 2099202, 7340039, 2099202, 6291462, 4195332, 3072, 5243909, 6291462, 2099202, 5243909, 3072, 3147779, 1051649, 5243909, 3147779, 5243909, 2099202, 6291462, 2099202, 2099202, 3072, 6291462, 3147779, 7340039, 1051649, 5243909, 3147779, 3072, 7340039, 1051649, 6291462, 3072, 5243909, 2099202, 5243909, 4195332, 2099202, 1051649, 3147779, 5243909, 3147779, 3072, 6291462, - 3147779, 7340039, 5243909, 3072, 3147779, 1051649, 4195332, 3072, 5243909, 6291462, 4195332, 3072, 7340039, 1051649, 5243909, 3147779, 3072, 7340039, 2099202, 3072, 7340039, 1051649, 7340039, 3072, 6291462, 4195332, 3147779, 6291462, 3072, 7340039, 3147779, 5243909, 3072, 6291462, 2099202, 4195332, 3072, 6291462, 3147779, 3072, 6291462, 3072, 6291462, 3147779, 3072, 6291462, 3072, 7340039, 1051649, 3147779, 6291462, 3072, 6291462, 1051649, 5243909, 4195332, 6291462, 3147779, 5243909, 2099202, 6291462, 3147779, 3072, 6291462, 3147779, 4195332, 2099202, 5243909, 1051649, 7340039, 6291462, 1051649, 7340039, 3072, 4195332, 3147779, 7340039, 3072, 4195332, 1051649, 2099202, 7340039, 3147779, 6291462, 3072, 2099202, 4195332, 3072, 7340039, 1051649, 6291462, 3147779, 1051649, 6291462, 4195332, 7340039, 3147779, 6291462, 1051649, 7340039, 1051649, 4195332, 3072, 4195332, 7340039, 4195332, 5243909, 1051649, 4195332, 6291462, 2099202, 2099202, 6291462, 4195332, 3147779, 4195332, 2099202, 7340039, 4195332, 1051649, 7340039, 3147779, 7340039, 3072, 6291462, 1051649, 7340039, 4195332, - 1051649, 4195332, 2099202, 6291462, 3147779, 5243909, 6291462, 4195332, 3147779, 1051649, 6291462, 4195332, 2099202, 5243909, 3072, 4195332, 6291462, 2099202, 4195332, 3147779, 5243909, 1051649, 3147779, 5243909, 2099202, 3072, 5243909, 1051649, 5243909, 3147779, 1051649, 6291462, 4195332, 3072, 7340039, 2099202, 6291462, 2099202, 7340039, 4195332, 3147779, 5243909, 1051649, 6291462, 5243909, 2099202, 3147779, 1051649, 4195332, 7340039, 3147779, 4195332, 3147779, 3072, 7340039, 2099202, 3072, 7340039, 3072, 5243909, 1051649, 5243909, 2099202, 6291462, 1051649, 7340039, 3147779, 1051649, 5243909, 3072, 2099202, 5243909, 2099202, 5243909, 1051649, 5243909, 1051649, 6291462, 3147779, 6291462, 5243909, 3147779, 1051649, 5243909, 4195332, 7340039, 3147779, 5243909, 3147779, 4195332, 2099202, 7340039, 4195332, 3072, 2099202, 1051649, 5243909, 3072, 4195332, 2099202, 5243909, 6291462, 3147779, 7340039, 1051649, 3072, 6291462, 2099202, 7340039, 3072, 4195332, 6291462, 1051649, 2099202, 7340039, 3072, 5243909, 1051649, 3147779, 6291462, 3072, 3147779, 5243909, 4195332, 2099202, 5243909, 2099202, 6291462, - 7340039, 2099202, 6291462, 1051649, 1051649, 7340039, 2099202, 1051649, 7340039, 5243909, 3072, 3147779, 6291462, 2099202, 6291462, 3147779, 1051649, 5243909, 3072, 7340039, 2099202, 5243909, 6291462, 1051649, 7340039, 4195332, 3147779, 6291462, 2099202, 7340039, 2099202, 4195332, 1051649, 3147779, 5243909, 1051649, 4195332, 5243909, 3072, 2099202, 1051649, 7340039, 4195332, 3072, 4195332, 1051649, 7340039, 5243909, 3072, 5243909, 1051649, 7340039, 6291462, 2099202, 5243909, 3147779, 4195332, 2099202, 5243909, 2099202, 4195332, 7340039, 2099202, 4195332, 5243909, 3072, 5243909, 2099202, 6291462, 4195332, 3147779, 7340039, 4195332, 3072, 6291462, 2099202, 7340039, 2099202, 5243909, 1051649, 3072, 5243909, 7340039, 1051649, 6291462, 3072, 5243909, 1051649, 6291462, 3072, 5243909, 1051649, 4195332, 6291462, 7340039, 3147779, 4195332, 2099202, 7340039, 5243909, 3072, 3147779, 1051649, 5243909, 3147779, 3147779, 7340039, 1051649, 3147779, 5243909, 1051649, 3147779, 5243909, 6291462, 1051649, 5243909, 2099202, 7340039, 5243909, 2099202, 5243909, 6291462, 1051649, 2099202, 7340039, 3147779, 4195332, 3072, - 4195332, 3072, 3147779, 5243909, 5243909, 3072, 3147779, 6291462, 3072, 2099202, 7340039, 3147779, 1051649, 7340039, 1051649, 3147779, 7340039, 3147779, 6291462, 2099202, 4195332, 3072, 4195332, 4195332, 2099202, 1051649, 7340039, 3072, 4195332, 1051649, 5243909, 3072, 7340039, 6291462, 3147779, 7340039, 3072, 3147779, 4195332, 6291462, 5243909, 3147779, 1051649, 7340039, 3147779, 5243909, 3147779, 2099202, 6291462, 1051649, 5243909, 3072, 2099202, 4195332, 6291462, 3072, 6291462, 1051649, 3147779, 7340039, 3147779, 3072, 6291462, 3072, 7340039, 3147779, 2099202, 7340039, 3147779, 1051649, 7340039, 1051649, 4195332, 7340039, 3147779, 5243909, 3072, 4195332, 3072, 6291462, 3147779, 4195332, 2099202, 4195332, 1051649, 2099202, 7340039, 2099202, 4195332, 6291462, 1051649, 7340039, 2099202, 3147779, 1051649, 5243909, 7340039, 3072, 3147779, 1051649, 7340039, 2099202, 6291462, 2099202, 6291462, 5243909, 3072, 4195332, 5243909, 2099202, 7340039, 4195332, 3072, 4195332, 3147779, 6291462, 3147779, 3072, 4195332, 1051649, 7340039, 3072, 4195332, 5243909, 3072, 6291462, 1051649, 5243909, - 2099202, 7340039, 6291462, 3072, 3147779, 7340039, 5243909, 2099202, 4195332, 6291462, 1051649, 5243909, 5243909, 3072, 4195332, 5243909, 3072, 4195332, 1051649, 6291462, 3147779, 6291462, 1051649, 7340039, 3072, 5243909, 2099202, 4195332, 6291462, 1051649, 6291462, 3147779, 5243909, 2099202, 1051649, 4195332, 6291462, 1051649, 5243909, 2099202, 3072, 7340039, 2099202, 4195332, 3072, 6291462, 1051649, 7340039, 3147779, 4195332, 3147779, 7340039, 5243909, 3147779, 1051649, 5243909, 1051649, 7340039, 4195332, 3072, 6291462, 1051649, 4195332, 3147779, 1051649, 6291462, 4195332, 3072, 4195332, 6291462, 3072, 5243909, 2099202, 3072, 4195332, 1051649, 6291462, 4195332, 7340039, 2099202, 7340039, 3072, 6291462, 3147779, 6291462, 4195332, 3147779, 3072, 5243909, 2099202, 3147779, 5243909, 3072, 6291462, 4195332, 3072, 2099202, 3147779, 6291462, 4195332, 2099202, 6291462, 3072, 4195332, 3072, 4195332, 2099202, 6291462, 3072, 6291462, 3147779, 1051649, 7340039, 1051649, 6291462, 3072, 7340039, 4195332, 6291462, 3072, 3147779, 6291462, 3147779, 1051649, 7340039, 2099202, 6291462, 3147779, - 5243909, 2099202, 1051649, 6291462, 4195332, 2099202, 3072, 7340039, 1051649, 4195332, 3072, 4195332, 2099202, 7340039, 4195332, 2099202, 7340039, 2099202, 5243909, 3072, 4195332, 1051649, 5243909, 3147779, 5243909, 3147779, 6291462, 3147779, 3072, 4195332, 3147779, 6291462, 3072, 7340039, 1051649, 6291462, 2099202, 7340039, 3072, 7340039, 4195332, 1051649, 5243909, 6291462, 2099202, 4195332, 2099202, 5243909, 3072, 7340039, 1051649, 2099202, 3072, 7340039, 2099202, 4195332, 6291462, 3147779, 1051649, 5243909, 2099202, 7340039, 2099202, 6291462, 3147779, 3072, 5243909, 6291462, 1051649, 2099202, 5243909, 3147779, 6291462, 3147779, 6291462, 4195332, 2099202, 3147779, 1051649, 5243909, 1051649, 5243909, 3147779, 5243909, 3072, 1051649, 7340039, 3147779, 6291462, 3072, 7340039, 3147779, 5243909, 2099202, 7340039, 4195332, 7340039, 6291462, 1051649, 5243909, 3072, 4195332, 5243909, 3147779, 7340039, 1051649, 7340039, 2099202, 7340039, 2099202, 3072, 5243909, 2099202, 4195332, 2099202, 5243909, 1051649, 2099202, 3147779, 6291462, 2099202, 3072, 7340039, 4195332, 5243909, 3072, 3147779, 1051649, - 3072, 7340039, 4195332, 3147779, 1051649, 6291462, 3147779, 5243909, 3147779, 5243909, 7340039, 1051649, 6291462, 3147779, 1051649, 6291462, 3072, 6291462, 4195332, 7340039, 6291462, 2099202, 7340039, 2099202, 1051649, 7340039, 3072, 2099202, 5243909, 7340039, 1051649, 2099202, 4195332, 4195332, 5243909, 3072, 4195332, 2099202, 5243909, 3147779, 3147779, 6291462, 3072, 2099202, 7340039, 3147779, 6291462, 1051649, 4195332, 2099202, 5243909, 6291462, 4195332, 6291462, 3072, 7340039, 2099202, 3072, 7340039, 5243909, 1051649, 4195332, 5243909, 1051649, 7340039, 4195332, 3147779, 1051649, 6291462, 4195332, 1051649, 7340039, 3072, 5243909, 1051649, 7340039, 3072, 6291462, 3147779, 6291462, 2099202, 4195332, 1051649, 2099202, 7340039, 5243909, 4195332, 3072, 6291462, 4195332, 1051649, 6291462, 3072, 4195332, 1051649, 3147779, 3072, 2099202, 4195332, 1051649, 3147779, 7340039, 2099202, 1051649, 2099202, 5243909, 4195332, 1051649, 3147779, 4195332, 5243909, 3147779, 6291462, 3072, 7340039, 3147779, 4195332, 7340039, 3072, 5243909, 4195332, 3147779, 5243909, 1051649, 2099202, 6291462, 4195332, 7340039, - 5243909, 3147779, 1051649, 7340039, 5243909, 2099202, 4195332, 3072, 7340039, 2099202, 1051649, 6291462, 3147779, 3072, 7340039, 3147779, 2099202, 5243909, 1051649, 3147779, 2099202, 5243909, 3072, 4195332, 6291462, 2099202, 4195332, 7340039, 1051649, 3147779, 6291462, 3072, 7340039, 2099202, 1051649, 6291462, 3147779, 1051649, 6291462, 3072, 6291462, 2099202, 4195332, 5243909, 1051649, 5243909, 3072, 3147779, 6291462, 7340039, 1051649, 3147779, 2099202, 1051649, 4195332, 1051649, 4195332, 5243909, 3147779, 2099202, 6291462, 3147779, 3072, 4195332, 2099202, 5243909, 2099202, 7340039, 3072, 6291462, 2099202, 4195332, 3147779, 2099202, 5243909, 1051649, 2099202, 5243909, 3072, 7340039, 3072, 4195332, 7340039, 5243909, 3147779, 1051649, 2099202, 5243909, 1051649, 2099202, 5243909, 2099202, 7340039, 5243909, 3147779, 6291462, 5243909, 1051649, 7340039, 6291462, 5243909, 1051649, 6291462, 4195332, 7340039, 3072, 3147779, 5243909, 6291462, 3072, 7340039, 1051649, 2099202, 5243909, 3147779, 1051649, 6291462, 4195332, 1051649, 7340039, 1051649, 6291462, 2099202, 7340039, 4195332, 3072, 3147779, 2099202, - 6291462, 3072, 5243909, 2099202, 3072, 6291462, 1051649, 6291462, 2099202, 4195332, 5243909, 2099202, 4195332, 5243909, 2099202, 5243909, 3072, 7340039, 1051649, 5243909, 3072, 3147779, 7340039, 4195332, 3072, 5243909, 1051649, 5243909, 3147779, 5243909, 1051649, 4195332, 5243909, 3147779, 6291462, 3147779, 7340039, 4195332, 2099202, 5243909, 1051649, 5243909, 3147779, 3072, 6291462, 1051649, 7340039, 4195332, 3072, 4195332, 3072, 5243909, 4195332, 7340039, 3147779, 6291462, 3072, 7340039, 3072, 4195332, 1051649, 5243909, 7340039, 3147779, 6291462, 3072, 3147779, 2099202, 5243909, 1051649, 7340039, 3072, 7340039, 1051649, 4195332, 7340039, 4195332, 6291462, 3147779, 1051649, 3147779, 6291462, 2099202, 3072, 7340039, 5243909, 6291462, 3147779, 4195332, 7340039, 3072, 6291462, 1051649, 3072, 6291462, 2099202, 4195332, 5243909, 3072, 3147779, 3072, 5243909, 3147779, 3072, 4195332, 6291462, 2099202, 7340039, 1051649, 4195332, 2099202, 5243909, 6291462, 3147779, 1051649, 7340039, 3072, 2099202, 5243909, 2099202, 4195332, 3147779, 6291462, 3072, 3147779, 6291462, 5243909, 1051649, - 4195332, 3147779, 4195332, 7340039, 4195332, 2099202, 5243909, 3072, 7340039, 3147779, 6291462, 3072, 7340039, 1051649, 6291462, 3147779, 4195332, 2099202, 6291462, 4195332, 7340039, 6291462, 1051649, 2099202, 6291462, 3147779, 7340039, 2099202, 3072, 7340039, 3147779, 7340039, 3072, 4195332, 3072, 5243909, 3072, 2099202, 6291462, 3147779, 7340039, 1051649, 7340039, 4195332, 2099202, 4195332, 5243909, 2099202, 6291462, 3147779, 7340039, 1051649, 6291462, 3072, 2099202, 5243909, 2099202, 3147779, 6291462, 2099202, 7340039, 4195332, 1051649, 3072, 5243909, 7340039, 5243909, 1051649, 6291462, 4195332, 3147779, 5243909, 2099202, 6291462, 3147779, 3072, 4195332, 1051649, 5243909, 4195332, 7340039, 1051649, 6291462, 4195332, 2099202, 3147779, 3072, 7340039, 1051649, 4195332, 2099202, 3147779, 4195332, 6291462, 2099202, 1051649, 7340039, 3147779, 6291462, 2099202, 7340039, 2099202, 6291462, 3147779, 5243909, 1051649, 4195332, 3072, 5243909, 3147779, 7340039, 3072, 4195332, 3072, 5243909, 4195332, 6291462, 3147779, 7340039, 3147779, 3072, 7340039, 2099202, 4195332, 7340039, 1051649, 2099202, 7340039, - 3072, 6291462, 1051649, 1051649, 3147779, 7340039, 3147779, 5243909, 3147779, 3072, 1051649, 5243909, 3147779, 4195332, 2099202, 7340039, 3072, 6291462, 3147779, 3072, 1051649, 3147779, 5243909, 6291462, 1051649, 4195332, 3072, 6291462, 4195332, 2099202, 5243909, 1051649, 4195332, 2099202, 7340039, 1051649, 4195332, 7340039, 1051649, 4195332, 3072, 5243909, 2099202, 5243909, 6291462, 3072, 3147779, 7340039, 1051649, 2099202, 4195332, 3147779, 5243909, 2099202, 6291462, 1051649, 7340039, 4195332, 1051649, 6291462, 3072, 7340039, 3147779, 6291462, 2099202, 3147779, 3072, 4195332, 2099202, 7340039, 3072, 3147779, 5243909, 3072, 6291462, 2099202, 7340039, 2099202, 6291462, 3072, 3147779, 5243909, 2099202, 3072, 6291462, 1051649, 4195332, 6291462, 1051649, 6291462, 4195332, 7340039, 3072, 3147779, 4195332, 5243909, 3072, 3147779, 1051649, 5243909, 4195332, 7340039, 3072, 7340039, 2099202, 6291462, 3147779, 7340039, 2099202, 6291462, 1051649, 4195332, 6291462, 1051649, 7340039, 2099202, 3072, 5243909, 1051649, 5243909, 6291462, 1051649, 5243909, 1051649, 4195332, 4195332, 5243909, 2099202, - 6291462, 4195332, 2099202, 6291462, 5243909, 3072, 4195332, 1051649, 6291462, 2099202, 4195332, 7340039, 2099202, 3072, 5243909, 1051649, 3147779, 5243909, 1051649, 5243909, 7340039, 3147779, 3072, 4195332, 2099202, 6291462, 3147779, 2099202, 5243909, 3072, 6291462, 3147779, 6291462, 2099202, 5243909, 3147779, 5243909, 2099202, 6291462, 3147779, 7340039, 1051649, 6291462, 3072, 3147779, 7340039, 1051649, 4195332, 5243909, 6291462, 3072, 7340039, 3072, 5243909, 3147779, 3147779, 5243909, 3072, 5243909, 3147779, 4195332, 2099202, 4195332, 1051649, 6291462, 3147779, 4195332, 6291462, 3072, 3147779, 6291462, 1051649, 7340039, 4195332, 2099202, 5243909, 3147779, 3072, 2099202, 6291462, 4195332, 1051649, 7340039, 4195332, 5243909, 7340039, 2099202, 3147779, 3147779, 5243909, 3072, 5243909, 2099202, 7340039, 1051649, 4195332, 7340039, 4195332, 7340039, 3072, 2099202, 1051649, 5243909, 3147779, 1051649, 3072, 5243909, 1051649, 3072, 4195332, 7340039, 2099202, 3147779, 5243909, 1051649, 4195332, 6291462, 2099202, 6291462, 3072, 2099202, 6291462, 3147779, 7340039, 3072, 7340039, 3072, 3147779, - 1051649, 2099202, 7340039, 3072, 4195332, 7340039, 2099202, 7340039, 4195332, 1051649, 6291462, 3072, 3147779, 7340039, 4195332, 6291462, 3072, 7340039, 2099202, 4195332, 2099202, 5243909, 7340039, 3072, 7340039, 1051649, 6291462, 3072, 7340039, 3147779, 1051649, 5243909, 3072, 6291462, 3072, 7340039, 3072, 4195332, 1051649, 5243909, 3072, 4195332, 3147779, 7340039, 1051649, 4195332, 3147779, 6291462, 3072, 2099202, 5243909, 4195332, 2099202, 7340039, 1051649, 6291462, 1051649, 3147779, 7340039, 1051649, 6291462, 3072, 7340039, 5243909, 3072, 7340039, 1051649, 2099202, 7340039, 4195332, 5243909, 2099202, 4195332, 3072, 6291462, 1051649, 6291462, 3147779, 7340039, 4195332, 3072, 6291462, 1051649, 3147779, 3072, 2099202, 6291462, 3072, 7340039, 1051649, 7340039, 1051649, 5243909, 1051649, 6291462, 2099202, 3072, 2099202, 5243909, 3147779, 6291462, 4195332, 3072, 6291462, 4195332, 7340039, 3147779, 5243909, 6291462, 3147779, 1051649, 6291462, 3072, 7340039, 4195332, 3072, 2099202, 4195332, 3147779, 5243909, 4195332, 3072, 2099202, 5243909, 3147779, 1051649, 6291462, 5243909, - 7340039, 4195332, 1051649, 6291462, 3147779, 3072, 5243909, 1051649, 3147779, 7340039, 2099202, 5243909, 6291462, 1051649, 1051649, 4195332, 3147779, 6291462, 4195332, 3072, 6291462, 1051649, 3147779, 4195332, 5243909, 3147779, 5243909, 4195332, 3147779, 1051649, 7340039, 2099202, 7340039, 4195332, 3147779, 2099202, 6291462, 3147779, 2099202, 7340039, 3147779, 6291462, 3072, 5243909, 2099202, 5243909, 1051649, 2099202, 7340039, 5243909, 2099202, 3147779, 6291462, 2099202, 4195332, 3072, 6291462, 4195332, 2099202, 5243909, 2099202, 5243909, 2099202, 4195332, 3147779, 5243909, 1051649, 5243909, 1051649, 5243909, 3072, 6291462, 7340039, 2099202, 3147779, 7340039, 3072, 5243909, 1051649, 5243909, 3147779, 2099202, 5243909, 5243909, 7340039, 4195332, 1051649, 5243909, 4195332, 3147779, 2099202, 4195332, 6291462, 3072, 3147779, 5243909, 3147779, 6291462, 1051649, 4195332, 1051649, 7340039, 3147779, 1051649, 2099202, 4195332, 1051649, 7340039, 2099202, 1051649, 5243909, 3147779, 5243909, 2099202, 4195332, 6291462, 7340039, 3072, 7340039, 1051649, 7340039, 3147779, 5243909, 1051649, 4195332, 5243909, 2099202, 3147779, - 3072, 4195332, 5243909, 2099202, 5243909, 2099202, 4195332, 6291462, 3072, 4195332, 1051649, 3147779, 3072, 3147779, 7340039, 2099202, 6291462, 1051649, 2099202, 7340039, 4195332, 2099202, 6291462, 1051649, 7340039, 3072, 1051649, 2099202, 6291462, 4195332, 5243909, 3072, 4195332, 1051649, 4195332, 5243909, 1051649, 7340039, 5243909, 2099202, 1051649, 3147779, 6291462, 2099202, 7340039, 3072, 4195332, 7340039, 3147779, 1051649, 6291462, 1051649, 3072, 7340039, 4195332, 5243909, 2099202, 7340039, 4195332, 3072, 7340039, 3147779, 3072, 6291462, 1051649, 6291462, 4195332, 3147779, 2099202, 7340039, 2099202, 3147779, 1051649, 5243909, 4195332, 1051649, 5243909, 2099202, 7340039, 3147779, 1051649, 7340039, 3072, 3147779, 1051649, 4195332, 3072, 7340039, 3072, 6291462, 5243909, 3072, 4195332, 3147779, 6291462, 3072, 7340039, 2099202, 5243909, 3072, 5243909, 2099202, 6291462, 5243909, 6291462, 3072, 5243909, 2099202, 4195332, 6291462, 2099202, 7340039, 3072, 3147779, 6291462, 2099202, 1051649, 5243909, 3147779, 2099202, 3072, 6291462, 1051649, 7340039, 3072, 6291462, 1051649, 5243909, - 2099202, 3147779, 3072, 7340039, 1051649, 6291462, 3072, 2099202, 6291462, 5243909, 7340039, 5243909, 4195332, 6291462, 5243909, 3072, 3147779, 5243909, 3147779, 5243909, 1051649, 5243909, 3072, 6291462, 2099202, 4195332, 7340039, 3147779, 3072, 7340039, 2099202, 3147779, 6291462, 2099202, 7340039, 1051649, 3147779, 4195332, 3072, 5243909, 7340039, 4195332, 1051649, 4195332, 2099202, 6291462, 3147779, 3072, 1051649, 5243909, 3147779, 7340039, 4195332, 3147779, 2099202, 1051649, 6291462, 3072, 3147779, 6291462, 1051649, 5243909, 1051649, 7340039, 4195332, 2099202, 3072, 7340039, 3072, 4195332, 5243909, 7340039, 3147779, 3072, 7340039, 2099202, 4195332, 6291462, 3072, 6291462, 5243909, 4195332, 2099202, 6291462, 7340039, 3147779, 6291462, 2099202, 3147779, 5243909, 2099202, 6291462, 2099202, 7340039, 2099202, 4195332, 1051649, 6291462, 4195332, 7340039, 3147779, 4195332, 3072, 3147779, 2099202, 7340039, 4195332, 1051649, 7340039, 3072, 4195332, 1051649, 6291462, 5243909, 1051649, 3147779, 5243909, 3072, 6291462, 5243909, 6291462, 3147779, 4195332, 3147779, 7340039, 3147779, 4195332, 6291462, - 7340039, 5243909, 6291462, 1051649, 5243909, 3147779, 7340039, 4195332, 2099202, 2099202, 3147779, 1051649, 7340039, 1051649, 2099202, 7340039, 4195332, 1051649, 7340039, 3072, 7340039, 2099202, 5243909, 3147779, 3072, 5243909, 2099202, 4195332, 5243909, 1051649, 4195332, 6291462, 1051649, 5243909, 3072, 4195332, 6291462, 1051649, 7340039, 2099202, 3072, 5243909, 6291462, 3072, 6291462, 3147779, 4195332, 7340039, 4195332, 5243909, 3072, 1051649, 5243909, 3072, 7340039, 5243909, 3147779, 1051649, 5243909, 2099202, 4195332, 3147779, 6291462, 1051649, 3147779, 5243909, 6291462, 3147779, 6291462, 2099202, 3072, 1051649, 6291462, 4195332, 2099202, 7340039, 3072, 3147779, 1051649, 3147779, 3072, 7340039, 2099202, 4195332, 3072, 5243909, 2099202, 6291462, 1051649, 7340039, 1051649, 3147779, 7340039, 3072, 4195332, 3147779, 7340039, 2099202, 3072, 3147779, 1051649, 6291462, 4195332, 7340039, 1051649, 3147779, 3072, 6291462, 3147779, 3147779, 7340039, 3147779, 4195332, 3072, 7340039, 4195332, 7340039, 3147779, 4195332, 1051649, 2099202, 5243909, 3072, 6291462, 2099202, 3072, 5243909, 1051649, - 2099202, 3072, 3147779, 4195332, 7340039, 3072, 4195332, 1051649, 6291462, 3072, 5243909, 3072, 2099202, 5243909, 4195332, 3072, 3147779, 6291462, 2099202, 3147779, 4195332, 3147779, 7340039, 1051649, 6291462, 3147779, 6291462, 3072, 7340039, 2099202, 7340039, 3072, 6291462, 2099202, 7340039, 3147779, 3072, 5243909, 1051649, 4195332, 6291462, 1051649, 3147779, 5243909, 2099202, 3072, 5243909, 1051649, 2099202, 7340039, 3147779, 6291462, 2099202, 4195332, 6291462, 1051649, 6291462, 3147779, 5243909, 3072, 7340039, 3072, 7340039, 2099202, 4195332, 3072, 2099202, 1051649, 4195332, 5243909, 6291462, 5243909, 2099202, 3072, 6291462, 1051649, 5243909, 6291462, 4195332, 6291462, 4195332, 1051649, 5243909, 1051649, 3147779, 6291462, 3072, 5243909, 3147779, 3147779, 4195332, 6291462, 1051649, 5243909, 1051649, 5243909, 3072, 5243909, 6291462, 4195332, 7340039, 1051649, 5243909, 3072, 5243909, 6291462, 3147779, 5243909, 2099202, 6291462, 3072, 5243909, 2099202, 5243909, 2099202, 1051649, 3072, 5243909, 1051649, 7340039, 4195332, 2099202, 7340039, 1051649, 4195332, 7340039, 2099202, 6291462, - 5243909, 4195332, 7340039, 3072, 2099202, 5243909, 3147779, 6291462, 4195332, 3147779, 7340039, 4195332, 6291462, 3072, 6291462, 5243909, 6291462, 3072, 5243909, 1051649, 6291462, 3072, 2099202, 5243909, 4195332, 1051649, 2099202, 5243909, 3147779, 4195332, 1051649, 3147779, 5243909, 4195332, 1051649, 6291462, 4195332, 3147779, 7340039, 2099202, 3072, 7340039, 2099202, 7340039, 3147779, 6291462, 2099202, 4195332, 6291462, 3072, 5243909, 1051649, 6291462, 3072, 2099202, 4195332, 1051649, 7340039, 3072, 6291462, 5243909, 2099202, 4195332, 5243909, 1051649, 7340039, 5243909, 7340039, 1051649, 3147779, 3147779, 1051649, 7340039, 4195332, 3147779, 5243909, 3147779, 2099202, 1051649, 5243909, 2099202, 6291462, 3147779, 7340039, 4195332, 1051649, 4195332, 7340039, 3072, 7340039, 3072, 2099202, 6291462, 3147779, 7340039, 2099202, 4195332, 3147779, 2099202, 3072, 2099202, 5243909, 3147779, 2099202, 4195332, 1051649, 2099202, 6291462, 3072, 5243909, 2099202, 6291462, 1051649, 7340039, 3147779, 6291462, 4195332, 2099202, 7340039, 3147779, 3072, 6291462, 1051649, 5243909, 2099202, 4195332, 1051649, 3147779, - 1051649, 3072, 5243909, 3147779, 6291462, 1051649, 2099202, 1051649, 6291462, 1051649, 5243909, 2099202, 3147779, 7340039, 2099202, 1051649, 2099202, 4195332, 3147779, 7340039, 2099202, 4195332, 6291462, 1051649, 3147779, 7340039, 4195332, 6291462, 3072, 6291462, 2099202, 5243909, 3072, 3147779, 7340039, 3147779, 2099202, 6291462, 3072, 5243909, 3147779, 4195332, 5243909, 3072, 1051649, 6291462, 3072, 7340039, 2099202, 4195332, 3147779, 6291462, 2099202, 7340039, 5243909, 3147779, 5243909, 2099202, 4195332, 3147779, 1051649, 3147779, 6291462, 3072, 6291462, 3147779, 1051649, 4195332, 6291462, 3072, 4195332, 6291462, 2099202, 5243909, 1051649, 7340039, 1051649, 4195332, 7340039, 3072, 7340039, 1051649, 4195332, 2099202, 3072, 6291462, 1051649, 4195332, 2099202, 5243909, 3147779, 5243909, 1051649, 4195332, 3072, 6291462, 1051649, 7340039, 3147779, 7340039, 5243909, 3072, 6291462, 2099202, 7340039, 4195332, 7340039, 1051649, 4195332, 7340039, 1051649, 3147779, 4195332, 3072, 6291462, 1051649, 5243909, 3147779, 3072, 6291462, 5243909, 3147779, 4195332, 7340039, 3072, 6291462, 3147779, 7340039, - 7340039, 4195332, 1051649, 7340039, 3072, 4195332, 7340039, 5243909, 3147779, 3072, 5243909, 1051649, 5243909, 3072, 4195332, 7340039, 3147779, 5243909, 1051649, 4195332, 3072, 7340039, 3147779, 7340039, 3072, 6291462, 3072, 5243909, 1051649, 2099202, 7340039, 4195332, 6291462, 1051649, 5243909, 3072, 6291462, 1051649, 5243909, 1051649, 6291462, 3072, 3147779, 6291462, 4195332, 3147779, 5243909, 1051649, 5243909, 1051649, 7340039, 1051649, 4195332, 2099202, 3072, 6291462, 3072, 7340039, 2099202, 5243909, 7340039, 1051649, 2099202, 7340039, 3147779, 3072, 7340039, 3147779, 2099202, 5243909, 7340039, 1051649, 3147779, 3072, 6291462, 3072, 6291462, 3147779, 2099202, 5243909, 3147779, 3072, 5243909, 2099202, 7340039, 3147779, 5243909, 2099202, 6291462, 1051649, 7340039, 2099202, 6291462, 5243909, 2099202, 4195332, 5243909, 3072, 6291462, 1051649, 4195332, 7340039, 2099202, 6291462, 3072, 3147779, 3072, 5243909, 3147779, 2099202, 5243909, 3072, 7340039, 4195332, 2099202, 7340039, 1051649, 6291462, 4195332, 2099202, 1051649, 6291462, 3072, 2099202, 5243909, 1051649, 4195332, 2099202, - 3072, 3147779, 6291462, 2099202, 5243909, 3147779, 3072, 2099202, 4195332, 7340039, 3147779, 7340039, 2099202, 4195332, 1051649, 1051649, 6291462, 3072, 6291462, 2099202, 5243909, 2099202, 3072, 5243909, 2099202, 4195332, 2099202, 3147779, 7340039, 3147779, 5243909, 3072, 1051649, 6291462, 2099202, 7340039, 2099202, 4195332, 4195332, 7340039, 2099202, 6291462, 4195332, 1051649, 7340039, 2099202, 3072, 7340039, 3147779, 6291462, 3147779, 3072, 7340039, 4195332, 2099202, 5243909, 4195332, 4195332, 1051649, 6291462, 3072, 4195332, 5243909, 2099202, 4195332, 5243909, 2099202, 3072, 6291462, 3147779, 3072, 4195332, 7340039, 4195332, 2099202, 5243909, 4195332, 3072, 6291462, 2099202, 4195332, 6291462, 4195332, 6291462, 3072, 5243909, 1051649, 5243909, 3072, 4195332, 3147779, 3072, 1051649, 7340039, 1051649, 6291462, 1051649, 5243909, 2099202, 5243909, 3147779, 1051649, 4195332, 1051649, 5243909, 5243909, 6291462, 4195332, 3072, 6291462, 2099202, 7340039, 1051649, 3147779, 5243909, 3072, 4195332, 1051649, 7340039, 3147779, 7340039, 2099202, 5243909, 6291462, 2099202, 7340039, 3147779, 5243909, - 2099202, 6291462, 1051649, 7340039, 4195332, 1051649, 7340039, 3147779, 6291462, 1051649, 6291462, 3072, 7340039, 5243909, 6291462, 4195332, 2099202, 7340039, 3147779, 6291462, 1051649, 4195332, 5243909, 1051649, 6291462, 1051649, 7340039, 4195332, 3072, 5243909, 2099202, 6291462, 3147779, 4195332, 3072, 4195332, 3147779, 1051649, 6291462, 3072, 3147779, 4195332, 2099202, 7340039, 2099202, 5243909, 6291462, 4195332, 3072, 2099202, 5243909, 3147779, 5243909, 1051649, 7340039, 1051649, 3147779, 6291462, 3072, 4195332, 3147779, 6291462, 4195332, 3072, 6291462, 1051649, 5243909, 7340039, 4195332, 1051649, 7340039, 2099202, 5243909, 2099202, 6291462, 3147779, 2099202, 7340039, 5243909, 1051649, 7340039, 3072, 1051649, 3147779, 7340039, 2099202, 7340039, 3147779, 6291462, 2099202, 6291462, 7340039, 3147779, 5243909, 2099202, 3147779, 7340039, 3147779, 4195332, 3072, 6291462, 4195332, 3072, 7340039, 3147779, 2099202, 2099202, 1051649, 7340039, 4195332, 1051649, 3147779, 5243909, 3072, 6291462, 3147779, 7340039, 5243909, 2099202, 3072, 4195332, 5243909, 3072, 3147779, 1051649, 4195332, 3072, 6291462, - 5243909, 1051649, 4195332, 3147779, 2099202, 6291462, 5243909, 3072, 2099202, 4195332, 2099202, 4195332, 3147779, 3072, 2099202, 7340039, 4195332, 1051649, 4195332, 3072, 7340039, 3147779, 3147779, 7340039, 3072, 5243909, 3147779, 1051649, 7340039, 3072, 4195332, 5243909, 2099202, 7340039, 5243909, 1051649, 5243909, 7340039, 2099202, 3147779, 7340039, 1051649, 5243909, 3072, 4195332, 3147779, 1051649, 4195332, 7340039, 4195332, 1051649, 6291462, 2099202, 4195332, 5243909, 6291462, 1051649, 3147779, 7340039, 2099202, 5243909, 1051649, 3147779, 7340039, 2099202, 7340039, 1051649, 2099202, 4195332, 5243909, 1051649, 6291462, 3072, 5243909, 3072, 1051649, 5243909, 3072, 2099202, 3147779, 5243909, 3147779, 7340039, 5243909, 4195332, 1051649, 4195332, 1051649, 4195332, 3072, 4195332, 1051649, 4195332, 3072, 4195332, 6291462, 3072, 1051649, 7340039, 3147779, 6291462, 1051649, 6291462, 3147779, 3072, 4195332, 7340039, 3147779, 4195332, 2099202, 6291462, 2099202, 4195332, 7340039, 2099202, 4195332, 3072, 1051649, 6291462, 3147779, 6291462, 1051649, 7340039, 3147779, 6291462, 6291462, 1051649, 3147779, - 3072, 7340039, 5243909, 3072, 6291462, 1051649, 3147779, 5243909, 7340039, 3072, 6291462, 4195332, 6291462, 1051649, 5243909, 3072, 3147779, 6291462, 2099202, 5243909, 2099202, 6291462, 3072, 4195332, 3147779, 3072, 6291462, 5243909, 2099202, 6291462, 3147779, 1051649, 7340039, 3072, 3147779, 7340039, 3072, 2099202, 4195332, 6291462, 3072, 5243909, 3147779, 6291462, 5243909, 2099202, 6291462, 3072, 2099202, 7340039, 5243909, 3072, 7340039, 3072, 2099202, 3147779, 7340039, 3072, 5243909, 3147779, 3072, 6291462, 5243909, 3072, 3147779, 4195332, 3147779, 6291462, 3072, 2099202, 5243909, 3147779, 7340039, 3147779, 7340039, 6291462, 3147779, 7340039, 4195332, 7340039, 3072, 4195332, 2099202, 3072, 3147779, 6291462, 3072, 6291462, 7340039, 2099202, 7340039, 5243909, 2099202, 6291462, 1051649, 5243909, 3147779, 6291462, 2099202, 5243909, 1051649, 4195332, 2099202, 5243909, 7340039, 1051649, 6291462, 3072, 7340039, 3072, 5243909, 7340039, 3072, 3147779, 1051649, 6291462, 3147779, 5243909, 4195332, 5243909, 1051649, 4195332, 2099202, 4195332, 3072, 5243909, 3147779, 7340039, - 4195332, 3147779, 2099202, 5243909, 4195332, 7340039, 4195332, 1051649, 2099202, 5243909, 3072, 3147779, 1051649, 5243909, 3147779, 6291462, 1051649, 5243909, 4195332, 7340039, 1051649, 4195332, 1051649, 6291462, 4195332, 7340039, 2099202, 3147779, 5243909, 1051649, 3147779, 6291462, 2099202, 5243909, 1051649, 4195332, 6291462, 6291462, 1051649, 5243909, 2099202, 7340039, 1051649, 2099202, 1051649, 7340039, 1051649, 6291462, 5243909, 3072, 3147779, 4195332, 2099202, 5243909, 7340039, 3072, 4195332, 2099202, 6291462, 1051649, 7340039, 1051649, 2099202, 5243909, 7340039, 3072, 6291462, 1051649, 4195332, 7340039, 3147779, 3072, 4195332, 2099202, 4195332, 3072, 4195332, 1051649, 3147779, 1051649, 6291462, 2099202, 4195332, 6291462, 5243909, 2099202, 5243909, 3147779, 1051649, 5243909, 3072, 2099202, 7340039, 3147779, 6291462, 3072, 7340039, 4195332, 3072, 4195332, 7340039, 3072, 7340039, 1051649, 3147779, 6291462, 1051649, 5243909, 2099202, 5243909, 1051649, 3147779, 5243909, 4195332, 6291462, 2099202, 1051649, 7340039, 2099202, 3072, 7340039, 3147779, 6291462, 1051649, 7340039, 1051649, 5243909, 2099202, - 3072, 6291462, 1051649, 7340039, 2099202, 3072, 3147779, 6291462, 7340039, 2099202, 6291462, 2099202, 7340039, 3147779, 7340039, 1051649, 7340039, 3147779, 3072, 2099202, 4195332, 7340039, 5243909, 2099202, 1051649, 5243909, 1051649, 6291462, 3072, 4195332, 7340039, 3072, 6291462, 3147779, 6291462, 3072, 2099202, 3147779, 3072, 4195332, 6291462, 3072, 4195332, 6291462, 5243909, 3147779, 3072, 3147779, 4195332, 3147779, 6291462, 1051649, 6291462, 3147779, 1051649, 6291462, 3147779, 7340039, 2099202, 5243909, 4195332, 3147779, 6291462, 4195332, 1051649, 5243909, 2099202, 3147779, 6291462, 1051649, 5243909, 2099202, 6291462, 3072, 5243909, 2099202, 7340039, 6291462, 3072, 6291462, 3147779, 7340039, 1051649, 2099202, 3072, 7340039, 2099202, 3072, 6291462, 2099202, 5243909, 4195332, 3072, 4195332, 2099202, 3147779, 1051649, 2099202, 6291462, 2099202, 3147779, 5243909, 3147779, 5243909, 4195332, 3072, 5243909, 4195332, 6291462, 3147779, 6291462, 2099202, 1051649, 7340039, 3072, 4195332, 6291462, 3072, 4195332, 6291462, 3147779, 3072, 5243909, 2099202, 5243909, 4195332, 3072, 6291462, - 2099202, 5243909, 4195332, 3072, 3147779, 6291462, 4195332, 3072, 4195332, 1051649, 3147779, 5243909, 3072, 4195332, 3072, 2099202, 5243909, 2099202, 5243909, 7340039, 1051649, 3072, 3147779, 6291462, 2099202, 7340039, 4195332, 3147779, 7340039, 2099202, 1051649, 5243909, 2099202, 4195332, 1051649, 5243909, 7340039, 4195332, 7340039, 2099202, 1051649, 5243909, 3147779, 1051649, 3072, 4195332, 7340039, 2099202, 7340039, 1051649, 5243909, 3072, 7340039, 1051649, 6291462, 4195332, 3072, 4195332, 1051649, 5243909, 1051649, 7340039, 3072, 2099202, 6291462, 4195332, 7340039, 4195332, 3072, 7340039, 1051649, 6291462, 1051649, 7340039, 3147779, 5243909, 1051649, 3147779, 5243909, 2099202, 5243909, 1051649, 6291462, 4195332, 5243909, 1051649, 4195332, 6291462, 3147779, 3147779, 7340039, 1051649, 3147779, 5243909, 3147779, 7340039, 6291462, 5243909, 1051649, 7340039, 1051649, 6291462, 3072, 2099202, 6291462, 2099202, 7340039, 2099202, 3072, 1051649, 4195332, 6291462, 4195332, 2099202, 5243909, 3147779, 4195332, 7340039, 2099202, 1051649, 4195332, 6291462, 2099202, 6291462, 3072, 3147779, 7340039, 4195332, - 7340039, 1051649, 3147779, 6291462, 5243909, 1051649, 7340039, 2099202, 6291462, 5243909, 3072, 6291462, 3147779, 6291462, 4195332, 7340039, 3072, 6291462, 1051649, 3147779, 6291462, 3147779, 5243909, 3072, 4195332, 1051649, 3072, 6291462, 2099202, 5243909, 3147779, 7340039, 3072, 3147779, 6291462, 4195332, 2099202, 1051649, 3147779, 5243909, 7340039, 3147779, 7340039, 4195332, 6291462, 2099202, 3147779, 5243909, 3072, 6291462, 3147779, 2099202, 4195332, 4195332, 1051649, 5243909, 2099202, 6291462, 3147779, 7340039, 3072, 4195332, 3147779, 6291462, 3072, 2099202, 3072, 5243909, 3147779, 4195332, 2099202, 5243909, 4195332, 2099202, 4195332, 3072, 6291462, 4195332, 1051649, 7340039, 3072, 5243909, 3147779, 1051649, 7340039, 3147779, 7340039, 1051649, 5243909, 3072, 4195332, 6291462, 2099202, 7340039, 1051649, 4195332, 3072, 3147779, 5243909, 3072, 4195332, 2099202, 7340039, 4195332, 3072, 4195332, 1051649, 3147779, 7340039, 5243909, 3072, 7340039, 3072, 5243909, 1051649, 7340039, 1051649, 2099202, 5243909, 3147779, 7340039, 1051649, 4195332, 1051649, 7340039, 4195332, 1051649, 2099202, - 3072, 4195332, 1051649, 5243909, 2099202, 3072, 5243909, 3147779, 1051649, 3147779, 7340039, 2099202, 5243909, 1051649, 4195332, 2099202, 5243909, 4195332, 3072, 5243909, 2099202, 7340039, 1051649, 6291462, 4195332, 7340039, 5243909, 3147779, 4195332, 3072, 6291462, 1051649, 4195332, 7340039, 2099202, 3072, 6291462, 2099202, 7340039, 3072, 4195332, 1051649, 4195332, 3072, 2099202, 6291462, 1051649, 4195332, 5243909, 1051649, 4195332, 7340039, 3147779, 3072, 6291462, 2099202, 7340039, 4195332, 1051649, 3147779, 6291462, 2099202, 7340039, 1051649, 5243909, 3147779, 7340039, 1051649, 6291462, 1051649, 7340039, 3147779, 3072, 6291462, 1051649, 7340039, 1051649, 2099202, 5243909, 3147779, 4195332, 2099202, 6291462, 3072, 5243909, 3072, 4195332, 2099202, 7340039, 3147779, 7340039, 1051649, 5243909, 3072, 6291462, 2099202, 7340039, 4195332, 2099202, 7340039, 3147779, 5243909, 1051649, 5243909, 7340039, 3147779, 6291462, 5243909, 2099202, 4195332, 3147779, 1051649, 6291462, 2099202, 5243909, 3072, 3147779, 6291462, 3072, 6291462, 2099202, 3147779, 7340039, 4195332, 3072, 6291462, 3147779, 5243909, - 7340039, 5243909, 7340039, 3072, 3147779, 7340039, 2099202, 7340039, 4195332, 4195332, 1051649, 6291462, 3072, 7340039, 1051649, 6291462, 2099202, 7340039, 3147779, 6291462, 3072, 4195332, 3147779, 1051649, 3147779, 3072, 2099202, 7340039, 1051649, 6291462, 2099202, 4195332, 5243909, 3072, 5243909, 3147779, 6291462, 4195332, 1051649, 5243909, 2099202, 6291462, 2099202, 5243909, 7340039, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 6291462, 2099202, 7340039, 3147779, 5243909, 3072, 2099202, 6291462, 4195332, 1051649, 5243909, 3072, 4195332, 5243909, 1051649, 4195332, 6291462, 2099202, 5243909, 3072, 2099202, 7340039, 3147779, 6291462, 3147779, 4195332, 7340039, 2099202, 6291462, 1051649, 7340039, 2099202, 6291462, 3147779, 4195332, 2099202, 6291462, 1051649, 4195332, 3072, 5243909, 3147779, 4195332, 1051649, 5243909, 3147779, 3072, 6291462, 4195332, 3072, 6291462, 4195332, 2099202, 1051649, 5243909, 1051649, 3072, 7340039, 1051649, 5243909, 4195332, 3147779, 7340039, 1051649, 7340039, 2099202, 5243909, 2099202, 4195332, 3072, 5243909, 2099202, 5243909, 3147779, 2099202, 6291462, 1051649, - 3147779, 1051649, 2099202, 6291462, 4195332, 1051649, 5243909, 1051649, 3072, 6291462, 2099202, 3147779, 5243909, 1051649, 5243909, 3147779, 3072, 3147779, 1051649, 5243909, 2099202, 7340039, 2099202, 6291462, 6291462, 4195332, 5243909, 1051649, 5243909, 3147779, 7340039, 3072, 2099202, 4195332, 1051649, 7340039, 1051649, 3072, 6291462, 3147779, 5243909, 2099202, 6291462, 3072, 3147779, 5243909, 2099202, 3072, 7340039, 3147779, 6291462, 1051649, 5243909, 3147779, 3072, 7340039, 1051649, 6291462, 5243909, 3072, 7340039, 3147779, 3147779, 6291462, 2099202, 7340039, 2099202, 3072, 4195332, 3147779, 6291462, 5243909, 4195332, 1051649, 5243909, 3072, 5243909, 3072, 4195332, 3072, 4195332, 5243909, 3072, 4195332, 1051649, 7340039, 3072, 6291462, 5243909, 2099202, 7340039, 1051649, 6291462, 2099202, 7340039, 1051649, 6291462, 5243909, 1051649, 3147779, 2099202, 1051649, 7340039, 2099202, 6291462, 3147779, 7340039, 3147779, 6291462, 2099202, 4195332, 3072, 6291462, 3072, 3147779, 4195332, 3147779, 6291462, 1051649, 7340039, 5243909, 1051649, 6291462, 3072, 7340039, 5243909, 3072, 4195332, - 6291462, 3147779, 4195332, 2099202, 6291462, 2099202, 3147779, 6291462, 5243909, 2099202, 7340039, 4195332, 3147779, 7340039, 2099202, 6291462, 4195332, 7340039, 5243909, 4195332, 1051649, 5243909, 3072, 4195332, 3072, 3147779, 1051649, 7340039, 4195332, 3072, 3147779, 5243909, 7340039, 3147779, 6291462, 3147779, 5243909, 7340039, 4195332, 1051649, 7340039, 3072, 3147779, 7340039, 5243909, 3072, 6291462, 5243909, 1051649, 6291462, 2099202, 4195332, 1051649, 5243909, 2099202, 4195332, 5243909, 1051649, 3147779, 5243909, 2099202, 1051649, 7340039, 3072, 6291462, 3147779, 1051649, 5243909, 7340039, 1051649, 3147779, 3072, 2099202, 7340039, 2099202, 4195332, 3147779, 7340039, 2099202, 6291462, 1051649, 6291462, 3147779, 7340039, 4195332, 2099202, 5243909, 3147779, 3072, 5243909, 3147779, 4195332, 3072, 5243909, 2099202, 3147779, 4195332, 2099202, 1051649, 7340039, 5243909, 6291462, 3072, 5243909, 4195332, 3072, 5243909, 2099202, 3147779, 6291462, 1051649, 7340039, 2099202, 5243909, 1051649, 6291462, 3072, 7340039, 4195332, 1051649, 3147779, 7340039, 2099202, 4195332, 1051649, 3147779, 6291462, 2099202, - 5243909, 3072, 7340039, 1051649, 5243909, 3072, 6291462, 3072, 3147779, 5243909, 3072, 6291462, 3072, 4195332, 4195332, 3072, 1051649, 2099202, 4195332, 3072, 6291462, 3147779, 7340039, 2099202, 5243909, 7340039, 4195332, 2099202, 6291462, 2099202, 6291462, 2099202, 1051649, 5243909, 3072, 4195332, 3072, 3147779, 2099202, 6291462, 1051649, 5243909, 4195332, 1051649, 2099202, 7340039, 3147779, 1051649, 4195332, 3147779, 5243909, 3072, 7340039, 3147779, 6291462, 1051649, 4195332, 2099202, 7340039, 3072, 4195332, 5243909, 2099202, 4195332, 3147779, 3072, 6291462, 3147779, 2099202, 4195332, 7340039, 4195332, 6291462, 1051649, 6291462, 1051649, 5243909, 3072, 5243909, 3147779, 7340039, 3147779, 2099202, 4195332, 3072, 7340039, 2099202, 6291462, 4195332, 3072, 6291462, 1051649, 7340039, 4195332, 3072, 7340039, 3072, 3147779, 6291462, 3072, 2099202, 3147779, 4195332, 3147779, 2099202, 7340039, 4195332, 3072, 7340039, 3072, 5243909, 3147779, 7340039, 4195332, 5243909, 2099202, 4195332, 3072, 3147779, 6291462, 4195332, 3072, 3147779, 5243909, 6291462, 2099202, 7340039, 3072, - 2099202, 7340039, 3147779, 4195332, 2099202, 7340039, 4195332, 6291462, 1051649, 4195332, 1051649, 7340039, 5243909, 2099202, 6291462, 3147779, 7340039, 6291462, 1051649, 6291462, 2099202, 5243909, 1051649, 6291462, 1051649, 2099202, 6291462, 3072, 3147779, 5243909, 3072, 6291462, 1051649, 4195332, 6291462, 2099202, 5243909, 7340039, 3072, 4195332, 3147779, 1051649, 7340039, 3147779, 6291462, 1051649, 4195332, 6291462, 7340039, 3072, 3147779, 7340039, 2099202, 2099202, 3072, 5243909, 7340039, 3072, 6291462, 2099202, 7340039, 1051649, 6291462, 3072, 5243909, 7340039, 2099202, 6291462, 3072, 6291462, 3072, 2099202, 5243909, 3147779, 3072, 6291462, 2099202, 7340039, 1051649, 3147779, 3072, 5243909, 6291462, 3072, 5243909, 3147779, 1051649, 1051649, 2099202, 7340039, 4195332, 3147779, 5243909, 1051649, 6291462, 2099202, 5243909, 6291462, 4195332, 7340039, 5243909, 3072, 7340039, 1051649, 6291462, 3072, 3147779, 6291462, 2099202, 5243909, 6291462, 1051649, 3147779, 3072, 2099202, 7340039, 3147779, 6291462, 5243909, 3072, 2099202, 6291462, 7340039, 1051649, 4195332, 3072, 5243909, 3147779, - 4195332, 3072, 5243909, 1051649, 5243909, 3147779, 1051649, 4195332, 3147779, 7340039, 3147779, 2099202, 1051649, 6291462, 1051649, 5243909, 3072, 3147779, 4195332, 3147779, 7340039, 3072, 4195332, 3147779, 7340039, 5243909, 1051649, 7340039, 4195332, 1051649, 5243909, 3147779, 4195332, 7340039, 1051649, 7340039, 2099202, 5243909, 2099202, 7340039, 3147779, 6291462, 2099202, 4195332, 3072, 5243909, 2099202, 3072, 2099202, 6291462, 5243909, 1051649, 6291462, 4195332, 7340039, 2099202, 3147779, 5243909, 3147779, 4195332, 3072, 5243909, 3147779, 7340039, 2099202, 4195332, 1051649, 4195332, 5243909, 2099202, 4195332, 7340039, 1051649, 4195332, 7340039, 2099202, 4195332, 1051649, 6291462, 4195332, 7340039, 1051649, 2099202, 6291462, 1051649, 5243909, 7340039, 5243909, 6291462, 1051649, 6291462, 2099202, 3072, 3147779, 4195332, 7340039, 1051649, 3147779, 3072, 2099202, 6291462, 4195332, 1051649, 5243909, 2099202, 5243909, 4195332, 1051649, 4195332, 3147779, 1051649, 4195332, 7340039, 4195332, 6291462, 1051649, 5243909, 1051649, 2099202, 7340039, 4195332, 2099202, 3072, 5243909, 6291462, 3147779, 1051649, 7340039, - 6291462, 2099202, 3147779, 6291462, 1051649, 7340039, 3072, 7340039, 2099202, 5243909, 3072, 5243909, 7340039, 4195332, 1051649, 5243909, 2099202, 7340039, 2099202, 4195332, 1051649, 5243909, 2099202, 6291462, 3072, 3147779, 1051649, 5243909, 3147779, 7340039, 2099202, 7340039, 3072, 2099202, 3147779, 4195332, 1051649, 3147779, 4195332, 3072, 5243909, 3072, 5243909, 4195332, 7340039, 2099202, 7340039, 5243909, 3147779, 4195332, 3072, 4195332, 1051649, 5243909, 1051649, 3147779, 6291462, 1051649, 7340039, 1051649, 3147779, 6291462, 1051649, 4195332, 3072, 5243909, 1051649, 7340039, 2099202, 7340039, 1051649, 3147779, 6291462, 3147779, 3072, 3147779, 5243909, 6291462, 3147779, 3072, 2099202, 5243909, 3147779, 4195332, 7340039, 3072, 4195332, 3147779, 3072, 4195332, 2099202, 7340039, 5243909, 6291462, 2099202, 3072, 5243909, 5243909, 6291462, 3147779, 1051649, 7340039, 4195332, 3072, 7340039, 1051649, 6291462, 6291462, 3072, 7340039, 2099202, 5243909, 2099202, 3072, 6291462, 3147779, 3072, 7340039, 4195332, 1051649, 5243909, 3147779, 4195332, 2099202, 3072, 7340039, 4195332, 1051649, - 2099202, 4195332, 7340039, 3072, 4195332, 3147779, 6291462, 3147779, 3072, 4195332, 6291462, 2099202, 3072, 3147779, 7340039, 3072, 6291462, 1051649, 5243909, 3072, 7340039, 3147779, 6291462, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 6291462, 3072, 4195332, 5243909, 6291462, 3072, 4195332, 6291462, 1051649, 7340039, 6291462, 2099202, 6291462, 2099202, 3072, 1051649, 3147779, 4195332, 1051649, 6291462, 2099202, 7340039, 3147779, 6291462, 3072, 4195332, 6291462, 3072, 4195332, 2099202, 6291462, 4195332, 3072, 6291462, 3147779, 7340039, 3147779, 5243909, 3072, 5243909, 3147779, 6291462, 5243909, 3072, 7340039, 5243909, 1051649, 4195332, 3072, 2099202, 5243909, 6291462, 1051649, 7340039, 3072, 3147779, 4195332, 2099202, 5243909, 2099202, 7340039, 3147779, 3072, 4195332, 1051649, 5243909, 7340039, 3147779, 1051649, 3072, 4195332, 5243909, 2099202, 3147779, 5243909, 3147779, 4195332, 3072, 3147779, 5243909, 1051649, 6291462, 3072, 5243909, 3147779, 3147779, 4195332, 5243909, 2099202, 4195332, 7340039, 3072, 6291462, 7340039, 1051649, 5243909, 2099202, 3147779, 6291462, - 3072, 3147779, 1051649, 5243909, 6291462, 1051649, 2099202, 6291462, 2099202, 5243909, 1051649, 6291462, 3147779, 5243909, 2099202, 4195332, 4195332, 3147779, 7340039, 4195332, 1051649, 5243909, 3072, 3147779, 5243909, 3072, 6291462, 2099202, 7340039, 2099202, 3147779, 5243909, 1051649, 3147779, 5243909, 2099202, 6291462, 3072, 3147779, 4195332, 1051649, 3147779, 6291462, 4195332, 7340039, 5243909, 3072, 7340039, 3072, 5243909, 1051649, 5243909, 4195332, 3147779, 7340039, 2099202, 2099202, 5243909, 5243909, 3072, 7340039, 4195332, 2099202, 5243909, 2099202, 1051649, 7340039, 3147779, 1051649, 4195332, 3072, 2099202, 4195332, 2099202, 4195332, 7340039, 2099202, 3147779, 7340039, 1051649, 4195332, 5243909, 2099202, 5243909, 7340039, 1051649, 6291462, 1051649, 7340039, 1051649, 6291462, 3147779, 2099202, 7340039, 3147779, 1051649, 4195332, 6291462, 6291462, 2099202, 7340039, 3072, 2099202, 6291462, 1051649, 7340039, 5243909, 2099202, 7340039, 1051649, 4195332, 5243909, 2099202, 7340039, 3072, 7340039, 1051649, 6291462, 3072, 3147779, 5243909, 2099202, 1051649, 6291462, 4195332, 5243909, 3072, 5243909, - 7340039, 4195332, 7340039, 4195332, 2099202, 4195332, 5243909, 3072, 7340039, 1051649, 4195332, 3072, 6291462, 1051649, 7340039, 3072, 6291462, 2099202, 3072, 3147779, 6291462, 2099202, 7340039, 3147779, 6291462, 3147779, 5243909, 1051649, 5243909, 3072, 7340039, 1051649, 4195332, 6291462, 1051649, 7340039, 3147779, 5243909, 6291462, 1051649, 5243909, 7340039, 3072, 5243909, 2099202, 1051649, 6291462, 3147779, 4195332, 2099202, 7340039, 3072, 2099202, 5243909, 3072, 4195332, 7340039, 3147779, 1051649, 6291462, 2099202, 1051649, 7340039, 3072, 6291462, 4195332, 2099202, 6291462, 6291462, 1051649, 7340039, 5243909, 1051649, 6291462, 3072, 3147779, 5243909, 7340039, 1051649, 6291462, 3072, 3147779, 6291462, 3072, 2099202, 6291462, 4195332, 5243909, 2099202, 5243909, 3072, 5243909, 1051649, 4195332, 2099202, 7340039, 3072, 4195332, 2099202, 1051649, 5243909, 3147779, 7340039, 4195332, 3072, 2099202, 4195332, 1051649, 3147779, 6291462, 3147779, 7340039, 1051649, 6291462, 1051649, 6291462, 3147779, 2099202, 5243909, 3147779, 1051649, 6291462, 4195332, 3072, 3147779, 1051649, 7340039, 1051649, - 5243909, 2099202, 3072, 6291462, 3072, 7340039, 2099202, 6291462, 3147779, 4195332, 7340039, 3147779, 2099202, 5243909, 3147779, 1051649, 2099202, 5243909, 4195332, 6291462, 2099202, 5243909, 1051649, 4195332, 3072, 2099202, 4195332, 7340039, 2099202, 4195332, 3147779, 6291462, 3072, 2099202, 5243909, 3072, 2099202, 1051649, 7340039, 3147779, 2099202, 4195332, 3147779, 1051649, 6291462, 5243909, 2099202, 1051649, 6291462, 4195332, 1051649, 3147779, 6291462, 1051649, 6291462, 3147779, 3072, 5243909, 6291462, 2099202, 4195332, 5243909, 1051649, 3147779, 3147779, 5243909, 3072, 4195332, 3072, 4195332, 3147779, 3072, 5243909, 5243909, 3147779, 6291462, 3072, 2099202, 4195332, 6291462, 3147779, 7340039, 1051649, 3147779, 6291462, 2099202, 3072, 3147779, 6291462, 3147779, 3147779, 7340039, 2099202, 6291462, 3072, 4195332, 6291462, 1051649, 7340039, 4195332, 6291462, 3072, 2099202, 4195332, 6291462, 7340039, 2099202, 6291462, 4195332, 3072, 4195332, 3072, 4195332, 3147779, 5243909, 2099202, 3072, 7340039, 1051649, 6291462, 4195332, 2099202, 5243909, 7340039, 5243909, 6291462, 3147779, 2099202, - 3072, 4195332, 6291462, 3147779, 5243909, 1051649, 5243909, 3072, 5243909, 1051649, 2099202, 5243909, 7340039, 3072, 4195332, 5243909, 7340039, 3072, 7340039, 1051649, 6291462, 3072, 6291462, 1051649, 7340039, 5243909, 4195332, 3072, 6291462, 1051649, 7340039, 1051649, 5243909, 3147779, 6291462, 4195332, 7340039, 4195332, 3072, 5243909, 7340039, 3072, 5243909, 7340039, 3072, 3147779, 4195332, 7340039, 3072, 5243909, 3147779, 7340039, 5243909, 1051649, 4195332, 7340039, 2099202, 4195332, 1051649, 3147779, 7340039, 3072, 6291462, 5243909, 1051649, 7340039, 2099202, 7340039, 3147779, 5243909, 7340039, 3147779, 2099202, 1051649, 7340039, 1051649, 4195332, 6291462, 3072, 2099202, 4195332, 1051649, 5243909, 4195332, 1051649, 7340039, 3147779, 6291462, 3072, 7340039, 4195332, 3072, 5243909, 3147779, 6291462, 2099202, 5243909, 3147779, 3072, 3147779, 1051649, 5243909, 6291462, 3147779, 3072, 1051649, 5243909, 3072, 2099202, 6291462, 2099202, 6291462, 2099202, 7340039, 3072, 5243909, 4195332, 5243909, 3072, 4195332, 7340039, 3072, 3147779, 1051649, 2099202, 3072, 4195332, 6291462, - 3147779, 7340039, 2099202, 1051649, 3147779, 6291462, 3147779, 7340039, 2099202, 4195332, 6291462, 3072, 4195332, 3147779, 7340039, 3147779, 1051649, 4195332, 2099202, 4195332, 3147779, 7340039, 2099202, 5243909, 3147779, 2099202, 1051649, 7340039, 3147779, 2099202, 5243909, 4195332, 1051649, 7340039, 3072, 2099202, 1051649, 6291462, 3147779, 2099202, 1051649, 4195332, 1051649, 4195332, 2099202, 7340039, 3072, 3147779, 2099202, 3147779, 6291462, 3072, 2099202, 7340039, 3147779, 3072, 6291462, 5243909, 3072, 5243909, 2099202, 4195332, 3147779, 2099202, 6291462, 3072, 4195332, 2099202, 6291462, 1051649, 3072, 6291462, 7340039, 2099202, 4195332, 6291462, 1051649, 5243909, 3147779, 4195332, 7340039, 3072, 7340039, 3147779, 4195332, 2099202, 5243909, 1051649, 4195332, 1051649, 5243909, 2099202, 6291462, 3072, 4195332, 1051649, 7340039, 2099202, 6291462, 5243909, 7340039, 3147779, 1051649, 5243909, 7340039, 3147779, 5243909, 3147779, 7340039, 3147779, 5243909, 3147779, 1051649, 5243909, 2099202, 7340039, 1051649, 3147779, 6291462, 1051649, 2099202, 5243909, 3147779, 7340039, 4195332, 7340039, 1051649, 5243909, - 3147779, 3072, 5243909, 7340039, 4195332, 3072, 2099202, 4195332, 1051649, 7340039, 1051649, 3147779, 6291462, 1051649, 3072, 6291462, 5243909, 2099202, 6291462, 3072, 5243909, 1051649, 4195332, 3072, 6291462, 3147779, 6291462, 4195332, 3072, 6291462, 3072, 6291462, 3147779, 3147779, 4195332, 5243909, 7340039, 3072, 3147779, 7340039, 5243909, 6291462, 3147779, 7340039, 3147779, 5243909, 6291462, 1051649, 6291462, 4195332, 1051649, 4195332, 5243909, 3072, 4195332, 6291462, 1051649, 7340039, 3147779, 6291462, 1051649, 7340039, 3072, 7340039, 4195332, 3147779, 6291462, 3072, 4195332, 5243909, 2099202, 4195332, 1051649, 4195332, 3072, 7340039, 2099202, 5243909, 1051649, 7340039, 2099202, 5243909, 1051649, 6291462, 3072, 7340039, 1051649, 5243909, 2099202, 7340039, 3072, 5243909, 3147779, 1051649, 7340039, 2099202, 4195332, 1051649, 5243909, 2099202, 3072, 4195332, 7340039, 3072, 2099202, 4195332, 3072, 7340039, 1051649, 4195332, 3072, 7340039, 6291462, 4195332, 1051649, 4195332, 6291462, 2099202, 7340039, 3147779, 7340039, 3072, 6291462, 2099202, 3072, 3147779, 5243909, 2099202, - 4195332, 6291462, 1051649, 6291462, 3072, 5243909, 6291462, 3147779, 5243909, 2099202, 4195332, 7340039, 2099202, 6291462, 5243909, 2099202, 3072, 7340039, 3147779, 7340039, 2099202, 7340039, 3147779, 5243909, 1051649, 6291462, 3072, 2099202, 7340039, 4195332, 2099202, 5243909, 3072, 6291462, 4195332, 1051649, 3147779, 4195332, 6291462, 3072, 2099202, 4195332, 3072, 5243909, 1051649, 3072, 2099202, 5243909, 3072, 7340039, 2099202, 7340039, 2099202, 2099202, 6291462, 2099202, 4195332, 1051649, 3147779, 4195332, 2099202, 4195332, 5243909, 2099202, 3072, 6291462, 1051649, 6291462, 3147779, 1051649, 6291462, 2099202, 6291462, 3147779, 5243909, 2099202, 3072, 6291462, 3147779, 6291462, 3072, 3147779, 5243909, 2099202, 3147779, 6291462, 4195332, 3072, 6291462, 3147779, 4195332, 1051649, 7340039, 4195332, 3147779, 6291462, 3072, 7340039, 3147779, 3147779, 6291462, 2099202, 5243909, 3147779, 6291462, 1051649, 5243909, 2099202, 5243909, 1051649, 6291462, 2099202, 3072, 7340039, 3147779, 6291462, 3072, 5243909, 3072, 4195332, 1051649, 5243909, 2099202, 5243909, 4195332, 6291462, 3072, 7340039, - 5243909, 1051649, 4195332, 3147779, 2099202, 7340039, 1051649, 4195332, 3072, 6291462, 1051649, 5243909, 3072, 3147779, 1051649, 5243909, 4195332, 5243909, 1051649, 3147779, 3072, 4195332, 1051649, 7340039, 3147779, 2099202, 4195332, 5243909, 1051649, 5243909, 3147779, 7340039, 2099202, 7340039, 1051649, 5243909, 2099202, 7340039, 1051649, 4195332, 1051649, 6291462, 2099202, 3147779, 6291462, 4195332, 6291462, 2099202, 7340039, 3147779, 4195332, 1051649, 6291462, 5243909, 1051649, 3147779, 3072, 7340039, 5243909, 3072, 7340039, 1051649, 1051649, 5243909, 5243909, 3147779, 7340039, 1051649, 4195332, 7340039, 3147779, 5243909, 3072, 7340039, 1051649, 6291462, 4195332, 4195332, 1051649, 1051649, 4195332, 6291462, 3072, 7340039, 2099202, 3072, 3147779, 7340039, 2099202, 1051649, 5243909, 6291462, 2099202, 3072, 6291462, 4195332, 3147779, 5243909, 1051649, 7340039, 3072, 6291462, 1051649, 1051649, 4195332, 7340039, 3147779, 1051649, 7340039, 3147779, 4195332, 2099202, 5243909, 3147779, 1051649, 2099202, 4195332, 3147779, 7340039, 2099202, 6291462, 3147779, 1051649, 6291462, 1051649, 2099202, 5243909, 2099202, - 3072, 7340039, 1051649, 6291462, 1051649, 3147779, 7340039, 2099202, 6291462, 3147779, 7340039, 2099202, 4195332, 7340039, 3147779, 7340039, 3072, 2099202, 4195332, 6291462, 5243909, 2099202, 5243909, 3072, 5243909, 7340039, 3147779, 3072, 7340039, 1051649, 4195332, 3072, 5243909, 1051649, 3147779, 6291462, 3072, 2099202, 6291462, 5243909, 7340039, 3147779, 6291462, 3072, 7340039, 1051649, 4195332, 3072, 5243909, 1051649, 5243909, 4195332, 3072, 3147779, 5243909, 7340039, 6291462, 4195332, 3072, 6291462, 3147779, 6291462, 3147779, 7340039, 1051649, 2099202, 2099202, 4195332, 5243909, 3072, 3147779, 5243909, 2099202, 4195332, 3147779, 2099202, 7340039, 3072, 5243909, 7340039, 3147779, 2099202, 4195332, 4195332, 5243909, 6291462, 5243909, 2099202, 4195332, 7340039, 3147779, 3072, 4195332, 6291462, 1051649, 1051649, 5243909, 3072, 6291462, 2099202, 4195332, 3147779, 5243909, 6291462, 2099202, 3072, 5243909, 6291462, 3072, 6291462, 3072, 6291462, 1051649, 5243909, 7340039, 4195332, 6291462, 1051649, 3147779, 6291462, 3072, 7340039, 4195332, 2099202, 7340039, 4195332, 1051649, 7340039, - 4195332, 3147779, 7340039, 2099202, 4195332, 5243909, 3072, 5243909, 3147779, 3072, 4195332, 1051649, 5243909, 3072, 6291462, 2099202, 4195332, 6291462, 3072, 1051649, 3147779, 7340039, 3147779, 6291462, 2099202, 1051649, 4195332, 6291462, 3147779, 5243909, 2099202, 6291462, 3147779, 7340039, 3072, 4195332, 4195332, 5243909, 3072, 2099202, 3147779, 1051649, 4195332, 2099202, 5243909, 1051649, 7340039, 4195332, 3147779, 6291462, 3072, 7340039, 2099202, 7340039, 1051649, 3072, 2099202, 5243909, 2099202, 4195332, 2099202, 4195332, 3072, 3147779, 4195332, 5243909, 7340039, 3072, 6291462, 2099202, 7340039, 1051649, 6291462, 3072, 6291462, 1051649, 5243909, 2099202, 5243909, 3072, 6291462, 1051649, 7340039, 1051649, 3072, 4195332, 1051649, 6291462, 3072, 4195332, 1051649, 6291462, 2099202, 3147779, 5243909, 7340039, 2099202, 7340039, 4195332, 5243909, 2099202, 7340039, 1051649, 4195332, 7340039, 4195332, 1051649, 4195332, 3147779, 4195332, 2099202, 7340039, 4195332, 3072, 2099202, 3072, 3147779, 5243909, 1051649, 2099202, 5243909, 1051649, 6291462, 3072, 3147779, 5243909, 3072, 3147779, - 3147779, 2099202, 5243909, 3072, 6291462, 1051649, 6291462, 2099202, 4195332, 5243909, 3147779, 6291462, 2099202, 6291462, 3147779, 5243909, 1051649, 2099202, 7340039, 4195332, 6291462, 3072, 4195332, 1051649, 5243909, 6291462, 1051649, 2099202, 7340039, 3072, 6291462, 3147779, 1051649, 5243909, 2099202, 7340039, 1051649, 3147779, 7340039, 4195332, 6291462, 3072, 5243909, 2099202, 6291462, 3147779, 1051649, 5243909, 2099202, 3147779, 4195332, 3147779, 1051649, 6291462, 3147779, 6291462, 3147779, 7340039, 1051649, 5243909, 6291462, 1051649, 7340039, 2099202, 6291462, 3072, 4195332, 1051649, 5243909, 3147779, 4195332, 1051649, 4195332, 3147779, 5243909, 3072, 3147779, 7340039, 4195332, 2099202, 5243909, 3147779, 5243909, 3147779, 7340039, 2099202, 7340039, 1051649, 3147779, 6291462, 3072, 5243909, 7340039, 1051649, 4195332, 3072, 4195332, 1051649, 2099202, 3072, 4195332, 3072, 6291462, 2099202, 3072, 3147779, 7340039, 2099202, 5243909, 1051649, 6291462, 3147779, 1051649, 4195332, 6291462, 4195332, 6291462, 3072, 7340039, 4195332, 2099202, 5243909, 3147779, 4195332, 6291462, 1051649, 6291462, 5243909, - 6291462, 3072, 5243909, 4195332, 3147779, 7340039, 1051649, 7340039, 3072, 6291462, 3072, 7340039, 1051649, 4195332, 1051649, 3072, 7340039, 3147779, 2099202, 5243909, 1051649, 2099202, 6291462, 7340039, 3072, 3147779, 6291462, 4195332, 2099202, 2099202, 4195332, 3072, 7340039, 3147779, 6291462, 1051649, 6291462, 2099202, 5243909, 3072, 2099202, 7340039, 3147779, 7340039, 3072, 4195332, 6291462, 3072, 7340039, 3072, 7340039, 5243909, 5243909, 2099202, 4195332, 1051649, 5243909, 3072, 4195332, 3147779, 3072, 5243909, 4195332, 6291462, 1051649, 3147779, 7340039, 2099202, 6291462, 3072, 7340039, 6291462, 2099202, 7340039, 1051649, 4195332, 7340039, 3072, 3147779, 7340039, 1051649, 6291462, 3072, 5243909, 2099202, 3147779, 5243909, 2099202, 5243909, 2099202, 7340039, 3147779, 2099202, 5243909, 2099202, 6291462, 3147779, 5243909, 6291462, 7340039, 3147779, 6291462, 3147779, 1051649, 5243909, 6291462, 2099202, 6291462, 3072, 7340039, 3072, 5243909, 1051649, 7340039, 2099202, 5243909, 1051649, 3147779, 6291462, 4195332, 3072, 6291462, 3072, 7340039, 2099202, 5243909, 2099202, 1051649, - 3147779, 7340039, 2099202, 6291462, 3072, 2099202, 4195332, 3147779, 6291462, 3147779, 1051649, 4195332, 3147779, 5243909, 7340039, 3147779, 4195332, 5243909, 3072, 4195332, 7340039, 5243909, 1051649, 3147779, 4195332, 5243909, 1051649, 3072, 6291462, 4195332, 7340039, 5243909, 2099202, 4195332, 3072, 5243909, 3147779, 3072, 4195332, 6291462, 5243909, 3147779, 1051649, 2099202, 4195332, 7340039, 2099202, 3147779, 4195332, 2099202, 2099202, 1051649, 1051649, 6291462, 3072, 7340039, 2099202, 4195332, 7340039, 2099202, 7340039, 2099202, 3072, 5243909, 2099202, 6291462, 3072, 5243909, 1051649, 3147779, 5243909, 2099202, 3072, 3147779, 6291462, 2099202, 4195332, 2099202, 6291462, 1051649, 4195332, 3147779, 4195332, 6291462, 3072, 6291462, 3072, 7340039, 1051649, 5243909, 3147779, 3072, 6291462, 1051649, 5243909, 3072, 7340039, 1051649, 3072, 3147779, 1051649, 5243909, 2099202, 7340039, 4195332, 1051649, 4195332, 2099202, 4195332, 3147779, 3147779, 7340039, 2099202, 5243909, 3072, 3147779, 7340039, 5243909, 1051649, 2099202, 7340039, 3147779, 5243909, 1051649, 4195332, 3072, 7340039, 4195332, - 3072, 4195332, 1051649, 4195332, 6291462, 5243909, 3072, 2099202, 1051649, 5243909, 7340039, 2099202, 5243909, 3072, 2099202, 6291462, 1051649, 6291462, 1051649, 7340039, 3147779, 3072, 6291462, 1051649, 7340039, 2099202, 4195332, 7340039, 5243909, 3072, 3147779, 1051649, 4195332, 7340039, 4195332, 2099202, 5243909, 7340039, 1051649, 2099202, 3072, 6291462, 5243909, 1051649, 6291462, 3072, 5243909, 1051649, 6291462, 6291462, 4195332, 7340039, 3147779, 5243909, 4195332, 3147779, 3072, 6291462, 1051649, 6291462, 3147779, 1051649, 5243909, 3147779, 7340039, 4195332, 2099202, 4195332, 4195332, 7340039, 1051649, 4195332, 7340039, 5243909, 1051649, 5243909, 3072, 6291462, 3147779, 5243909, 3072, 7340039, 2099202, 1051649, 4195332, 3147779, 6291462, 4195332, 3072, 4195332, 1051649, 5243909, 4195332, 7340039, 3147779, 2099202, 4195332, 3147779, 5243909, 4195332, 7340039, 1051649, 6291462, 3072, 3147779, 7340039, 3072, 6291462, 1051649, 5243909, 2099202, 5243909, 3072, 4195332, 6291462, 1051649, 4195332, 3072, 7340039, 3147779, 4195332, 1051649, 2099202, 6291462, 7340039, 3147779, 1051649, 6291462, - 7340039, 3147779, 6291462, 2099202, 1051649, 3147779, 7340039, 4195332, 7340039, 3072, 2099202, 6291462, 1051649, 7340039, 4195332, 3072, 4195332, 3147779, 5243909, 1051649, 5243909, 2099202, 4195332, 5243909, 3147779, 3072, 6291462, 1051649, 3147779, 2099202, 6291462, 1051649, 6291462, 3072, 3147779, 7340039, 1051649, 3147779, 6291462, 7340039, 4195332, 3072, 4195332, 7340039, 3147779, 2099202, 4195332, 7340039, 3072, 1051649, 5243909, 3072, 6291462, 3072, 2099202, 6291462, 5243909, 2099202, 5243909, 3072, 7340039, 4195332, 6291462, 1051649, 5243909, 3072, 7340039, 1051649, 6291462, 3072, 5243909, 3147779, 3072, 2099202, 6291462, 3147779, 7340039, 1051649, 2099202, 7340039, 4195332, 2099202, 6291462, 3147779, 7340039, 1051649, 1051649, 3147779, 7340039, 3147779, 7340039, 6291462, 2099202, 3072, 5243909, 1051649, 6291462, 3072, 7340039, 2099202, 5243909, 2099202, 4195332, 5243909, 4195332, 2099202, 5243909, 3147779, 7340039, 3072, 6291462, 1051649, 7340039, 2099202, 3147779, 7340039, 2099202, 5243909, 3147779, 6291462, 3072, 7340039, 4195332, 3147779, 1051649, 5243909, 4195332, 2099202, - 1051649, 5243909, 3072, 7340039, 3147779, 5243909, 1051649, 2099202, 6291462, 4195332, 5243909, 3072, 4195332, 3147779, 6291462, 5243909, 7340039, 3072, 2099202, 6291462, 4195332, 1051649, 6291462, 3072, 7340039, 5243909, 3147779, 4195332, 7340039, 1051649, 4195332, 5243909, 2099202, 6291462, 3072, 6291462, 2099202, 5243909, 3072, 3147779, 1051649, 6291462, 3147779, 1051649, 5243909, 6291462, 1051649, 3147779, 5243909, 7340039, 3147779, 3147779, 2099202, 4195332, 7340039, 1051649, 3072, 4195332, 3147779, 5243909, 2099202, 3072, 2099202, 7340039, 3147779, 1051649, 3147779, 6291462, 2099202, 3147779, 5243909, 2099202, 7340039, 4195332, 7340039, 1051649, 3147779, 5243909, 3072, 6291462, 1051649, 5243909, 3072, 5243909, 2099202, 7340039, 4195332, 6291462, 1051649, 5243909, 2099202, 3072, 4195332, 6291462, 3147779, 7340039, 2099202, 4195332, 1051649, 5243909, 3072, 6291462, 3147779, 1051649, 3072, 7340039, 1051649, 5243909, 2099202, 4195332, 3147779, 5243909, 4195332, 6291462, 3072, 5243909, 3072, 6291462, 1051649, 2099202, 6291462, 3147779, 3072, 5243909, 1051649, 7340039, 2099202, 6291462, - 4195332, 3147779, 6291462, 4195332, 3072, 2099202, 6291462, 5243909, 1051649, 2099202, 3147779, 7340039, 1051649, 7340039, 3072, 2099202, 2099202, 6291462, 3147779, 3072, 2099202, 7340039, 3147779, 2099202, 4195332, 2099202, 3072, 5243909, 1051649, 6291462, 3072, 3147779, 5243909, 2099202, 5243909, 1051649, 4195332, 6291462, 2099202, 7340039, 4195332, 5243909, 2099202, 6291462, 3072, 4195332, 6291462, 2099202, 3072, 4195332, 1051649, 7340039, 6291462, 1051649, 5243909, 3147779, 5243909, 3147779, 7340039, 1051649, 6291462, 4195332, 6291462, 4195332, 3072, 5243909, 6291462, 1051649, 5243909, 7340039, 3072, 6291462, 3147779, 1051649, 4195332, 2099202, 6291462, 4195332, 2099202, 4195332, 1051649, 3147779, 6291462, 4195332, 3072, 5243909, 2099202, 3072, 6291462, 1051649, 6291462, 3147779, 7340039, 1051649, 4195332, 3072, 4195332, 6291462, 2099202, 3147779, 6291462, 1051649, 7340039, 5243909, 3147779, 6291462, 4195332, 3147779, 3072, 6291462, 3072, 2099202, 1051649, 3147779, 7340039, 2099202, 4195332, 3147779, 4195332, 5243909, 1051649, 5243909, 2099202, 7340039, 4195332, 3072, 4195332, 3072, - 7340039, 2099202, 1051649, 5243909, 7340039, 4195332, 1051649, 3147779, 5243909, 7340039, 3072, 6291462, 4195332, 1051649, 3147779, 6291462, 4195332, 1051649, 5243909, 7340039, 4195332, 3072, 5243909, 6291462, 1051649, 6291462, 7340039, 3147779, 2099202, 5243909, 3147779, 7340039, 1051649, 4195332, 3147779, 7340039, 4195332, 3072, 5243909, 1051649, 4195332, 3072, 7340039, 3147779, 5243909, 2099202, 3072, 6291462, 5243909, 3147779, 5243909, 3072, 2099202, 4195332, 1051649, 7340039, 1051649, 6291462, 3072, 7340039, 1051649, 3147779, 1051649, 4195332, 7340039, 3147779, 2099202, 4195332, 3072, 3147779, 4195332, 3072, 5243909, 6291462, 3072, 5243909, 3147779, 3072, 7340039, 2099202, 7340039, 5243909, 3072, 3147779, 7340039, 2099202, 4195332, 7340039, 3147779, 4195332, 3072, 3147779, 5243909, 2099202, 7340039, 1051649, 6291462, 1051649, 4195332, 7340039, 2099202, 4195332, 3072, 7340039, 2099202, 3072, 1051649, 7340039, 6291462, 4195332, 7340039, 5243909, 6291462, 3072, 5243909, 2099202, 6291462, 3072, 7340039, 3072, 7340039, 2099202, 6291462, 1051649, 3147779, 7340039, 5243909, 2099202, - 1051649, 7340039, 5243909, 3072, 2099202, 5243909, 7340039, 3072, 4195332, 2099202, 4195332, 3147779, 2099202, 5243909, 6291462, 1051649, 5243909, 7340039, 2099202, 3147779, 1051649, 6291462, 3147779, 3072, 4195332, 4195332, 3147779, 3072, 7340039, 6291462, 3072, 2099202, 7340039, 3072, 5243909, 1051649, 2099202, 6291462, 3147779, 3147779, 7340039, 2099202, 4195332, 1051649, 7340039, 5243909, 2099202, 4195332, 1051649, 7340039, 2099202, 7340039, 5243909, 3147779, 6291462, 4195332, 2099202, 5243909, 3147779, 2099202, 3147779, 7340039, 5243909, 2099202, 3072, 5243909, 1051649, 6291462, 2099202, 6291462, 2099202, 7340039, 3147779, 2099202, 7340039, 1051649, 6291462, 5243909, 1051649, 5243909, 3072, 2099202, 6291462, 4195332, 1051649, 5243909, 1051649, 4195332, 3072, 7340039, 5243909, 2099202, 3072, 6291462, 3147779, 5243909, 2099202, 5243909, 3072, 3147779, 6291462, 2099202, 4195332, 2099202, 5243909, 3147779, 5243909, 1051649, 4195332, 2099202, 1051649, 2099202, 3147779, 6291462, 1051649, 7340039, 1051649, 6291462, 3147779, 4195332, 1051649, 4195332, 3072, 5243909, 4195332, 1051649, 3072, 5243909, - 4195332, 3072, 4195332, 3147779, 6291462, 1051649, 2099202, 6291462, 5243909, 1051649, 6291462, 3072, 7340039, 3147779, 2099202, 4195332, 3072, 3147779, 5243909, 1051649, 7340039, 4195332, 2099202, 7340039, 6291462, 3072, 1051649, 5243909, 4195332, 1051649, 7340039, 4195332, 3147779, 6291462, 2099202, 7340039, 4195332, 1051649, 7340039, 3072, 5243909, 1051649, 6291462, 3147779, 3072, 3147779, 7340039, 5243909, 2099202, 4195332, 3072, 3147779, 1051649, 6291462, 3072, 2099202, 6291462, 3072, 5243909, 4195332, 6291462, 3072, 2099202, 6291462, 4195332, 1051649, 7340039, 3147779, 7340039, 1051649, 5243909, 1051649, 5243909, 1051649, 4195332, 4195332, 3072, 3147779, 2099202, 6291462, 4195332, 7340039, 3147779, 3072, 7340039, 3147779, 6291462, 2099202, 6291462, 2099202, 3147779, 6291462, 4195332, 1051649, 5243909, 3072, 7340039, 3147779, 7340039, 5243909, 3072, 5243909, 1051649, 6291462, 1051649, 7340039, 3147779, 7340039, 3072, 3147779, 5243909, 7340039, 4195332, 3072, 4195332, 3147779, 5243909, 3147779, 2099202, 5243909, 2099202, 5243909, 3147779, 7340039, 3072, 6291462, 6291462, 3147779, - 7340039, 3147779, 6291462, 1051649, 4195332, 3147779, 7340039, 3147779, 3072, 7340039, 3147779, 5243909, 1051649, 5243909, 3072, 7340039, 3147779, 6291462, 3072, 4195332, 3147779, 3072, 5243909, 1051649, 2099202, 5243909, 7340039, 3147779, 1051649, 4195332, 2099202, 5243909, 3072, 1051649, 5243909, 3072, 5243909, 1051649, 5243909, 5243909, 2099202, 4195332, 3072, 7340039, 4195332, 1051649, 4195332, 3072, 7340039, 1051649, 6291462, 4195332, 6291462, 2099202, 4195332, 7340039, 4195332, 3147779, 7340039, 3072, 2099202, 7340039, 3147779, 3072, 6291462, 3147779, 5243909, 3072, 2099202, 4195332, 3147779, 6291462, 3072, 6291462, 2099202, 7340039, 3147779, 7340039, 4195332, 3072, 3147779, 1051649, 6291462, 4195332, 2099202, 5243909, 3072, 5243909, 4195332, 3072, 6291462, 1051649, 7340039, 4195332, 2099202, 6291462, 4195332, 1051649, 3147779, 1051649, 7340039, 3147779, 6291462, 4195332, 1051649, 5243909, 3072, 4195332, 5243909, 6291462, 1051649, 2099202, 1051649, 6291462, 7340039, 2099202, 5243909, 3072, 6291462, 3072, 7340039, 1051649, 6291462, 2099202, 3147779, 2099202, 4195332, 2099202, - 2099202, 5243909, 1051649, 6291462, 3072, 5243909, 1051649, 4195332, 6291462, 2099202, 4195332, 2099202, 6291462, 4195332, 6291462, 1051649, 4195332, 2099202, 7340039, 2099202, 6291462, 2099202, 7340039, 3147779, 6291462, 1051649, 4195332, 6291462, 2099202, 6291462, 3072, 6291462, 4195332, 6291462, 2099202, 3147779, 7340039, 3147779, 3147779, 1051649, 6291462, 2099202, 6291462, 3147779, 5243909, 1051649, 6291462, 2099202, 3147779, 6291462, 2099202, 3072, 4195332, 3072, 5243909, 1051649, 5243909, 1051649, 1051649, 5243909, 1051649, 5243909, 4195332, 6291462, 2099202, 7340039, 3072, 6291462, 4195332, 7340039, 3072, 2099202, 4195332, 4195332, 5243909, 1051649, 5243909, 1051649, 6291462, 2099202, 5243909, 5243909, 1051649, 3147779, 6291462, 1051649, 3147779, 7340039, 1051649, 7340039, 2099202, 5243909, 3147779, 3072, 7340039, 1051649, 5243909, 2099202, 6291462, 4195332, 3147779, 3072, 2099202, 3147779, 7340039, 2099202, 6291462, 2099202, 3147779, 3072, 4195332, 7340039, 5243909, 3147779, 3072, 4195332, 1051649, 7340039, 4195332, 6291462, 2099202, 4195332, 1051649, 5243909, 7340039, 1051649, 6291462, 3072, - 6291462, 1051649, 7340039, 3147779, 7340039, 2099202, 6291462, 3147779, 3072, 6291462, 1051649, 7340039, 3072, 3147779, 2099202, 7340039, 3072, 5243909, 1051649, 5243909, 5243909, 1051649, 4195332, 3072, 2099202, 7340039, 3147779, 3072, 5243909, 3147779, 7340039, 2099202, 3072, 4195332, 1051649, 7340039, 3072, 6291462, 3072, 7340039, 2099202, 7340039, 3072, 4195332, 2099202, 6291462, 3147779, 7340039, 3072, 5243909, 3147779, 5243909, 7340039, 3147779, 7340039, 2099202, 3147779, 6291462, 4195332, 3147779, 7340039, 3147779, 1051649, 5243909, 3072, 3147779, 5243909, 2099202, 1051649, 3147779, 5243909, 6291462, 7340039, 3072, 3147779, 6291462, 3072, 4195332, 3147779, 7340039, 3072, 4195332, 7340039, 2099202, 3072, 7340039, 5243909, 3072, 5243909, 3147779, 4195332, 3072, 6291462, 2099202, 5243909, 3147779, 3072, 7340039, 4195332, 3072, 6291462, 5243909, 7340039, 4195332, 3072, 5243909, 1051649, 4195332, 7340039, 5243909, 1051649, 2099202, 3072, 6291462, 2099202, 7340039, 3147779, 1051649, 3147779, 3147779, 5243909, 3072, 7340039, 3147779, 3072, 5243909, 3147779, 4195332, -}; + GDK_RGB_INPUT_RGB, /* 3 bytes per pixel */ + GDK_RGB_INPUT_RGBX, /* 4 bytes per pixel */ + GDK_RGB_INPUT_GRAY, /* 1 byte per pixel */ + GDK_RGB_INPUT_INDEXED, /* 1 byte per pixel, colors from a GdkRgbCmap */ + GDK_RGB_INPUT_RGB48, /* 3 native 16-bit words per pixel */ + GDK_RGB_INPUT_RGBX64 /* 4 native 16-bit words per pixel */ +} GdkRgbInput; -#else -#define DM_WIDTH 8 -#define DM_WIDTH_SHIFT 3 -#define DM_HEIGHT 8 -static const guchar DM[8][8] = +static const guint8 gdk_rgb_input_bytes[] = { 3, 4, 1, 1, 6, 8 }; + +#define ROW_MAX GDK_SCRATCH_IMAGE_WIDTH + +/* Makes 8-bit RGB out of any other input. */ +static const guchar * +gdk_rgb_stage_row (guchar *stage, + GdkRgbInput input, + const guchar *in, + gint width, + GdkRgbCmap *cmap) { - { 0, 32, 8, 40, 2, 34, 10, 42 }, - { 48, 16, 56, 24, 50, 18, 58, 26 }, - { 12, 44, 4, 36, 14, 46, 6, 38 }, - { 60, 28, 52, 20, 62, 30, 54, 22 }, - { 3, 35, 11, 43, 1, 33, 9, 41 }, - { 51, 19, 59, 27, 49, 17, 57, 25 }, - { 15, 47, 7, 39, 13, 45, 5, 37 }, - { 63, 31, 55, 23, 61, 29, 53, 21 } -}; + const guint16 *in16 = (const guint16 *) in; + guchar *p = stage; + gint x; -static const guint32 DM_565[8 * 8] = -{ - 3072, 4195332, 1051649, 5243909, 3072, 4195332, 1051649, 5243909, - 6291462, 2099202, 7340039, 3147779, 6291462, 2099202, 7340039, 3147779, - 1051649, 5243909, 3072, 4195332, 1051649, 5243909, 3072, 4195332, - 7340039, 3147779, 6291462, 2099202, 7340039, 3147779, 6291462, 2099202, - 3072, 4195332, 1051649, 5243909, 3072, 4195332, 1051649, 5243909, - 6291462, 2099202, 7340039, 3147779, 6291462, 2099202, 7340039, 3147779, - 1051649, 5243909, 3072, 4195332, 1051649, 5243909, 3072, 4195332, - 7340039, 3147779, 6291462, 2099202, 7340039, 3147779, 6291462, 2099202, -}; - -#endif - -#if 0 -static void -gdk_rgb_preprocess_dm_565 (void) -{ - int i; - guint32 dith; - - if (DM_565 == NULL) + switch (input) { - DM_565 = g_new (guint32, DM_WIDTH * DM_HEIGHT); - for (i = 0; i < DM_WIDTH * DM_HEIGHT; i++) - { - dith = DM[0][i] >> 3; - DM_565[i] = (dith << 20) | dith | (((7 - dith) >> 1) << 10); -#ifdef VERBOSE - g_print ("%i %x %x\n", i, dith, DM_565[i]); -#endif - } - } -} -#else -#define gdk_rgb_preprocess_dm_565() -#endif - -static void -gdk_rgb_convert_8_d666 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint dith; - guchar *colorcube_d = image_info->colorcube_d; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 7; - r = ((r * 5) + dith) >> 8; - g = ((g * 5) + (262 - dith)) >> 8; - b = ((b * 5) + dith) >> 8; - obptr[0] = colorcube_d[(r << 6) | (g << 3) | b]; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_8_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint dith; - gint rs, gs, bs; - guchar *colorcube_d = image_info->colorcube_d; - - bptr = buf; - bpl = image->bpl; - rs = image_info->nred_shades - 1; - gs = image_info->ngreen_shades - 1; - bs = image_info->nblue_shades - 1; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 7; - r = ((r * rs) + dith) >> 8; - g = ((g * gs) + (262 - dith)) >> 8; - b = ((b * bs) + dith) >> 8; - obptr[0] = colorcube_d[(r << 6) | (g << 3) | b]; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_8_indexed (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - guchar c; - guchar *lut; - GdkRgbCmapInfo *cmap_info = gdk_rgb_cmap_get_info (cmap, image_info); - - lut = cmap_info->lut; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - c = *bp2++; - obptr[0] = lut[c]; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_gray8 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - obptr[0] = (g + ((b + r) >> 1)) >> 1; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_gray8_gray (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int y; - gint bpl; - guchar *obuf; - const guchar *bptr; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - memcpy (obuf, bptr, width); - bptr += rowstride; - obuf += bpl; - } -} - - -#if G_BYTE_ORDER == G_BIG_ENDIAN -#if defined(__powerpc__) || defined(__powerpc64__) || \ - defined(__ppc__) || defined(__ppc64__) || \ - defined(__PPC__) || defined(__PPC64__) || \ - defined(__POWERPC__) || defined(_ARCH_PPC) -#define GDK_RGB_FAST_BE565_RGB -#define GDK_RGB_FAST_BE565_GRAY -#define GDK_RGB_FAST_BE565_DITHER -#elif defined(__s390x__) -#define GDK_RGB_FAST_BE565_RGB -#elif defined(__aarch64__) -#define GDK_RGB_FAST_BE565_RGB -#define GDK_RGB_FAST_BE565_GRAY -#elif defined(__arm__) && defined(__ARM_ARCH) && \ - __ARM_ARCH >= 5 -#define GDK_RGB_FAST_BE565_RGB -#define GDK_RGB_FAST_BE565_GRAY -#elif defined(__m68k__) -#define GDK_RGB_FAST_BE565_GRAY -#endif -#endif - -/* Render a 24-bit RGB image in buf into the GdkImage, without dithering. - The four-pixel inner loop uses compile-time-specialized native word - layouts for little- and big-endian systems. */ -#if G_BYTE_ORDER == G_LITTLE_ENDIAN || defined(GDK_RGB_FAST_BE565_RGB) -static void -gdk_rgb_convert_565 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - guchar r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - if (((guintptr)obuf | (guintptr) bp2) & 3) - { - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - ((guint16 *)obptr)[0] = ((r & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (b >> 3); - obptr += 2; - } - } - else - { - for (x = 0; x < width - 3; x += 4) - { - guint32 r1b0g0r0; - guint32 g2r2b1g1; - guint32 b3g3r3b2; - - r1b0g0r0 = ((guint32 *)bp2)[0]; - g2r2b1g1 = ((guint32 *)bp2)[1]; - b3g3r3b2 = ((guint32 *)bp2)[2]; -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - ((guint32 *)obptr)[0] = - ((r1b0g0r0 & 0xf8) << 8) | - ((r1b0g0r0 & 0xfc00) >> 5) | - ((r1b0g0r0 & 0xf80000) >> 19) | - (r1b0g0r0 & 0xf8000000) | - ((g2r2b1g1 & 0xfc) << 19) | - ((g2r2b1g1 & 0xf800) << 5); - ((guint32 *)obptr)[1] = - ((g2r2b1g1 & 0xf80000) >> 8) | - ((g2r2b1g1 & 0xfc000000) >> 21) | - ((b3g3r3b2 & 0xf8) >> 3) | - ((b3g3r3b2 & 0xf800) << 16) | - ((b3g3r3b2 & 0xfc0000) << 3) | - ((b3g3r3b2 & 0xf8000000) >> 11); -#else - ((guint32 *)obptr)[0] = - (r1b0g0r0 & 0xf8000000) | - ((r1b0g0r0 & 0x00fc0000) << 3) | - ((r1b0g0r0 & 0x0000f800) << 5) | - ((r1b0g0r0 & 0x000000f8) << 8) | - ((g2r2b1g1 & 0xfc000000) >> 21) | - ((g2r2b1g1 & 0x00f80000) >> 19); - ((guint32 *)obptr)[1] = - ((g2r2b1g1 & 0x0000f800) << 16) | - ((g2r2b1g1 & 0x000000fc) << 19) | - ((b3g3r3b2 & 0xf8000000) >> 11) | - ((b3g3r3b2 & 0x00f80000) >> 8) | - ((b3g3r3b2 & 0x0000fc00) >> 5) | - ((b3g3r3b2 & 0x000000f8) >> 3); -#endif - bp2 += 12; - obptr += 8; - } - for (; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - ((guint16 *)obptr)[0] = ((r & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (b >> 3); - obptr += 2; - } - } - bptr += rowstride; - obuf += bpl; - } -} -#else -static void -gdk_rgb_convert_565 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - guchar r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - ((unsigned short *)obuf)[x] = ((r & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (b >> 3); - } - bptr += rowstride; - obuf += bpl; - } -} -#endif - -#if G_BYTE_ORDER == G_LITTLE_ENDIAN || defined(GDK_RGB_FAST_BE565_GRAY) -static void -gdk_rgb_convert_565_gray (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - guchar g; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - if (((guintptr)obuf | (guintptr) bp2) & 3) - { - for (x = 0; x < width; x++) - { - g = *bp2++; - ((guint16 *)obptr)[0] = ((g & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (g >> 3); - obptr += 2; - } - } - else - { - for (x = 0; x < width - 3; x += 4) - { - guint32 g3g2g1g0; - - g3g2g1g0 = ((guint32 *)bp2)[0]; -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - ((guint32 *)obptr)[0] = - ((g3g2g1g0 & 0xf8) << 8) | - ((g3g2g1g0 & 0xfc) << 3) | - ((g3g2g1g0 & 0xf8) >> 3) | - (g3g2g1g0 & 0xf800) << 16 | - ((g3g2g1g0 & 0xfc00) << 11) | - ((g3g2g1g0 & 0xf800) << 5); - ((guint32 *)obptr)[1] = - ((g3g2g1g0 & 0xf80000) >> 8) | - ((g3g2g1g0 & 0xfc0000) >> 13) | - ((g3g2g1g0 & 0xf80000) >> 19) | - (g3g2g1g0 & 0xf8000000) | - ((g3g2g1g0 & 0xfc000000) >> 5) | - ((g3g2g1g0 & 0xf8000000) >> 11); -#else - ((guint32 *)obptr)[0] = - (g3g2g1g0 & 0xf8000000) | - ((g3g2g1g0 & 0xfc000000) >> 5) | - ((g3g2g1g0 & 0xf8000000) >> 11) | - ((g3g2g1g0 & 0x00f80000) >> 8) | - ((g3g2g1g0 & 0x00fc0000) >> 13) | - ((g3g2g1g0 & 0x00f80000) >> 19); - ((guint32 *)obptr)[1] = - ((g3g2g1g0 & 0x0000f800) << 16) | - ((g3g2g1g0 & 0x0000fc00) << 11) | - ((g3g2g1g0 & 0x0000f800) << 5) | - ((g3g2g1g0 & 0x000000f8) << 8) | - ((g3g2g1g0 & 0x000000fc) << 3) | - ((g3g2g1g0 & 0x000000f8) >> 3); -#endif - bp2 += 4; - obptr += 8; - } - for (; x < width; x++) - { - g = *bp2++; - ((guint16 *)obptr)[0] = ((g & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (g >> 3); - obptr += 2; - } - } - bptr += rowstride; - obuf += bpl; - } -} -#else -static void -gdk_rgb_convert_565_gray (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - guchar g; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - g = *bp2++; - ((guint16 *)obuf)[x] = ((g & 0xf8) << 8) | - ((g & 0xfc) << 3) | - (g >> 3); - } - bptr += rowstride; - obuf += bpl; - } -} -#endif - -static void -gdk_rgb_convert_565_br (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - guchar r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - /* final word is: - g4 g3 g2 b7 b6 b5 b4 b3 r7 r6 r5 r4 r3 g7 g6 g5 - */ - ((unsigned short *)obuf)[x] = (r & 0xf8) | - ((g & 0xe0) >> 5) | - ((g & 0x1c) << 11) | - ((b & 0xf8) << 5); - } - bptr += rowstride; - obuf += bpl; - } -} - -/* Thanks to Ray Lehtiniemi for a patch that resulted in a ~25% speedup - in this mode. */ -#if G_BYTE_ORDER == G_LITTLE_ENDIAN || defined(GDK_RGB_FAST_BE565_DITHER) -static void -gdk_rgb_convert_565_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - /* Now this is what I'd call some highly tuned code! */ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - - width += x_align; - height += y_align; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = y_align; y < height; y++) - { - const guint32 *dmp = DM_565 + ((y & (DM_HEIGHT - 1)) << DM_WIDTH_SHIFT); - bp2 = bptr; - obptr = obuf; - if (((guintptr)obuf | (guintptr) bp2) & 3) - { - for (x = x_align; x < width; x++) - { - gint32 rgb = *bp2++ << 20; - rgb += *bp2++ << 10; - rgb += *bp2++; - rgb += dmp[x & (DM_WIDTH - 1)]; - rgb += 0x10040100 - - ((rgb & 0x1e0001e0) >> 5) - - ((rgb & 0x00070000) >> 6); - - ((unsigned short *)obptr)[0] = - ((rgb & 0x0f800000) >> 12) | - ((rgb & 0x0003f000) >> 7) | - ((rgb & 0x000000f8) >> 3); - obptr += 2; - } - } - else - { - for (x = x_align; x < width - 3; x += 4) - { - guint32 r1b0g0r0; - guint32 g2r2b1g1; - guint32 b3g3r3b2; - guint32 rgb02, rgb13; - - r1b0g0r0 = ((guint32 *)bp2)[0]; - g2r2b1g1 = ((guint32 *)bp2)[1]; - b3g3r3b2 = ((guint32 *)bp2)[2]; -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - rgb02 = - ((r1b0g0r0 & 0xff) << 20) + - ((r1b0g0r0 & 0xff00) << 2) + - ((r1b0g0r0 & 0xff0000) >> 16) + - dmp[x & (DM_WIDTH - 1)]; - rgb02 += 0x10040100 - - ((rgb02 & 0x1e0001e0) >> 5) - - ((rgb02 & 0x00070000) >> 6); - rgb13 = - ((r1b0g0r0 & 0xff000000) >> 4) + - ((g2r2b1g1 & 0xff) << 10) + - ((g2r2b1g1 & 0xff00) >> 8) + - dmp[(x + 1) & (DM_WIDTH - 1)]; - rgb13 += 0x10040100 - - ((rgb13 & 0x1e0001e0) >> 5) - - ((rgb13 & 0x00070000) >> 6); - ((guint32 *)obptr)[0] = - ((rgb02 & 0x0f800000) >> 12) | - ((rgb02 & 0x0003f000) >> 7) | - ((rgb02 & 0x000000f8) >> 3) | - ((rgb13 & 0x0f800000) << 4) | - ((rgb13 & 0x0003f000) << 9) | - ((rgb13 & 0x000000f8) << 13); - rgb02 = - ((g2r2b1g1 & 0xff0000) << 4) + - ((g2r2b1g1 & 0xff000000) >> 14) + - (b3g3r3b2 & 0xff) + - dmp[(x + 2) & (DM_WIDTH - 1)]; - rgb02 += 0x10040100 - - ((rgb02 & 0x1e0001e0) >> 5) - - ((rgb02 & 0x00070000) >> 6); - rgb13 = - ((b3g3r3b2 & 0xff00) << 12) + - ((b3g3r3b2 & 0xff0000) >> 6) + - ((b3g3r3b2 & 0xff000000) >> 24) + - dmp[(x + 3) & (DM_WIDTH - 1)]; - rgb13 += 0x10040100 - - ((rgb13 & 0x1e0001e0) >> 5) - - ((rgb13 & 0x00070000) >> 6); - ((guint32 *)obptr)[1] = - ((rgb02 & 0x0f800000) >> 12) | - ((rgb02 & 0x0003f000) >> 7) | - ((rgb02 & 0x000000f8) >> 3) | - ((rgb13 & 0x0f800000) << 4) | - ((rgb13 & 0x0003f000) << 9) | - ((rgb13 & 0x000000f8) << 13); -#else - rgb02 = - ((r1b0g0r0 & 0xff000000) >> 4) + - ((r1b0g0r0 & 0x00ff0000) >> 6) + - ((r1b0g0r0 & 0x0000ff00) >> 8) + - dmp[x & (DM_WIDTH - 1)]; - rgb02 += 0x10040100 - - ((rgb02 & 0x1e0001e0) >> 5) - - ((rgb02 & 0x00070000) >> 6); - rgb13 = - ((r1b0g0r0 & 0x000000ff) << 20) + - ((g2r2b1g1 & 0xff000000) >> 14) + - ((g2r2b1g1 & 0x00ff0000) >> 16) + - dmp[(x + 1) & (DM_WIDTH - 1)]; - rgb13 += 0x10040100 - - ((rgb13 & 0x1e0001e0) >> 5) - - ((rgb13 & 0x00070000) >> 6); - ((guint32 *)obptr)[0] = - ((rgb02 & 0x0f800000) << 4) | - ((rgb02 & 0x0003f000) << 9) | - ((rgb02 & 0x000000f8) << 13) | - ((rgb13 & 0x0f800000) >> 12) | - ((rgb13 & 0x0003f000) >> 7) | - ((rgb13 & 0x000000f8) >> 3); - rgb02 = - ((g2r2b1g1 & 0x0000ff00) << 12) + - ((g2r2b1g1 & 0x000000ff) << 10) + - ((b3g3r3b2 & 0xff000000) >> 24) + - dmp[(x + 2) & (DM_WIDTH - 1)]; - rgb02 += 0x10040100 - - ((rgb02 & 0x1e0001e0) >> 5) - - ((rgb02 & 0x00070000) >> 6); - rgb13 = - ((b3g3r3b2 & 0x00ff0000) << 4) + - ((b3g3r3b2 & 0x0000ff00) << 2) + - (b3g3r3b2 & 0x000000ff) + - dmp[(x + 3) & (DM_WIDTH - 1)]; - rgb13 += 0x10040100 - - ((rgb13 & 0x1e0001e0) >> 5) - - ((rgb13 & 0x00070000) >> 6); - ((guint32 *)obptr)[1] = - ((rgb02 & 0x0f800000) << 4) | - ((rgb02 & 0x0003f000) << 9) | - ((rgb02 & 0x000000f8) << 13) | - ((rgb13 & 0x0f800000) >> 12) | - ((rgb13 & 0x0003f000) >> 7) | - ((rgb13 & 0x000000f8) >> 3); -#endif - bp2 += 12; - obptr += 8; - } - for (; x < width; x++) - { - gint32 rgb = *bp2++ << 20; - rgb += *bp2++ << 10; - rgb += *bp2++; - rgb += dmp[x & (DM_WIDTH - 1)]; - rgb += 0x10040100 - - ((rgb & 0x1e0001e0) >> 5) - - ((rgb & 0x00070000) >> 6); - - ((unsigned short *)obptr)[0] = - ((rgb & 0x0f800000) >> 12) | - ((rgb & 0x0003f000) >> 7) | - ((rgb & 0x000000f8) >> 3); - obptr += 2; - } - } - bptr += rowstride; - obuf += bpl; - } -} -#else -static void -gdk_rgb_convert_565_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr; - - width += x_align; - height += y_align; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + (x0 - x_align) * 2; - - for (y = y_align; y < height; y++) - { - const guint32 *dmp = DM_565 + ((y & (DM_HEIGHT - 1)) << DM_WIDTH_SHIFT); - guchar *bp2 = bptr; - - for (x = x_align; x < width; x++) + case GDK_RGB_INPUT_RGB: + return in; + case GDK_RGB_INPUT_RGBX: + for (x = 0; x < width; x++, in += 4, p += 3) + p[0] = in[0], p[1] = in[1], p[2] = in[2]; + break; + case GDK_RGB_INPUT_GRAY: + for (x = 0; x < width; x++, p += 3) + p[0] = p[1] = p[2] = in[x]; + break; + case GDK_RGB_INPUT_INDEXED: + for (x = 0; x < width; x++, p += 3) { - gint32 rgb = *bp2++ << 20; - rgb += *bp2++ << 10; - rgb += *bp2++; - rgb += dmp[x & (DM_WIDTH - 1)]; - rgb += 0x10040100 - - ((rgb & 0x1e0001e0) >> 5) - - ((rgb & 0x00070000) >> 6); - - ((unsigned short *)obuf)[x] = - ((rgb & 0x0f800000) >> 12) | - ((rgb & 0x0003f000) >> 7) | - ((rgb & 0x000000f8) >> 3); + guint32 rgb = cmap->colors[in[x]]; + p[0] = rgb >> 16, p[1] = rgb >> 8, p[2] = rgb; } - - bptr += rowstride; - obuf += bpl; + break; + case GDK_RGB_INPUT_RGB48: + case GDK_RGB_INPUT_RGBX64: + for (x = 0; x < width; x++, p += 3) + { + p[0] = in16[0] >> 8, p[1] = in16[1] >> 8, p[2] = in16[2] >> 8; + in16 += input == GDK_RGB_INPUT_RGB48 ? 3 : 4; + } + break; } -} -#endif -#undef GDK_RGB_FAST_BE565_RGB -#undef GDK_RGB_FAST_BE565_GRAY -#undef GDK_RGB_FAST_BE565_DITHER - -static void -gdk_rgb_convert_555 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - guchar r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - ((unsigned short *)obuf)[x] = ((r & 0xf8) << 7) | - ((g & 0xf8) << 2) | - (b >> 3); - } - bptr += rowstride; - obuf += bpl; - } + return stage; } -static void -gdk_rgb_convert_555_br (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - guchar r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 2; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - /* final word is: - g5 g4 g3 b7 b6 b5 b4 b3 0 r7 r6 r5 r4 r3 g7 g6 - */ - ((unsigned short *)obuf)[x] = ((r & 0xf8) >> 1) | - ((g & 0xc0) >> 6) | - ((g & 0x38) << 10) | - ((b & 0xf8) << 5); - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_888_msb (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int y; - guchar *obuf; - gint bpl; - const guchar *bptr; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 3; - for (y = 0; y < height; y++) - { - memcpy (obuf, bptr, width + width + width); - bptr += rowstride; - obuf += bpl; - } -} - -/* todo: optimize this */ -#if G_BYTE_ORDER == G_LITTLE_ENDIAN -#define HAIRY_CONVERT_888 -#endif - -#ifdef HAIRY_CONVERT_888 -static void -gdk_rgb_convert_888_lsb (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - int r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 3; - for (y = 0; y < height; y++) - { - bp2 = bptr; - obptr = obuf; - if (((guintptr)obuf | (guintptr) bp2) & 3) - { - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - *obptr++ = b; - *obptr++ = g; - *obptr++ = r; - bp2 += 3; - } - } - else - { - for (x = 0; x < width - 3; x += 4) - { - guint32 r1b0g0r0; - guint32 g2r2b1g1; - guint32 b3g3r3b2; - - r1b0g0r0 = ((guint32 *)bp2)[0]; - g2r2b1g1 = ((guint32 *)bp2)[1]; - b3g3r3b2 = ((guint32 *)bp2)[2]; - ((guint32 *)obptr)[0] = - (r1b0g0r0 & 0xff00) | - ((r1b0g0r0 & 0xff0000) >> 16) | - (((g2r2b1g1 & 0xff00) | (r1b0g0r0 & 0xff)) << 16); - ((guint32 *)obptr)[1] = - (g2r2b1g1 & 0xff0000ff) | - ((r1b0g0r0 & 0xff000000) >> 16) | - ((b3g3r3b2 & 0xff) << 16); - ((guint32 *)obptr)[2] = - (((g2r2b1g1 & 0xff0000) | (b3g3r3b2 & 0xff000000)) >> 16) | - ((b3g3r3b2 & 0xff00) << 16) | - ((b3g3r3b2 & 0xff0000)); - bp2 += 12; - obptr += 12; - } - for (; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - *obptr++ = b; - *obptr++ = g; - *obptr++ = r; - bp2 += 3; - } - } - bptr += rowstride; - obuf += bpl; - } -} +/* Reading 8-bit RGB a word at a time: four pixels are three loads + * instead of twelve, which matters on CPUs with one load unit. */ +#ifdef __GNUC__ +typedef guint32 __attribute__ ((__may_alias__)) GdkRgbWord; #else -static void -gdk_rgb_convert_888_lsb (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - int r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 3; - for (y = 0; y < height; y++) - { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - obuf[x * 3] = b; - obuf[x * 3 + 1] = g; - obuf[x * 3 + 2] = r; - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; - } -} +typedef guint32 GdkRgbWord; #endif -/* convert 24-bit packed to 32-bit unpacked */ -/* todo: optimize this */ -static void -gdk_rgb_convert_0888 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int y, w; - guchar *obuf, *p; - gint bpl; - const guchar *bptr, *bp2; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 4; - for (y = 0; y < height; y++) - { - bp2 = bptr; - p = obuf; - w = width; - while (w--) - { - p[0] = bp2[2]; - p[1] = bp2[1]; - p[2] = bp2[0]; - p[3] = 0xff; - bp2 += 3; - p += 4; - } - bptr += rowstride; - obuf += bpl; - } -} - -#ifdef USE_MEDIALIB25 -/* convert 24-bit packed to 32-bit unpacked */ -static void -gdk_rgb_convert_0888_medialib (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int y, w; - guchar *obuf, *p; - gint bpl; - const guchar *bptr, *bp2; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 4; - - mlib_VideoColorRGBint_to_BGRAint (obuf, bptr, NULL, 0xff, - width, height, bpl, - rowstride, 0); -} +/* Byte @j of a word as it lies in memory */ +#if G_BYTE_ORDER == G_LITTLE_ENDIAN +#define BYTE_OF(w, j) (((w) >> (8 * (j))) & 0xff) +#define WORD_OF(b0, b1, b2, b3) ((b0) | ((b1) << 8) | ((b2) << 16) | ((guint32) (b3) << 24)) +#else +#define BYTE_OF(w, j) (((w) >> (24 - 8 * (j))) & 0xff) +#define WORD_OF(b0, b1, b2, b3) (((guint32) (b0) << 24) | ((b1) << 16) | ((b2) << 8) | (b3)) #endif -static void -gdk_rgb_convert_0888_br (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int y, w; - guchar *obuf, *p; - gint bpl; - const guchar *bptr, *bp2; +/* Calls PUT (arg, x, r, g, b) for each pixel of a row of 8-bit RGB. */ +#define FOR_EACH_RGB(in, width, PUT, arg) \ + G_STMT_START { \ + const guchar *p_ = (in); \ + gint x_ = 0; \ + \ + if (((gsize) p_ & 3) == 0) \ + for (; x_ + 4 <= (width); x_ += 4, p_ += 12) \ + { \ + const guint32 w0_ = ((const GdkRgbWord *) p_)[0]; \ + const guint32 w1_ = ((const GdkRgbWord *) p_)[1]; \ + const guint32 w2_ = ((const GdkRgbWord *) p_)[2]; \ + \ + PUT (arg, x_, BYTE_OF (w0_, 0), BYTE_OF (w0_, 1), BYTE_OF (w0_, 2)); \ + PUT (arg, x_ + 1, BYTE_OF (w0_, 3), BYTE_OF (w1_, 0), BYTE_OF (w1_, 1)); \ + PUT (arg, x_ + 2, BYTE_OF (w1_, 2), BYTE_OF (w1_, 3), BYTE_OF (w2_, 0)); \ + PUT (arg, x_ + 3, BYTE_OF (w2_, 1), BYTE_OF (w2_, 2), BYTE_OF (w2_, 3)); \ + } \ + for (; x_ < (width); x_++, p_ += 3) \ + PUT (arg, x_, p_[0], p_[1], p_[2]); \ + } G_STMT_END - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 4; - for (y = 0; y < height; y++) +/** TrueColor + */ + +/* The pixel layouts with their own loops. The shifts are constants + * there, so compilers can use insert instructions (rlwimi on PowerPC, + * shifted operands on ARM) instead of table lookups. */ +enum +{ + GDK_RGB_LAYOUT_TABLES, /* anything, through info->tables */ + GDK_RGB_LAYOUT_565, + GDK_RGB_LAYOUT_555, + GDK_RGB_LAYOUT_X888, + GDK_RGB_LAYOUT_X2101010, + GDK_RGB_LAYOUT_BYTES /* 8-bit channels in whole bytes, any order */ +}; + +/* Size of a dither table: 8-bit value plus the largest dither offset */ +#define DTABLE_SIZE 384 + +/* Fills the channel tables and the shifts for 16-bit input. + * + * info->tables holds 256 entries per channel: the bits of the value in + * the pixel, with the fill bits (those of no channel) in the red table. + * Visuals with channels of less than 8 bits get a dither table per + * channel after that: value plus dither offset to pixel bits. The three + * offsets for each of the 64 dither levels are packed in 10-bit lanes. */ +static void +gdk_rgb_init_truecolor (GdkRgbInfo *info, + gint bits_per_pixel) +{ + GdkVisual *visual = info->visual; + const gint shift[3] = { visual->red_shift, visual->green_shift, visual->blue_shift }; + const gint prec[3] = { visual->red_prec, visual->green_prec, visual->blue_prec }; + gboolean ditherable = FALSE, bytes = TRUE; + guint32 fill; + gint c, v; + + fill = ~(visual->red_mask | visual->green_mask | visual->blue_mask); + if (bits_per_pixel < 32) + fill &= (1u << bits_per_pixel) - 1; + + for (c = 0; c < 3; c++) { - bp2 = bptr; - p = obuf; - w = width; - while (w--) - { - p[0] = 0xff; - p[1] = bp2[0]; - p[2] = bp2[1]; - p[3] = bp2[2]; - bp2 += 3; - p += 4; - } - bptr += rowstride; - obuf += bpl; + ditherable |= prec[c] >= 1 && prec[c] < 8; + bytes &= prec[c] == 8 && shift[c] % 8 == 0; } -} -static void -gdk_rgb_convert_8880_br (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf; - gint bpl; - const guchar *bptr, *bp2; - int r, g, b; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * 4; - for (y = 0; y < height; y++) + info->tables = g_new (guint32, 3 * 256 + (ditherable ? 3 * DTABLE_SIZE : 0)); + memset (info->dither_pack, 0, sizeof (info->dither_pack)); + for (c = 0; c < 3; c++) { - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - ((guint32 *)obuf)[x] = (b << 16) | (g << 8) | r; - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; + gint p = MIN (prec[c], 16); + guint32 *dtable = info->tables + 3 * 256 + c * DTABLE_SIZE; + + for (v = 0; v < 256; v++) + info->tables[c * 256 + v] = + (guint32) (p <= 8 ? v >> (8 - p) : (v << (p - 8)) | (v >> (16 - p))) << shift[c]; + + info->shift16[c][0] = 16 - p; + info->shift16[c][1] = shift[c]; + + if (!ditherable) + continue; + + if (p >= 1 && p < 8) + for (v = 0; v < 64; v++) + info->dither_pack[v] |= (guint32) (((c == 1 ? 63 - v : v) << 2) >> p) << (20 - 10 * c); + for (v = 0; v < DTABLE_SIZE; v++) + if (p >= 1 && p < 8) + dtable[v] = (guint32) ((v - (v >> p)) >> (8 - p)) << shift[c]; + else + dtable[v] = info->tables[c * 256 + MIN (v, 255)]; } + for (v = 0; v < 256; v++) + info->tables[v] |= fill; + info->fill = fill; + info->ditherable = ditherable; + + if (bytes && (bits_per_pixel == 24 || bits_per_pixel == 32)) + info->layout = GDK_RGB_LAYOUT_BYTES; + else + info->layout = GDK_RGB_LAYOUT_TABLES; + if (visual->red_mask == 0xf800 && visual->green_mask == 0x7e0 && + visual->blue_mask == 0x1f && bits_per_pixel == 16) + info->layout = GDK_RGB_LAYOUT_565; + else if (visual->red_mask == 0x7c00 && visual->green_mask == 0x3e0 && + visual->blue_mask == 0x1f && bits_per_pixel == 16) + info->layout = GDK_RGB_LAYOUT_555; + else if (visual->red_mask == 0xff0000 && visual->green_mask == 0xff00 && + visual->blue_mask == 0xff && bits_per_pixel == 32) + info->layout = GDK_RGB_LAYOUT_X888; + else if (visual->red_mask == 0x3ff00000 && visual->green_mask == 0xffc00 && + visual->blue_mask == 0x3ff && bits_per_pixel == 32) + info->layout = GDK_RGB_LAYOUT_X2101010; } -#define DEFINE_GDK_RGB_CONVERT_101010(name, high, low, to_order) \ -static void \ -name (GdkRgbInfo *image_info, GdkImage *image, \ - gint x0, gint y0, gint width, gint height, \ - const guchar *buf, int rowstride, \ - gint x_align, gint y_align, GdkRgbCmap *cmap) \ -{ \ - int y, w; \ - guchar *obuf, *p; \ - gint bpl; \ - const guchar *bptr, *bp2; \ - guint32 r, g, b; \ - guint32 pixel; \ - guint32 alpha_mask; \ - \ - alpha_mask = image_info->visual->depth == 32 ? 0xc0000000U : 0; \ - \ - bptr = buf; \ - bpl = image->bpl; \ - obuf = ((guchar *) image->mem) + y0 * bpl + x0 * 4; \ - \ - for (y = 0; y < height; y++) \ - { \ - bp2 = bptr; \ - p = obuf; \ - w = width; \ - \ - while (w--) \ - { \ - r = *bp2++; \ - g = *bp2++; \ - b = *bp2++; \ - \ - r = (r << 2) | (r >> 6); \ - g = (g << 2) | (g >> 6); \ - b = (b << 2) | (b >> 6); \ - \ - pixel = alpha_mask | \ - (high << 20) | \ - (g << 10) | \ - low; \ - \ - *((guint32 *) p) = to_order (pixel); \ - p += 4; \ - } \ - \ - bptr += rowstride; \ - obuf += bpl; \ - } \ +#define T(c, v) (tables[(c) * 256 + (v)]) +#define PUT_PIXEL(PIX, x, r, g, b) (out[x] = PIX (r, g, b)) + +/* Makes a row of pixels in the byte order of the machine, from 8-bit + * values with PIX8 and from 16-bit values with PIX16. Indexed and gray + * input can come with a lut of finished pixels. */ +#define DEFINE_TRUECOLOR_ROW(name, type, PIX8, PIX16) \ +static void \ +name (GdkRgbInfo *info, type *out, GdkRgbInput input, \ + const guchar *in, gint width, const guint32 *lut) \ +{ \ + const guint32 *tables = info->tables; \ + const guint16 *in16 = (const guint16 *) in; \ + const guint32 fill = info->fill; \ + const gint r0 = info->shift16[0][0], r1 = info->shift16[0][1]; \ + const gint g0 = info->shift16[1][0], g1 = info->shift16[1][1]; \ + const gint b0 = info->shift16[2][0], b1 = info->shift16[2][1]; \ + gint x; \ + \ + switch (input) \ + { \ + case GDK_RGB_INPUT_RGB: \ + FOR_EACH_RGB (in, width, PUT_PIXEL, PIX8); \ + break; \ + case GDK_RGB_INPUT_RGBX: \ + for (x = 0; x < width; x++, in += 4) \ + out[x] = PIX8 (in[0], in[1], in[2]); \ + break; \ + case GDK_RGB_INPUT_GRAY: \ + if (lut) \ + for (x = 0; x < width; x++) \ + out[x] = lut[in[x]]; \ + else \ + for (x = 0; x < width; x++) \ + out[x] = PIX8 (in[x], in[x], in[x]); \ + break; \ + case GDK_RGB_INPUT_INDEXED: \ + for (x = 0; x < width; x++) \ + out[x] = lut[in[x]]; \ + break; \ + case GDK_RGB_INPUT_RGB48: \ + for (x = 0; x < width; x++, in16 += 3) \ + out[x] = PIX16 ((guint32) in16[0], (guint32) in16[1], (guint32) in16[2]); \ + break; \ + case GDK_RGB_INPUT_RGBX64: \ + for (x = 0; x < width; x++, in16 += 4) \ + out[x] = PIX16 ((guint32) in16[0], (guint32) in16[1], (guint32) in16[2]); \ + break; \ + } \ + (void) tables; (void) fill; \ + (void) r0; (void) r1; (void) g0; (void) g1; (void) b0; (void) b1; \ } -DEFINE_GDK_RGB_CONVERT_101010 (gdk_rgb_convert_101010_r_low_lsb, - b, r, GUINT32_TO_LE) -DEFINE_GDK_RGB_CONVERT_101010 (gdk_rgb_convert_101010_b_low_lsb, - r, b, GUINT32_TO_LE) -DEFINE_GDK_RGB_CONVERT_101010 (gdk_rgb_convert_101010_r_low_msb, - b, r, GUINT32_TO_BE) -DEFINE_GDK_RGB_CONVERT_101010 (gdk_rgb_convert_101010_b_low_msb, - r, b, GUINT32_TO_BE) +#define TABLES8(r, g, b) (T (0, r) | T (1, g) | T (2, b)) +#define TABLES16(r, g, b) (((r >> r0) << r1) | ((g >> g0) << g1) | ((b >> b0) << b1) | fill) +DEFINE_TRUECOLOR_ROW (gdk_rgb_truecolor_row16, guint16, TABLES8, TABLES16) +DEFINE_TRUECOLOR_ROW (gdk_rgb_truecolor_row32, guint32, TABLES8, TABLES16) -#undef DEFINE_GDK_RGB_CONVERT_101010 +#define RGB565_8(r, g, b) (((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3)) +#define RGB565_16(r, g, b) ((r & 0xf800) | ((g & 0xfc00) >> 5) | (b >> 11)) +DEFINE_TRUECOLOR_ROW (gdk_rgb_row_565, guint16, RGB565_8, RGB565_16) -/* Generic truecolor/directcolor conversion function. Slow, but these - are oddball modes. */ -static void -gdk_rgb_convert_truecolor_lsb (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) +#define RGB555_8(r, g, b) (((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3) | fill) +#define RGB555_16(r, g, b) (((r & 0xf800) >> 1) | ((g & 0xf800) >> 6) | (b >> 11) | fill) +DEFINE_TRUECOLOR_ROW (gdk_rgb_row_555, guint16, RGB555_8, RGB555_16) + +#define X888_8(r, g, b) (((guint32) (r) << 16) | ((g) << 8) | (b) | fill) +#define X888_16(r, g, b) (((r & 0xff00) << 8) | (g & 0xff00) | (b >> 8) | fill) +DEFINE_TRUECOLOR_ROW (gdk_rgb_row_x888, guint32, X888_8, X888_16) + +#define X2101010_8(r, g, b) (((guint32) (r) << 22) | ((guint32) ((r) & 0xc0) << 14) | \ + ((g) << 12) | (((g) & 0xc0) << 4) | \ + ((b) << 2) | ((b) >> 6) | fill) +#define X2101010_16(r, g, b) (((r & 0xffc0) << 14) | ((g & 0xffc0) << 4) | (b >> 6) | fill) +DEFINE_TRUECOLOR_ROW (gdk_rgb_row_x2101010, guint32, X2101010_8, X2101010_16) + +#undef DEFINE_TRUECOLOR_ROW + +/* Ordered dithering of 8-bit RGB: the packed offsets are added to all + * three channels at once, the dither tables do the rest. */ +#define PUT_DITHERED(unused, x, r, g, b) \ + G_STMT_START { \ + const guint32 v_ = (((guint32) (r) << 20) | ((g) << 10) | (b)) + \ + pack[dm[(x_dith + (x)) & (DM_WIDTH - 1)]]; \ + out[x] = dr[v_ >> 20] | dg[(v_ >> 10) & 0x3ff] | db[v_ & 0x3ff] | fill; \ + } G_STMT_END + +#define DEFINE_TRUECOLOR_ROW_DITHER(name, type) \ +static void \ +name (GdkRgbInfo *info, type *out, const guchar *in, gint width, \ + const guchar *dm, gint x_dith) \ +{ \ + const guint32 *dr = info->tables + 3 * 256; \ + const guint32 *dg = dr + DTABLE_SIZE; \ + const guint32 *db = dg + DTABLE_SIZE; \ + const guint32 *pack = info->dither_pack; \ + const guint32 fill = info->fill; \ + \ + FOR_EACH_RGB (in, width, PUT_DITHERED, 0); \ +} + +DEFINE_TRUECOLOR_ROW_DITHER (gdk_rgb_truecolor_row16_dither, guint16) +DEFINE_TRUECOLOR_ROW_DITHER (gdk_rgb_truecolor_row32_dither, guint32) + +#undef DEFINE_TRUECOLOR_ROW_DITHER +#undef PUT_DITHERED +#undef PUT_PIXEL +#undef T + +/* Writes 24 and 32 bit pixels with 8-bit channels byte by byte, in any + * channel order and byte order. Returns FALSE for other input. */ +static gboolean +gdk_rgb_bytes_row (GdkRgbInfo *info, + guchar *out, + gint nbytes, + gboolean msb_first, + GdkRgbInput input, + const guchar *in, + gint width) { - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - gint r, g, b; - gint r_right, r_left; - gint g_right, g_left; - gint b_right, b_left; - gint bpp; - guint32 pixel; - guint32 alpha_mask = gdk_rgb_alpha_mask (image_info); - gint i; + GdkVisual *visual = info->visual; + gint r, g, b, f, o, k, step, x; + guchar fill; - r_right = 8 - image_info->visual->red_prec; - r_left = image_info->visual->red_shift; - g_right = 8 - image_info->visual->green_prec; - g_left = image_info->visual->green_shift; - b_right = 8 - image_info->visual->blue_prec; - b_left = image_info->visual->blue_shift; - bpp = image_info->bpp; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * bpp; - for (y = 0; y < height; y++) + switch (input) { - obptr = obuf; - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - pixel = ((r >> r_right) << r_left) | - ((g >> g_right) << g_left) | - ((b >> b_right) << b_left) | alpha_mask; - for (i = 0; i < bpp; i++) - { - *obptr++ = pixel & 0xff; - pixel >>= 8; - } - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; + case GDK_RGB_INPUT_RGB: step = 3; o = 0; k = 1; break; + case GDK_RGB_INPUT_RGBX: step = 4; o = 0; k = 1; break; + case GDK_RGB_INPUT_GRAY: step = 1; o = 0; k = 0; break; + case GDK_RGB_INPUT_RGB48: step = 6; o = G_BYTE_ORDER == G_LITTLE_ENDIAN; k = 2; break; + case GDK_RGB_INPUT_RGBX64: step = 8; o = G_BYTE_ORDER == G_LITTLE_ENDIAN; k = 2; break; + default: + return FALSE; } -} -static void -gdk_rgb_convert_truecolor_lsb_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - gint r, g, b; - gint r_right, r_left, r_prec; - gint g_right, g_left, g_prec; - gint b_right, b_left, b_prec; - gint bpp; - guint32 pixel; - guint32 alpha_mask = gdk_rgb_alpha_mask (image_info); - gint i; - gint dith; - gint r1, g1, b1; - const guchar *dmp; - - r_right = 8 - image_info->visual->red_prec; - r_left = image_info->visual->red_shift; - r_prec = image_info->visual->red_prec; - g_right = 8 - image_info->visual->green_prec; - g_left = image_info->visual->green_shift; - g_prec = image_info->visual->green_prec; - b_right = 8 - image_info->visual->blue_prec; - b_left = image_info->visual->blue_shift; - b_prec = image_info->visual->blue_prec; - bpp = image_info->bpp; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * bpp; - for (y = 0; y < height; y++) + r = visual->red_shift / 8; + g = visual->green_shift / 8; + b = visual->blue_shift / 8; + f = 6 - r - g - b; /* the byte of no channel, when 4 */ + fill = info->fill >> (f * 8); + if (msb_first) { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - obptr = obuf; - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - dith = dmp[(x_align + x) & (DM_WIDTH - 1)] << 2; - r1 = r + (dith >> r_prec); - g1 = g + ((252 - dith) >> g_prec); - b1 = b + (dith >> b_prec); - pixel = (((r1 - (r1 >> r_prec)) >> r_right) << r_left) | - (((g1 - (g1 >> g_prec)) >> g_right) << g_left) | - (((b1 - (b1 >> b_prec)) >> b_right) << b_left) | alpha_mask; - for (i = 0; i < bpp; i++) - { - *obptr++ = pixel & 0xff; - pixel >>= 8; - } - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; + r = nbytes - 1 - r; + g = nbytes - 1 - g; + b = nbytes - 1 - b; + f = nbytes - 1 - f; } -} -static void -gdk_rgb_convert_truecolor_msb (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - gint r, g, b; - gint r_right, r_left; - gint g_right, g_left; - gint b_right, b_left; - gint bpp; - guint32 pixel; - guint32 alpha_mask = gdk_rgb_alpha_mask (image_info); - gint shift, shift_init; - - r_right = 8 - image_info->visual->red_prec; - r_left = image_info->visual->red_shift; - g_right = 8 - image_info->visual->green_prec; - g_left = image_info->visual->green_shift; - b_right = 8 - image_info->visual->blue_prec; - b_left = image_info->visual->blue_shift; - bpp = image_info->bpp; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * bpp; - shift_init = (bpp - 1) << 3; - for (y = 0; y < height; y++) + if (nbytes == 3 && step == 3 && r == 0 && g == 1 && b == 2) + memcpy (out, in, width * 3); + else if (nbytes == 3 && step == 3 && r == 2 && g == 1 && b == 0) { - obptr = obuf; - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - pixel = ((r >> r_right) << r_left) | - ((g >> g_right) << g_left) | - ((b >> b_right) << b_left) | alpha_mask; - for (shift = shift_init; shift >= 0; shift -= 8) - { - *obptr++ = (pixel >> shift) & 0xff; - } - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_truecolor_msb_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - guchar *obuf, *obptr; - gint bpl; - const guchar *bptr, *bp2; - gint r, g, b; - gint r_right, r_left, r_prec; - gint g_right, g_left, g_prec; - gint b_right, b_left, b_prec; - gint bpp; - guint32 pixel; - guint32 alpha_mask = gdk_rgb_alpha_mask (image_info); - gint shift, shift_init; - gint dith; - gint r1, g1, b1; - const guchar *dmp; - - r_right = 8 - image_info->visual->red_prec; - r_left = image_info->visual->red_shift; - r_prec = image_info->visual->red_prec; - g_right = 8 - image_info->visual->green_prec; - g_left = image_info->visual->green_shift; - g_prec = image_info->visual->green_prec; - b_right = 8 - image_info->visual->blue_prec; - b_left = image_info->visual->blue_shift; - b_prec = image_info->visual->blue_prec; - bpp = image_info->bpp; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0 * bpp; - shift_init = (bpp - 1) << 3; - for (y = 0; y < height; y++) - { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - obptr = obuf; - bp2 = bptr; - for (x = 0; x < width; x++) - { - r = bp2[0]; - g = bp2[1]; - b = bp2[2]; - dith = dmp[(x_align + x) & (DM_WIDTH - 1)] << 2; - r1 = r + (dith >> r_prec); - g1 = g + ((252 - dith) >> g_prec); - b1 = b + (dith >> b_prec); - pixel = (((r1 - (r1 >> r_prec)) >> r_right) << r_left) | - (((g1 - (g1 >> g_prec)) >> g_right) << g_left) | - (((b1 - (b1 >> b_prec)) >> b_right) << b_left) | alpha_mask; - for (shift = shift_init; shift >= 0; shift -= 8) - { - *obptr++ = (pixel >> shift) & 0xff; - } - bp2 += 3; - } - bptr += rowstride; - obuf += bpl; - } -} - -/* This actually works for depths from 3 to 7 */ -static void -gdk_rgb_convert_4 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint dith; - guchar *colorcube_d = image_info->colorcube_d; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - for (y = 0; y < height; y++) - { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x += 1) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 3; - obptr[0] = colorcube_d[(((r + dith) & 0x100) >> 2) | - (((g + 258 - dith) & 0x100) >> 5) | - (((b + dith) & 0x100) >> 8)]; - obptr++; - } - bptr += rowstride; - obuf += bpl; - } -} - -static void -gdk_rgb_convert_4_pack (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y, ix; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint dith; - guchar *colorcube_d = image_info->colorcube_d; - guchar pix0, pix1; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + (x0 >> 1); - for (y = 0; y < height; y++) - { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - bp2 = bptr; - obptr = obuf; - + /* BGR, the usual 24-bit layout: four pixels in three words */ x = 0; - if (x0 & 1) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 3; - ix = (((r + dith) & 0x100) >> 2) | - (((g + 258 - dith) & 0x100) >> 5) | - (((b + dith) & 0x100) >> 8); - pix1 = (colorcube_d[ix]); - *obptr = (*obptr & 0xF0) | pix1; - obptr++; - x++; - } - while (x + 1 < width) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 3; - ix = (((r + dith) & 0x100) >> 2) | - (((g + 258 - dith) & 0x100) >> 5) | - (((b + dith) & 0x100) >> 8); - pix0 = (colorcube_d[ix]); - x++; - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 3; - ix = (((r + dith) & 0x100) >> 2) | - (((g + 258 - dith) & 0x100) >> 5) | - (((b + dith) & 0x100) >> 8); - pix1 = (colorcube_d[ix]); - x++; - } - *obptr++ = (pix0 << 4) | pix1; - } - if (x < width) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) | 3; - ix = (((r + dith) & 0x100) >> 2) | - (((g + 258 - dith) & 0x100) >> 5) | - (((b + dith) & 0x100) >> 8); - pix0 = (colorcube_d[ix]); - *obptr = (pix0 << 4) | (*obptr & 0x0F); - } - bptr += rowstride; - obuf += bpl; + if ((((gsize) in | (gsize) out) & 3) == 0) + for (; x + 4 <= width; x += 4, in += 12, out += 12) + { + const guint32 w0 = ((const GdkRgbWord *) in)[0]; + const guint32 w1 = ((const GdkRgbWord *) in)[1]; + const guint32 w2 = ((const GdkRgbWord *) in)[2]; + + ((GdkRgbWord *) out)[0] = WORD_OF (BYTE_OF (w0, 2), BYTE_OF (w0, 1), + BYTE_OF (w0, 0), BYTE_OF (w1, 1)); + ((GdkRgbWord *) out)[1] = WORD_OF (BYTE_OF (w1, 0), BYTE_OF (w0, 3), + BYTE_OF (w2, 0), BYTE_OF (w1, 3)); + ((GdkRgbWord *) out)[2] = WORD_OF (BYTE_OF (w1, 2), BYTE_OF (w2, 3), + BYTE_OF (w2, 2), BYTE_OF (w2, 1)); + } + for (; x < width; x++, in += 3, out += 3) + { + out[0] = in[2]; + out[1] = in[1]; + out[2] = in[0]; + } } + else if (nbytes == 3) + for (x = 0; x < width; x++, in += step, out += 3) + { + out[r] = in[o]; + out[g] = in[o + k]; + out[b] = in[o + 2 * k]; + } + else + for (x = 0; x < width; x++, in += step, out += 4) + { + out[r] = in[o]; + out[g] = in[o + k]; + out[b] = in[o + 2 * k]; + out[f] = fill; + } + + return TRUE; } -/* This actually works for depths from 3 to 7 */ +/* Stores pixels of the machine's byte order in the image. This is for + * images of the other byte order (remote displays) and 24-bit pixels. */ static void -gdk_rgb_convert_gray4 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_store_row (guchar *out, + const guint32 *pixels, + gint width, + gint bits_per_pixel, + gboolean msb_first) { - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - gint shift; + gint x; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - shift = 9 - image_info->visual->depth; - for (y = 0; y < height; y++) + switch (bits_per_pixel) { - bp2 = bptr; - obptr = obuf; + case 8: for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - obptr[0] = (g + ((b + r) >> 1)) >> shift; - obptr++; - } - bptr += rowstride; - obuf += bpl; + out[x] = pixels[x]; + break; + case 16: + if (msb_first) + for (x = 0; x < width; x++, out += 2) + out[0] = pixels[x] >> 8, out[1] = pixels[x]; + else + for (x = 0; x < width; x++, out += 2) + out[0] = pixels[x], out[1] = pixels[x] >> 8; + break; + case 24: + if (msb_first) + for (x = 0; x < width; x++, out += 3) + out[0] = pixels[x] >> 16, out[1] = pixels[x] >> 8, out[2] = pixels[x]; + else + for (x = 0; x < width; x++, out += 3) + out[0] = pixels[x], out[1] = pixels[x] >> 8, out[2] = pixels[x] >> 16; + break; + case 32: + if (msb_first) + for (x = 0; x < width; x++, out += 4) + out[0] = pixels[x] >> 24, out[1] = pixels[x] >> 16, out[2] = pixels[x] >> 8, out[3] = pixels[x]; + else + for (x = 0; x < width; x++, out += 4) + out[0] = pixels[x], out[1] = pixels[x] >> 8, out[2] = pixels[x] >> 16, out[3] = pixels[x] >> 24; + break; } } +/* Converts a row of TrueColor pixels. */ static void -gdk_rgb_convert_gray4_pack (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_truecolor_row (GdkRgbInfo *info, + guchar *out, + guint32 *row, + gint bits, + gboolean msb_first, + GdkRgbInput input, + const guchar *in, + gint width, + const guint32 *lut, + const guchar *dm, + gint x_dith) { - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - gint shift; - guchar pix0, pix1; - /* todo: this is hardcoded to big-endian. Make endian-agile. */ + gboolean native = msb_first == (G_BYTE_ORDER == G_BIG_ENDIAN) && bits != 24; + guint16 *out16 = (guint16 *) out; + guint32 *out32 = (guint32 *) out; - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + (x0 >> 1); - shift = 9 - image_info->visual->depth; - for (y = 0; y < height; y++) + if (dm) { - bp2 = bptr; - obptr = obuf; - - x = 0; - if (x0 & 1) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - pix1 = (g + ((b + r) >> 1)) >> shift; - *obptr = (*obptr & 0xF0) | pix1; - obptr++; - x++; - } - while (x < width) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - pix0 = (g + ((b + r) >> 1)) >> shift; - x++; - if (x == width) - pix1 = (*obptr & 0x0F); - else - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - pix1 = (g + ((b + r) >> 1)) >> shift; - x++; - } - *obptr++ = (pix0 << 4) | pix1; - } - bptr += rowstride; - obuf += bpl; + if (native && bits == 16) + gdk_rgb_truecolor_row16_dither (info, out16, in, width, dm, x_dith); + else if (native && bits == 32) + gdk_rgb_truecolor_row32_dither (info, out32, in, width, dm, x_dith); + else + { + gdk_rgb_truecolor_row32_dither (info, row, in, width, dm, x_dith); + gdk_rgb_store_row (out, row, width, bits, msb_first); + } + return; } -} -/* This actually works for depths from 3 to 7 */ -static void -gdk_rgb_convert_gray4_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint prec, right; - gint gray; - - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + x0; - prec = image_info->visual->depth; - right = 8 - prec; - for (y = 0; y < height; y++) + if (info->layout == GDK_RGB_LAYOUT_BYTES || + (info->layout == GDK_RGB_LAYOUT_X888 && !native)) { - bp2 = bptr; - obptr = obuf; - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - gray = (g + ((b + r) >> 1)) >> 1; - gray += (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) >> prec; - obptr[0] = (gray - (gray >> prec)) >> right; - obptr++; - } - bptr += rowstride; - obuf += bpl; + if (gdk_rgb_bytes_row (info, out, bits / 8, msb_first, input, in, width)) + return; } -} -static void -gdk_rgb_convert_gray4_d_pack (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint prec, right; - gint gray; - guchar pix0, pix1; - /* todo: this is hardcoded to big-endian. Make endian-agile. */ + if (native && bits == 16) + switch (info->layout) + { + case GDK_RGB_LAYOUT_565: + gdk_rgb_row_565 (info, out16, input, in, width, lut); + return; + case GDK_RGB_LAYOUT_555: + gdk_rgb_row_555 (info, out16, input, in, width, lut); + return; + default: + gdk_rgb_truecolor_row16 (info, out16, input, in, width, lut); + return; + } - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + (x0 >> 1); - prec = image_info->visual->depth; - right = 8 - prec; - for (y = 0; y < height; y++) + if (!native || bits != 32) + out32 = row; + switch (info->layout) { - bp2 = bptr; - obptr = obuf; - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - - x = 0; - if (x0 & 1) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - gray = (g + ((b + r) >> 1)) >> 1; - gray += (dmp[(x_align + x + 1) & (DM_WIDTH - 1)] << 2) >> prec; - pix1 = (gray - (gray >> prec)) >> right; - *obptr = (*obptr & 0xF0) | pix1; - obptr++; - x++; - } - while (x < width) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - gray = (g + ((b + r) >> 1)) >> 1; - gray += (dmp[(x_align + x) & (DM_WIDTH - 1)] << 2) >> prec; - pix0 = (gray - (gray >> prec)) >> right; - x++; - if (x == width) - pix1 = (*obptr & 0x0F); - else - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - gray = (g + ((b + r) >> 1)) >> 1; - gray += (dmp[(x_align + x + 1) & (DM_WIDTH - 1)] << 2) >> prec; - pix1 = (gray - (gray >> prec)) >> right; - x++; - } - *obptr++ = (pix0 << 4) | pix1; - } - bptr += rowstride; - obuf += bpl; + case GDK_RGB_LAYOUT_X888: + gdk_rgb_row_x888 (info, out32, input, in, width, lut); + break; + case GDK_RGB_LAYOUT_X2101010: + gdk_rgb_row_x2101010 (info, out32, input, in, width, lut); + break; + default: + gdk_rgb_truecolor_row32 (info, out32, input, in, width, lut); + break; } + if (out32 == row) + gdk_rgb_store_row (out, row, width, bits, msb_first); } -static void -gdk_rgb_convert_1 (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, int rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) -{ - int x, y; - gint bpl; - guchar *obuf, *obptr; - const guchar *bptr, *bp2; - gint r, g, b; - const guchar *dmp; - gint dith; - guchar byte; +/** Palettes and gray levels + */ - bptr = buf; - bpl = image->bpl; - obuf = ((guchar *)image->mem) + y0 * bpl + (x0 >> 3); - byte = 0; /* unnecessary, but it keeps gcc from complaining */ - for (y = 0; y < height; y++) +/* Color cube of up to 16 levels per channel. */ +#define PUT_CUBE(cube, x, r, g, b) (out[x] = cube[(((r) & 0xf0) << 4) | ((g) & 0xf0) | ((b) >> 4)]) + +static void +gdk_rgb_index_row_cube (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) +{ + const guchar *cube = info->colorcube; + + FOR_EACH_RGB (in, width, PUT_CUBE, cube); +} + +#undef PUT_CUBE + +static void +gdk_rgb_index_row_cube_dither (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) +{ + gint rs = info->nred_shades - 1; + gint gs = info->ngreen_shades - 1; + gint bs = info->nblue_shades - 1; + gint x; + + for (x = 0; x < width; x++, in += 3) { - dmp = DM[(y_align + y) & (DM_HEIGHT - 1)]; - bp2 = bptr; - obptr = obuf; - for (x = 0; x < width; x++) - { - r = *bp2++; - g = *bp2++; - b = *bp2++; - dith = (dmp[(x_align + x) & (DM_WIDTH - 1)] << 4) | 4; - byte += byte + (r + g + g + b + dith > 1020); - if ((x & 7) == 7) - { - obptr[0] = byte; - obptr++; - } - } - if (x & 7) - obptr[0] = byte << (8 - (x & 7)); - bptr += rowstride; - obuf += bpl; + gint dith = (dm[(x_dith + x) & (DM_WIDTH - 1)] << 2) | 7; + gint r = (in[0] * rs + dith) >> 8; + gint g = (in[1] * gs + 262 - dith) >> 8; + gint b = (in[2] * bs + dith) >> 8; + + out[x] = info->colorcube_d[(r << 6) | (g << 3) | b]; } } -/* Returns a pointer to the stage buffer. */ -static guchar * -gdk_rgb_ensure_stage (GdkRgbInfo *image_info) -{ - if (image_info->stage_buf == NULL) - image_info->stage_buf = g_malloc (GDK_SCRATCH_IMAGE_HEIGHT * STAGE_ROWSTRIDE); - return image_info->stage_buf; -} - -/* This is slow. Speed me up, please. */ +/* Two levels per channel (3 to 7 bit color displays). */ static void -gdk_rgb_32_to_stage (GdkRgbInfo *image_info, - const guchar *buf, gint rowstride, gint width, gint height) +gdk_rgb_index_row_cube_222 (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) { - gint x, y; - const guchar *pi_start; - guchar *po_start; - const guchar *pi; - guchar *po; + gint x; - pi_start = buf; - po_start = gdk_rgb_ensure_stage (image_info); - for (y = 0; y < height; y++) + for (x = 0; x < width; x++, in += 3) { - pi = pi_start; - po = po_start; - for (x = 0; x < width; x++) - { - *po++ = *pi++; - *po++ = *pi++; - *po++ = *pi++; - pi++; - } - pi_start += rowstride; - po_start += STAGE_ROWSTRIDE; + gint dith = (dm[(x_dith + x) & (DM_WIDTH - 1)] << 2) | 3; + + out[x] = info->colorcube_d[(((in[0] + dith) & 0x100) >> 2) | + (((in[1] + 258 - dith) & 0x100) >> 5) | + (((in[2] + dith) & 0x100) >> 8)]; } } -/* Generic 32bit RGB conversion function - convert to 24bit packed, then - go from there. */ static void -gdk_rgb_convert_32_generic (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_index_row_gray (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) { - gdk_rgb_32_to_stage (image_info, buf, rowstride, width, height); + gint shift = 9 - info->visual->depth; + gint x; - (*image_info->conv) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); + for (x = 0; x < width; x++, in += 3) + out[x] = (in[1] + ((in[2] + in[0]) >> 1)) >> shift; } -/* Generic 32bit RGB conversion function - convert to 24bit packed, then - go from there. */ static void -gdk_rgb_convert_32_generic_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_index_row_gray_dither (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) { - gdk_rgb_32_to_stage (image_info, buf, rowstride, width, height); + gint prec = info->visual->depth; + gint x; - (*image_info->conv_d) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); -} - -/* This is slow. Speed me up, please. */ -static void -gdk_rgb_gray_to_stage (GdkRgbInfo *image_info, - const guchar *buf, gint rowstride, gint width, gint height) -{ - gint x, y; - const guchar *pi_start; - guchar *po_start; - const guchar *pi; - guchar *po; - guchar gray; - - pi_start = buf; - po_start = gdk_rgb_ensure_stage (image_info); - for (y = 0; y < height; y++) + for (x = 0; x < width; x++, in += 3) { - pi = pi_start; - po = po_start; - for (x = 0; x < width; x++) - { - gray = *pi++; - *po++ = gray; - *po++ = gray; - *po++ = gray; - } - pi_start += rowstride; - po_start += STAGE_ROWSTRIDE; + gint gray = (in[1] + ((in[2] + in[0]) >> 1)) >> 1; + + gray += (dm[(x_dith + x) & (DM_WIDTH - 1)] << 2) >> prec; + out[x] = (gray - (gray >> prec)) >> (8 - prec); } } -/* Generic gray conversion function - convert to 24bit packed, then go - from there. */ +/* Black and white. */ static void -gdk_rgb_convert_gray_generic (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_index_row_mono (GdkRgbInfo *info, guchar *out, const guchar *in, + gint width, const guchar *dm, gint x_dith) { - gdk_rgb_gray_to_stage (image_info, buf, rowstride, width, height); + gint x; - (*image_info->conv) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); + for (x = 0; x < width; x++, in += 3) + out[x] = in[0] + in[1] + in[1] + in[2] + + ((dm[(x_dith + x) & (DM_WIDTH - 1)] << 4) | 4) > 1020; } +/* Packs pixels of fewer than 8 bits, keeping the other pixels of a + * partly covered first and last byte. */ static void -gdk_rgb_convert_gray_generic_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) +gdk_rgb_pack_row (guchar *out, + gint x0, + const guchar *pixels, + gint width, + gint bits_per_pixel, + gboolean msb_first) { - gdk_rgb_gray_to_stage (image_info, buf, rowstride, width, height); + const guint mask = (1 << bits_per_pixel) - 1; + gint bit = (x0 * bits_per_pixel) & 7; + gint x = 0, n; - (*image_info->conv_d) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); -} +#define PACK_ONE() \ + G_STMT_START { \ + const gint s_ = msb_first ? 8 - bits_per_pixel - bit : bit; \ + \ + *out = (*out & ~(mask << s_)) | ((pixels[x++] & mask) << s_); \ + bit += bits_per_pixel; \ + if (bit == 8) \ + bit = 0, out++; \ + } G_STMT_END +#define P(k) (pixels[x + (msb_first ? (k) : n - 1 - (k))] & mask) -/* Render grayscale using indexed method. */ -static void -gdk_rgb_convert_gray_cmap (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - (*image_info->conv_indexed) (image_info, image, x0, y0, width, height, - buf, rowstride, - x_align, y_align, image_info->gray_cmap); -} + out += (x0 * bits_per_pixel) >> 3; + while (bit != 0 && x < width) + PACK_ONE (); -#if 0 -static void -gdk_rgb_convert_gray_cmap_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - (*image_info->conv_indexed_d) (image_info, image, x0, y0, width, height, - buf, rowstride, - x_align, y_align, image_info->gray_cmap); -} -#endif - -/* This is slow. Speed me up, please. */ -static void -gdk_rgb_indexed_to_stage (GdkRgbInfo *image_info, - const guchar *buf, gint rowstride, gint width, gint height, - GdkRgbCmap *cmap) -{ - gint x, y; - const guchar *pi_start; - guchar *po_start; - const guchar *pi; - guchar *po; - gint rgb; - - pi_start = buf; - po_start = gdk_rgb_ensure_stage (image_info); - for (y = 0; y < height; y++) + /* whole bytes */ + switch (bits_per_pixel) { - pi = pi_start; - po = po_start; - for (x = 0; x < width; x++) - { - rgb = cmap->colors[*pi++]; - *po++ = rgb >> 16; - *po++ = (rgb >> 8) & 0xff; - *po++ = rgb & 0xff; - } - pi_start += rowstride; - po_start += STAGE_ROWSTRIDE; + case 1: + for (n = 8; x + n <= width; x += n) + *out++ = (P (0) << 7) | (P (1) << 6) | (P (2) << 5) | (P (3) << 4) | + (P (4) << 3) | (P (5) << 2) | (P (6) << 1) | P (7); + break; + case 2: + for (n = 4; x + n <= width; x += n) + *out++ = (P (0) << 6) | (P (1) << 4) | (P (2) << 2) | P (3); + break; + case 4: + for (n = 2; x + n <= width; x += n) + *out++ = (P (0) << 4) | P (1); + break; } + + while (x < width) + PACK_ONE (); + +#undef P +#undef PACK_ONE } -/* Generic gray conversion function - convert to 24bit packed, then go - from there. */ -static void -gdk_rgb_convert_indexed_generic (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, GdkRgbCmap *cmap) -{ - gdk_rgb_indexed_to_stage (image_info, buf, rowstride, width, height, cmap); +#undef FOR_EACH_RGB +#undef WORD_OF +#undef BYTE_OF - (*image_info->conv) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); -} +/** Setup and driver + */ static void -gdk_rgb_convert_indexed_generic_d (GdkRgbInfo *image_info, GdkImage *image, - gint x0, gint y0, gint width, gint height, - const guchar *buf, gint rowstride, - gint x_align, gint y_align, - GdkRgbCmap *cmap) +gdk_rgb_select_conv (GdkRgbInfo *info) { - gdk_rgb_indexed_to_stage (image_info, buf, rowstride, width, height, cmap); + GdkVisual *visual = info->visual; + GdkVisualType type = visual->type; + gint depth = visual->depth; + gint bits = info->bits_per_pixel; + gboolean gray = type == GDK_VISUAL_STATIC_GRAY || type == GDK_VISUAL_GRAYSCALE; - (*image_info->conv_d) (image_info, image, x0, y0, width, height, - image_info->stage_buf, STAGE_ROWSTRIDE, - x_align, y_align, cmap); -} - -/* Select a conversion function based on the visual and a - representative image. */ -static void -gdk_rgb_select_conv (GdkRgbInfo *image_info) -{ - GdkByteOrder byte_order; - gint depth, bpp, byterev; - GdkVisualType vtype; - guint32 red_mask, green_mask, blue_mask; - GdkRgbConvFunc conv, conv_d; - GdkRgbConvFunc conv_32, conv_32_d; - GdkRgbConvFunc conv_gray, conv_gray_d; - GdkRgbConvFunc conv_indexed, conv_indexed_d; - gboolean mask_rgb, mask_bgr; - GdkScreen *screen = gdk_visual_get_screen (image_info->visual); - - depth = image_info->visual->depth; - - bpp = _gdk_windowing_get_bits_for_depth (gdk_screen_get_display (screen), - image_info->visual->depth); - - byte_order = image_info->visual->byte_order; if (gdk_rgb_verbose) g_print ("Chose visual type=%d depth=%d, image bpp=%d, %s first\n", - image_info->visual->type, image_info->visual->depth, - bpp, byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); + type, depth, bits, visual->byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); -#if G_BYTE_ORDER == G_BIG_ENDIAN - byterev = (byte_order == GDK_LSB_FIRST); -#else - byterev = (byte_order == GDK_MSB_FIRST); -#endif + info->dith_default = FALSE; + info->index_row = info->index_row_dither = NULL; - vtype = image_info->visual->type; - if (vtype == GDK_VISUAL_DIRECT_COLOR) - vtype = GDK_VISUAL_TRUE_COLOR; - - red_mask = image_info->visual->red_mask; - green_mask = image_info->visual->green_mask; - blue_mask = image_info->visual->blue_mask; - - mask_rgb = red_mask == 0xff0000 && green_mask == 0xff00 && blue_mask == 0xff; - mask_bgr = red_mask == 0xff && green_mask == 0xff00 && blue_mask == 0xff0000; - - conv = NULL; - conv_d = NULL; - - conv_32 = gdk_rgb_convert_32_generic; - conv_32_d = gdk_rgb_convert_32_generic_d; - - conv_gray = gdk_rgb_convert_gray_generic; - conv_gray_d = gdk_rgb_convert_gray_generic_d; - - conv_indexed = gdk_rgb_convert_indexed_generic; - conv_indexed_d = gdk_rgb_convert_indexed_generic_d; - - image_info->dith_default = FALSE; - - if (image_info->bitmap) - conv = gdk_rgb_convert_1; - else if (bpp == 16 && depth == 16 && !byterev && - red_mask == 0xf800 && green_mask == 0x7e0 && blue_mask == 0x1f) + if (info->bitmap) + info->index_row = gdk_rgb_index_row_mono; + else if ((type == GDK_VISUAL_TRUE_COLOR || type == GDK_VISUAL_DIRECT_COLOR) && + (bits == 8 || bits == 16 || bits == 24 || bits == 32)) + gdk_rgb_init_truecolor (info, bits); + else if (bits == 8 && depth > 4 && depth <= 8 && + (type == GDK_VISUAL_PSEUDO_COLOR || type == GDK_VISUAL_STATIC_COLOR || + type == GDK_VISUAL_GRAYSCALE)) { - conv = gdk_rgb_convert_565; - conv_d = gdk_rgb_convert_565_d; - conv_gray = gdk_rgb_convert_565_gray; - gdk_rgb_preprocess_dm_565 (); + /* Depths 5 to 7 only happen on Win32, for restricted palettes. */ + info->dith_default = TRUE; + info->index_row = gdk_rgb_index_row_cube; + if (type != GDK_VISUAL_GRAYSCALE) + info->index_row_dither = gdk_rgb_index_row_cube_dither; } - else if (bpp == 16 && depth == 16 && - vtype == GDK_VISUAL_TRUE_COLOR && byterev && - red_mask == 0xf800 && green_mask == 0x7e0 && blue_mask == 0x1f) - conv = gdk_rgb_convert_565_br; - - else if (bpp == 16 && depth == 15 && - vtype == GDK_VISUAL_TRUE_COLOR && !byterev && - red_mask == 0x7c00 && green_mask == 0x3e0 && blue_mask == 0x1f) - conv = gdk_rgb_convert_555; - - else if (bpp == 16 && depth == 15 && - vtype == GDK_VISUAL_TRUE_COLOR && byterev && - red_mask == 0x7c00 && green_mask == 0x3e0 && blue_mask == 0x1f) - conv = gdk_rgb_convert_555_br; - - /* I'm not 100% sure about the 24bpp tests - but testing will show*/ - else if (bpp == 24 && depth == 24 && vtype == GDK_VISUAL_TRUE_COLOR && - ((mask_rgb && byte_order == GDK_LSB_FIRST) || - (mask_bgr && byte_order == GDK_MSB_FIRST))) - conv = gdk_rgb_convert_888_lsb; - else if (bpp == 24 && depth == 24 && vtype == GDK_VISUAL_TRUE_COLOR && - ((mask_rgb && byte_order == GDK_MSB_FIRST) || - (mask_bgr && byte_order == GDK_LSB_FIRST))) - conv = gdk_rgb_convert_888_msb; - else if (bpp == 32 && - (depth == 24 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - (mask_rgb && byte_order == GDK_MSB_FIRST)) - conv = gdk_rgb_convert_0888_br; - else if (bpp == 32 && - (depth == 24 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - (mask_rgb && byte_order == GDK_LSB_FIRST)) + else if (gray && depth >= 2 && depth <= 8 && depth <= bits) { -#ifdef USE_MEDIALIB25 - if (_gdk_use_medialib ()) - conv = gdk_rgb_convert_0888_medialib; - else - conv = gdk_rgb_convert_0888; -#else - conv = gdk_rgb_convert_0888; -#endif + info->index_row = gdk_rgb_index_row_gray; + if (depth < 8) + info->index_row_dither = gdk_rgb_index_row_gray_dither; } - -#if G_BYTE_ORDER == G_BIG_ENDIAN - else if (bpp == 32 && depth == 24 && vtype == GDK_VISUAL_TRUE_COLOR && - (mask_bgr && byte_order == GDK_MSB_FIRST)) - conv = gdk_rgb_convert_8880_br; - else if (bpp == 32 && depth == 32 && vtype == GDK_VISUAL_TRUE_COLOR && - (mask_rgb && byte_order == GDK_LSB_FIRST)) - conv = gdk_rgb_convert_8880_br; - else if (bpp == 32 && depth == 32 && vtype == GDK_VISUAL_TRUE_COLOR && - (mask_rgb && byte_order == GDK_MSB_FIRST)) - conv = gdk_rgb_convert_8880_br; -#else - else if (bpp == 32 && depth == 24 && vtype == GDK_VISUAL_TRUE_COLOR && - (mask_bgr && byte_order == GDK_LSB_FIRST)) - conv = gdk_rgb_convert_8880_br; - else if (bpp == 32 && depth == 32 && vtype == GDK_VISUAL_TRUE_COLOR && - (mask_rgb && byte_order == GDK_LSB_FIRST)) - { -#ifdef USE_MEDIALIB25 - if (_gdk_use_medialib ()) - conv = gdk_rgb_convert_0888_medialib; - else - conv = gdk_rgb_convert_0888; -#else - conv = gdk_rgb_convert_0888; -#endif - } -#endif - else if (bpp == 32 && (depth == 30 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - byte_order == GDK_LSB_FIRST && - red_mask == 0x000003ff && - green_mask == 0x000ffc00 && - blue_mask == 0x3ff00000) - conv = gdk_rgb_convert_101010_r_low_lsb; - else if (bpp == 32 && (depth == 30 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - byte_order == GDK_LSB_FIRST && - red_mask == 0x3ff00000 && - green_mask == 0x000ffc00 && - blue_mask == 0x000003ff) - conv = gdk_rgb_convert_101010_b_low_lsb; - else if (bpp == 32 && (depth == 30 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - byte_order == GDK_MSB_FIRST && - red_mask == 0x000003ff && - green_mask == 0x000ffc00 && - blue_mask == 0x3ff00000) - conv = gdk_rgb_convert_101010_r_low_msb; - else if (bpp == 32 && (depth == 30 || depth == 32) && - vtype == GDK_VISUAL_TRUE_COLOR && - byte_order == GDK_MSB_FIRST && - red_mask == 0x3ff00000 && - green_mask == 0x000ffc00 && - blue_mask == 0x000003ff) - conv = gdk_rgb_convert_101010_b_low_msb; - else if (vtype == GDK_VISUAL_TRUE_COLOR && byte_order == GDK_LSB_FIRST) - { - conv = gdk_rgb_convert_truecolor_lsb; - conv_d = gdk_rgb_convert_truecolor_lsb_d; - } - else if (vtype == GDK_VISUAL_TRUE_COLOR && byte_order == GDK_MSB_FIRST) - { - conv = gdk_rgb_convert_truecolor_msb; - conv_d = gdk_rgb_convert_truecolor_msb_d; - } - else if (bpp == 8 && - depth <= 8 && - depth > 4 && - (vtype == GDK_VISUAL_PSEUDO_COLOR - || vtype == GDK_VISUAL_STATIC_COLOR -#ifdef ENABLE_GRAYSCALE - || vtype == GDK_VISUAL_GRAYSCALE -#endif - )) - { - /* Mainly for Win32: use these conversion functions also for the - * explicitly (on user request) restricted palette versions of - * 256-color, i.e. depths 5, 6 and 7. On X11, such depths - * probably never occur. - */ - image_info->dith_default = TRUE; - conv = gdk_rgb_convert_8; - if (vtype != GDK_VISUAL_GRAYSCALE) - { - if (image_info->nred_shades == 6 && - image_info->ngreen_shades == 6 && - image_info->nblue_shades == 6) - conv_d = gdk_rgb_convert_8_d666; - else - conv_d = gdk_rgb_convert_8_d; - } - conv_indexed = gdk_rgb_convert_8_indexed; - conv_gray = gdk_rgb_convert_gray_cmap; - } - else if (bpp == 8 && depth == 8 && (vtype == GDK_VISUAL_STATIC_GRAY -#ifdef not_ENABLE_GRAYSCALE - || vtype == GDK_VISUAL_GRAYSCALE -#endif - )) - { - conv = gdk_rgb_convert_gray8; - conv_gray = gdk_rgb_convert_gray8_gray; - } - else if (bpp == 8 && depth < 8 && depth >= 2 && - (vtype == GDK_VISUAL_STATIC_GRAY - || vtype == GDK_VISUAL_GRAYSCALE)) - { - conv = gdk_rgb_convert_gray4; - conv_d = gdk_rgb_convert_gray4_d; - } - else if (bpp == 8 && depth < 8 && depth >= 3) - { - conv = gdk_rgb_convert_4; - } - else if (bpp == 4 && depth <= 4 && depth >= 2 && - (vtype == GDK_VISUAL_STATIC_GRAY - || vtype == GDK_VISUAL_GRAYSCALE)) - { - conv = gdk_rgb_convert_gray4_pack; - conv_d = gdk_rgb_convert_gray4_d_pack; - } - else if (bpp == 4 && depth <= 4 && depth >= 2 && - vtype == GDK_VISUAL_STATIC_COLOR) - conv = gdk_rgb_convert_4_pack; - - if (!conv) + else if (depth >= 3 && depth <= 7 && depth <= bits && bits <= 8 && info->colorcube_d) + info->index_row = gdk_rgb_index_row_cube_222; + else g_error ("Visual type=%d depth=%d, image bpp=%d, %s first\n" - "is not supported by GdkRGB. Please submit a bug report\n" - "with the above values to bugzilla.gnome.org", - vtype, depth, bpp, - byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); + "is not supported by GdkRGB.", + type, depth, bits, visual->byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); - if (conv_d == NULL) - conv_d = conv; - - image_info->conv = conv; - image_info->conv_d = conv_d; - - image_info->conv_32 = conv_32; - image_info->conv_32_d = conv_32_d; - - image_info->conv_gray = conv_gray; - image_info->conv_gray_d = conv_gray_d; - - image_info->conv_indexed = conv_indexed; - image_info->conv_indexed_d = conv_indexed_d; + if (info->index_row_dither == NULL) + info->index_row_dither = info->index_row; } -static void -gdk_draw_rgb_image_core (GdkRgbInfo *image_info, - GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - const guchar *buf, - gint pixstride, - gint rowstride, - GdkRgbConvFunc conv, - GdkRgbCmap *cmap, - gint xdith, - gint ydith) +/* Whether dithering changes anything for this visual. */ +static gboolean +gdk_rgb_info_ditherable (GdkRgbInfo *info) { - gint y0, x0; - gint xs0, ys0; - GdkImage *image; - gint width1, height1; - const guchar *buf_ptr; + if (info->tables) + return info->ditherable; - if (image_info->bitmap) + return info->index_row_dither != info->index_row; +} + +/* Converts @width x @height pixels of @buf into @image at @x0, @y0. */ +static void +gdk_rgb_convert (GdkRgbInfo *info, + GdkImage *image, + gint x0, + gint y0, + gint width, + gint height, + GdkRgbInput input, + const guchar *buf, + gint rowstride, + gboolean dither, + gint x_dith, + gint y_dith, + GdkRgbCmap *cmap) +{ + guint32 stage_words[(ROW_MAX * 3 + 3) / 4]; /* aligned for word loads */ + guchar *stage = (guchar *) stage_words; + guint32 row[ROW_MAX]; + guint32 lut[256]; + guchar *out = (guchar *) image->mem + y0 * image->bpl; + gint bits = image->bits_per_pixel; + gboolean msb_first = image->byte_order == GDK_MSB_FIRST; + GdkRgbIndexRowFunc index_row; + GdkRgbCmapInfo *cmap_info = NULL; + gint y, i; + + dither = dither && gdk_rgb_info_ditherable (info); + + if (info->tables) { - if (image_info->own_gc == NULL) - image_info->own_gc = gdk_gc_new (drawable); - gc = image_info->own_gc; + const guint32 *t = info->tables; + gboolean use_lut; + + /* Each color of a palette is converted once, and so are the gray + * levels of larger gray images. */ + use_lut = !dither && + (input == GDK_RGB_INPUT_INDEXED || + (input == GDK_RGB_INPUT_GRAY && width * height >= 1024 && + !(info->layout == GDK_RGB_LAYOUT_BYTES && bits == 24))); + if (use_lut && input == GDK_RGB_INPUT_INDEXED) + for (i = 0; i < 256; i++) + lut[i] = t[(cmap->colors[i] >> 16) & 0xff] | + t[256 + ((cmap->colors[i] >> 8) & 0xff)] | + t[512 + (cmap->colors[i] & 0xff)]; + else if (use_lut) + for (i = 0; i < 256; i++) + lut[i] = t[i] | t[256 + i] | t[512 + i]; + + for (y = 0; y < height; y++, buf += rowstride, out += image->bpl) + { + guchar *p = out + x0 * (bits / 8); + + if (dither) + gdk_rgb_truecolor_row (info, p, row, bits, msb_first, GDK_RGB_INPUT_RGB, + gdk_rgb_stage_row (stage, input, buf, width, cmap), + width, NULL, DM[(y_dith + y) & (DM_HEIGHT - 1)], x_dith); + else + gdk_rgb_truecolor_row (info, p, row, bits, msb_first, input, buf, width, + use_lut ? lut : NULL, NULL, 0); + } + return; } - for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) + + index_row = dither ? info->index_row_dither : info->index_row; + + /* 8-bit palettes look indexed images up in a table per GdkRgbCmap. */ + if (bits == 8 && index_row == gdk_rgb_index_row_cube) { - height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); - for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) - { - width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); - buf_ptr = buf + y0 * rowstride + x0 * pixstride; + if (input == GDK_RGB_INPUT_GRAY && info->gray_cmap) + cmap = info->gray_cmap, input = GDK_RGB_INPUT_INDEXED; + if (input == GDK_RGB_INPUT_INDEXED) + cmap_info = gdk_rgb_cmap_get_info (cmap, info); + } - image = _gdk_image_get_scratch (gdk_drawable_get_screen (drawable), - width1, height1, - image_info->visual->depth, &xs0, &ys0); + for (y = 0; y < height; y++, buf += rowstride, out += image->bpl) + { + const guchar *dm = DM[(y_dith + y) & (DM_HEIGHT - 1)]; + guchar *pixels = bits == 8 ? out + x0 : (guchar *) row; - conv (image_info, image, xs0, ys0, width1, height1, buf_ptr, rowstride, - x + x0 + xdith, y + y0 + ydith, cmap); + if (cmap_info) + for (i = 0; i < width; i++) + pixels[i] = cmap_info->lut[buf[i]]; + else + index_row (info, pixels, gdk_rgb_stage_row (stage, input, buf, width, cmap), + width, dm, x_dith); -#ifndef DONT_ACTUALLY_DRAW - gdk_draw_image (drawable, gc, - image, xs0, ys0, x + x0, y + y0, width1, height1); -#endif - } + if (bits < 8) + gdk_rgb_pack_row (out, x0, pixels, width, bits, msb_first); } } @@ -3557,6 +1831,62 @@ gdk_rgb_get_info_from_drawable (GdkDrawable *drawable) return gdk_rgb_get_info_from_colormap (cmap); } +static void +gdk_draw_rgb_image_core (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + GdkRgbInput input, + const guchar *buf, + gint rowstride, + GdkRgbCmap *cmap, + gint xdith, + gint ydith) +{ + GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); + gint pixstride = gdk_rgb_input_bytes[input]; + gboolean dither; + gint y0, x0; + gint xs0, ys0; + GdkImage *image; + gint width1, height1; + + if (!image_info) + return; + + dither = !(dith == GDK_RGB_DITHER_NONE || + (dith == GDK_RGB_DITHER_NORMAL && !image_info->dith_default)); + + if (image_info->bitmap) + { + if (image_info->own_gc == NULL) + image_info->own_gc = gdk_gc_new (drawable); + gc = image_info->own_gc; + } + for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) + { + height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); + for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) + { + width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); + + image = _gdk_image_get_scratch (gdk_drawable_get_screen (drawable), + width1, height1, + image_info->visual->depth, &xs0, &ys0); + + gdk_rgb_convert (image_info, image, xs0, ys0, width1, height1, input, + buf + y0 * rowstride + x0 * pixstride, rowstride, + dither, x + x0 + xdith, y + y0 + ydith, cmap); + + gdk_draw_image (drawable, gc, + image, xs0, ys0, x + x0, y + y0, width1, height1); + } + } +} + void gdk_draw_rgb_image (GdkDrawable *drawable, GdkGC *gc, @@ -3568,21 +1898,11 @@ gdk_draw_rgb_image (GdkDrawable *drawable, const guchar *rgb_buf, gint rowstride) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); - if (!image_info) - return; - - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - rgb_buf, 3, rowstride, image_info->conv, NULL, - 0, 0); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - rgb_buf, 3, rowstride, image_info->conv_d, NULL, - 0, 0); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGB, rgb_buf, rowstride, NULL, 0, 0); } + void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, GdkGC *gc, @@ -3596,21 +1916,11 @@ gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, gint xdith, gint ydith) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); - if (!image_info) - return; - - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - rgb_buf, 3, rowstride, image_info->conv, NULL, - xdith, ydith); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - rgb_buf, 3, rowstride, image_info->conv_d, NULL, - xdith, ydith); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGB, rgb_buf, rowstride, NULL, xdith, ydith); } + void gdk_draw_rgb_32_image (GdkDrawable *drawable, GdkGC *gc, @@ -3622,21 +1932,11 @@ gdk_draw_rgb_32_image (GdkDrawable *drawable, const guchar *buf, gint rowstride) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); - if (!image_info) - return; - - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 4, rowstride, - image_info->conv_32, NULL, 0, 0); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 4, rowstride, - image_info->conv_32_d, NULL, 0, 0); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGBX, buf, rowstride, NULL, 0, 0); } + /** * gdk_draw_rgb_32_image_dithalign: * @drawable: a #GdkDrawable @@ -3669,21 +1969,164 @@ gdk_draw_rgb_32_image_dithalign (GdkDrawable *drawable, gint xdith, gint ydith) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); - if (!image_info) - return; - - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 4, rowstride, - image_info->conv_32, NULL, xdith, ydith); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 4, rowstride, - image_info->conv_32_d, NULL, xdith, ydith); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGBX, buf, rowstride, NULL, xdith, ydith); } + +static void +gdk_draw_rgb16_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + GdkRgbInput input, + const guint16 *buf, + gint rowstride, + gint xdith, + gint ydith) +{ + g_return_if_fail (GDK_IS_DRAWABLE (drawable)); + g_return_if_fail (GDK_IS_GC (gc)); + g_return_if_fail (buf != NULL); + g_return_if_fail ((((guintptr) buf) & 1) == 0); + g_return_if_fail ((rowstride & 1) == 0); + + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, input, + (const guchar *) buf, rowstride, NULL, xdith, ydith); +} + +/** + * gdk_draw_rgb_48_image: + * @drawable: a #GdkDrawable + * @gc: a #GdkGC + * @x: destination X coordinate + * @y: destination Y coordinate + * @width: image width + * @height: image height + * @dith: dithering mode + * @rgb_buf: host-endian RGB data with three 16-bit channels per pixel + * @rowstride: number of bytes between consecutive rows + * + * Draws 48-bit RGB image data. + **/ +void +gdk_draw_rgb_48_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + const guint16 *rgb_buf, + gint rowstride) +{ + gdk_draw_rgb16_image (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGB48, rgb_buf, rowstride, 0, 0); +} + + +/** + * gdk_draw_rgb_48_image_dithalign: + * @drawable: a #GdkDrawable + * @gc: a #GdkGC + * @x: destination X coordinate + * @y: destination Y coordinate + * @width: image width + * @height: image height + * @dith: dithering mode + * @rgb_buf: host-endian RGB data with three 16-bit channels per pixel + * @rowstride: number of bytes between consecutive rows + * @xdith: X dither offset + * @ydith: Y dither offset + * + * Draws 48-bit RGB image data with explicit dither alignment. + **/ +void +gdk_draw_rgb_48_image_dithalign (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + const guint16 *rgb_buf, + gint rowstride, + gint xdith, + gint ydith) +{ + gdk_draw_rgb16_image (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGB48, rgb_buf, rowstride, xdith, ydith); +} + + +/** + * gdk_draw_rgbx_64_image: + * @drawable: a #GdkDrawable + * @gc: a #GdkGC + * @x: destination X coordinate + * @y: destination Y coordinate + * @width: image width + * @height: image height + * @dith: dithering mode + * @rgbx_buf: host-endian RGBX data with four 16-bit channels per pixel + * @rowstride: number of bytes between consecutive rows + * + * Draws 64-bit RGBX image data. The X channel is ignored. + **/ +void +gdk_draw_rgbx_64_image (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + const guint16 *rgbx_buf, + gint rowstride) +{ + gdk_draw_rgb16_image (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGBX64, rgbx_buf, rowstride, 0, 0); +} + + +/** + * gdk_draw_rgbx_64_image_dithalign: + * @drawable: a #GdkDrawable + * @gc: a #GdkGC + * @x: destination X coordinate + * @y: destination Y coordinate + * @width: image width + * @height: image height + * @dith: dithering mode + * @rgbx_buf: host-endian RGBX data with four 16-bit channels per pixel + * @rowstride: number of bytes between consecutive rows + * @xdith: X dither offset + * @ydith: Y dither offset + * + * Draws 64-bit RGBX image data with explicit dither alignment. + * The X channel is ignored. + **/ +void +gdk_draw_rgbx_64_image_dithalign (GdkDrawable *drawable, + GdkGC *gc, + gint x, + gint y, + gint width, + gint height, + GdkRgbDither dith, + const guint16 *rgbx_buf, + gint rowstride, + gint xdith, + gint ydith) +{ + gdk_draw_rgb16_image (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_RGBX64, rgbx_buf, rowstride, xdith, ydith); +} + + static void gdk_rgb_make_gray_cmap (GdkRgbInfo *info) { @@ -3717,17 +2160,11 @@ gdk_draw_gray_image (GdkDrawable *drawable, image_info->visual->type == GDK_VISUAL_GRAYSCALE)) gdk_rgb_make_gray_cmap (image_info); - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 1, rowstride, - image_info->conv_gray, NULL, 0, 0); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 1, rowstride, - image_info->conv_gray_d, NULL, 0, 0); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_GRAY, buf, rowstride, NULL, 0, 0); } + static GdkRgbCmapInfo * gdk_rgb_cmap_get_info (GdkRgbCmap *cmap, GdkRgbInfo *image_info) @@ -3852,29 +2289,18 @@ gdk_draw_indexed_image (GdkDrawable *drawable, gint rowstride, GdkRgbCmap *cmap) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_drawable (drawable); - if (!image_info) - return; - - if (dith == GDK_RGB_DITHER_NONE || (dith == GDK_RGB_DITHER_NORMAL && - !image_info->dith_default)) - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 1, rowstride, - image_info->conv_indexed, cmap, 0, 0); - else - gdk_draw_rgb_image_core (image_info, drawable, gc, x, y, width, height, - buf, 1, rowstride, - image_info->conv_indexed_d, cmap, 0, 0); + gdk_draw_rgb_image_core (drawable, gc, x, y, width, height, dith, + GDK_RGB_INPUT_INDEXED, buf, rowstride, cmap, 0, 0); } + gboolean gdk_rgb_colormap_ditherable (GdkColormap *cmap) { - GdkRgbInfo *image_info = gdk_rgb_get_info_from_colormap (cmap); - - return (image_info->conv != image_info->conv_d); + return gdk_rgb_info_ditherable (gdk_rgb_get_info_from_colormap (cmap)); } + gboolean gdk_rgb_ditherable (void) { diff --git a/gdk/gdkrgb16.c b/gdk/gdkrgb16.c deleted file mode 100644 index 2564ef0d8..000000000 --- a/gdk/gdkrgb16.c +++ /dev/null @@ -1,742 +0,0 @@ -/* GTK - The GIMP Toolkit - * High-precision GdkRGB image conversion - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - */ - -#include "config.h" - -#include - -#include "gdkinternals.h" -#include "gdkrgb.h" -#include "gdkscreen.h" -#include "gdkalias.h" - -typedef void (*GdkRgb16ConvFunc) (GdkImage *image, - gint x0, - gint y0, - gint width, - gint height, - const guint16 *buf, - gint rowstride); - -#define GDK_RGB16_STORE_RGB(p, r, g, b, a) G_STMT_START { \ - (p)[0] = (r) >> 8; \ - (p)[1] = (g) >> 8; \ - (p)[2] = (b) >> 8; \ - (p) += 3; \ -} G_STMT_END - -#define GDK_RGB16_STORE_BGR(p, r, g, b, a) G_STMT_START { \ - (p)[0] = (b) >> 8; \ - (p)[1] = (g) >> 8; \ - (p)[2] = (r) >> 8; \ - (p) += 3; \ -} G_STMT_END - -#define GDK_RGB16_STORE_BGRA(p, r, g, b, a) G_STMT_START { \ - (p)[0] = (b) >> 8; \ - (p)[1] = (g) >> 8; \ - (p)[2] = (r) >> 8; \ - (p)[3] = 0xff; \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_ARGB(p, r, g, b, a) G_STMT_START { \ - (p)[0] = 0xff; \ - (p)[1] = (r) >> 8; \ - (p)[2] = (g) >> 8; \ - (p)[3] = (b) >> 8; \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_RGB0_NATIVE(p, r, g, b, a) G_STMT_START { \ - guint32 pixel__ = (((b) >> 8) << 16) | \ - (((g) >> 8) << 8) | \ - ((r) >> 8); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_565(p, r, g, b, a) G_STMT_START { \ - guint16 pixel__ = ((r) & 0xf800) | \ - (((g) & 0xfc00) >> 5) | \ - ((b) >> 11); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 2; \ -} G_STMT_END - -#define GDK_RGB16_STORE_565_BR(p, r, g, b, a) G_STMT_START { \ - guint16 pixel__ = ((r) & 0xf800) | \ - (((g) & 0xfc00) >> 5) | \ - ((b) >> 11); \ - pixel__ = (pixel__ >> 8) | (pixel__ << 8); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 2; \ -} G_STMT_END - -#define GDK_RGB16_STORE_555(p, r, g, b, a) G_STMT_START { \ - guint16 pixel__ = (((r) & 0xf800) >> 1) | \ - (((g) & 0xf800) >> 6) | \ - ((b) >> 11); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 2; \ -} G_STMT_END - -#define GDK_RGB16_STORE_555_BR(p, r, g, b, a) G_STMT_START { \ - guint16 pixel__ = (((r) & 0xf800) >> 1) | \ - (((g) & 0xf800) >> 6) | \ - ((b) >> 11); \ - pixel__ = (pixel__ >> 8) | (pixel__ << 8); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 2; \ -} G_STMT_END - -#define GDK_RGB16_STORE_101010_R_LOW_LE(p, r, g, b, a) \ -G_STMT_START { \ - guint32 pixel__ = (a) | \ - (((b) >> 6) << 20) | \ - (((g) >> 6) << 10) | \ - ((r) >> 6); \ - pixel__ = GUINT32_TO_LE (pixel__); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_101010_B_LOW_LE(p, r, g, b, a) \ -G_STMT_START { \ - guint32 pixel__ = (a) | \ - (((r) >> 6) << 20) | \ - (((g) >> 6) << 10) | \ - ((b) >> 6); \ - pixel__ = GUINT32_TO_LE (pixel__); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_101010_R_LOW_BE(p, r, g, b, a) \ -G_STMT_START { \ - guint32 pixel__ = (a) | \ - (((b) >> 6) << 20) | \ - (((g) >> 6) << 10) | \ - ((r) >> 6); \ - pixel__ = GUINT32_TO_BE (pixel__); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 4; \ -} G_STMT_END - -#define GDK_RGB16_STORE_101010_B_LOW_BE(p, r, g, b, a) \ -G_STMT_START { \ - guint32 pixel__ = (a) | \ - (((r) >> 6) << 20) | \ - (((g) >> 6) << 10) | \ - ((b) >> 6); \ - pixel__ = GUINT32_TO_BE (pixel__); \ - memcpy ((p), &pixel__, sizeof (pixel__)); \ - (p) += 4; \ -} G_STMT_END - -#define DEFINE_GDK_RGB16_CONVERTER(name, words, pixel_bytes, store) \ -static void \ -name (GdkImage *image, \ - gint x0, \ - gint y0, \ - gint width, \ - gint height, \ - const guint16 *buf, \ - gint rowstride) \ -{ \ - const guchar *row; \ - const guint16 *src; \ - guchar *dst_row; \ - guchar *dst; \ - guint32 r, g, b; \ - guint32 alpha_mask; \ - gint x, y; \ - \ - row = (const guchar *) buf; \ - dst_row = ((guchar *) image->mem) + \ - y0 * image->bpl + x0 * (pixel_bytes); \ - alpha_mask = image->depth == 32 ? 0xc0000000U : 0; \ - (void) alpha_mask; \ - \ - for (y = 0; y < height; y++) \ - { \ - src = (const guint16 *) row; \ - dst = dst_row; \ - \ - for (x = 0; x < width; x++) \ - { \ - r = src[0]; \ - g = src[1]; \ - b = src[2]; \ - src += (words); \ - store (dst, r, g, b, alpha_mask); \ - } \ - \ - row += rowstride; \ - dst_row += image->bpl; \ - } \ -} - -#define DEFINE_GDK_RGB16_PAIR(suffix, pixel_bytes, store) \ - DEFINE_GDK_RGB16_CONVERTER (gdk_rgb48_convert_ ## suffix, \ - 3, pixel_bytes, store) \ - DEFINE_GDK_RGB16_CONVERTER (gdk_rgbx64_convert_ ## suffix, \ - 4, pixel_bytes, store) - -DEFINE_GDK_RGB16_PAIR (rgb, 3, GDK_RGB16_STORE_RGB) -DEFINE_GDK_RGB16_PAIR (bgr, 3, GDK_RGB16_STORE_BGR) -DEFINE_GDK_RGB16_PAIR (bgra, 4, GDK_RGB16_STORE_BGRA) -DEFINE_GDK_RGB16_PAIR (argb, 4, GDK_RGB16_STORE_ARGB) -DEFINE_GDK_RGB16_PAIR (rgb0_native, 4, GDK_RGB16_STORE_RGB0_NATIVE) -DEFINE_GDK_RGB16_PAIR (565, 2, GDK_RGB16_STORE_565) -DEFINE_GDK_RGB16_PAIR (565_br, 2, GDK_RGB16_STORE_565_BR) -DEFINE_GDK_RGB16_PAIR (555, 2, GDK_RGB16_STORE_555) -DEFINE_GDK_RGB16_PAIR (555_br, 2, GDK_RGB16_STORE_555_BR) -DEFINE_GDK_RGB16_PAIR (101010_r_low_le, 4, - GDK_RGB16_STORE_101010_R_LOW_LE) -DEFINE_GDK_RGB16_PAIR (101010_b_low_le, 4, - GDK_RGB16_STORE_101010_B_LOW_LE) -DEFINE_GDK_RGB16_PAIR (101010_r_low_be, 4, - GDK_RGB16_STORE_101010_R_LOW_BE) -DEFINE_GDK_RGB16_PAIR (101010_b_low_be, 4, - GDK_RGB16_STORE_101010_B_LOW_BE) - -#undef DEFINE_GDK_RGB16_PAIR -#undef DEFINE_GDK_RGB16_CONVERTER - -#undef GDK_RGB16_STORE_RGB -#undef GDK_RGB16_STORE_BGR -#undef GDK_RGB16_STORE_BGRA -#undef GDK_RGB16_STORE_ARGB -#undef GDK_RGB16_STORE_RGB0_NATIVE -#undef GDK_RGB16_STORE_565 -#undef GDK_RGB16_STORE_565_BR -#undef GDK_RGB16_STORE_555 -#undef GDK_RGB16_STORE_555_BR -#undef GDK_RGB16_STORE_101010_R_LOW_LE -#undef GDK_RGB16_STORE_101010_B_LOW_LE -#undef GDK_RGB16_STORE_101010_R_LOW_BE -#undef GDK_RGB16_STORE_101010_B_LOW_BE - -static GdkRgb16ConvFunc -gdk_rgb16_select_converter (GdkDrawable *drawable, - gboolean is_rgbx, - GdkRgbDither dith) -{ - GdkVisual *visual; - GdkByteOrder byte_order; - GdkScreen *screen; - guint32 red_mask, green_mask, blue_mask; - gint depth; - gint bits_per_pixel; - gboolean byte_reversed; - gboolean mask_rgb; - gboolean mask_bgr; - -#define SELECT_PAIR(suffix) \ - return is_rgbx ? gdk_rgbx64_convert_ ## suffix \ - : gdk_rgb48_convert_ ## suffix - - /* - * Preserve the existing GdkRGB dither path for maximum dithering - * and for unknown future values. - */ - if (dith != GDK_RGB_DITHER_NONE && - dith != GDK_RGB_DITHER_NORMAL) - return NULL; - - visual = gdk_drawable_get_visual (drawable); - if (visual == NULL) - return NULL; - - if (gdk_visual_get_visual_type (visual) != GDK_VISUAL_TRUE_COLOR) - return NULL; - - screen = gdk_visual_get_screen (visual); - depth = gdk_visual_get_depth (visual); - byte_order = gdk_visual_get_byte_order (visual); - - gdk_visual_get_red_pixel_details (visual, &red_mask, NULL, NULL); - gdk_visual_get_green_pixel_details (visual, &green_mask, NULL, NULL); - gdk_visual_get_blue_pixel_details (visual, &blue_mask, NULL, NULL); - - bits_per_pixel = _gdk_windowing_get_bits_for_depth - (gdk_screen_get_display (screen), depth); - -#if G_BYTE_ORDER == G_BIG_ENDIAN - byte_reversed = byte_order == GDK_LSB_FIRST; -#else - byte_reversed = byte_order == GDK_MSB_FIRST; -#endif - - mask_rgb = red_mask == 0xff0000 && - green_mask == 0x00ff00 && - blue_mask == 0x0000ff; - - mask_bgr = red_mask == 0x0000ff && - green_mask == 0x00ff00 && - blue_mask == 0xff0000; - - if (bits_per_pixel == 16 && - depth == 16 && - red_mask == 0xf800 && - green_mask == 0x07e0 && - blue_mask == 0x001f) - { - if (byte_reversed) - SELECT_PAIR (565_br); - - SELECT_PAIR (565); - } - - if (bits_per_pixel == 16 && - depth == 15 && - red_mask == 0x7c00 && - green_mask == 0x03e0 && - blue_mask == 0x001f) - { - if (byte_reversed) - SELECT_PAIR (555_br); - - SELECT_PAIR (555); - } - - if (bits_per_pixel == 24 && - depth == 24 && - ((mask_rgb && byte_order == GDK_LSB_FIRST) || - (mask_bgr && byte_order == GDK_MSB_FIRST))) - SELECT_PAIR (bgr); - - if (bits_per_pixel == 24 && - depth == 24 && - ((mask_rgb && byte_order == GDK_MSB_FIRST) || - (mask_bgr && byte_order == GDK_LSB_FIRST))) - SELECT_PAIR (rgb); - - if (bits_per_pixel == 32 && - (depth == 24 || depth == 32) && - mask_rgb && - byte_order == GDK_MSB_FIRST) - SELECT_PAIR (argb); - - if (bits_per_pixel == 32 && - (depth == 24 || depth == 32) && - mask_rgb && - byte_order == GDK_LSB_FIRST) - SELECT_PAIR (bgra); - -#if G_BYTE_ORDER == G_BIG_ENDIAN - if (bits_per_pixel == 32 && - depth == 24 && - mask_bgr && - byte_order == GDK_MSB_FIRST) - SELECT_PAIR (rgb0_native); -#else - if (bits_per_pixel == 32 && - depth == 24 && - mask_bgr && - byte_order == GDK_LSB_FIRST) - SELECT_PAIR (rgb0_native); -#endif - - if (bits_per_pixel == 32 && - (depth == 30 || depth == 32) && - byte_order == GDK_LSB_FIRST && - red_mask == 0x000003ff && - green_mask == 0x000ffc00 && - blue_mask == 0x3ff00000) - SELECT_PAIR (101010_r_low_le); - - if (bits_per_pixel == 32 && - (depth == 30 || depth == 32) && - byte_order == GDK_LSB_FIRST && - red_mask == 0x3ff00000 && - green_mask == 0x000ffc00 && - blue_mask == 0x000003ff) - SELECT_PAIR (101010_b_low_le); - - if (bits_per_pixel == 32 && - (depth == 30 || depth == 32) && - byte_order == GDK_MSB_FIRST && - red_mask == 0x000003ff && - green_mask == 0x000ffc00 && - blue_mask == 0x3ff00000) - SELECT_PAIR (101010_r_low_be); - - if (bits_per_pixel == 32 && - (depth == 30 || depth == 32) && - byte_order == GDK_MSB_FIRST && - red_mask == 0x3ff00000 && - green_mask == 0x000ffc00 && - blue_mask == 0x000003ff) - SELECT_PAIR (101010_b_low_be); - -#undef SELECT_PAIR - - return NULL; -} - -static void -gdk_rgb16_draw_direct (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - const guint16 *buf, - gint pixel_words, - gint rowstride, - GdkRgb16ConvFunc converter) -{ - GdkScreen *screen; - GdkImage *image; - const guint16 *tile; - gint depth; - gint x0, y0; - gint xs0, ys0; - gint width1, height1; - - screen = gdk_drawable_get_screen (drawable); - depth = gdk_drawable_get_depth (drawable); - - for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) - { - height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); - - for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) - { - width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); - - tile = (const guint16 *) - ((const guchar *) buf + - y0 * rowstride + - x0 * pixel_words * sizeof (guint16)); - - image = _gdk_image_get_scratch (screen, - width1, - height1, - depth, - &xs0, - &ys0); - - converter (image, - xs0, - ys0, - width1, - height1, - tile, - rowstride); - - gdk_draw_image (drawable, - gc, - image, - xs0, - ys0, - x + x0, - y + y0, - width1, - height1); - } - } -} - -static void -gdk_rgb16_draw_fallback (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *buf, - gint pixel_words, - gint rowstride, - gint xdith, - gint ydith) -{ - const guchar *input_row; - const guint16 *input; - guchar *stage; - guchar *output; - gint stage_rowstride; - gint x0, y0; - gint x1, y1; - gint width1, height1; - - stage = g_malloc (MIN (width, GDK_SCRATCH_IMAGE_WIDTH) * - MIN (height, GDK_SCRATCH_IMAGE_HEIGHT) * 3); - - for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) - { - height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); - - for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) - { - width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); - stage_rowstride = width1 * 3; - - input_row = (const guchar *) buf + - y0 * rowstride + - x0 * pixel_words * sizeof (guint16); - output = stage; - - for (y1 = 0; y1 < height1; y1++) - { - input = (const guint16 *) input_row; - - for (x1 = 0; x1 < width1; x1++) - { - *output++ = input[0] >> 8; - *output++ = input[1] >> 8; - *output++ = input[2] >> 8; - input += pixel_words; - } - - input_row += rowstride; - } - - gdk_draw_rgb_image_dithalign (drawable, - gc, - x + x0, - y + y0, - width1, - height1, - dith, - stage, - stage_rowstride, - xdith, - ydith); - } - } - - g_free (stage); -} - -static void -gdk_draw_rgb16_image (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *buf, - gint rowstride, - gint xdith, - gint ydith, - gboolean is_rgbx) -{ - GdkRgb16ConvFunc converter; - gint pixel_words; - - g_return_if_fail (GDK_IS_DRAWABLE (drawable)); - g_return_if_fail (GDK_IS_GC (gc)); - g_return_if_fail (buf != NULL); - g_return_if_fail ((((guintptr) buf) & 1) == 0); - g_return_if_fail ((rowstride & 1) == 0); - - if (width <= 0 || height <= 0) - return; - - pixel_words = is_rgbx ? 4 : 3; - converter = gdk_rgb16_select_converter (drawable, is_rgbx, dith); - - if (converter != NULL) - gdk_rgb16_draw_direct (drawable, - gc, - x, - y, - width, - height, - buf, - pixel_words, - rowstride, - converter); - else - gdk_rgb16_draw_fallback (drawable, - gc, - x, - y, - width, - height, - dith, - buf, - pixel_words, - rowstride, - xdith, - ydith); -} - -/** - * gdk_draw_rgb_48_image: - * @drawable: a #GdkDrawable - * @gc: a #GdkGC - * @x: destination X coordinate - * @y: destination Y coordinate - * @width: image width - * @height: image height - * @dith: dithering mode - * @rgb_buf: host-endian RGB data with three 16-bit channels per pixel - * @rowstride: number of bytes between consecutive rows - * - * Draws 48-bit RGB image data. - **/ -void -gdk_draw_rgb_48_image (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *rgb_buf, - gint rowstride) -{ - gdk_draw_rgb16_image (drawable, - gc, - x, - y, - width, - height, - dith, - rgb_buf, - rowstride, - 0, - 0, - FALSE); -} - -/** - * gdk_draw_rgb_48_image_dithalign: - * @drawable: a #GdkDrawable - * @gc: a #GdkGC - * @x: destination X coordinate - * @y: destination Y coordinate - * @width: image width - * @height: image height - * @dith: dithering mode - * @rgb_buf: host-endian RGB data with three 16-bit channels per pixel - * @rowstride: number of bytes between consecutive rows - * @xdith: X dither offset - * @ydith: Y dither offset - * - * Draws 48-bit RGB image data with explicit dither alignment. - **/ -void -gdk_draw_rgb_48_image_dithalign (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *rgb_buf, - gint rowstride, - gint xdith, - gint ydith) -{ - gdk_draw_rgb16_image (drawable, - gc, - x, - y, - width, - height, - dith, - rgb_buf, - rowstride, - xdith, - ydith, - FALSE); -} - -/** - * gdk_draw_rgbx_64_image: - * @drawable: a #GdkDrawable - * @gc: a #GdkGC - * @x: destination X coordinate - * @y: destination Y coordinate - * @width: image width - * @height: image height - * @dith: dithering mode - * @rgbx_buf: host-endian RGBX data with four 16-bit channels per pixel - * @rowstride: number of bytes between consecutive rows - * - * Draws 64-bit RGBX image data. The X channel is ignored. - **/ -void -gdk_draw_rgbx_64_image (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *rgbx_buf, - gint rowstride) -{ - gdk_draw_rgb16_image (drawable, - gc, - x, - y, - width, - height, - dith, - rgbx_buf, - rowstride, - 0, - 0, - TRUE); -} - -/** - * gdk_draw_rgbx_64_image_dithalign: - * @drawable: a #GdkDrawable - * @gc: a #GdkGC - * @x: destination X coordinate - * @y: destination Y coordinate - * @width: image width - * @height: image height - * @dith: dithering mode - * @rgbx_buf: host-endian RGBX data with four 16-bit channels per pixel - * @rowstride: number of bytes between consecutive rows - * @xdith: X dither offset - * @ydith: Y dither offset - * - * Draws 64-bit RGBX image data with explicit dither alignment. - * The X channel is ignored. - **/ -void -gdk_draw_rgbx_64_image_dithalign (GdkDrawable *drawable, - GdkGC *gc, - gint x, - gint y, - gint width, - gint height, - GdkRgbDither dith, - const guint16 *rgbx_buf, - gint rowstride, - gint xdith, - gint ydith) -{ - gdk_draw_rgb16_image (drawable, - gc, - x, - y, - width, - height, - dith, - rgbx_buf, - rowstride, - xdith, - ydith, - TRUE); -} - -#define __GDK_RGB16_C__ -#include "gdkaliasdef.c" diff --git a/gdk/makefile.msc b/gdk/makefile.msc index 6175c3f21..e9f816931 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -92,7 +92,6 @@ gdk_OBJECTS = \ gdkrectangle.obj \ gdkregion-generic.obj \ gdkrgb.obj \ - gdkrgb16.obj \ gdkscreen.obj \ gdkselection.obj \ gdkvisual.obj \ From e9d0d05ce7aea17caa4422e824ea6d36b605be2e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:39:17 +0200 Subject: [PATCH 005/249] gdk: blend pixbufs on TrueColor drawables of any depth in their own format --- gdk/gdkdraw.c | 316 +++++++++------------------------------------ gdk/gdkinternals.h | 12 ++ gdk/gdkrgb.c | 203 +++++++++++++++++++++++++++++ 3 files changed, 279 insertions(+), 252 deletions(-) diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index b6b0a5953..a19d920b8 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -1403,174 +1403,62 @@ composite (guchar *src_buf, } } -static void -composite_0888 (guchar *src_buf, - gint src_rowstride, - guchar *dest_buf, - gint dest_rowstride, - GdkByteOrder dest_byte_order, - gint width, - gint height) +/* Blends @pixbuf over the drawable piece by piece, in the drawable's + * own pixel format. Returns FALSE, having drawn nothing, where GdkRGB + * can't do that (palettes, gray levels, dithering). */ +static gboolean +composite_on_images (GdkDrawable *drawable, + GdkDrawable *real_drawable, + GdkGC *gc, + GdkPixbuf *pixbuf, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height, + GdkRgbDither dither) { - guchar *src = src_buf; - guchar *dest = dest_buf; + GdkColormap *colormap = gdk_drawable_get_colormap (drawable); + guchar *pixels = gdk_pixbuf_get_pixels (pixbuf); + gint rowstride = gdk_pixbuf_get_rowstride (pixbuf); + gint x0, y0; - while (height--) + if (!colormap) + return FALSE; + + for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) { - gint twidth = width; - guchar *p = src; - guchar *q = dest; + gint height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); - if (dest_byte_order == GDK_LSB_FIRST) + for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) { - while (twidth--) - { - guint t; + gint width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); + gint xs0, ys0; + GdkImage *image; - t = p[3] * p[2] + (255 - p[3]) * q[0] + 0x80; - q[0] = (t + (t >> 8)) >> 8; - t = p[3] * p[1] + (255 - p[3]) * q[1] + 0x80; - q[1] = (t + (t >> 8)) >> 8; - t = p[3] * p[0] + (255 - p[3]) * q[2] + 0x80; - q[2] = (t + (t >> 8)) >> 8; - p += 4; - q += 4; - } + image = _gdk_image_get_scratch (gdk_drawable_get_screen (drawable), + width1, height1, + gdk_drawable_get_depth (drawable), &xs0, &ys0); + gdk_drawable_copy_to_image (drawable, image, + dest_x + x0, dest_y + y0, + xs0, ys0, + width1, height1); + + /* this fails for the first piece or for none */ + if (!_gdk_rgb_composite (colormap, image, xs0, ys0, width1, height1, + pixels + (src_y + y0) * rowstride + (src_x + x0) * 4, + rowstride, dither)) + return FALSE; + + gdk_draw_image (real_drawable, gc, image, + xs0, ys0, + dest_x + x0, dest_y + y0, + width1, height1); } - else - { - while (twidth--) - { - guint t; - - t = p[3] * p[0] + (255 - p[3]) * q[1] + 0x80; - q[1] = (t + (t >> 8)) >> 8; - t = p[3] * p[1] + (255 - p[3]) * q[2] + 0x80; - q[2] = (t + (t >> 8)) >> 8; - t = p[3] * p[2] + (255 - p[3]) * q[3] + 0x80; - q[3] = (t + (t >> 8)) >> 8; - p += 4; - q += 4; - } - } - - src += src_rowstride; - dest += dest_rowstride; } -} -#ifdef USE_MEDIALIB -static void -composite_0888_medialib (guchar *src_buf, - gint src_rowstride, - guchar *dest_buf, - gint dest_rowstride, - GdkByteOrder dest_byte_order, - gint width, - gint height) -{ - guchar *src = src_buf; - guchar *dest = dest_buf; - - mlib_image img_src, img_dst; - - mlib_ImageSetStruct (&img_dst, - MLIB_BYTE, - 4, - width, - height, - dest_rowstride, - dest_buf); - - mlib_ImageSetStruct (&img_src, - MLIB_BYTE, - 4, - width, - height, - src_rowstride, - src_buf); - - if (dest_byte_order == GDK_LSB_FIRST) - mlib_ImageBlendRGBA2BGRA (&img_dst, &img_src); - else - mlib_ImageBlendRGBA2ARGB (&img_dst, &img_src); -} -#endif - -static void -composite_565 (guchar *src_buf, - gint src_rowstride, - guchar *dest_buf, - gint dest_rowstride, - GdkByteOrder dest_byte_order, - gint width, - gint height) -{ - guchar *src = src_buf; - guchar *dest = dest_buf; - - while (height--) - { - gint twidth = width; - guchar *p = src; - gushort *q = (gushort *)dest; - - while (twidth--) - { - guchar a = p[3]; - guint tr, tg, tb; - guint tr1, tg1, tb1; - guint tmp = *q; - -#if 1 - /* This is fast, and corresponds to what composite() above does - * if we converted to 8-bit first. - */ - tr = (tmp & 0xf800); - tr1 = a * p[0] + (255 - a) * ((tr >> 8) + (tr >> 13)) + 0x80; - tg = (tmp & 0x07e0); - tg1 = a * p[1] + (255 - a) * ((tg >> 3) + (tg >> 9)) + 0x80; - tb = (tmp & 0x001f); - tb1 = a * p[2] + (255 - a) * ((tb << 3) + (tb >> 2)) + 0x80; - - *q = (((tr1 + (tr1 >> 8)) & 0xf800) | - (((tg1 + (tg1 >> 8)) & 0xfc00) >> 5) | - ((tb1 + (tb1 >> 8)) >> 11)); -#else - /* This version correspond to the result we get with XRENDER - - * a bit of precision is lost since we convert to 8 bit after premultiplying - * instead of at the end - */ - guint tr2, tg2, tb2; - guint tr3, tg3, tb3; - - tr = (tmp & 0xf800); - tr1 = (255 - a) * ((tr >> 8) + (tr >> 13)) + 0x80; - tr2 = a * p[0] + 0x80; - tr3 = ((tr1 + (tr1 >> 8)) >> 8) + ((tr2 + (tr2 >> 8)) >> 8); - - tg = (tmp & 0x07e0); - tg1 = (255 - a) * ((tg >> 3) + (tg >> 9)) + 0x80; - tg2 = a * p[0] + 0x80; - tg3 = ((tg1 + (tg1 >> 8)) >> 8) + ((tg2 + (tg2 >> 8)) >> 8); - - tb = (tmp & 0x001f); - tb1 = (255 - a) * ((tb << 3) + (tb >> 2)) + 0x80; - tb2 = a * p[0] + 0x80; - tb3 = ((tb1 + (tb1 >> 8)) >> 8) + ((tb2 + (tb2 >> 8)) >> 8); - - *q = (((tr3 & 0xf8) << 8) | - ((tg3 & 0xfc) << 3) | - ((tb3 >> 3))); -#endif - - p += 4; - q++; - } - - src += src_rowstride; - dest += dest_rowstride; - } + return TRUE; } /* Implementation of the old vfunc in terms of the new one @@ -1706,101 +1594,26 @@ gdk_drawable_real_draw_pixbuf (GdkDrawable *drawable, if (gdk_pixbuf_get_has_alpha (pixbuf)) { - GdkVisual *visual = gdk_drawable_get_visual (drawable); - void (*composite_func) (guchar *src_buf, - gint src_rowstride, - guchar *dest_buf, - gint dest_rowstride, - GdkByteOrder dest_byte_order, - gint width, - gint height) = NULL; + if (composite_on_images (drawable, real_drawable, gc, pixbuf, + src_x, src_y, dest_x, dest_y, width, height, dither)) + return; - /* First we see if we have a visual-specific composition function that can composite - * the pixbuf data directly onto the image + /* Palettes, gray levels, dithering: composite against the + * drawable as 24-bit RGB, and convert back. */ - if (visual) - { - gint bits_per_pixel = _gdk_windowing_get_bits_for_depth (gdk_drawable_get_display (drawable), - visual->depth); + composited = gdk_pixbuf_get_from_drawable (NULL, + drawable, + NULL, + dest_x, dest_y, + 0, 0, + width, height); - if (visual->byte_order == (G_BYTE_ORDER == G_BIG_ENDIAN ? GDK_MSB_FIRST : GDK_LSB_FIRST) && - visual->depth == 16 && - visual->red_mask == 0xf800 && - visual->green_mask == 0x07e0 && - visual->blue_mask == 0x001f) - composite_func = composite_565; - else if (visual->depth == 24 && bits_per_pixel == 32 && - visual->red_mask == 0xff0000 && - visual->green_mask == 0x00ff00 && - visual->blue_mask == 0x0000ff) - { -#ifdef USE_MEDIALIB - if (_gdk_use_medialib ()) - composite_func = composite_0888_medialib; - else - composite_func = composite_0888; -#else - composite_func = composite_0888; -#endif - } - } - - /* We can't use our composite func if we are required to dither - */ - if (composite_func && !(dither == GDK_RGB_DITHER_MAX && visual->depth != 24)) - { - gint x0, y0; - for (y0 = 0; y0 < height; y0 += GDK_SCRATCH_IMAGE_HEIGHT) - { - gint height1 = MIN (height - y0, GDK_SCRATCH_IMAGE_HEIGHT); - for (x0 = 0; x0 < width; x0 += GDK_SCRATCH_IMAGE_WIDTH) - { - gint xs0, ys0; - - gint width1 = MIN (width - x0, GDK_SCRATCH_IMAGE_WIDTH); - - GdkImage *image = _gdk_image_get_scratch (gdk_drawable_get_screen (drawable), - width1, height1, - gdk_drawable_get_depth (drawable), &xs0, &ys0); - - gdk_drawable_copy_to_image (drawable, image, - dest_x + x0, dest_y + y0, - xs0, ys0, - width1, height1); - (*composite_func) (gdk_pixbuf_get_pixels (pixbuf) + (src_y + y0) * gdk_pixbuf_get_rowstride (pixbuf) + (src_x + x0) * 4, - gdk_pixbuf_get_rowstride (pixbuf), - (guchar*)image->mem + ys0 * image->bpl + xs0 * image->bpp, - image->bpl, - visual->byte_order, - width1, height1); - gdk_draw_image (real_drawable, gc, image, - xs0, ys0, - dest_x + x0, dest_y + y0, - width1, height1); - } - } - - goto out; - } - else - { - /* No special composition func, convert dest to 24 bit RGB data, composite against - * that, and convert back. - */ - composited = gdk_pixbuf_get_from_drawable (NULL, - drawable, - NULL, - dest_x, dest_y, - 0, 0, - width, height); - - if (composited) - composite (gdk_pixbuf_get_pixels (pixbuf) + src_y * gdk_pixbuf_get_rowstride (pixbuf) + src_x * 4, - gdk_pixbuf_get_rowstride (pixbuf), - gdk_pixbuf_get_pixels (composited), - gdk_pixbuf_get_rowstride (composited), - width, height); - } + if (composited) + composite (gdk_pixbuf_get_pixels (pixbuf) + src_y * gdk_pixbuf_get_rowstride (pixbuf) + src_x * 4, + gdk_pixbuf_get_rowstride (pixbuf), + gdk_pixbuf_get_pixels (composited), + gdk_pixbuf_get_rowstride (composited), + width, height); } if (composited) @@ -1833,7 +1646,6 @@ gdk_drawable_real_draw_pixbuf (GdkDrawable *drawable, x_dither, y_dither); } - out: if (composited) g_object_unref (composited); } diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 4f6ea7e5f..b50bf4066 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -361,8 +361,20 @@ cairo_surface_t * _gdk_drawable_create_cairo_surface (GdkDrawable *drawable, /* GC caching */ GdkGC *_gdk_drawable_get_scratch_gc (GdkDrawable *drawable, gboolean graphics_exposures); + GdkGC *_gdk_drawable_get_subwindow_scratch_gc (GdkDrawable *drawable); +/* GdkRGB */ +gboolean _gdk_rgb_composite (GdkColormap *colormap, + GdkImage *image, + gint x0, + gint y0, + gint width, + gint height, + const guchar *rgba, + gint rowstride, + GdkRgbDither dither); + void _gdk_gc_update_context (GdkGC *gc, cairo_t *cr, const GdkColor *override_foreground, diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index 492f7bca9..424a10ff3 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -83,6 +83,7 @@ struct _GdkRgbInfo guint32 fill; guint8 shift16[3][2]; guint32 dither_pack[64]; + guint8 unpack[3][256]; /* channel values of up to 8 bits to 8 bits */ guint8 layout; gboolean ditherable; @@ -1153,6 +1154,16 @@ gdk_rgb_init_truecolor (GdkRgbInfo *info, info->shift16[c][0] = 16 - p; info->shift16[c][1] = shift[c]; + /* repeating the bits, as the tables do for more than 8 bits */ + for (v = 0; p >= 1 && p <= 8 && v < (1 << p); v++) + { + gint bits = 0, w = v, n; + + for (n = 0; n < 8; n += p) + bits = (bits << p) | w; + info->unpack[c][v] = bits >> (n - 8); + } + if (!ditherable) continue; @@ -1801,6 +1812,198 @@ gdk_rgb_convert (GdkRgbInfo *info, } } +/* Reads pixels of the image into the machine's byte order. */ +static void +gdk_rgb_load_row (guint32 *pixels, + const guchar *in, + gint width, + gint bits_per_pixel, + gboolean msb_first) +{ + gint x; + + switch (bits_per_pixel) + { + case 8: + for (x = 0; x < width; x++) + pixels[x] = in[x]; + break; + case 16: + for (x = 0; x < width; x++, in += 2) + pixels[x] = msb_first ? (in[0] << 8) | in[1] : in[0] | (in[1] << 8); + break; + case 24: + for (x = 0; x < width; x++, in += 3) + pixels[x] = msb_first ? (in[0] << 16) | (in[1] << 8) | in[2] + : in[0] | (in[1] << 8) | (in[2] << 16); + break; + case 32: + for (x = 0; x < width; x++, in += 4) + pixels[x] = msb_first ? ((guint32) in[0] << 24) | (in[1] << 16) | (in[2] << 8) | in[3] + : in[0] | (in[1] << 8) | (in[2] << 16) | ((guint32) in[3] << 24); + break; + } +} + +#define T(c, v) (tables[(c) * 256 + (v)]) + +/* @a * @s + (255 - @a) * @d, divided by 255 and rounded */ +static inline guint +gdk_rgb_blend8 (guint a, + guint s, + guint d) +{ + guint t = a * s + (255 - a) * d + 0x80; + + return (t + (t >> 8)) >> 8; +} + +/* Blends a row of RGBA (not premultiplied) over pixels with channels of + * up to 8 bits, rounding as gdk-pixbuf does. */ +#define DEFINE_COMPOSITE_ROW(name, type) \ +static void \ +name (GdkRgbInfo *info, type *pix, const guchar *src, gint width) \ +{ \ + const guint32 *tables = info->tables; \ + const guint8 *ur = info->unpack[0], *ug = info->unpack[1], *ub = info->unpack[2]; \ + const gint rs = info->shift16[0][1], gs = info->shift16[1][1], bs = info->shift16[2][1]; \ + const guint rm = info->visual->red_mask >> rs; \ + const guint gm = info->visual->green_mask >> gs; \ + const guint bm = info->visual->blue_mask >> bs; \ + gint x; \ + \ + for (x = 0; x < width; x++, src += 4) \ + { \ + const guint a = src[3]; \ + guint32 p; \ + \ + if (a == 0) \ + continue; \ + if (a == 255) \ + { \ + pix[x] = T (0, src[0]) | T (1, src[1]) | T (2, src[2]); \ + continue; \ + } \ + p = pix[x]; \ + pix[x] = T (0, gdk_rgb_blend8 (a, src[0], ur[(p >> rs) & rm])) | \ + T (1, gdk_rgb_blend8 (a, src[1], ug[(p >> gs) & gm])) | \ + T (2, gdk_rgb_blend8 (a, src[2], ub[(p >> bs) & bm])); \ + } \ +} + +DEFINE_COMPOSITE_ROW (gdk_rgb_composite_row16, guint16) +DEFINE_COMPOSITE_ROW (gdk_rgb_composite_row32, guint32) + +#undef DEFINE_COMPOSITE_ROW + +/* The same for channels of more than 8 bits (30-bit visuals): the + * channel keeps its precision, the source is widened to it. */ +static void +gdk_rgb_composite_row_deep (GdkRgbInfo *info, + guint32 *pix, + const guchar *src, + gint width) +{ + const guint32 *tables = info->tables; + GdkVisual *visual = info->visual; + const gint prec[3] = { visual->red_prec, visual->green_prec, visual->blue_prec }; + const guint32 mask[3] = { visual->red_mask, visual->green_mask, visual->blue_mask }; + gint x, c; + + for (x = 0; x < width; x++, src += 4) + { + const guint a = src[3]; + guint32 p; + + if (a == 0) + continue; + if (a == 255) + { + pix[x] = T (0, src[0]) | T (1, src[1]) | T (2, src[2]); + continue; + } + + p = info->fill; + for (c = 0; c < 3; c++) + { + const gint shift = info->shift16[c][1]; + const guint d = (pix[x] & mask[c]) >> shift; + + if (prec[c] <= 8) + p |= T (c, gdk_rgb_blend8 (a, src[c], info->unpack[c][d])) & mask[c]; + else + { + /* T () widens 8 bits by repeating them */ + const guint s = (T (c, src[c]) & mask[c]) >> shift; + + p |= ((a * s + (255 - a) * d + 127) / 255) << shift; + } + } + pix[x] = p; + } +} + +#undef T + +/** + * _gdk_rgb_composite: + * @colormap: the colormap of the drawable @image was read from + * @image: pixels of the drawable + * @rgba: RGBA pixels, not premultiplied + * @dither: the dithering the caller asked for + * + * Blends @width x @height pixels of @rgba over @image at @x0, @y0. + * + * Return value: %FALSE when this can't be done on the image itself: + * for palettes and gray levels, and when dithering is wanted + */ +gboolean +_gdk_rgb_composite (GdkColormap *colormap, + GdkImage *image, + gint x0, + gint y0, + gint width, + gint height, + const guchar *rgba, + gint rowstride, + GdkRgbDither dither) +{ + GdkRgbInfo *info = gdk_rgb_get_info_from_colormap (colormap); + GdkVisual *visual = info->visual; + gint bits = image->bits_per_pixel; + gboolean msb_first = image->byte_order == GDK_MSB_FIRST; + gboolean native = msb_first == (G_BYTE_ORDER == G_BIG_ENDIAN); + gboolean deep = visual->red_prec > 8 || visual->green_prec > 8 || visual->blue_prec > 8; + guchar *out = (guchar *) image->mem + y0 * image->bpl + x0 * (bits / 8); + guint32 row[ROW_MAX]; + gint y; + + if (!info->tables || bits % 8 != 0 || width > ROW_MAX || + (dither == GDK_RGB_DITHER_MAX && info->ditherable)) + return FALSE; + + for (y = 0; y < height; y++, rgba += rowstride, out += image->bpl) + { + if (native && bits == 16 && !deep) + gdk_rgb_composite_row16 (info, (guint16 *) out, rgba, width); + else if (native && bits == 32 && !deep) + gdk_rgb_composite_row32 (info, (guint32 *) out, rgba, width); + else if (native && bits == 32) + gdk_rgb_composite_row_deep (info, (guint32 *) out, rgba, width); + else + { + gdk_rgb_load_row (row, out, width, bits, msb_first); + if (deep) + gdk_rgb_composite_row_deep (info, row, rgba, width); + else + gdk_rgb_composite_row32 (info, row, rgba, width); + gdk_rgb_store_row (out, row, width, bits, msb_first); + } + } + + return TRUE; +} + static GdkRgbInfo * gdk_rgb_get_info_from_drawable (GdkDrawable *drawable) { From e782c550d55bbbbe9504faadff0f2f8cc4ad5ac8 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:39:17 +0200 Subject: [PATCH 006/249] gdkdrawable-x11: blend with RENDER except where GdkRGB does it better --- gdk/gdkinternals.h | 2 ++ gdk/gdkrgb.c | 21 +++++++++++++++++++++ gdk/x11/gdkdrawable-x11.c | 4 +++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index b50bf4066..2edf169f7 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -374,6 +374,8 @@ gboolean _gdk_rgb_composite (GdkColormap *colormap, const guchar *rgba, gint rowstride, GdkRgbDither dither); +gboolean _gdk_rgb_prefers_own_blending (GdkColormap *colormap, + GdkRgbDither dither); void _gdk_gc_update_context (GdkGC *gc, cairo_t *cr, diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index 424a10ff3..edc20366c 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -2004,6 +2004,27 @@ _gdk_rgb_composite (GdkColormap *colormap, return TRUE; } +/** + * _gdk_rgb_prefers_own_blending: + * @colormap: a colormap + * @dither: the dithering asked for + * + * Whether pixbufs with alpha look better blended by GdkRGB than by + * the RENDER extension: for palettes and gray levels, which RENDER + * maps to its nearest colors, and for dithering, which RENDER doesn't do. + */ +gboolean +_gdk_rgb_prefers_own_blending (GdkColormap *colormap, + GdkRgbDither dither) +{ + GdkRgbInfo *info = gdk_rgb_get_info_from_colormap (colormap); + + if (!info->tables) + return TRUE; + + return dither == GDK_RGB_DITHER_MAX && info->ditherable; +} + static GdkRgbInfo * gdk_rgb_get_info_from_drawable (GdkDrawable *drawable) { diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c index d27a03ebb..00b39b769 100644 --- a/gdk/x11/gdkdrawable-x11.c +++ b/gdk/x11/gdkdrawable-x11.c @@ -1476,6 +1476,7 @@ gdk_x11_draw_pixbuf (GdkDrawable *drawable, gint x_dither, gint y_dither) { + GdkColormap *colormap = gdk_drawable_get_colormap (drawable); GdkX11FormatType format_type; XRenderPictFormat *format, *mask_format; gint rowstride; @@ -1489,7 +1490,8 @@ gdk_x11_draw_pixbuf (GdkDrawable *drawable, if (format_type == GDK_X11_FORMAT_NONE || !gdk_pixbuf_get_has_alpha (pixbuf) || gdk_drawable_get_depth (drawable) == 1 || - (dither == GDK_RGB_DITHER_MAX && gdk_drawable_get_depth (drawable) != 24) || + (colormap ? _gdk_rgb_prefers_own_blending (colormap, dither) + : dither == GDK_RGB_DITHER_MAX && gdk_drawable_get_depth (drawable) != 24) || gdk_x11_drawable_get_picture (drawable) == None) { GdkDrawable *wrapper = GDK_DRAWABLE_IMPL_X11 (drawable)->wrapper; From 3d3969ab2382a3d21db78518a6fe7c3b5cc07fdc Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:42:19 +0200 Subject: [PATCH 007/249] gdk: drop mediaLib, nothing uses it any more --- config.h.win32.in | 12 ---- configure.ac | 32 --------- docs/reference/gdk/tmpl/rgb.sgml | 7 -- gdk/Makefile.am | 11 +-- gdk/gdkdraw.c | 6 -- gdk/gdkinternals.h | 3 - gdk/gdkmedialib.c | 120 ------------------------------- gdk/gdkmedialib.h | 45 ------------ 8 files changed, 1 insertion(+), 235 deletions(-) delete mode 100644 gdk/gdkmedialib.c delete mode 100644 gdk/gdkmedialib.h diff --git a/config.h.win32.in b/config.h.win32.in index b7236b720..a11705ac8 100644 --- a/config.h.win32.in +++ b/config.h.win32.in @@ -150,12 +150,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 -/* Define to 1 if sys/sysinfo.h is available */ -/* #undef HAVE_SYS_SYSINFO_H */ - -/* Define to 1 if sys/systeminfo.h is available */ -/* #undef HAVE_SYS_SYSTEMINFO_H */ - /* Define to 1 if you have the header file. */ #ifndef _MSC_VER #define HAVE_SYS_TIME_H 1 @@ -280,12 +274,6 @@ /* Whether to load modules via .la files rather than directly */ /* #undef USE_LA_MODULES */ -/* Define to 1 if medialib is available and should be used */ -/* #undef USE_MEDIALIB */ - -/* Define to 1 if medialib 2.5 is available */ -/* #undef USE_MEDIALIB25 */ - /* Define to 1 if XXM is available and should be used */ #ifndef _MSC_VER # define USE_MMX 1 diff --git a/configure.ac b/configure.ac index 04536e910..e1c2bbab5 100644 --- a/configure.ac +++ b/configure.ac @@ -958,38 +958,6 @@ AM_CONDITIONAL(INCLUDE_IM_XIM, [test x"$INCLUDE_xim" = xyes]) AC_HEADER_SYS_WAIT -# Checks to see whether we should include mediaLib -# support. -# -AC_CHECK_HEADER(sys/systeminfo.h, - AC_DEFINE(HAVE_SYS_SYSTEMINFO_H, 1, - [Define to 1 if sys/systeminfo.h is available])) -AC_CHECK_HEADER(sys/sysinfo.h, - AC_DEFINE(HAVE_SYS_SYSINFO_H, 1, - [Define to 1 if sys/sysinfo.h is available])) - -AC_MSG_CHECKING(for mediaLib 2.3) -use_mlib25=no -# Check for a mediaLib 2.3 function since that is what the GTK+ mediaLib -# patch requires. -AC_CHECK_LIB(mlib, mlib_ImageSetStruct, use_mlib=yes, use_mlib=no) -if test $use_mlib = yes; then - AC_DEFINE(USE_MEDIALIB, 1, - [Define to 1 if medialib is available and should be used]) - MEDIA_LIB=-lmlib - - AC_MSG_CHECKING(for mediaLib 2.5) - # Check for a mediaLib 2.5 function since that is what is needed for - # gdk_rgb_convert integration. - AC_CHECK_LIB(mlib, mlib_VideoColorRGBint_to_BGRAint, use_mlib25=yes, use_mlib25=no) - if test $use_mlib25 = yes; then - AC_DEFINE(USE_MEDIALIB25, 1, - [Define to 1 if medialib 2.5 is available]) - fi -fi -AM_CONDITIONAL(USE_MEDIALIB, test $use_mlib = yes) -AM_CONDITIONAL(USE_MEDIALIB25, test $use_mlib25 = yes) - dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) diff --git a/docs/reference/gdk/tmpl/rgb.sgml b/docs/reference/gdk/tmpl/rgb.sgml index 19ccc0097..f38b86b84 100644 --- a/docs/reference/gdk/tmpl/rgb.sgml +++ b/docs/reference/gdk/tmpl/rgb.sgml @@ -34,13 +34,6 @@ created in grayscale and direct color modes, and the visual is changed in cases where a "better" visual than the default is available. - -If GDK is built with the Sun mediaLib library, the GdkRGB functions are -accelerated using mediaLib, which provides hardware acceleration on Intel, -AMD, and Sparc chipsets. If desired, mediaLib support can be turned off -by setting the GDK_DISABLE_MEDIALIB environment variable. - - A simple example program using GdkRGB diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 1fc04ae97..8198717cb 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -22,7 +22,6 @@ EXTRA_DIST += \ gdkkeysyms-update.pl \ gdk.def \ gdkmarshalers.list \ - gdkmedialib.h \ gdkwindowimpl.h \ makeenums.pl \ makefile.msc \ @@ -59,13 +58,6 @@ LDADD = \ $(no_undefined) \ $(LIBTOOL_EXPORT_OPTIONS) -if USE_MEDIALIB -medialib_sources = \ - gdkmedialib.c -else -medialib_sources = -endif - # # setup source file variables # @@ -119,7 +111,6 @@ gdk_private_headers = \ gdkregion-generic.h gdk_c_sources = \ - $(medialib_sources) \ gdk.c \ gdkapplaunchcontext.c \ gdkcairo.c \ @@ -477,7 +468,7 @@ INTROSPECTION_INTERMEDIATE_ITEMS = \ $(top_builddir)/build/win32/Gdk-2.0.gir.msvc.introspect \ $(top_builddir)/build/win32/Gdk_2_0_gir_list -Gdk_2_0_gir_MSVC_FILES = $(filter-out gdkmedialib.c, $(base_introspection_files)) +Gdk_2_0_gir_MSVC_FILES = $(base_introspection_files) Gdk_2_0_gir_MSVC_EXPORT_PACKAGES = $(Gdk_2_0_gir_EXPORT_PACKAGES) Gdk_2_0_gir_MSVC_INCLUDE_GIRS = $(Gdk_2_0_gir_INCLUDES) Gdk_2_0_gir_MSVC_LIBS = gdk-win32-2.0 diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index a19d920b8..367e7351a 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -794,12 +794,6 @@ gdk_draw_image (GdkDrawable *drawable, * On older X servers, rendering pixbufs with an alpha channel involves round * trips to the X server, and may be somewhat slow. * - * If GDK is built with the Sun mediaLib library, the gdk_draw_pixbuf - * function is accelerated using mediaLib, which provides hardware - * acceleration on Intel, AMD, and Sparc chipsets. If desired, mediaLib - * support can be turned off by setting the GDK_DISABLE_MEDIALIB environment - * variable. - * * Since: 2.2 * * Deprecated: 2.22: Use gdk_cairo_set_source_pixbuf() and cairo_paint() or diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 2edf169f7..c278f52b6 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -33,9 +33,6 @@ #include #include #include -#ifdef USE_MEDIALIB -#include -#endif G_BEGIN_DECLS diff --git a/gdk/gdkmedialib.c b/gdk/gdkmedialib.c deleted file mode 100644 index 8966a4e42..000000000 --- a/gdk/gdkmedialib.c +++ /dev/null @@ -1,120 +0,0 @@ -/* GDK - The GIMP Drawing Kit - * Copyright (C) 2001-2007 Sun Microsystems, Inc. All rights reserved. - * (Brian Cameron, Dmitriy Demin, James Cheng, Padraig O'Briain) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -/* - * Modified by the GTK+ Team and others 1997-2007. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -#include "config.h" - -#include -#include - -#ifdef HAVE_STRINGS_H -#include -#endif - -#ifdef HAVE_STRING_H -#include -#endif - -#if defined(HAVE_SYS_SYSTEMINFO_H) -#include -#elif defined(HAVE_SYS_SYSINFO_H) -#include -#endif - -#include "gdkmedialib.h" - -typedef char * (*ml_version) (void); - -static ml_version medialib_version = mlib_version; - -gboolean -_gdk_use_medialib (void) -{ - char *mlib_version_string; - char sys_info[257]; - long count; - - /* - * Sun mediaLib(tm) support. - * - * http://www.sun.com/processors/vis/mlib.html - * - */ - if (getenv ("GDK_DISABLE_MEDIALIB")) - return FALSE; - - /* - * The imaging functions we want to use were added in mediaLib version 2. - * So turn off mediaLib support if the user has an older version. - * mlib_version returns a string in this format: - * - * mediaLib:0210:20011101:v8plusa - * ^^^^^^^^ ^^^^ ^^^^^^^^ ^^^^^^^ - * libname vers build ISALIST identifier - * date (in this case sparcv8plus+vis) - * - * The first 2 digits of the version are the major version. The 3rd digit - * is the minor version, and the 4th digit is the micro version. So the - * above string corresponds to version 2.1.0.In the following test we only - * care about the major version. - */ - mlib_version_string = medialib_version (); - - count = sysinfo (SI_ARCHITECTURE, &sys_info[0], 257); - - if (count != -1) - { - if (strcmp (sys_info, "i386") == 0) - { - char *mlib_target_isa = &mlib_version_string[23]; - - /* - * For x86 processors mediaLib generic C implementation - * does not give any performance advantage so disable it. - */ - if (strncmp (mlib_target_isa, "sse", 3) != 0) - { - return FALSE; - } - - /* - * For x86 processors use of libumem conflicts with - * mediaLib, so avoid using it. - */ - if (dlsym (RTLD_PROBE, "umem_alloc") != NULL) - { - return FALSE; - } - } - } - else - { - /* Failed to get system architecture, disable mediaLib */ - return FALSE; - } - - return TRUE; -} diff --git a/gdk/gdkmedialib.h b/gdk/gdkmedialib.h deleted file mode 100644 index 1912e9d70..000000000 --- a/gdk/gdkmedialib.h +++ /dev/null @@ -1,45 +0,0 @@ -/* GDK - The GIMP Drawing Kit - * Copyright (C) 2001-2007 Sun Microsystems, Inc. All rights reserved. - * (Brian Cameron, Dmitriy Demin, James Cheng, Padraig O'Briain) - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -/* - * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS - * file for a list of people on the GTK+ Team. See the ChangeLog - * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. - */ - -#ifndef __GDK_MEDIALIB_H__ -#define __GDK_MEDIALIB_H__ - -#ifdef USE_MEDIALIB -#include -#include - -#include - -G_BEGIN_DECLS - -gboolean _gdk_use_medialib (void); - -G_END_DECLS - -#endif /* USE_MEDIALIB */ -#endif /* __GDK_MEDIALIB_H__ */ - From 120c6e5457c6da557cc09b958453fab77c7d8cd3 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 11:46:11 +0200 Subject: [PATCH 008/249] gdkpixbuf-drawable: one reader for all visuals and depths, shared with GdkRGB --- gdk/gdkimage.c | 61 ++ gdk/gdkinternals.h | 5 + gdk/gdkpixbuf-drawable.c | 1193 ++++---------------------------------- gdk/gdkrgb.c | 35 +- 4 files changed, 187 insertions(+), 1107 deletions(-) diff --git a/gdk/gdkimage.c b/gdk/gdkimage.c index 0c46aa142..146da4e1c 100644 --- a/gdk/gdkimage.c +++ b/gdk/gdkimage.c @@ -655,5 +655,66 @@ gdk_image_new (GdkImageType type, visual, width, height, -1); } +/** + * _gdk_image_read_row: + * @image: a #GdkImage + * @x: the first pixel + * @y: the row + * @width: how many pixels + * @pixels: where to put the pixel values + * + * Reads pixel values of any number of bits per pixel and either byte + * order; for less than 8 bits, the byte order is the order of the + * pixels in a byte, too. + */ +void +_gdk_image_read_row (GdkImage *image, + gint x, + gint y, + gint width, + guint32 *pixels) +{ + const guchar *in = (const guchar *) image->mem + y * image->bpl; + const gboolean msb = image->byte_order == GDK_MSB_FIRST; + const gint bits = image->bits_per_pixel; + gint i; + + if (bits < 8) + { + const guint mask = (1 << bits) - 1; + + for (i = 0; i < width; i++) + { + const gint bit = (x + i) * bits; + + pixels[i] = (in[bit >> 3] >> (msb ? 8 - bits - (bit & 7) : bit & 7)) & mask; + } + return; + } + + in += x * (bits / 8); + switch (bits) + { + case 8: + for (i = 0; i < width; i++) + pixels[i] = in[i]; + break; + case 16: + for (i = 0; i < width; i++, in += 2) + pixels[i] = msb ? (in[0] << 8) | in[1] : in[0] | (in[1] << 8); + break; + case 24: + for (i = 0; i < width; i++, in += 3) + pixels[i] = msb ? (in[0] << 16) | (in[1] << 8) | in[2] + : in[0] | (in[1] << 8) | (in[2] << 16); + break; + case 32: + for (i = 0; i < width; i++, in += 4) + pixels[i] = msb ? ((guint32) in[0] << 24) | (in[1] << 16) | (in[2] << 8) | in[3] + : in[0] | (in[1] << 8) | (in[2] << 16) | ((guint32) in[3] << 24); + break; + } +} + #define __GDK_IMAGE_C__ #include "gdkaliasdef.c" diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index c278f52b6..16806f2d2 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -332,6 +332,11 @@ GdkImage* _gdk_image_new_for_depth (GdkScreen *screen, gint width, gint height, gint depth); +void _gdk_image_read_row (GdkImage *image, + gint x, + gint y, + gint width, + guint32 *pixels); GdkImage *_gdk_image_get_scratch (GdkScreen *screen, gint width, gint height, diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c index c710ab388..df099da25 100644 --- a/gdk/gdkpixbuf-drawable.c +++ b/gdk/gdkpixbuf-drawable.c @@ -36,1004 +36,30 @@ #include "gdkinternals.h" #include "gdkalias.h" -/* Some convenient names - */ -#if (G_BYTE_ORDER == G_LITTLE_ENDIAN) -#define LITTLE -#undef BIG -#else -#define BIG -#undef LITTLE -#endif -#define d(x) - -#define SWAP16(d) GUINT16_SWAP_LE_BE(d) - - - -static const guint32 mask_table[] = { - 0x00000000, 0x00000001, 0x00000003, 0x00000007, - 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, - 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, - 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, - 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, - 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, - 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, - 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, - 0xffffffff -}; - - - -/* - * convert bitmap data to pixbuf without alpha, - * without using a colormap - */ -static void -bitmap1 (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2) -{ - int xx, yy; - int bpl; - register guint8 data; - guint8 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl, *orow = pixels; - - d (printf ("bitmap, no alpha\n")); - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - o = orow; - - for (xx = x1; xx < x2; xx ++) - { - /* top 29 bits of xx (xx >> 3) indicate the byte the bit is inside, - * bottom 3 bits (xx & 7) indicate bit inside that byte, - * we don't bother to canonicalize data to 1 or 0, just - * leave the relevant bit in-place. - */ - data = srow[xx >> 3] & (image->byte_order == GDK_MSB_FIRST ? - (0x80 >> (xx & 7)) : - (1 << (xx & 7))); - - if (data) - { - *o++ = 255; - *o++ = 255; - *o++ = 255; - } - else - { - *o++ = 0; - *o++ = 0; - *o++ = 0; - } - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert bitmap data to pixbuf with alpha, - * without using a colormap - */ -static void -bitmap1a (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2) -{ - int xx, yy; - int bpl; - register guint8 data; - guint8 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl, *orow = pixels; - - d (printf ("bitmap, with alpha\n")); - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - o = orow; - - for (xx = x1; xx < x2; xx ++) - { - /* see comment in bitmap1() */ - data = srow[xx >> 3] & (image->byte_order == GDK_MSB_FIRST ? - (0x80 >> (xx & 7)) : - (1 << (xx & 7))); - - if (data) - { - *o++ = 255; - *o++ = 255; - *o++ = 255; - *o++ = 255; - } - else - { - *o++ = 0; - *o++ = 0; - *o++ = 0; - *o++ = 0; - } - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 1 bits-pixel data - * no alpha - */ -static void -rgb1 (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - register guint8 data; - guint8 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl, *orow = pixels; - - d (printf ("1 bits/pixel\n")); - - /* convert upto 8 pixels/time */ - /* its probably not worth trying to make this run very fast, who uses - * 1 bit displays anymore? - */ - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - o = orow; - - for (xx = x1; xx < x2; xx ++) - { - /* see comment in bitmap1() */ - data = srow[xx >> 3] & (image->byte_order == GDK_MSB_FIRST ? - (0x80 >> (xx & 7)) : - (1 << (xx & 7))); - - *o++ = colormap->colors[data].red >> 8; - *o++ = colormap->colors[data].green >> 8; - *o++ = colormap->colors[data].blue >> 8; - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 1 bits/pixel data - * with alpha - */ -static void -rgb1a (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - register guint8 data; - guint8 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl, *orow = pixels; - - d (printf ("1 bits/pixel\n")); - - /* convert upto 8 pixels/time */ - /* its probably not worth trying to make this run very fast, who uses - * 1 bit displays anymore? */ - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - o = orow; - - for (xx = x1; xx < x2; xx ++) - { - /* see comment in bitmap1() */ - data = srow[xx >> 3] & (image->byte_order == GDK_MSB_FIRST ? - (0x80 >> (xx & 7)) : - (1 << (xx & 7))); - - *o++ = colormap->colors[data].red >> 8; - *o++ = colormap->colors[data].green >> 8; - *o++ = colormap->colors[data].blue >> 8; - *o++ = 255; - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 8 bits/pixel data - * no alpha - */ -static void -rgb8 (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - guint32 mask; - register guint32 data; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - register guint8 *s; - register guint8 *o; - - bpl = image->bpl; - - d (printf ("8 bit, no alpha output\n")); - - mask = mask_table[image->depth]; - - for (yy = y1; yy < y2; yy++) - { - s = srow; - o = orow; - for (xx = x1; xx < x2; xx++) - { - data = *s++ & mask; - *o++ = colormap->colors[data].red >> 8; - *o++ = colormap->colors[data].green >> 8; - *o++ = colormap->colors[data].blue >> 8; - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 8 bits/pixel data - * with alpha - */ -static void -rgb8a (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - guint32 mask; - register guint32 data; - guint32 remap[256]; - register guint8 *s; /* read 2 pixels at once */ - register guint32 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - d (printf ("8 bit, with alpha output\n")); - - mask = mask_table[image->depth]; - - for (xx = x1; xx < colormap->size; xx++) - { -#ifdef LITTLE - remap[xx] = 0xff000000 - | (colormap->colors[xx].blue & 0xff00) << 8 - | (colormap->colors[xx].green & 0xff00) - | (colormap->colors[xx].red >> 8); -#else - remap[xx] = 0xff - | (colormap->colors[xx].red & 0xff00) << 16 - | (colormap->colors[xx].green & 0xff00) << 8 - | (colormap->colors[xx].blue & 0xff00); -#endif - } - - for (yy = y1; yy < y2; yy++) - { - s = srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx ++) - { - data = *s++ & mask; - *o++ = remap[data]; - } - srow += bpl; - orow += rowstride; - } -} - -/* Bit shifting for 565 and 555 conversion routines - * - * RGB565 == rrrr rggg gggb bbbb, 16 bit native endian - * RGB555 == xrrr rrgg gggb bbbb - * ABGR8888: ARGB, 32-bit native endian - * RGBA8888: RGBA, 32-bit native endian - */ -#define R8fromRGB565(d) ((((d) >> 8) & 0xf8) | (((d) >> 13) & 0x7)) -#define G8fromRGB565(d) ((((d) >> 3) & 0xfc) | (((d) >> 9) & 0x3)) -#define B8fromRGB565(d) ((((d) << 3) & 0xf8) | (((d) >> 2) & 0x7)) - -#define ABGR8888fromRGB565(d) ( ((d) & 0xf800) >> 8 | ((d) & 0xe000) >> 13 \ - | ((d) & 0x07e0) << 5 | ((d) & 0x0600) >> 1 \ - | ((d) & 0x001f) << 19 | ((d) & 0x001c) << 14 \ - | 0xff000000) -#define RGBA8888fromRGB565(d) ( ((d) & 0xf800) << 16 | ((d) & 0xe000) << 11 \ - | ((d) & 0x07e0) << 13 | ((d) & 0x0600) << 7 \ - | ((d) & 0x001f) << 11 | ((d) & 0x001c) << 6 \ - | 0xff) - -#define R8fromRGB555(d) (((d) & 0x7c00) >> 7 | ((d) & 0x7000) >> 12) -#define G8fromRGB555(d) (((d) & 0x03e0) >> 2 | ((d) & 0x0380) >> 7) -#define B8fromRGB555(d) (((d) & 0x001f) << 3 | ((d) & 0x001c) >> 2) - -#define ABGR8888fromRGB555(d) ( ((d) & 0x7c00) >> 7 | ((d) & 0x7000) >> 12 \ - | ((d) & 0x03e0) << 6 | ((d) & 0x0380) << 1 \ - | ((d) & 0x001f) << 19 | ((d) & 0x001c) << 14 \ - | 0xff000000) -#define RGBA8888fromRGB555(d) ( ((d) & 0x7c00) << 17 | ((d) & 0x7000) << 12 \ - | ((d) & 0x03e0) << 14 | ((d) & 0x0380) << 9 \ - | ((d) & 0x001f) << 11 | ((d) & 0x001c) << 6 \ - | 0xff) - -/* - * convert 16 bits/pixel data - * no alpha - * data in lsb format - */ -static void -rgb565lsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint8 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint8 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef BIG - data = SWAP16 (data); -#endif - *o++ = R8fromRGB565 (data); - *o++ = G8fromRGB565 (data); - *o++ = B8fromRGB565 (data); - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 16 bits/pixel data - * no alpha - * data in msb format - */ -static void -rgb565msb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint8 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint8 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef LITTLE - data = SWAP16 (data); -#endif - *o++ = R8fromRGB565 (data); - *o++ = G8fromRGB565 (data); - *o++ = B8fromRGB565 (data); - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 16 bits/pixel data - * with alpha - * data in lsb format - */ -static void -rgb565alsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint32 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef LITTLE - *o++ = ABGR8888fromRGB565 (data); -#else - data = SWAP16 (data); - *o++ = RGBA8888fromRGB565 (data); -#endif - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 16 bits/pixel data - * with alpha - * data in msb format - */ -static void -rgb565amsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint32 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef LITTLE - data = SWAP16 (data); - *o++ = ABGR8888fromRGB565 (data); -#else - *o++ = RGBA8888fromRGB565 (data); -#endif - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 15 bits/pixel data - * no alpha - * data in lsb format - */ -static void -rgb555lsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint8 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint8 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef BIG - data = SWAP16 (data); -#endif - *o++ = R8fromRGB555 (data); - *o++ = G8fromRGB555 (data); - *o++ = B8fromRGB555 (data); - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 15 bits/pixel data - * no alpha - * data in msb format - */ -static void -rgb555msb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint8 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint8 *) orow; - for (xx = x1; xx < x2; xx ++) - { - register guint32 data = *s++; -#ifdef LITTLE - data = SWAP16 (data); -#endif - *o++ = R8fromRGB555 (data); - *o++ = G8fromRGB555 (data); - *o++ = B8fromRGB555 (data); - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 15 bits/pixel data - * with alpha - * data in lsb format - */ -static void -rgb555alsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; /* read 1 pixels at once */ - register guint32 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx++) - { - register guint32 data = *s++; -#ifdef LITTLE - *o++ = ABGR8888fromRGB555 (data); -#else - data = SWAP16 (data); - *o++ = RGBA8888fromRGB555 (data); -#endif - } - srow += bpl; - orow += rowstride; - } -} - -/* - * convert 15 bits/pixel data - * with alpha - * data in msb format - */ -static void -rgb555amsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - register guint16 *s; - register guint32 *o; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = (guint16 *) srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx++) - { - register guint32 data = *s++; -#ifdef LITTLE - data = SWAP16 (data); - *o++ = ABGR8888fromRGB555 (data); -#else - *o++ = RGBA8888fromRGB555 (data); -#endif - } - srow += bpl; - orow += rowstride; - } -} - - -static void -rgb888alsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - guint8 *s; /* for byte order swapping */ - guint8 *o; - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - - bpl = image->bpl; - - d (printf ("32 bits/pixel with alpha\n")); - - /* lsb data */ - for (yy = y1; yy < y2; yy++) - { - s = srow; - o = orow; - for (xx = x1; xx < x2; xx++) - { - *o++ = s[2]; - *o++ = s[1]; - *o++ = s[0]; - *o++ = 0xff; - s += 4; - } - srow += bpl; - orow += rowstride; - } -} - -static void -rgb888lsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - guint8 *o, *s; - - bpl = image->bpl; - - d (printf ("32 bit, lsb, no alpha\n")); - - for (yy = y1; yy < y2; yy++) - { - s = srow; - o = orow; - for (xx = x1; xx < x2; xx++) - { - *o++ = s[2]; - *o++ = s[1]; - *o++ = s[0]; - s += 4; - } - srow += bpl; - orow += rowstride; - } -} - -static void -rgb888amsb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - guint32 *o; - guint32 *s; - - d (printf ("32 bit, msb, with alpha\n")); - - bpl = image->bpl; - - /* msb data */ - for (yy = y1; yy < y2; yy++) - { - s = (guint32 *) srow; - o = (guint32 *) orow; - for (xx = x1; xx < x2; xx++) - { -#ifdef LITTLE - *o++ = (*s++ >> 8) | 0xff000000; -#else - *o++ = (*s++ << 8) | 0xff; -#endif - } - srow += bpl; - orow += rowstride; - } -} - -static void -rgb888msb (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *colormap) -{ - int xx, yy; - int bpl; - - guint8 *srow = (guint8*)image->mem + y1 * image->bpl + x1 * image->bpp, *orow = pixels; - guint8 *s; - guint8 *o; - - d (printf ("32 bit, msb, no alpha\n")); - - bpl = image->bpl; - - for (yy = y1; yy < y2; yy++) - { - s = srow; - o = orow; - for (xx = x1; xx < x2; xx++) - { - *o++ = s[1]; - *o++ = s[2]; - *o++ = s[3]; - s += 4; - } - srow += bpl; - orow += rowstride; - } -} - -/* - * This should work correctly with any display/any endianness, but will probably - * run quite slow - */ -static void -convert_real_slow (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *cmap, - gboolean alpha) -{ - int xx, yy; - guint8 *orow = pixels; - guint8 *o; - guint32 pixel; - GdkVisual *v; - guint8 component; - int i; - - v = gdk_colormap_get_visual (cmap); - - if (image->depth != v->depth) - { - g_warning ("%s: The depth of the source image (%d) doesn't " - "match the depth of the colormap passed in (%d).", - G_STRLOC, image->depth, v->depth); - return; - } - - d(printf("rgb mask/shift/prec = %x:%x:%x %d:%d:%d %d:%d:%d\n", - v->red_mask, v->green_mask, v->blue_mask, - v->red_shift, v->green_shift, v->blue_shift, - v->red_prec, v->green_prec, v->blue_prec)); - - for (yy = y1; yy < y2; yy++) - { - o = orow; - for (xx = x1; xx < x2; xx++) - { - pixel = gdk_image_get_pixel (image, xx, yy); - switch (v->type) - { - /* I assume this is right for static & greyscale's too? */ - case GDK_VISUAL_STATIC_GRAY: - case GDK_VISUAL_GRAYSCALE: - case GDK_VISUAL_STATIC_COLOR: - case GDK_VISUAL_PSEUDO_COLOR: - *o++ = cmap->colors[pixel].red >> 8; - *o++ = cmap->colors[pixel].green >> 8; - *o++ = cmap->colors[pixel].blue >> 8; - break; - case GDK_VISUAL_TRUE_COLOR: - /* This is odd because it must sometimes shift left (otherwise - * I'd just shift >> (*_shift - 8 + *_prec + <0-7>). This logic - * should work for all bit sizes/shifts/etc. - */ - component = 0; - for (i = 24; i < 32; i += v->red_prec) - component |= ((pixel & v->red_mask) << (32 - v->red_shift - v->red_prec)) >> i; - *o++ = component; - component = 0; - for (i = 24; i < 32; i += v->green_prec) - component |= ((pixel & v->green_mask) << (32 - v->green_shift - v->green_prec)) >> i; - *o++ = component; - component = 0; - for (i = 24; i < 32; i += v->blue_prec) - component |= ((pixel & v->blue_mask) << (32 - v->blue_shift - v->blue_prec)) >> i; - *o++ = component; - break; - case GDK_VISUAL_DIRECT_COLOR: - *o++ = cmap->colors[((pixel & v->red_mask) << (32 - v->red_shift - v->red_prec)) >> 24].red >> 8; - *o++ = cmap->colors[((pixel & v->green_mask) << (32 - v->green_shift - v->green_prec)) >> 24].green >> 8; - *o++ = cmap->colors[((pixel & v->blue_mask) << (32 - v->blue_shift - v->blue_prec)) >> 24].blue >> 8; - break; - } - if (alpha) - *o++ = 0xff; - } - orow += rowstride; - } -} - -typedef void (* cfunc) (GdkImage *image, - guchar *pixels, - int rowstride, - int x1, - int y1, - int x2, - int y2, - GdkColormap *cmap); - -static const cfunc convert_map[] = { - rgb1,rgb1,rgb1a,rgb1a, - rgb8,rgb8,rgb8a,rgb8a, - rgb555lsb,rgb555msb,rgb555alsb,rgb555amsb, - rgb565lsb,rgb565msb,rgb565alsb,rgb565amsb, - rgb888lsb,rgb888msb,rgb888alsb,rgb888amsb -}; - -/* - * perform actual conversion - * - * If we can, try and use the optimised code versions, but as a default - * fallback, and always for direct colour, use the generic/slow but complete - * conversion function. +/* Converts @width x @height pixels of @image at @x, @y to RGB or RGBA + * at @pixels, for any visual and any number of bits per pixel. Without + * a colormap, the image is a bitmap: 0 is black, 1 is white. */ static void rgbconvert (GdkImage *image, guchar *pixels, int rowstride, gboolean alpha, - int x, - int y, - int width, - int height, + int x, + int y, + int width, + int height, GdkColormap *cmap) { - int index; - int bank; - GdkVisual *v; + static const GdkColor bitmap_colors[2] = { { 0, 0, 0, 0 }, { 1, 0xffff, 0xffff, 0xffff } }; + const GdkColor *colors = bitmap_colors; + gint n_colors = 2; + GdkVisual *v = NULL; + guint32 mask[3] = { 0, }, row[GDK_SCRATCH_IMAGE_WIDTH]; + gint shift[3] = { 0, }, down[3] = { 0, }; + guchar chan[3][256]; + gboolean palette = TRUE, direct = FALSE, bytes = FALSE; + gint ri = 0, gi = 0, bi = 0, i, j, c; g_assert ((x + width) <= image->width); g_assert ((y + height) <= image->height); @@ -1042,92 +68,113 @@ rgbconvert (GdkImage *image, { /* Only allowed for bitmaps */ g_return_if_fail (image->depth == 1); - - if (alpha) - bitmap1a (image, pixels, rowstride, - x, y, x + width, y + height); - else - bitmap1 (image, pixels, rowstride, - x, y, x + width, y + height); - - return; - } - - v = gdk_colormap_get_visual (cmap); - - if (image->depth != v->depth) - { - g_warning ("%s: The depth of the source image (%d) doesn't " - "match the depth of the colormap passed in (%d).", - G_STRLOC, image->depth, v->depth); - return; - } - - bank = 5; /* default fallback converter */ - index = (image->byte_order == GDK_MSB_FIRST) | (alpha != 0) << 1; - - d(printf("masks = %x:%x:%x\n", v->red_mask, v->green_mask, v->blue_mask)); - d(printf("image depth = %d, bits per pixel = %d\n", image->depth, image->bits_per_pixel)); - - switch (v->type) - { - /* I assume this is right for static & greyscale's too? */ - case GDK_VISUAL_STATIC_GRAY: - case GDK_VISUAL_GRAYSCALE: - case GDK_VISUAL_STATIC_COLOR: - case GDK_VISUAL_PSEUDO_COLOR: - switch (image->bits_per_pixel) - { - case 1: - bank = 0; - break; - case 8: - if (image->depth == 8) - bank = 1; - break; - } - break; - case GDK_VISUAL_TRUE_COLOR: - switch (image->depth) - { - case 15: - if (v->red_mask == 0x7c00 && v->green_mask == 0x3e0 && v->blue_mask == 0x1f - && image->bits_per_pixel == 16) - bank = 2; - break; - case 16: - if (v->red_mask == 0xf800 && v->green_mask == 0x7e0 && v->blue_mask == 0x1f - && image->bits_per_pixel == 16) - bank = 3; - break; - case 24: - case 32: - if (v->red_mask == 0xff0000 && v->green_mask == 0xff00 && v->blue_mask == 0xff - && image->bits_per_pixel == 32) - bank = 4; - break; - } - break; - case GDK_VISUAL_DIRECT_COLOR: - /* always use the slow version */ - break; - } - - d (g_print ("converting using conversion function in bank %d\n", bank)); - - if (bank == 5) - { - convert_real_slow (image, pixels, rowstride, - x, y, x + width, y + height, - cmap, alpha); } else { - index |= bank << 2; - d (g_print ("converting with index %d\n", index)); - (* convert_map[index]) (image, pixels, rowstride, - x, y, x + width, y + height, - cmap); + v = gdk_colormap_get_visual (cmap); + + if (image->depth != v->depth) + { + g_warning ("%s: The depth of the source image (%d) doesn't " + "match the depth of the colormap passed in (%d).", + G_STRLOC, image->depth, v->depth); + return; + } + + colors = cmap->colors; + n_colors = cmap->size; + direct = v->type == GDK_VISUAL_DIRECT_COLOR; + palette = v->type != GDK_VISUAL_TRUE_COLOR && !direct; + } + + if (!palette) + { + const gint prec[3] = { v->red_prec, v->green_prec, v->blue_prec }; + + mask[0] = v->red_mask, mask[1] = v->green_mask, mask[2] = v->blue_mask; + shift[0] = v->red_shift, shift[1] = v->green_shift, shift[2] = v->blue_shift; + + /* TrueColor: 8 bits of each channel are its top 8 bits, or its + * bits repeated up to 8 */ + bytes = !direct && (image->bits_per_pixel == 24 || image->bits_per_pixel == 32); + for (c = 0; c < 3; c++) + { + bytes &= prec[c] == 8 && shift[c] % 8 == 0; + down[c] = MAX (prec[c] - 8, 0); + for (i = 0; i < 256; i++) + { + gint value = 0; + + for (j = 0; prec[c] > 0 && j < 8; j += prec[c]) + value |= ((i << 8) >> MIN (prec[c], 8)) >> j; + chan[c][i] = value; + } + } + + if (bytes) + { + gint n = image->bits_per_pixel / 8; + + ri = shift[0] / 8, gi = shift[1] / 8, bi = shift[2] / 8; + if (image->byte_order == GDK_MSB_FIRST) + ri = n - 1 - ri, gi = n - 1 - gi, bi = n - 1 - bi; + } + } + + for (j = 0; j < height; j++, pixels += rowstride) + { + guchar *o = pixels; + + if (bytes) + { + const guchar *in = (guchar *) image->mem + (y + j) * image->bpl + x * (image->bits_per_pixel / 8); + const gint step = image->bits_per_pixel / 8; + + for (i = 0; i < width; i++, in += step) + { + *o++ = in[ri]; + *o++ = in[gi]; + *o++ = in[bi]; + if (alpha) + *o++ = 0xff; + } + continue; + } + + for (i = 0; i < width; i++) + { + const gint k = i % GDK_SCRATCH_IMAGE_WIDTH; + + if (k == 0) + _gdk_image_read_row (image, x + i, y + j, + MIN (width - i, GDK_SCRATCH_IMAGE_WIDTH), row); + + if (palette) + { + if (row[k] < (guint32) n_colors) + { + *o++ = colors[row[k]].red >> 8; + *o++ = colors[row[k]].green >> 8; + *o++ = colors[row[k]].blue >> 8; + } + else + *o++ = 0, *o++ = 0, *o++ = 0; + } + else if (direct) + /* each channel looks its value up in the colormap */ + for (c = 0; c < 3; c++) + { + const guint32 index = (row[k] & mask[c]) >> shift[c]; + const GdkColor *color = &colors[MIN (index, (guint32) n_colors - 1)]; + + *o++ = (c == 0 ? color->red : c == 1 ? color->green : color->blue) >> 8; + } + else + for (c = 0; c < 3; c++) + *o++ = chan[c][(row[k] & mask[c]) >> shift[c] >> down[c]]; + if (alpha) + *o++ = 0xff; + } } } diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index edc20366c..e05462056 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -1812,39 +1812,6 @@ gdk_rgb_convert (GdkRgbInfo *info, } } -/* Reads pixels of the image into the machine's byte order. */ -static void -gdk_rgb_load_row (guint32 *pixels, - const guchar *in, - gint width, - gint bits_per_pixel, - gboolean msb_first) -{ - gint x; - - switch (bits_per_pixel) - { - case 8: - for (x = 0; x < width; x++) - pixels[x] = in[x]; - break; - case 16: - for (x = 0; x < width; x++, in += 2) - pixels[x] = msb_first ? (in[0] << 8) | in[1] : in[0] | (in[1] << 8); - break; - case 24: - for (x = 0; x < width; x++, in += 3) - pixels[x] = msb_first ? (in[0] << 16) | (in[1] << 8) | in[2] - : in[0] | (in[1] << 8) | (in[2] << 16); - break; - case 32: - for (x = 0; x < width; x++, in += 4) - pixels[x] = msb_first ? ((guint32) in[0] << 24) | (in[1] << 16) | (in[2] << 8) | in[3] - : in[0] | (in[1] << 8) | (in[2] << 16) | ((guint32) in[3] << 24); - break; - } -} - #define T(c, v) (tables[(c) * 256 + (v)]) /* @a * @s + (255 - @a) * @d, divided by 255 and rounded */ @@ -1992,7 +1959,7 @@ _gdk_rgb_composite (GdkColormap *colormap, gdk_rgb_composite_row_deep (info, (guint32 *) out, rgba, width); else { - gdk_rgb_load_row (row, out, width, bits, msb_first); + _gdk_image_read_row (image, x0, y0 + y, width, row); if (deep) gdk_rgb_composite_row_deep (info, row, rgba, width); else From d6124dc9800de75cf1f36a628b9d05e4af066dc6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 15:45:18 +0200 Subject: [PATCH 009/249] gtkcellrenderertext: lay out the text of a cell once, not at every measure and draw --- gtk/gtkcellrenderertext.c | 302 +++++++++++++++++++++++++++++++------- 1 file changed, 250 insertions(+), 52 deletions(-) diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index 9d4d110c5..69fe85901 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -19,6 +19,7 @@ #include "config.h" #include +#include #include "gtkcellrenderertext.h" #include "gtkeditable.h" #include "gtkentry.h" @@ -1357,28 +1358,148 @@ add_attr (PangoAttrList *attr_list, pango_attr_list_insert (attr_list, attr); } -static PangoLayout* -get_layout (GtkCellRendererText *celltext, - GtkWidget *widget, - gboolean will_render, - GtkCellRendererState flags) +/* The laid out text of a cell. Measuring and drawing a cell used to + * build and shape a new PangoLayout each time; now the layouts are kept + * per widget, so text that is measured and then drawn, or drawn again, + * is shaped once. An entry is good as long as the widget's PangoContext + * is unchanged and nobody else changed the layout. + */ +typedef struct { - PangoAttrList *attr_list; + guint hash; + gchar *text; + PangoAttrList *attrs; + guint single_paragraph : 1; + PangoEllipsizeMode ellipsize; + PangoWrapMode wrap; + PangoAlignment align; + gint width; /* asked for when measuring, -1 for none */ PangoLayout *layout; + guint serial; /* of @layout after our last change */ + PangoRectangle rect; /* pixel extents at @width */ + guint used; +} CellLayout; + +#if PANGO_VERSION_CHECK (1, 46, 0) +#define CELL_LAYOUT_CACHE +#define layout_serial(layout) pango_layout_get_serial (layout) +#else +#define layout_serial(layout) 0 +#endif + +#ifdef CELL_LAYOUT_CACHE + +/* Enough for three or four text columns of the rows a list shows; the + * layout of a short text takes about 1.5 KB. The least recently used + * goes first; all go when the widget is unmapped. */ +#define CELL_LAYOUTS 128 + +typedef struct +{ + PangoContext *context; /* not a reference: the widget holds one */ + guint context_serial; + guint clock; + guint n, size; /* the array grows to CELL_LAYOUTS */ + CellLayout *entries; +} CellLayoutCache; + +static GQuark cell_layout_quark; + +#endif + +static void +cell_layout_clear (CellLayout *cl) +{ + g_free (cl->text); + if (cl->attrs) + pango_attr_list_unref (cl->attrs); + if (cl->layout) + g_object_unref (cl->layout); + memset (cl, 0, sizeof (CellLayout)); +} + +#ifdef CELL_LAYOUT_CACHE + +static void +cell_layout_cache_free (gpointer data) +{ + CellLayoutCache *cache = data; + guint i; + + for (i = 0; i < cache->n; i++) + cell_layout_clear (&cache->entries[i]); + g_free (cache->entries); + g_slice_free (CellLayoutCache, cache); +} + +static void +cell_layout_cache_drop (GtkWidget *widget) +{ + g_object_set_qdata (G_OBJECT (widget), cell_layout_quark, NULL); +} + +/* The cache of the widget (data of the widget, since the layouts hold + * the context), emptied when its context changed */ +static CellLayoutCache * +cell_layout_cache_get (GtkWidget *widget) +{ + PangoContext *context = gtk_widget_get_pango_context (widget); + CellLayoutCache *cache; + guint serial = pango_context_get_serial (context); + + if (!cell_layout_quark) + cell_layout_quark = g_quark_from_static_string ("gtk-cell-renderer-text-layouts"); + + cache = g_object_get_qdata (G_OBJECT (widget), cell_layout_quark); + if (cache && (cache->context != context || cache->context_serial != serial)) + { + g_object_set_qdata (G_OBJECT (widget), cell_layout_quark, NULL); + cache = NULL; + } + if (!cache) + { + static GQuark hooked_quark; + + if (!hooked_quark) + hooked_quark = g_quark_from_static_string ("gtk-cell-renderer-text-unmap-hooked"); + if (!g_object_get_qdata (G_OBJECT (widget), hooked_quark)) + { + g_signal_connect (widget, "unmap", G_CALLBACK (cell_layout_cache_drop), NULL); + g_object_set_qdata (G_OBJECT (widget), hooked_quark, GINT_TO_POINTER (1)); + } + + cache = g_slice_new0 (CellLayoutCache); + cache->context = context; + cache->context_serial = serial; + g_object_set_qdata_full (G_OBJECT (widget), cell_layout_quark, + cache, cell_layout_cache_free); + } + + return cache; +} + +#endif + +/* The layout of the cell as it is now, from the cache or made in + * @scratch. Give it back with cell_layout_release(). */ +static CellLayout * +cell_layout_get (GtkCellRendererText *celltext, + GtkWidget *widget, + gboolean will_render, + GtkCellRendererState flags, + CellLayout *scratch) +{ + GtkCellRendererTextPrivate *priv = GTK_CELL_RENDERER_TEXT_GET_PRIVATE (celltext); + const gchar *text = celltext->text ? celltext->text : ""; + PangoAttrList *attr_list; PangoUnderline uline; - GtkCellRendererTextPrivate *priv; - - priv = GTK_CELL_RENDERER_TEXT_GET_PRIVATE (celltext); - - layout = gtk_widget_create_pango_layout (widget, celltext->text); + CellLayout key, *cl; if (celltext->extra_attrs) attr_list = pango_attr_list_copy (celltext->extra_attrs); else attr_list = pango_attr_list_new (); - pango_layout_set_single_paragraph_mode (layout, priv->single_paragraph); - if (will_render) { /* Add options that affect appearance but not size */ @@ -1440,48 +1561,116 @@ get_layout (GtkCellRendererText *celltext, if (celltext->rise_set) add_attr (attr_list, pango_attr_rise_new (celltext->rise)); - if (priv->ellipsize_set) - pango_layout_set_ellipsize (layout, priv->ellipsize); - else - pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_NONE); - + memset (&key, 0, sizeof (key)); + key.single_paragraph = priv->single_paragraph; + key.ellipsize = priv->ellipsize_set ? priv->ellipsize : PANGO_ELLIPSIZE_NONE; if (priv->wrap_width != -1) { - pango_layout_set_width (layout, priv->wrap_width * PANGO_SCALE); - pango_layout_set_wrap (layout, priv->wrap_mode); + key.width = priv->wrap_width * PANGO_SCALE; + key.wrap = priv->wrap_mode; } else { - pango_layout_set_width (layout, -1); - pango_layout_set_wrap (layout, PANGO_WRAP_CHAR); + key.width = -1; + key.wrap = PANGO_WRAP_CHAR; } - if (priv->align_set) - pango_layout_set_alignment (layout, priv->align); + key.align = priv->align; + else if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) + key.align = PANGO_ALIGN_RIGHT; else - { - PangoAlignment align; + key.align = PANGO_ALIGN_LEFT; + key.hash = g_str_hash (text) ^ (key.width * 31) ^ + (key.ellipsize << 2) ^ (key.wrap << 5) ^ (key.align << 7) ^ key.single_paragraph; - if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) - align = PANGO_ALIGN_RIGHT; - else - align = PANGO_ALIGN_LEFT; + cl = scratch; - pango_layout_set_alignment (layout, align); - } +#ifdef CELL_LAYOUT_CACHE + { + CellLayoutCache *cache = cell_layout_cache_get (widget); + guint i, victim = 0; - pango_layout_set_attributes (layout, attr_list); + for (i = 0; i < cache->n; i++) + { + CellLayout *e = &cache->entries[i]; - pango_attr_list_unref (attr_list); + if (e->hash == key.hash && + e->width == key.width && + e->ellipsize == key.ellipsize && + e->wrap == key.wrap && + e->align == key.align && + e->single_paragraph == key.single_paragraph && + strcmp (e->text, text) == 0 && + pango_attr_list_equal (e->attrs, attr_list)) + { + if (layout_serial (e->layout) == e->serial) + { + e->used = ++cache->clock; + pango_attr_list_unref (attr_list); + return e; + } + /* changed behind our back: make it again */ + cell_layout_clear (e); + victim = i; + goto make; + } + if (e->used < cache->entries[victim].used) + victim = i; + } + if (cache->n < CELL_LAYOUTS) + { + if (cache->n == cache->size) + { + cache->size = MAX (8, 2 * cache->size); + cache->entries = g_renew (CellLayout, cache->entries, cache->size); + } + victim = cache->n++; + memset (&cache->entries[victim], 0, sizeof (CellLayout)); + } + else + cell_layout_clear (&cache->entries[victim]); - return layout; + make: + cl = &cache->entries[victim]; + cl->used = ++cache->clock; + } +#endif + + cl->hash = key.hash; + cl->text = g_strdup (text); + cl->attrs = attr_list; + cl->single_paragraph = key.single_paragraph; + cl->ellipsize = key.ellipsize; + cl->wrap = key.wrap; + cl->align = key.align; + cl->width = key.width; + + cl->layout = gtk_widget_create_pango_layout (widget, celltext->text); + pango_layout_set_single_paragraph_mode (cl->layout, cl->single_paragraph); + pango_layout_set_ellipsize (cl->layout, cl->ellipsize); + pango_layout_set_width (cl->layout, cl->width); + pango_layout_set_wrap (cl->layout, cl->wrap); + pango_layout_set_alignment (cl->layout, cl->align); + pango_layout_set_attributes (cl->layout, attr_list); + pango_layout_get_pixel_extents (cl->layout, NULL, &cl->rect); + cl->serial = layout_serial (cl->layout); + + return cl; +} + +static void +cell_layout_release (CellLayout *cl, + CellLayout *scratch) +{ + if (cl == scratch) + cell_layout_clear (scratch); } static void get_size (GtkCellRenderer *cell, GtkWidget *widget, GdkRectangle *cell_area, - PangoLayout *layout, + const PangoRectangle *text_rect, gint *x_offset, gint *y_offset, gint *width, @@ -1532,12 +1721,17 @@ get_size (GtkCellRenderer *cell, return; } - if (layout) - g_object_ref (layout); + if (text_rect) + rect = *text_rect; else - layout = get_layout (celltext, widget, FALSE, 0); + { + CellLayout scratch, *cl; - pango_layout_get_pixel_extents (layout, NULL, &rect); + memset (&scratch, 0, sizeof (scratch)); + cl = cell_layout_get (celltext, widget, FALSE, 0, &scratch); + rect = cl->rect; + cell_layout_release (cl, &scratch); + } if (height) *height = cell->ypad * 2 + rect.height; @@ -1551,7 +1745,7 @@ get_size (GtkCellRenderer *cell, PangoFontMetrics *metrics; gint char_width; - context = pango_layout_get_context (layout); + context = gtk_widget_get_pango_context (widget); metrics = pango_context_get_metrics (context, widget->style->font_desc, pango_context_get_language (context)); char_width = pango_font_metrics_get_approximate_char_width (metrics); @@ -1588,8 +1782,6 @@ get_size (GtkCellRenderer *cell, if (x_offset) *x_offset = 0; if (y_offset) *y_offset = 0; } - - g_object_unref (layout); } @@ -1617,16 +1809,18 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell, { GtkCellRendererText *celltext = (GtkCellRendererText *) cell; - PangoLayout *layout; + CellLayout scratch, *cl; GtkStateType state; gint x_offset; gint y_offset; + gint width; GtkCellRendererTextPrivate *priv; priv = GTK_CELL_RENDERER_TEXT_GET_PRIVATE (cell); - layout = get_layout (celltext, widget, TRUE, flags); - get_size (cell, widget, cell_area, layout, &x_offset, &y_offset, NULL, NULL); + memset (&scratch, 0, sizeof (scratch)); + cl = cell_layout_get (celltext, widget, TRUE, flags, &scratch); + get_size (cell, widget, cell_area, &cl->rect, &x_offset, &y_offset, NULL, NULL); if (!cell->sensitive) { @@ -1674,10 +1868,14 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell, } if (priv->ellipsize_set && priv->ellipsize != PANGO_ELLIPSIZE_NONE) - pango_layout_set_width (layout, - (cell_area->width - x_offset - 2 * cell->xpad) * PANGO_SCALE); - else if (priv->wrap_width == -1) - pango_layout_set_width (layout, -1); + width = (cell_area->width - x_offset - 2 * cell->xpad) * PANGO_SCALE; + else + width = cl->width; + if (pango_layout_get_width (cl->layout) != width) + { + pango_layout_set_width (cl->layout, width); + cl->serial = layout_serial (cl->layout); + } gtk_paint_layout (widget->style, window, @@ -1688,9 +1886,9 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell, "cellrenderertext", cell_area->x + x_offset + cell->xpad, cell_area->y + y_offset + cell->ypad, - layout); + cl->layout); - g_object_unref (layout); + cell_layout_release (cl, &scratch); } static void From b1d1195416e6d06356533b7746ac7c88484c7951 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:06:10 +0200 Subject: [PATCH 010/249] gtkstyle: draw dotted focus frames by edge instead of dash by dash --- gtk/gtkstyle.c | 358 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 358 insertions(+) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index a5a20fd7c..a9c03b62b 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -4740,6 +4740,353 @@ gtk_default_draw_extension (GtkStyle *style, } } +/* A dashed frame of whole-pixel width whose dash ends fall on pixel + * edges covers each pixel either fully or not at all. Such a frame + * is drawn as four masked edges and up to four corners instead of + * as a stroke, which cairo splits into one box per dash and sorts: + * the pixels are the same, the work is a small fraction. Patterns + * that would put a dash end on a corner, and frames too small to + * have all four edges, still go through cairo_stroke. + */ + +typedef struct +{ + gchar *dashes; /* the pattern, as the style property */ + cairo_pattern_t *masks[4]; /* rows forward, backward; columns forward, backward */ +} FocusMasks; + +/* Is the frame on at a phase of P half pixels into the pattern? */ +static gboolean +focus_dash_on (const gint8 *dashes, + gint n_dashes, + gint p) +{ + gint i = 0; + gboolean on = TRUE; + + while (p >= 2 * dashes[i]) + { + p -= 2 * dashes[i]; + on = !on; + if (++i == n_dashes) + i = 0; + } + + return on; +} + +/* Does a dash begin or end at a phase of P half pixels? */ +static gboolean +focus_dash_edge (const gint8 *dashes, + gint n_dashes, + gint p) +{ + gint i = 0; + + while (p > 0) + { + p -= 2 * dashes[i]; + if (++i == n_dashes) + i = 0; + } + + return p == 0; +} + +static cairo_pattern_t * +focus_mask_new (cairo_surface_t *target, + const gint8 *dashes, + gint n_dashes, + gint period, + gboolean backward, + gboolean vertical) +{ + cairo_surface_t *surface; + cairo_pattern_t *pattern; + cairo_t *cr; + gint i; + + /* made like the target, so that it is not sent anew at each use */ + surface = cairo_surface_create_similar (target, CAIRO_CONTENT_ALPHA, + vertical ? 1 : period, + vertical ? period : 1); + cr = cairo_create (surface); + for (i = 0; i < period; i++) + { + gint j = backward ? (period - i) % period : i; + + if (focus_dash_on (dashes, n_dashes, 2 * j + 1)) + cairo_rectangle (cr, vertical ? 0 : i, vertical ? i : 0, 1, 1); + } + cairo_fill (cr); + cairo_destroy (cr); + + pattern = cairo_pattern_create_for_surface (surface); + cairo_surface_destroy (surface); + cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT); + cairo_pattern_set_filter (pattern, CAIRO_FILTER_NEAREST); + + return pattern; +} + +static void +focus_masks_free (gpointer data) +{ + FocusMasks *masks = data; + gint i, k; + + for (i = 0; i < 2; i++) + { + g_free (masks[i].dashes); + for (k = 0; k < 4; k++) + if (masks[i].masks[k]) + cairo_pattern_destroy (masks[i].masks[k]); + } + g_free (masks); +} + +/* The masks for DASHES, kept on HOLDER (the screen) for the two + * patterns used last. */ +static FocusMasks * +focus_masks_get (GObject *holder, + cairo_t *cr, + const gint8 *dashes, + gint n_dashes, + gint period) +{ + cairo_surface_t *target = cairo_get_target (cr), *surface; + FocusMasks *masks, tmp; + gint i, k; + + masks = g_object_get_data (holder, "gtk-focus-masks"); + if (!masks) + { + masks = g_new0 (FocusMasks, 2); + g_object_set_data_full (holder, I_("gtk-focus-masks"), masks, focus_masks_free); + } + + for (i = 0; i < 2; i++) + if (masks[i].dashes && strcmp (masks[i].dashes, (const gchar *) dashes) == 0) + { + cairo_pattern_get_surface (masks[i].masks[0], &surface); + if (cairo_surface_get_type (surface) == cairo_surface_get_type (target)) + break; + } + + if (i == 2) + { + /* replace the one used least recently */ + i = 1; + g_free (masks[i].dashes); + masks[i].dashes = g_strdup ((const gchar *) dashes); + for (k = 0; k < 4; k++) + { + if (masks[i].masks[k]) + cairo_pattern_destroy (masks[i].masks[k]); + masks[i].masks[k] = focus_mask_new (target, dashes, n_dashes, period, k & 1, k >> 1); + } + } + + if (i == 1) + { + tmp = masks[0]; + masks[0] = masks[1]; + masks[1] = tmp; + } + + return &masks[0]; +} + +/* Fills the part of [x0,x1)x[y0,y1) inside AREA (if any) through MASK, + * moved so that pattern pixel (tx + x) mod period, or (ty + y) for + * columns, lands on device pixel x. */ +static void +focus_mask_edge (cairo_t *cr, + GdkRectangle *area, + cairo_pattern_t *mask, + gint period, + gint x0, + gint y0, + gint x1, + gint y1, + gint shift, + gboolean vertical) +{ + cairo_matrix_t matrix; + + if (area) + { + x0 = MAX (x0, area->x); + y0 = MAX (y0, area->y); + x1 = MIN (x1, area->x + area->width); + y1 = MIN (y1, area->y + area->height); + } + if (x0 >= x1 || y0 >= y1) + return; + + shift %= period; + if (shift < 0) + shift += period; + if (vertical) + cairo_matrix_init_translate (&matrix, 0, shift); + else + cairo_matrix_init_translate (&matrix, shift, 0); + cairo_pattern_set_matrix (mask, &matrix); + + cairo_save (cr); + cairo_rectangle (cr, x0, y0, x1 - x0, y1 - y0); + cairo_clip (cr); + cairo_mask (cr, mask); + cairo_restore (cr); +} + +/* Adds the covered pixels of the L x L corner square at (X, Y) whose + * centre is the path vertex. IN/OUT are the directions of the edges + * meeting there, S_IN/S_OUT the phases (half pixels, dash offset + * included) of the vertex on them. */ +static gboolean +focus_corner (cairo_t *cr, + GdkRectangle *area, + const gint8 *dashes, + gint n_dashes, + gint period2, + gint lw, + gint X, + gint Y, + gint in_x, + gint in_y, + gint out_x, + gint out_y, + gint s_in, + gint s_out) +{ + gboolean join = focus_dash_on (dashes, n_dashes, s_in % period2) && + focus_dash_on (dashes, n_dashes, s_out % period2); + gboolean any = FALSE; + gint i, j; + + for (j = 0; j < lw; j++) + { + gint run = -1; + + for (i = 0; i <= lw; i++) + { + gboolean on = FALSE; + + if (i < lw) + { + /* pixel centre relative to the vertex, half pixels */ + gint rx = 2 * i + 1 - lw, ry = 2 * j + 1 - lw; + gint along_in = rx * in_x + ry * in_y; + gint along_out = rx * out_x + ry * out_y; + + if (along_in <= 0 && focus_dash_on (dashes, n_dashes, ((s_in + along_in) % period2 + period2) % period2)) + on = TRUE; + else if (along_out >= 0 && focus_dash_on (dashes, n_dashes, (s_out + along_out) % period2)) + on = TRUE; + else if (along_in > 0 && along_out < 0 && join) + on = TRUE; + + if (on && area && + (X + i < area->x || X + i >= area->x + area->width || + Y + j < area->y || Y + j >= area->y + area->height)) + on = FALSE; + } + + if (on && run < 0) + run = i; + else if (!on && run >= 0) + { + cairo_rectangle (cr, X + run, Y + j, i - run, 1); + any = TRUE; + run = -1; + } + } + } + + return any; +} + +static gboolean +focus_draw_aligned (GObject *holder, + cairo_t *cr, + GdkRectangle *area, + const gint8 *dashes, + gint lw, + gint x, + gint y, + gint width, + gint height) +{ + gint n_dashes = strlen ((const gchar *) dashes); + gint total = 0, period, period2, off, a, b, inset, i; + gint v[5]; + FocusMasks *masks; + + if (n_dashes == 0 || (lw != 1 && lw % 2 != 0) || + width < 2 * lw + 1 || height < 2 * lw + 1) + return FALSE; + for (i = 0; i < n_dashes; i++) + { + if (dashes[i] <= 0) + return FALSE; + total += dashes[i]; + } + period = n_dashes % 2 ? 2 * total : total; + period2 = 2 * period; + + /* the dash offset gtk_default_draw_focus gives cairo, in half pixels */ + off = -lw; + while (off < 0) + off += 2 * total; + off %= period2; + + a = width - lw; + b = height - lw; + v[0] = off; + v[1] = off + 2 * a; + v[2] = off + 2 * (a + b); + v[3] = off + 2 * (2 * a + b); + v[4] = off + 4 * (a + b); + for (i = 0; i < 5; i++) + if (focus_dash_edge (dashes, n_dashes, v[i] % period2)) + return FALSE; + /* where the path closes, the frame must be on on both sides or on neither */ + if (focus_dash_on (dashes, n_dashes, v[0] % period2) != + focus_dash_on (dashes, n_dashes, v[4] % period2)) + return FALSE; + + masks = focus_masks_get (holder, cr, dashes, n_dashes, period); + + /* The corners: top left, top right, bottom right, bottom left. With + * lines one pixel wide a corner is on where the path is, so the top + * and bottom edges take them in. */ + inset = lw == 1 ? 0 : lw; + if (inset && + (focus_corner (cr, area, dashes, n_dashes, period2, lw, x, y, 0, -1, 1, 0, v[4], v[0]) | + focus_corner (cr, area, dashes, n_dashes, period2, lw, x + width - lw, y, 1, 0, 0, 1, v[1], v[1]) | + focus_corner (cr, area, dashes, n_dashes, period2, lw, x + width - lw, y + height - lw, 0, 1, -1, 0, v[2], v[2]) | + focus_corner (cr, area, dashes, n_dashes, period2, lw, x, y + height - lw, -1, 0, 0, -1, v[3], v[3]))) + cairo_fill (cr); + + /* The edges. Pixel column c of the top edge has its centre at phase + * off + 2 (c - x) + 1 - lw, which is pattern pixel c + (off - lw) / 2 - x. */ + focus_mask_edge (cr, area, masks->masks[0], period, + x + inset, y, x + width - inset, y + lw, + (off - lw) / 2 - x, FALSE); + focus_mask_edge (cr, area, masks->masks[2], period, + x + width - lw, y + lw, x + width, y + height - lw, + (off + 2 * a - lw) / 2 - y, TRUE); + focus_mask_edge (cr, area, masks->masks[1], period, + x + inset, y + height - lw, x + width - inset, y + height, + -((off + 2 * (a + b) + 2 * (x + width) - lw - 2) / 2), FALSE); + focus_mask_edge (cr, area, masks->masks[3], period, + x, y + lw, x + lw, y + height - lw, + -((off + 2 * (2 * a + b) + 2 * (y + height) - lw - 2) / 2), TRUE); + + return TRUE; +} + static void gtk_default_draw_focus (GtkStyle *style, GdkWindow *window, @@ -4756,6 +5103,7 @@ gtk_default_draw_focus (GtkStyle *style, gboolean free_dash_list = FALSE; gint line_width = 1; gint8 *dash_list = (gint8 *) "\1\1"; + gint depth; if (widget) { @@ -4787,6 +5135,14 @@ gtk_default_draw_focus (GtkStyle *style, else gdk_cairo_set_source_color (cr, &style->fg[state_type]); + /* Deeper channels than 8 bits can come out a step apart + * between masks and strokes, so they are left to the stroke. */ + depth = gdk_drawable_get_depth (window); + if (depth >= 15 && (depth <= 24 || depth == 32) && + focus_draw_aligned (G_OBJECT (gdk_drawable_get_screen (window)), cr, area, + dash_list, line_width, x, y, width, height)) + goto done; + cairo_set_line_width (cr, line_width); if (dash_list[0]) @@ -4828,6 +5184,8 @@ gtk_default_draw_focus (GtkStyle *style, width - line_width, height - line_width); cairo_stroke (cr); + + done: cairo_destroy (cr); if (free_dash_list) From 65a92fda3faa4f7d73f4061bb1089a0044c0c3f8 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:12:02 +0200 Subject: [PATCH 011/249] gtkwidget: remember which style property a name stands for --- gtk/gtkwidget.c | 72 ++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 56 insertions(+), 16 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 447303dfd..2cdca0971 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -380,6 +380,20 @@ static guint composite_child_stack = 0; static GtkTextDirection gtk_default_direction = GTK_TEXT_DIR_LTR; static GParamSpecPool *style_property_spec_pool = NULL; +/* Widgets ask for the same few style properties of the same few types + * at every size request and expose, and a lookup by name walks the + * class tree with a hash lookup per level. The answers are kept here, + * by type and name pointer, until a style property is added or removed. */ +#define STYLE_PROPERTY_CACHE_SIZE 128 +typedef struct +{ + GType type; + const gchar *name; + GParamSpec *pspec; + GtkRcPropertyParser parser; +} StylePropertyCacheEntry; +static StylePropertyCacheEntry style_property_cache[STYLE_PROPERTY_CACHE_SIZE]; + static GQuark quark_property_parser = 0; static GQuark quark_aux_info = 0; static GQuark quark_accel_path = 0; @@ -2638,6 +2652,8 @@ gtk_widget_base_class_finalize (GtkWidgetClass *klass) GList *list, *node; list = g_param_spec_pool_list_owned (style_property_spec_pool, G_OBJECT_CLASS_TYPE (klass)); + if (list) + memset (style_property_cache, 0, sizeof (style_property_cache)); for (node = list; node; node = node->next) { GParamSpec *pspec = node->data; @@ -9842,6 +9858,7 @@ gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, g_param_spec_ref_sink (pspec); g_param_spec_set_qdata (pspec, quark_property_parser, (gpointer) parser); g_param_spec_pool_insert (style_property_spec_pool, pspec, G_OBJECT_CLASS_TYPE (klass)); + memset (style_property_cache, 0, sizeof (style_property_cache)); } /** @@ -9917,6 +9934,39 @@ gtk_widget_class_list_style_properties (GtkWidgetClass *klass, return pspecs; } +static GParamSpec * +style_property_lookup (GType type, + const gchar *name, + GtkRcPropertyParser *parser) +{ + StylePropertyCacheEntry *entry; + GParamSpec *pspec; + + entry = &style_property_cache[(((gsize) name >> 3) ^ ((gsize) type >> 2)) % STYLE_PROPERTY_CACHE_SIZE]; + if (entry->type == type && entry->name == name && + strcmp (name, entry->pspec->name) == 0) + { + *parser = entry->parser; + return entry->pspec; + } + + pspec = g_param_spec_pool_lookup (style_property_spec_pool, name, type, TRUE); + if (!pspec) + return NULL; + + *parser = (GtkRcPropertyParser) g_param_spec_get_qdata (pspec, quark_property_parser); + /* names in another spelling or with a type prefix are looked up again */ + if (strcmp (name, pspec->name) == 0) + { + entry->type = type; + entry->name = name; + entry->pspec = pspec; + entry->parser = *parser; + } + + return pspec; +} + /** * gtk_widget_style_get_property: * @widget: a #GtkWidget @@ -9931,16 +9981,13 @@ gtk_widget_style_get_property (GtkWidget *widget, GValue *value) { GParamSpec *pspec; + GtkRcPropertyParser parser; g_return_if_fail (GTK_IS_WIDGET (widget)); g_return_if_fail (property_name != NULL); g_return_if_fail (G_IS_VALUE (value)); - g_object_ref (widget); - pspec = g_param_spec_pool_lookup (style_property_spec_pool, - property_name, - G_OBJECT_TYPE (widget), - TRUE); + pspec = style_property_lookup (G_OBJECT_TYPE (widget), property_name, &parser); if (!pspec) g_warning ("%s: widget class `%s' has no property named `%s'", G_STRLOC, @@ -9953,7 +10000,7 @@ gtk_widget_style_get_property (GtkWidget *widget, peek_value = _gtk_style_peek_property_value (widget->style, G_OBJECT_TYPE (widget), pspec, - (GtkRcPropertyParser) g_param_spec_get_qdata (pspec, quark_property_parser)); + parser); /* auto-conversion of the caller's value type */ @@ -9967,7 +10014,6 @@ gtk_widget_style_get_property (GtkWidget *widget, g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec)), G_VALUE_TYPE_NAME (value)); } - g_object_unref (widget); } /** @@ -9990,19 +10036,15 @@ gtk_widget_style_get_valist (GtkWidget *widget, g_return_if_fail (GTK_IS_WIDGET (widget)); - g_object_ref (widget); - name = first_property_name; while (name) { const GValue *peek_value; GParamSpec *pspec; + GtkRcPropertyParser parser; gchar *error; - pspec = g_param_spec_pool_lookup (style_property_spec_pool, - name, - G_OBJECT_TYPE (widget), - TRUE); + pspec = style_property_lookup (G_OBJECT_TYPE (widget), name, &parser); if (!pspec) { g_warning ("%s: widget class `%s' has no property named `%s'", @@ -10016,7 +10058,7 @@ gtk_widget_style_get_valist (GtkWidget *widget, peek_value = _gtk_style_peek_property_value (widget->style, G_OBJECT_TYPE (widget), pspec, - (GtkRcPropertyParser) g_param_spec_get_qdata (pspec, quark_property_parser)); + parser); G_VALUE_LCOPY (peek_value, var_args, 0, &error); if (error) { @@ -10027,8 +10069,6 @@ gtk_widget_style_get_valist (GtkWidget *widget, name = va_arg (var_args, gchar*); } - - g_object_unref (widget); } /** From fe26bf13aeab44ff5cf8ef92db4669699cb5901b Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:18:02 +0200 Subject: [PATCH 012/249] gtkwidget: read the draw border in place instead of copying it at every expose --- gtk/gtkwidget.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 2cdca0971..53196014a 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -393,6 +393,9 @@ typedef struct GtkRcPropertyParser parser; } StylePropertyCacheEntry; static StylePropertyCacheEntry style_property_cache[STYLE_PROPERTY_CACHE_SIZE]; +static GParamSpec *style_property_lookup (GType type, + const gchar *name, + GtkRcPropertyParser *parser); static GQuark quark_property_parser = 0; static GQuark quark_aux_info = 0; @@ -3760,21 +3763,24 @@ gtk_widget_get_draw_rectangle (GtkWidget *widget, { if (!gtk_widget_get_has_window (widget)) { - GtkBorder *draw_border = NULL; + const GtkBorder *draw_border; + GtkRcPropertyParser parser; + GParamSpec *pspec; *rect = widget->allocation; - gtk_widget_style_get (widget, - "draw-border", &draw_border, - NULL); + /* this runs for every child at every expose: look at the + * value instead of asking for a copy of it */ + pspec = style_property_lookup (G_OBJECT_TYPE (widget), "draw-border", &parser); + draw_border = g_value_get_boxed (_gtk_style_peek_property_value (widget->style, + G_OBJECT_TYPE (widget), + pspec, parser)); if (draw_border) { rect->x -= draw_border->left; rect->y -= draw_border->top; rect->width += draw_border->left + draw_border->right; rect->height += draw_border->top + draw_border->bottom; - - gtk_border_free (draw_border); } if (GTK_IS_CONTAINER (widget)) From 596204312ede00775e002d6293f5d41971e66058 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:22:48 +0200 Subject: [PATCH 013/249] gdkregion: intersect with a rectangle without the general band walk --- gdk/gdkregion-generic.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gdk/gdkregion-generic.c b/gdk/gdkregion-generic.c index c921142e4..f58a29a0f 100644 --- a/gdk/gdkregion-generic.c +++ b/gdk/gdkregion-generic.c @@ -611,6 +611,36 @@ gdk_region_intersect (GdkRegion *source1, if ((!(source1->numRects)) || (!(source2->numRects)) || (!EXTENTCHECK(&source1->extents, &source2->extents))) source1->numRects = 0; + /* Mostly one of the two is a rectangle: an expose area, a window, + * a clip rectangle. Then a rectangle around the other is the other, + * and two rectangles meet in one. */ + else if (source2->numRects == 1 && + source2->extents.x1 <= source1->extents.x1 && + source2->extents.y1 <= source1->extents.y1 && + source2->extents.x2 >= source1->extents.x2 && + source2->extents.y2 >= source1->extents.y2) + return; + else if (source1->numRects == 1 && + source1->extents.x1 <= source2->extents.x1 && + source1->extents.y1 <= source2->extents.y1 && + source1->extents.x2 >= source2->extents.x2 && + source1->extents.y2 >= source2->extents.y2) + { + miRegionCopy (source1, source2); + return; + } + else if (source1->numRects == 1 && source2->numRects == 1) + { + GdkRegionBox box; + + box.x1 = MAX (source1->extents.x1, source2->extents.x1); + box.y1 = MAX (source1->extents.y1, source2->extents.y1); + box.x2 = MIN (source1->extents.x2, source2->extents.x2); + box.y2 = MIN (source1->extents.y2, source2->extents.y2); + source1->rects[0] = box; + source1->extents = box; + return; + } else miRegionOp (source1, source1, source2, miIntersectO, (nonOverlapFunc) NULL, (nonOverlapFunc) NULL); From c8d098e5fbe0c89e2254f69a3cca22b36879334e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:22:48 +0200 Subject: [PATCH 014/249] gdkgc-x11: no XChangeGC when only the origins change --- gdk/x11/gdkgc-x11.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gdk/x11/gdkgc-x11.c b/gdk/x11/gdkgc-x11.c index 11f610e90..30b3ac53a 100644 --- a/gdk/x11/gdkgc-x11.c +++ b/gdk/x11/gdkgc-x11.c @@ -369,10 +369,12 @@ gdk_x11_gc_set_values (GdkGC *gc, gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask); - XChangeGC (GDK_GC_XDISPLAY (gc), - GDK_GC_XGC (gc), - xvalues_mask, - &xvalues); + /* origins alone only mark the GC for the next flush */ + if (xvalues_mask) + XChangeGC (GDK_GC_XDISPLAY (gc), + GDK_GC_XGC (gc), + xvalues_mask, + &xvalues); } static void From 17bfc653f705f9ec43bf1ce7aba7056df8bb8a09 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:31:08 +0200 Subject: [PATCH 015/249] gtkwidget: no walk through all children of a widget that covers the exposed region --- gtk/gtkwidget.c | 62 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 53196014a..d622758e2 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3757,31 +3757,39 @@ widget_add_child_draw_rectangle (GtkWidget *widget, gdk_rectangle_union (rect, &child_rect, rect); } +/* The allocation of a widget without a window, with its draw border */ +static void +gtk_widget_get_own_draw_rectangle (GtkWidget *widget, + GdkRectangle *rect) +{ + const GtkBorder *draw_border; + GtkRcPropertyParser parser; + GParamSpec *pspec; + + *rect = widget->allocation; + + /* this runs for every child at every expose: look at the + * value instead of asking for a copy of it */ + pspec = style_property_lookup (G_OBJECT_TYPE (widget), "draw-border", &parser); + draw_border = g_value_get_boxed (_gtk_style_peek_property_value (widget->style, + G_OBJECT_TYPE (widget), + pspec, parser)); + if (draw_border) + { + rect->x -= draw_border->left; + rect->y -= draw_border->top; + rect->width += draw_border->left + draw_border->right; + rect->height += draw_border->top + draw_border->bottom; + } +} + static void gtk_widget_get_draw_rectangle (GtkWidget *widget, GdkRectangle *rect) { if (!gtk_widget_get_has_window (widget)) { - const GtkBorder *draw_border; - GtkRcPropertyParser parser; - GParamSpec *pspec; - - *rect = widget->allocation; - - /* this runs for every child at every expose: look at the - * value instead of asking for a copy of it */ - pspec = style_property_lookup (G_OBJECT_TYPE (widget), "draw-border", &parser); - draw_border = g_value_get_boxed (_gtk_style_peek_property_value (widget->style, - G_OBJECT_TYPE (widget), - pspec, parser)); - if (draw_border) - { - rect->x -= draw_border->left; - rect->y -= draw_border->top; - rect->width += draw_border->left + draw_border->right; - rect->height += draw_border->top + draw_border->bottom; - } + gtk_widget_get_own_draw_rectangle (widget, rect); if (GTK_IS_CONTAINER (widget)) gtk_container_forall (GTK_CONTAINER (widget), @@ -5321,6 +5329,22 @@ gtk_widget_region_intersect (GtkWidget *widget, g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); g_return_val_if_fail (region != NULL, NULL); + /* The children of a widget without a window draw within its draw + * rectangle too, which takes a walk through all of them to find. + * Where the widget itself already covers the region that is not + * needed: every container on the way to an exposed widget does. */ + if (!gtk_widget_get_has_window (widget)) + { + GdkRectangle clip; + + gtk_widget_get_own_draw_rectangle (widget, &rect); + gdk_region_get_clipbox (region, &clip); + if (clip.x >= rect.x && clip.y >= rect.y && + clip.x + clip.width <= rect.x + rect.width && + clip.y + clip.height <= rect.y + rect.height) + return gdk_region_copy (region); + } + gtk_widget_get_draw_rectangle (widget, &rect); dest = gdk_region_rectangle (&rect); From b30eb08cc415fd1131a8ef462e7be54d9c9cfc09 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 16:40:46 +0200 Subject: [PATCH 016/249] gdkcairo: convert a cached theme icon for cairo once, not at every draw --- gdk/gdkcairo.c | 70 ++++++++++++++++++++++++++++++++------------ gtk/gtkiconfactory.c | 23 +++++++++++++++ gtk/gtkiconfactory.h | 1 + gtk/gtkicontheme.c | 5 ++++ 4 files changed, 81 insertions(+), 18 deletions(-) diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 7f5c42165..e617a856a 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -173,24 +173,8 @@ gdk_cairo_region (cairo_t *cr, boxes[i].y2 - boxes[i].y1); } -/** - * gdk_cairo_set_source_pixbuf: - * @cr: a #Cairo context - * @pixbuf: a #GdkPixbuf - * @pixbuf_x: X coordinate of location to place upper left corner of @pixbuf - * @pixbuf_y: Y coordinate of location to place upper left corner of @pixbuf - * - * Sets the given pixbuf as the source pattern for the Cairo context. - * The pattern has an extend mode of %CAIRO_EXTEND_NONE and is aligned - * so that the origin of @pixbuf is @pixbuf_x, @pixbuf_y - * - * Since: 2.8 - **/ -void -gdk_cairo_set_source_pixbuf (cairo_t *cr, - const GdkPixbuf *pixbuf, - double pixbuf_x, - double pixbuf_y) +static cairo_surface_t * +gdk_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf) { gint width = gdk_pixbuf_get_width (pixbuf); gint height = gdk_pixbuf_get_height (pixbuf); @@ -281,6 +265,56 @@ gdk_cairo_set_source_pixbuf (cairo_t *cr, } out: + return surface; +} + +/* GTK marks the pixbufs it renders for its icon caches with this, + * as no one may change them; their cairo surface is kept with them, + * so that a cached icon is neither converted nor uploaded again. */ +#define PIXBUF_SHARED_KEY "gdk-pixbuf-shared" + +/** + * gdk_cairo_set_source_pixbuf: + * @cr: a #Cairo context + * @pixbuf: a #GdkPixbuf + * @pixbuf_x: X coordinate of location to place upper left corner of @pixbuf + * @pixbuf_y: Y coordinate of location to place upper left corner of @pixbuf + * + * Sets the given pixbuf as the source pattern for the Cairo context. + * The pattern has an extend mode of %CAIRO_EXTEND_NONE and is aligned + * so that the origin of @pixbuf is @pixbuf_x, @pixbuf_y + * + * Since: 2.8 + **/ +void +gdk_cairo_set_source_pixbuf (cairo_t *cr, + const GdkPixbuf *pixbuf, + double pixbuf_x, + double pixbuf_y) +{ + static GQuark quark_shared, quark_surface; + cairo_surface_t *surface; + + if (!quark_shared) + { + quark_shared = g_quark_from_static_string (PIXBUF_SHARED_KEY); + quark_surface = g_quark_from_static_string ("gdk-cairo-surface"); + } + + if (g_object_get_qdata (G_OBJECT (pixbuf), quark_shared)) + { + surface = g_object_get_qdata (G_OBJECT (pixbuf), quark_surface); + if (!surface) + { + surface = gdk_cairo_surface_from_pixbuf (pixbuf); + g_object_set_qdata_full (G_OBJECT (pixbuf), quark_surface, surface, + (GDestroyNotify) cairo_surface_destroy); + } + cairo_set_source_surface (cr, surface, pixbuf_x, pixbuf_y); + return; + } + + surface = gdk_cairo_surface_from_pixbuf (pixbuf); cairo_set_source_surface (cr, surface, pixbuf_x, pixbuf_y); cairo_surface_destroy (surface); } diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c index dbafe01c0..126ded684 100644 --- a/gtk/gtkiconfactory.c +++ b/gtk/gtkiconfactory.c @@ -1374,6 +1374,7 @@ ensure_filename_pixbuf (GtkIconSet *icon_set, GError *error = NULL; source->filename_pixbuf = gdk_pixbuf_new_from_file (source->source.filename, &error); + _gtk_icon_pixbuf_mark_shared (source->filename_pixbuf); if (source->filename_pixbuf == NULL) { @@ -2495,6 +2496,15 @@ find_in_cache (GtkIconSet *icon_set, return NULL; } +/* Marks a pixbuf GTK made for its icon caches, which no one may change, + * so that gdk_cairo_set_source_pixbuf() can keep its cairo surface. */ +void +_gtk_icon_pixbuf_mark_shared (GdkPixbuf *pixbuf) +{ + if (pixbuf) + g_object_set_data (G_OBJECT (pixbuf), I_("gdk-pixbuf-shared"), GINT_TO_POINTER (TRUE)); +} + static void add_to_cache (GtkIconSet *icon_set, GtkStyle *style, @@ -2504,11 +2514,24 @@ add_to_cache (GtkIconSet *icon_set, GdkPixbuf *pixbuf) { CachedIcon *icon; + GSList *l; ensure_cache_up_to_date (icon_set); g_object_ref (pixbuf); + /* what is cached here is handed out to everyone, but a pixbuf + * the application gave as a source stays its own */ + for (l = icon_set->sources; l; l = l->next) + { + GtkIconSource *source = l->data; + + if (source->type == GTK_ICON_SOURCE_PIXBUF && source->source.pixbuf == pixbuf) + break; + } + if (!l) + _gtk_icon_pixbuf_mark_shared (pixbuf); + /* We have to ref the style, since if the style was finalized * its address could be reused by another style, creating a * really weird bug diff --git a/gtk/gtkiconfactory.h b/gtk/gtkiconfactory.h index ea97123bd..492d93ec0 100644 --- a/gtk/gtkiconfactory.h +++ b/gtk/gtkiconfactory.h @@ -183,6 +183,7 @@ GtkIconSize gtk_icon_source_get_size (const GtkIconSource * void _gtk_icon_set_invalidate_caches (void); GList* _gtk_icon_factory_list_ids (void); void _gtk_icon_factory_ensure_default_icons (void); +void _gtk_icon_pixbuf_mark_shared (GdkPixbuf *pixbuf); G_END_DECLS diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index f8aaf9a3b..38adb38a0 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2267,6 +2267,7 @@ theme_lookup_icon (IconTheme *theme, { icon_info->cache_pixbuf = _gtk_icon_cache_get_icon (min_dir->cache, icon_name, min_dir->subdir_index); + _gtk_icon_pixbuf_mark_shared (icon_info->cache_pixbuf); } icon_info->dir_type = min_dir->type; @@ -2853,6 +2854,7 @@ apply_emblems (GtkIconInfo *info) { g_object_unref (info->pixbuf); info->pixbuf = icon; + _gtk_icon_pixbuf_mark_shared (icon); } info->emblems_applied = TRUE; @@ -2976,6 +2978,7 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info, TRUE, NULL, &icon_info->load_error); + _gtk_icon_pixbuf_mark_shared (icon_info->pixbuf); g_object_unref (stream); } @@ -3032,6 +3035,7 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info, source_pixbuf = gdk_pixbuf_new_from_stream (stream, NULL, &icon_info->load_error); + _gtk_icon_pixbuf_mark_shared (source_pixbuf); g_object_unref (stream); } } @@ -3074,6 +3078,7 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info, icon_info_get_scale_interp_type (image_width, image_height, icon_info->scale)); + _gtk_icon_pixbuf_mark_shared (icon_info->pixbuf); g_object_unref (source_pixbuf); } From f849f756b27b3fbce5bc393fab196418197edb8f Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 17:06:32 +0200 Subject: [PATCH 017/249] gtkstyle: check a style property request only before it goes into the cache --- gtk/gtkstyle.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index a9c03b62b..8e284fe39 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -1907,9 +1907,6 @@ _gtk_style_peek_property_value (GtkStyle *style, guint i; g_return_val_if_fail (GTK_IS_STYLE (style), NULL); - g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL); - g_return_val_if_fail (g_type_is_a (pspec->owner_type, GTK_TYPE_WIDGET), NULL); - g_return_val_if_fail (g_type_is_a (widget_type, pspec->owner_type), NULL); key.widget_type = widget_type; key.pspec = pspec; @@ -1926,6 +1923,11 @@ _gtk_style_peek_property_value (GtkStyle *style, return &pcache->value; } + /* what is in the cache has been checked on the way in */ + g_return_val_if_fail (G_IS_PARAM_SPEC (pspec), NULL); + g_return_val_if_fail (g_type_is_a (pspec->owner_type, GTK_TYPE_WIDGET), NULL); + g_return_val_if_fail (g_type_is_a (widget_type, pspec->owner_type), NULL); + i = 0; while (i < style->property_cache->len && style_property_values_cmp (&key, &g_array_index (style->property_cache, PropertyValue, i)) >= 0) From daa05081acabb8667a19d597a978248c5529e0b4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 14:08:01 +0200 Subject: [PATCH 018/249] gdkrgb: SSE2 for the busiest loops, chosen at run time --- configure.ac | 39 +++++++++ gdk/Makefile.am | 23 +++-- gdk/gdkrgb-sse2.c | 208 ++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgb.c | 38 ++++++++- gdk/gdkrgbsimd.c | 57 +++++++++++++ gdk/gdkrgbsimd.h | 53 ++++++++++++ gdk/makefile.msc | 2 + 7 files changed, 411 insertions(+), 9 deletions(-) create mode 100644 gdk/gdkrgb-sse2.c create mode 100644 gdk/gdkrgbsimd.c create mode 100644 gdk/gdkrgbsimd.h diff --git a/configure.ac b/configure.ac index e1c2bbab5..55714ad45 100644 --- a/configure.ac +++ b/configure.ac @@ -477,6 +477,45 @@ AC_SUBST(REBUILD) AC_CHECK_FUNCS(lstat mkstemp flockfile getc_unlocked _getc_nolock) AC_CHECK_FUNCS(localtime_r) +# +# Vector instructions for GdkRGB. Each instruction set has a file of its +# own, compiled with the flags found here; CPUs without it are told apart +# at run time. +# + +dnl GTK_CHECK_SIMD_FLAGS(NAME, FLAGS|OTHER FLAGS, PROLOGUE, BODY): +dnl sets NAME_CFLAGS to the first flags the test compiles with +AC_DEFUN([GTK_CHECK_SIMD_FLAGS], +[AC_MSG_CHECKING([for flags to compile $1 code]) +$1_CFLAGS= +gtk_save_CFLAGS="$CFLAGS" +gtk_simd_list='$2' +gtk_save_IFS="$IFS" +IFS='|' +for gtk_simd_flags in $gtk_simd_list; do + IFS="$gtk_save_IFS" + CFLAGS="$gtk_save_CFLAGS $gtk_simd_flags" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$3]], [[$4]])], + [$1_CFLAGS="$gtk_simd_flags" + break]) +done +IFS="$gtk_save_IFS" +CFLAGS="$gtk_save_CFLAGS" +AC_MSG_RESULT([${$1_CFLAGS:-none}]) +AC_SUBST($1_CFLAGS)]) + +SSE2_CFLAGS= +case "$host_cpu" in + i?86|x86_64|amd64) + GTK_CHECK_SIMD_FLAGS([SSE2], [-msse2], + [#include + #ifndef __SSE2__ + #error no SSE2 + #endif], + [__m128i v = _mm_setzero_si128 (); v = _mm_mullo_epi16 (v, v); (void) v;]) + ;; +esac + # _NL_TIME_FIRST_WEEKDAY is an enum and not a define AC_MSG_CHECKING([for _NL_TIME_FIRST_WEEKDAY]) AC_LINK_IFELSE( diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 8198717cb..0b679fd8f 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -107,6 +107,7 @@ gdk_built_private_headers = \ gdk_private_headers = \ gdkinternals.h \ gdkintl.h \ + gdkrgbsimd.h \ gdkpoly-generic.h \ gdkregion-generic.h @@ -136,6 +137,7 @@ gdk_c_sources = \ gdkrectangle.c \ gdkregion-generic.c \ gdkrgb.c \ + gdkrgbsimd.c \ gdkscreen.c \ gdkselection.c \ gdkvisual.c \ @@ -164,21 +166,32 @@ common_sources = \ gdkmarshalers.c \ gdkmarshalers.h +# Vector versions of GdkRGB loops, each built with the flags of its +# instruction set. configure leaves the flags empty where the compiler +# can't do them, and the file then has nothing but an empty function. +noinst_LTLIBRARIES = \ + libgdk-rgb-sse2.la + +libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c +libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) + +gdk_rgb_simd_libs = $(noinst_LTLIBRARIES) + libgdk_directfb_2_0_la_SOURCES = $(common_sources) -libgdk_directfb_2_0_la_LIBADD = directfb/libgdk-directfb.la $(GDK_DEP_LIBS) +libgdk_directfb_2_0_la_LIBADD = directfb/libgdk-directfb.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) libgdk_directfb_2_0_la_LDFLAGS = $(LDADD) libgdk_x11_2_0_la_SOURCES = $(common_sources) -libgdk_x11_2_0_la_LIBADD = x11/libgdk-x11.la $(GDK_DEP_LIBS) +libgdk_x11_2_0_la_LIBADD = x11/libgdk-x11.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) libgdk_x11_2_0_la_LDFLAGS = $(LDADD) libgdk_quartz_2_0_la_SOURCES = $(common_sources) gdkkeynames.c -libgdk_quartz_2_0_la_LIBADD = quartz/libgdk-quartz.la $(GDK_DEP_LIBS) +libgdk_quartz_2_0_la_LIBADD = quartz/libgdk-quartz.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) libgdk_quartz_2_0_la_LDFLAGS = $(LDADD) libgdk_win32_2_0_la_SOURCES = $(common_sources) gdkkeynames.c -libgdk_win32_2_0_la_LIBADD = win32/libgdk-win32.la $(GDK_DEP_LIBS) -libgdk_win32_2_0_la_DEPENDENCIES = win32/libgdk-win32.la win32/rc/gdk-win32-res.o gdk.def +libgdk_win32_2_0_la_LIBADD = win32/libgdk-win32.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) +libgdk_win32_2_0_la_DEPENDENCIES = win32/libgdk-win32.la $(gdk_rgb_simd_libs) win32/rc/gdk-win32-res.o gdk.def libgdk_win32_2_0_la_LDFLAGS = -Wl,win32/rc/gdk-win32-res.o -export-symbols $(srcdir)/gdk.def $(LDADD) if HAVE_INTROSPECTION diff --git a/gdk/gdkrgb-sse2.c b/gdk/gdkrgb-sse2.c new file mode 100644 index 000000000..e8594822a --- /dev/null +++ b/gdk/gdkrgb-sse2.c @@ -0,0 +1,208 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for SSE2 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +#if defined(__SSE2__) + +#include + +/* x86 is little endian: an x888 pixel is the bytes B, G, R, 0xff */ + +#define SPLAT(v) _mm_set1_epi32 ((gint) (v)) + +/* The 12 bytes of four RGB pixels as lanes R | G << 8 | B << 16 */ +static inline __m128i +rgb_lanes (__m128i v) +{ + __m128i lo = _mm_unpacklo_epi32 (v, _mm_srli_si128 (v, 3)); + __m128i hi = _mm_unpacklo_epi32 (_mm_srli_si128 (v, 6), _mm_srli_si128 (v, 9)); + + return _mm_unpacklo_epi64 (lo, hi); +} + +/* Lanes R | G << 8 | B << 16 to x888 */ +static inline __m128i +x888_of (__m128i v) +{ + return _mm_or_si128 (_mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (v, SPLAT (0xff)), 16), + _mm_and_si128 (v, SPLAT (0xff00))), + _mm_or_si128 (_mm_and_si128 (_mm_srli_epi32 (v, 16), SPLAT (0xff)), + SPLAT (0xff000000))); +} + +/* Lanes R | G << 8 | B << 16 to 565, sign extended for packing */ +static inline __m128i +rgb565_of (__m128i v) +{ + v = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (v, SPLAT (0xf8)), 8), + _mm_srli_epi32 (_mm_and_si128 (v, SPLAT (0xfc00)), 5)), + _mm_and_si128 (_mm_srli_epi32 (v, 19), SPLAT (0x1f))); + + return _mm_srai_epi32 (_mm_slli_epi32 (v, 16), 16); +} + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgb += 24) + { + __m128i a = _mm_loadu_si128 ((const __m128i *) rgb); + __m128i b = _mm_loadl_epi64 ((const __m128i *) (rgb + 16)); + __m128i c = _mm_or_si128 (_mm_srli_si128 (a, 12), _mm_slli_si128 (b, 4)); + + _mm_storeu_si128 ((__m128i *) (out + i), x888_of (rgb_lanes (a))); + _mm_storeu_si128 ((__m128i *) (out + i + 4), x888_of (rgb_lanes (c))); + } + + return i; +} + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgbx += 16) + _mm_storeu_si128 ((__m128i *) (out + i), + x888_of (_mm_loadu_si128 ((const __m128i *) rgbx))); + + return i; +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgb += 24) + { + __m128i a = _mm_loadu_si128 ((const __m128i *) rgb); + __m128i b = _mm_loadl_epi64 ((const __m128i *) (rgb + 16)); + __m128i c = _mm_or_si128 (_mm_srli_si128 (a, 12), _mm_slli_si128 (b, 4)); + + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_packs_epi32 (rgb565_of (rgb_lanes (a)), + rgb565_of (rgb_lanes (c)))); + } + + return i; +} + +/* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ +static inline __m128i +blend (__m128i s, __m128i d, __m128i a) +{ + __m128i t = _mm_add_epi16 (_mm_add_epi16 (_mm_mullo_epi16 (s, a), + _mm_mullo_epi16 (d, _mm_sub_epi16 (_mm_set1_epi16 (255), a))), + _mm_set1_epi16 (0x80)); + + return _mm_srli_epi16 (_mm_add_epi16 (t, _mm_srli_epi16 (t, 8)), 8); +} + +/* Alpha of each pixel in all four 16-bit lanes of the pixel */ +static inline __m128i +alpha_of (__m128i v) +{ + return _mm_shufflehi_epi16 (_mm_shufflelo_epi16 (v, 0xff), 0xff); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + const __m128i zero = _mm_setzero_si128 (); + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgba += 16) + { + __m128i s = _mm_loadu_si128 ((const __m128i *) rgba); + __m128i d = _mm_loadu_si128 ((const __m128i *) (pixels + i)); + __m128i transparent = _mm_cmpeq_epi32 (_mm_srli_epi32 (s, 24), zero); + __m128i lo, hi, v; + + /* RGBA to BGRA, the order of the pixels */ + s = _mm_or_si128 (_mm_and_si128 (s, SPLAT (0xff00ff00)), + _mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (s, SPLAT (0xff)), 16), + _mm_and_si128 (_mm_srli_epi32 (s, 16), SPLAT (0xff)))); + + lo = _mm_unpacklo_epi8 (s, zero); + hi = _mm_unpackhi_epi8 (s, zero); + lo = blend (lo, _mm_unpacklo_epi8 (d, zero), alpha_of (lo)); + hi = blend (hi, _mm_unpackhi_epi8 (d, zero), alpha_of (hi)); + v = _mm_or_si128 (_mm_packus_epi16 (lo, hi), SPLAT (0xff000000)); + + /* fully transparent pixels stay as they are */ + v = _mm_or_si128 (_mm_and_si128 (transparent, d), _mm_andnot_si128 (transparent, v)); + _mm_storeu_si128 ((__m128i *) (pixels + i), v); + } + + return i; +} + +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + __m128i s0 = _mm_loadu_si128 ((const __m128i *) rgba); + __m128i s1 = _mm_loadu_si128 ((const __m128i *) (rgba + 16)); + __m128i d = _mm_loadu_si128 ((const __m128i *) (pixels + i)); + __m128i r = _mm_packs_epi32 (_mm_and_si128 (s0, SPLAT (0xff)), + _mm_and_si128 (s1, SPLAT (0xff))); + __m128i g = _mm_packs_epi32 (_mm_and_si128 (_mm_srli_epi32 (s0, 8), SPLAT (0xff)), + _mm_and_si128 (_mm_srli_epi32 (s1, 8), SPLAT (0xff))); + __m128i b = _mm_packs_epi32 (_mm_and_si128 (_mm_srli_epi32 (s0, 16), SPLAT (0xff)), + _mm_and_si128 (_mm_srli_epi32 (s1, 16), SPLAT (0xff))); + __m128i a = _mm_packs_epi32 (_mm_srli_epi32 (s0, 24), _mm_srli_epi32 (s1, 24)); + __m128i dr = _mm_srli_epi16 (d, 11); + __m128i dg = _mm_and_si128 (_mm_srli_epi16 (d, 5), _mm_set1_epi16 (0x3f)); + __m128i db = _mm_and_si128 (d, _mm_set1_epi16 (0x1f)); + + /* the bits of the pixel repeated up to 8 */ + dr = _mm_or_si128 (_mm_slli_epi16 (dr, 3), _mm_srli_epi16 (dr, 2)); + dg = _mm_or_si128 (_mm_slli_epi16 (dg, 2), _mm_srli_epi16 (dg, 4)); + db = _mm_or_si128 (_mm_slli_epi16 (db, 3), _mm_srli_epi16 (db, 2)); + + r = blend (r, dr, a); + g = blend (g, dg, a); + b = blend (b, db, a); + d = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi16 (_mm_and_si128 (r, _mm_set1_epi16 (0xf8)), 8), + _mm_slli_epi16 (_mm_and_si128 (g, _mm_set1_epi16 (0xfc)), 3)), + _mm_srli_epi16 (b, 3)); + _mm_storeu_si128 ((__m128i *) (pixels + i), d); + } + + return i; +} + +void +_gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd) +{ + simd->name = "sse2"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->composite_x888 = composite_x888; + simd->composite_565 = composite_565; +} + +#else + +void +_gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index e05462056..5daeef904 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -39,6 +39,7 @@ #include "gdkinternals.h" /* _gdk_windowing_get_bits_for_depth() */ #include "gdkrgb.h" +#include "gdkrgbsimd.h" #include "gdkscreen.h" #include "gdkalias.h" #include @@ -1476,6 +1477,25 @@ gdk_rgb_truecolor_row (GdkRgbInfo *info, return; } + /* vector code where there is some, C for the rest of the row */ + if (native && (input == GDK_RGB_INPUT_RGB || input == GDK_RGB_INPUT_RGBX)) + { + const GdkRgbSimd *simd = _gdk_rgb_simd_get (); + gint done = 0; + + if (bits == 32 && info->layout == GDK_RGB_LAYOUT_X888 && input == GDK_RGB_INPUT_RGB) + done = simd->rgb_to_x888 ? simd->rgb_to_x888 (out32, in, width) : 0; + else if (bits == 32 && info->layout == GDK_RGB_LAYOUT_X888) + done = simd->rgbx_to_x888 ? simd->rgbx_to_x888 (out32, in, width) : 0; + else if (bits == 16 && info->layout == GDK_RGB_LAYOUT_565 && input == GDK_RGB_INPUT_RGB) + done = simd->rgb_to_565 ? simd->rgb_to_565 (out16, in, width) : 0; + + out16 += done; + out32 += done; + in += done * gdk_rgb_input_bytes[input]; + width -= done; + } + if (native && bits == 16) switch (info->layout) { @@ -1672,8 +1692,9 @@ gdk_rgb_select_conv (GdkRgbInfo *info) gboolean gray = type == GDK_VISUAL_STATIC_GRAY || type == GDK_VISUAL_GRAYSCALE; if (gdk_rgb_verbose) - g_print ("Chose visual type=%d depth=%d, image bpp=%d, %s first\n", - type, depth, bits, visual->byte_order == GDK_LSB_FIRST ? "lsb" : "msb"); + g_print ("Chose visual type=%d depth=%d, image bpp=%d, %s first, vector code: %s\n", + type, depth, bits, visual->byte_order == GDK_LSB_FIRST ? "lsb" : "msb", + _gdk_rgb_simd_get ()->name); info->dith_default = FALSE; info->index_row = info->index_row_dither = NULL; @@ -1941,6 +1962,7 @@ _gdk_rgb_composite (GdkColormap *colormap, gboolean msb_first = image->byte_order == GDK_MSB_FIRST; gboolean native = msb_first == (G_BYTE_ORDER == G_BIG_ENDIAN); gboolean deep = visual->red_prec > 8 || visual->green_prec > 8 || visual->blue_prec > 8; + const GdkRgbSimd *simd = _gdk_rgb_simd_get (); guchar *out = (guchar *) image->mem + y0 * image->bpl + x0 * (bits / 8); guint32 row[ROW_MAX]; gint y; @@ -1951,10 +1973,18 @@ _gdk_rgb_composite (GdkColormap *colormap, for (y = 0; y < height; y++, rgba += rowstride, out += image->bpl) { + gint done = 0; + + /* vector code where there is some, C for the rest of the row */ + if (native && bits == 16 && info->layout == GDK_RGB_LAYOUT_565 && simd->composite_565) + done = simd->composite_565 ((guint16 *) out, rgba, width); + else if (native && bits == 32 && info->layout == GDK_RGB_LAYOUT_X888 && simd->composite_x888) + done = simd->composite_x888 ((guint32 *) out, rgba, width); + if (native && bits == 16 && !deep) - gdk_rgb_composite_row16 (info, (guint16 *) out, rgba, width); + gdk_rgb_composite_row16 (info, (guint16 *) out + done, rgba + done * 4, width - done); else if (native && bits == 32 && !deep) - gdk_rgb_composite_row32 (info, (guint32 *) out, rgba, width); + gdk_rgb_composite_row32 (info, (guint32 *) out + done, rgba + done * 4, width - done); else if (native && bits == 32) gdk_rgb_composite_row_deep (info, (guint32 *) out, rgba, width); else diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c new file mode 100644 index 000000000..8a5b8c4f3 --- /dev/null +++ b/gdk/gdkrgbsimd.c @@ -0,0 +1,57 @@ +/* GDK - The GIMP Drawing Kit + * Choosing the vector versions of GdkRGB loops for this CPU + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include + +#include "gdkrgbsimd.h" + +#if defined(__i386__) || defined(__x86_64__) +#if defined(__GNUC__) +#include +#endif +#endif + +static void +detect (GdkRgbSimd *simd) +{ +#if defined(__x86_64__) + /* every x86-64 CPU has SSE2 */ + _gdk_rgb_simd_init_sse2 (simd); + +#elif defined(__i386__) && defined(__GNUC__) + unsigned int eax, ebx, ecx, edx; + + if (__get_cpuid (1, &eax, &ebx, &ecx, &edx)) + { + if (edx & (1 << 26)) + _gdk_rgb_simd_init_sse2 (simd); + } + +#endif +} + +const GdkRgbSimd * +_gdk_rgb_simd_get (void) +{ + static GdkRgbSimd simd = { "none", }; + static gboolean done = FALSE; + + if (!done) + { + const gchar *disable = g_getenv ("GDK_DISABLE_SIMD"); + + if (!disable || !*disable || *disable == '0') + detect (&simd); + done = TRUE; + } + + return &simd; +} diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h new file mode 100644 index 000000000..f8aa77158 --- /dev/null +++ b/gdk/gdkrgbsimd.h @@ -0,0 +1,53 @@ +/* GDK - The GIMP Drawing Kit + * Vector versions of GdkRGB loops + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +/* Vector versions of the busiest GdkRGB loops. + * + * Each converts pixels from the start of a row, as many as it likes, and + * returns how many; the C code does the rest. Pixels are words in the + * byte order of the machine: + * + * x888 0xffRRGGBB, 32 bits + * 565 RRRRRGGG GGGBBBBB, 16 bits + * + * RGB and RGBA are bytes in that order; RGBA is not premultiplied. + * Blending rounds as GdkRGB's C code does, so the results are the same. + * No alignment is required of any pointer. + */ + +#ifndef __GDK_RGB_SIMD_H__ +#define __GDK_RGB_SIMD_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _GdkRgbSimd GdkRgbSimd; + +struct _GdkRgbSimd +{ + const gchar *name; + + gint (*rgb_to_x888) (guint32 *out, const guchar *rgb, gint n); + gint (*rgbx_to_x888) (guint32 *out, const guchar *rgbx, gint n); + gint (*rgb_to_565) (guint16 *out, const guchar *rgb, gint n); + gint (*composite_x888) (guint32 *pixels, const guchar *rgba, gint n); + gint (*composite_565) (guint16 *pixels, const guchar *rgba, gint n); +}; + +/* Each fills in what its instruction set does better than C; they are + * only called when the CPU has it. */ +void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); + +/* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ +const GdkRgbSimd *_gdk_rgb_simd_get (void); + +G_END_DECLS + +#endif /* __GDK_RGB_SIMD_H__ */ diff --git a/gdk/makefile.msc b/gdk/makefile.msc index e9f816931..e69232523 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -92,6 +92,8 @@ gdk_OBJECTS = \ gdkrectangle.obj \ gdkregion-generic.obj \ gdkrgb.obj \ + gdkrgbsimd.obj \ + gdkrgb-sse2.obj \ gdkscreen.obj \ gdkselection.obj \ gdkvisual.obj \ From 74b8339ced54969f52b75778dc392ce684b40bbe Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 14:08:02 +0200 Subject: [PATCH 019/249] gdkrgb: MMX for CPUs without SSE2 --- configure.ac | 7 ++ gdk/Makefile.am | 3 + gdk/gdkrgb-mmx.c | 231 +++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 2 + gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 6 files changed, 245 insertions(+) create mode 100644 gdk/gdkrgb-mmx.c diff --git a/configure.ac b/configure.ac index 55714ad45..8b8da9e9a 100644 --- a/configure.ac +++ b/configure.ac @@ -504,9 +504,16 @@ CFLAGS="$gtk_save_CFLAGS" AC_MSG_RESULT([${$1_CFLAGS:-none}]) AC_SUBST($1_CFLAGS)]) +MMX_CFLAGS= SSE2_CFLAGS= case "$host_cpu" in i?86|x86_64|amd64) + GTK_CHECK_SIMD_FLAGS([MMX], [-mmmx], + [#include + #ifndef __MMX__ + #error no MMX + #endif], + [__m64 v = _mm_setzero_si64 (); v = _mm_mullo_pi16 (v, v); _mm_empty ();]) GTK_CHECK_SIMD_FLAGS([SSE2], [-msse2], [#include #ifndef __SSE2__ diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 0b679fd8f..0fb460a1f 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -170,8 +170,11 @@ common_sources = \ # instruction set. configure leaves the flags empty where the compiler # can't do them, and the file then has nothing but an empty function. noinst_LTLIBRARIES = \ + libgdk-rgb-mmx.la \ libgdk-rgb-sse2.la +libgdk_rgb_mmx_la_SOURCES = gdkrgb-mmx.c +libgdk_rgb_mmx_la_CFLAGS = $(MMX_CFLAGS) libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) diff --git a/gdk/gdkrgb-mmx.c b/gdk/gdkrgb-mmx.c new file mode 100644 index 000000000..a20d8fdad --- /dev/null +++ b/gdk/gdkrgb-mmx.c @@ -0,0 +1,231 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for MMX (Pentium MMX, Pentium II, K6) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include + +#include "gdkrgbsimd.h" + +#if defined(__MMX__) + +#include + +/* Only the original MMX instructions are used, so no pshufw. */ + +#define SPLAT(v) _mm_set1_pi32 ((gint) (v)) + +static inline __m64 +load8 (const void *p) +{ + __m64 v; + + memcpy (&v, p, 8); + return v; +} + +static inline void +store8 (void *p, __m64 v) +{ + memcpy (p, &v, 8); +} + +static inline __m64 +load4 (const void *p) +{ + gint32 v; + + memcpy (&v, p, 4); + return _mm_cvtsi32_si64 (v); +} + +/* The 6 bytes of two RGB pixels as lanes R | G << 8 | B << 16 */ +static inline __m64 +rgb_lanes (__m64 v) +{ + return _mm_unpacklo_pi32 (v, _mm_srli_si64 (v, 24)); +} + +static inline __m64 +x888_of (__m64 v) +{ + return _mm_or_si64 (_mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (v, SPLAT (0xff)), 16), + _mm_and_si64 (v, SPLAT (0xff00))), + _mm_or_si64 (_mm_and_si64 (_mm_srli_pi32 (v, 16), SPLAT (0xff)), + SPLAT (0xff000000))); +} + +static inline __m64 +rgb565_of (__m64 v) +{ + v = _mm_or_si64 (_mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (v, SPLAT (0xf8)), 8), + _mm_srli_pi32 (_mm_and_si64 (v, SPLAT (0xfc00)), 5)), + _mm_and_si64 (_mm_srli_pi32 (v, 19), SPLAT (0x1f))); + + return _mm_srai_pi32 (_mm_slli_pi32 (v, 16), 16); +} + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgb += 12) + { + __m64 a = load8 (rgb); + __m64 b = _mm_or_si64 (_mm_srli_si64 (a, 48), _mm_slli_si64 (load4 (rgb + 8), 16)); + + store8 (out + i, x888_of (rgb_lanes (a))); + store8 (out + i + 2, x888_of (rgb_lanes (b))); + } + _mm_empty (); + + return i; +} + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + gint i; + + for (i = 0; i + 2 <= n; i += 2, rgbx += 8) + store8 (out + i, x888_of (load8 (rgbx))); + _mm_empty (); + + return i; +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgb += 12) + { + __m64 a = load8 (rgb); + __m64 b = _mm_or_si64 (_mm_srli_si64 (a, 48), _mm_slli_si64 (load4 (rgb + 8), 16)); + + store8 (out + i, _mm_packs_pi32 (rgb565_of (rgb_lanes (a)), rgb565_of (rgb_lanes (b)))); + } + _mm_empty (); + + return i; +} + +/* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ +static inline __m64 +blend (__m64 s, __m64 d, __m64 a) +{ + __m64 t = _mm_add_pi16 (_mm_add_pi16 (_mm_mullo_pi16 (s, a), + _mm_mullo_pi16 (d, _mm_sub_pi16 (_mm_set1_pi16 (255), a))), + _mm_set1_pi16 (0x80)); + + return _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); +} + +/* The alpha of a pixel in 16-bit lanes B, G, R, A in all four lanes */ +static inline __m64 +alpha_of (__m64 v) +{ + v = _mm_srli_si64 (v, 48); + v = _mm_unpacklo_pi16 (v, v); + + return _mm_unpacklo_pi32 (v, v); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + const __m64 zero = _mm_setzero_si64 (); + gint i; + + for (i = 0; i + 2 <= n; i += 2, rgba += 8) + { + __m64 s = load8 (rgba); + __m64 d = load8 (pixels + i); + __m64 transparent = _mm_cmpeq_pi32 (_mm_srli_pi32 (s, 24), zero); + __m64 lo, hi, v; + + /* RGBA to BGRA, the order of the pixels */ + s = _mm_or_si64 (_mm_and_si64 (s, SPLAT (0xff00ff00)), + _mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (s, SPLAT (0xff)), 16), + _mm_and_si64 (_mm_srli_pi32 (s, 16), SPLAT (0xff)))); + + lo = _mm_unpacklo_pi8 (s, zero); + hi = _mm_unpackhi_pi8 (s, zero); + lo = blend (lo, _mm_unpacklo_pi8 (d, zero), alpha_of (lo)); + hi = blend (hi, _mm_unpackhi_pi8 (d, zero), alpha_of (hi)); + v = _mm_or_si64 (_mm_packs_pu16 (lo, hi), SPLAT (0xff000000)); + + /* fully transparent pixels stay as they are */ + store8 (pixels + i, _mm_or_si64 (_mm_and_si64 (transparent, d), + _mm_andnot_si64 (transparent, v))); + } + _mm_empty (); + + return i; +} + +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgba += 16) + { + __m64 s0 = load8 (rgba); + __m64 s1 = load8 (rgba + 8); + __m64 d = load8 (pixels + i); + __m64 r = _mm_packs_pi32 (_mm_and_si64 (s0, SPLAT (0xff)), _mm_and_si64 (s1, SPLAT (0xff))); + __m64 g = _mm_packs_pi32 (_mm_and_si64 (_mm_srli_pi32 (s0, 8), SPLAT (0xff)), + _mm_and_si64 (_mm_srli_pi32 (s1, 8), SPLAT (0xff))); + __m64 b = _mm_packs_pi32 (_mm_and_si64 (_mm_srli_pi32 (s0, 16), SPLAT (0xff)), + _mm_and_si64 (_mm_srli_pi32 (s1, 16), SPLAT (0xff))); + __m64 a = _mm_packs_pi32 (_mm_srli_pi32 (s0, 24), _mm_srli_pi32 (s1, 24)); + __m64 dr = _mm_srli_pi16 (d, 11); + __m64 dg = _mm_and_si64 (_mm_srli_pi16 (d, 5), _mm_set1_pi16 (0x3f)); + __m64 db = _mm_and_si64 (d, _mm_set1_pi16 (0x1f)); + + /* the bits of the pixel repeated up to 8 */ + dr = _mm_or_si64 (_mm_slli_pi16 (dr, 3), _mm_srli_pi16 (dr, 2)); + dg = _mm_or_si64 (_mm_slli_pi16 (dg, 2), _mm_srli_pi16 (dg, 4)); + db = _mm_or_si64 (_mm_slli_pi16 (db, 3), _mm_srli_pi16 (db, 2)); + + r = blend (r, dr, a); + g = blend (g, dg, a); + b = blend (b, db, a); + store8 (pixels + i, + _mm_or_si64 (_mm_or_si64 (_mm_slli_pi16 (_mm_and_si64 (r, _mm_set1_pi16 (0xf8)), 8), + _mm_slli_pi16 (_mm_and_si64 (g, _mm_set1_pi16 (0xfc)), 3)), + _mm_srli_pi16 (b, 3))); + } + _mm_empty (); + + return i; +} + +void +_gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) +{ + simd->name = "mmx"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->composite_x888 = composite_x888; + simd->composite_565 = composite_565; +} + +#else + +void +_gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index 8a5b8c4f3..cb7055a74 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -31,6 +31,8 @@ detect (GdkRgbSimd *simd) if (__get_cpuid (1, &eax, &ebx, &ecx, &edx)) { + if (edx & (1 << 23)) + _gdk_rgb_simd_init_mmx (simd); if (edx & (1 << 26)) _gdk_rgb_simd_init_sse2 (simd); } diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index f8aa77158..159a002dd 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -43,6 +43,7 @@ struct _GdkRgbSimd /* Each fills in what its instruction set does better than C; they are * only called when the CPU has it. */ +void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); /* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ diff --git a/gdk/makefile.msc b/gdk/makefile.msc index e69232523..93c51369f 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -93,6 +93,7 @@ gdk_OBJECTS = \ gdkregion-generic.obj \ gdkrgb.obj \ gdkrgbsimd.obj \ + gdkrgb-mmx.obj \ gdkrgb-sse2.obj \ gdkscreen.obj \ gdkselection.obj \ From b0938af704bfb2c92e2676295b9342c06e757d0f Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 14:08:03 +0200 Subject: [PATCH 020/249] gdkrgb: AltiVec for PowerPC G4 and G5 --- configure.ac | 12 +- gdk/Makefile.am | 5 +- gdk/gdkrgb-altivec.c | 326 +++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 35 +++++ gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 6 files changed, 378 insertions(+), 2 deletions(-) create mode 100644 gdk/gdkrgb-altivec.c diff --git a/configure.ac b/configure.ac index 8b8da9e9a..f7532e803 100644 --- a/configure.ac +++ b/configure.ac @@ -480,8 +480,9 @@ AC_CHECK_FUNCS(localtime_r) # # Vector instructions for GdkRGB. Each instruction set has a file of its # own, compiled with the flags found here; CPUs without it are told apart -# at run time. +# at run time (getauxval() or elf_aux_info() where cpuid doesn't). # +AC_CHECK_FUNCS(getauxval elf_aux_info) dnl GTK_CHECK_SIMD_FLAGS(NAME, FLAGS|OTHER FLAGS, PROLOGUE, BODY): dnl sets NAME_CFLAGS to the first flags the test compiles with @@ -506,6 +507,7 @@ AC_SUBST($1_CFLAGS)]) MMX_CFLAGS= SSE2_CFLAGS= +ALTIVEC_CFLAGS= case "$host_cpu" in i?86|x86_64|amd64) GTK_CHECK_SIMD_FLAGS([MMX], [-mmmx], @@ -521,6 +523,14 @@ case "$host_cpu" in #endif], [__m128i v = _mm_setzero_si128 (); v = _mm_mullo_epi16 (v, v); (void) v;]) ;; + powerpc*|ppc*) + GTK_CHECK_SIMD_FLAGS([ALTIVEC], [-maltivec], + [#include + #if !defined(__ALTIVEC__) || !defined(__BIG_ENDIAN__) + #error no big endian AltiVec + #endif], + [vector unsigned short v = vec_splats ((unsigned short) 1); v = vec_mladd (v, v, v); (void) v;]) + ;; esac # _NL_TIME_FIRST_WEEKDAY is an enum and not a define diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 0fb460a1f..a9311ffea 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -171,12 +171,15 @@ common_sources = \ # can't do them, and the file then has nothing but an empty function. noinst_LTLIBRARIES = \ libgdk-rgb-mmx.la \ - libgdk-rgb-sse2.la + libgdk-rgb-sse2.la \ + libgdk-rgb-altivec.la libgdk_rgb_mmx_la_SOURCES = gdkrgb-mmx.c libgdk_rgb_mmx_la_CFLAGS = $(MMX_CFLAGS) libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) +libgdk_rgb_altivec_la_SOURCES = gdkrgb-altivec.c +libgdk_rgb_altivec_la_CFLAGS = $(ALTIVEC_CFLAGS) gdk_rgb_simd_libs = $(noinst_LTLIBRARIES) diff --git a/gdk/gdkrgb-altivec.c b/gdk/gdkrgb-altivec.c new file mode 100644 index 000000000..2a294f5e4 --- /dev/null +++ b/gdk/gdkrgb-altivec.c @@ -0,0 +1,326 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for AltiVec (PowerPC G4 and G5) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +#if defined(__ALTIVEC__) && defined(__BIG_ENDIAN__) + +#include + +/* An x888 pixel is the bytes 0xff, R, G, B; a 565 pixel is a big + * endian 16-bit word. Vector loads and stores need 16-byte aligned + * addresses: loads are put together from two, and each loop starts + * with single pixels until the output is aligned. */ + +typedef vector unsigned char vu8; +typedef vector unsigned short vu16; +typedef vector unsigned int vu32; + +#define VU8(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ + ((vu8) { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p }) + +/* Reads 16 bytes after 16 bytes from any address, one aligned load + * each; never reads a block that holds none of the bytes asked for. + * Set up only when at least 16 bytes will be read. */ +typedef struct +{ + const guchar *p; + vu8 perm, last; + gboolean aligned; +} Reader; + +static inline void +reader_init (Reader *r, const guchar *p) +{ + r->p = p; + r->aligned = ((gsize) p & 15) == 0; + r->perm = vec_lvsl (0, p); + r->last = vec_ld (0, p); +} + +static inline vu8 +reader_next (Reader *r) +{ + vu8 v; + + if (r->aligned) + v = vec_ld (0, r->p); + else + { + /* the block of the 16th byte follows the block of the first */ + vu8 next = vec_ld (15, r->p); + + v = vec_perm (r->last, next, r->perm); + r->last = next; + } + r->p += 16; + + return v; +} + +static inline gboolean +aligned (const void *p) +{ + return ((gsize) p & 15) == 0; +} + +static inline guint32 +x888 (const guchar *p) +{ + return 0xff000000 | (p[0] << 16) | (p[1] << 8) | p[2]; +} + +static inline guint16 +rgb565 (const guchar *p) +{ + return ((p[0] & 0xf8) << 8) | ((p[1] & 0xfc) << 3) | (p[2] >> 3); +} + +static inline guint +blend8 (guint a, guint s, guint d) +{ + guint t = a * s + (255 - a) * d + 0x80; + + return (t + (t >> 8)) >> 8; +} + +static inline void +composite1_x888 (guint32 *pixel, const guchar *s) +{ + guint32 d = *pixel; + + if (s[3] != 0) + *pixel = 0xff000000 | + (blend8 (s[3], s[0], (d >> 16) & 0xff) << 16) | + (blend8 (s[3], s[1], (d >> 8) & 0xff) << 8) | + blend8 (s[3], s[2], d & 0xff); +} + +static inline void +composite1_565 (guint16 *pixel, const guchar *s) +{ + guint d = *pixel, r = d >> 11, g = (d >> 5) & 0x3f, b = d & 0x1f; + + r = blend8 (s[3], s[0], (r << 3) | (r >> 2)); + g = blend8 (s[3], s[1], (g << 2) | (g >> 4)); + b = blend8 (s[3], s[2], (b << 3) | (b >> 2)); + *pixel = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); +} + +/* 0xff in the first byte of each pixel */ +static inline vu8 +fill_x888 (void) +{ + /* -8 shifts by 24 */ + return (vu8) vec_sl (vec_splat_u32 (-1), vec_splat_u32 (-8)); +} + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + const vu8 fill = fill_x888 (); + const vu8 p0 = VU8 (0, 0, 1, 2, 0, 3, 4, 5, 0, 6, 7, 8, 0, 9, 10, 11); + const vu8 p1 = VU8 (0, 12, 13, 14, 0, 15, 16, 17, 0, 18, 19, 20, 0, 21, 22, 23); + const vu8 p2 = VU8 (0, 8, 9, 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, 17, 18, 19); + const vu8 p3 = VU8 (0, 4, 5, 6, 0, 7, 8, 9, 0, 10, 11, 12, 0, 13, 14, 15); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (out + i); i++, rgb += 3) + out[i] = x888 (rgb); + + if (i + 16 <= n) + reader_init (&r, rgb); + for (; i + 16 <= n; i += 16) + { + vu8 a = reader_next (&r), b = reader_next (&r), c = reader_next (&r); + + vec_st (vec_or (vec_perm (a, a, p0), fill), 0, (guchar *) (out + i)); + vec_st (vec_or (vec_perm (a, b, p1), fill), 16, (guchar *) (out + i)); + vec_st (vec_or (vec_perm (b, c, p2), fill), 32, (guchar *) (out + i)); + vec_st (vec_or (vec_perm (c, c, p3), fill), 48, (guchar *) (out + i)); + } + + return i; +} + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + const vu8 fill = fill_x888 (); + const vu8 p = VU8 (0, 0, 1, 2, 0, 4, 5, 6, 0, 8, 9, 10, 0, 12, 13, 14); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (out + i); i++, rgbx += 4) + out[i] = x888 (rgbx); + + if (i + 4 <= n) + reader_init (&r, rgbx); + for (; i + 4 <= n; i += 4) + { + vu8 a = reader_next (&r); + + vec_st (vec_or (vec_perm (a, a, p), fill), 0, (guchar *) (out + i)); + } + + return i; +} + +/* Bytes of eight RGB pixels as 16-bit lanes, for one channel */ +static inline vu16 +channel (vu8 a, vu8 b, vu8 p) +{ + return vec_and ((vu16) vec_perm (a, b, p), vec_splats ((unsigned short) 0xff)); +} + +static inline vu16 +pack565 (vu16 r, vu16 g, vu16 b) +{ + return vec_or (vec_or (vec_sl (vec_and (r, vec_splats ((unsigned short) 0xf8)), vec_splats ((unsigned short) 8)), + vec_sl (vec_and (g, vec_splats ((unsigned short) 0xfc)), vec_splats ((unsigned short) 3))), + vec_sr (b, vec_splats ((unsigned short) 3))); +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + /* the channel byte of pixel k in both bytes of lane k */ + const vu8 r0 = VU8 (0, 0, 3, 3, 6, 6, 9, 9, 12, 12, 15, 15, 18, 18, 21, 21); + const vu8 g0 = VU8 (1, 1, 4, 4, 7, 7, 10, 10, 13, 13, 16, 16, 19, 19, 22, 22); + const vu8 b0 = VU8 (2, 2, 5, 5, 8, 8, 11, 11, 14, 14, 17, 17, 20, 20, 23, 23); + const vu8 r1 = VU8 (8, 8, 11, 11, 14, 14, 17, 17, 20, 20, 23, 23, 26, 26, 29, 29); + const vu8 g1 = VU8 (9, 9, 12, 12, 15, 15, 18, 18, 21, 21, 24, 24, 27, 27, 30, 30); + const vu8 b1 = VU8 (10, 10, 13, 13, 16, 16, 19, 19, 22, 22, 25, 25, 28, 28, 31, 31); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (out + i); i++, rgb += 3) + out[i] = rgb565 (rgb); + + if (i + 16 <= n) + reader_init (&r, rgb); + for (; i + 16 <= n; i += 16) + { + vu8 a = reader_next (&r), b = reader_next (&r), c = reader_next (&r); + + vec_st (pack565 (channel (a, b, r0), channel (a, b, g0), channel (a, b, b0)), 0, out + i); + vec_st (pack565 (channel (b, c, r1), channel (b, c, g1), channel (b, c, b1)), 0, out + i + 8); + } + + return i; +} + +/* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ +static inline vu16 +blend (vu16 t) +{ + t = vec_add (t, vec_splats ((unsigned short) 0x80)); + + return vec_sr (vec_add (t, vec_sr (t, vec_splats ((unsigned short) 8))), + vec_splats ((unsigned short) 8)); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + const vu8 fill = fill_x888 (); + const vu8 argb = VU8 (3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14); + const vu8 alpha = VU8 (3, 3, 3, 3, 7, 7, 7, 7, 11, 11, 11, 11, 15, 15, 15, 15); + const vu8 merge = VU8 (1, 17, 3, 19, 5, 21, 7, 23, 9, 25, 11, 27, 13, 29, 15, 31); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (pixels + i); i++, rgba += 4) + composite1_x888 (pixels + i, rgba); + + if (i + 4 <= n) + reader_init (&r, rgba); + for (; i + 4 <= n; i += 4) + { + vu8 s = reader_next (&r); + vu8 d = vec_ld (0, (guchar *) (pixels + i)); + vu8 a = vec_perm (s, s, alpha); + vu8 inv = vec_nor (a, a); + vu16 even, odd; + vu8 v; + + s = vec_perm (s, s, argb); + even = blend (vec_add (vec_mule (s, a), vec_mule (d, inv))); + odd = blend (vec_add (vec_mulo (s, a), vec_mulo (d, inv))); + v = vec_or (vec_perm ((vu8) even, (vu8) odd, merge), fill); + + /* fully transparent pixels stay as they are */ + vec_st (vec_sel (v, d, vec_cmpeq (a, vec_splat_u8 (0))), 0, (guchar *) (pixels + i)); + } + + return i; +} + +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + const vu8 pr = VU8 (0, 0, 4, 4, 8, 8, 12, 12, 16, 16, 20, 20, 24, 24, 28, 28); + const vu8 pg = VU8 (1, 1, 5, 5, 9, 9, 13, 13, 17, 17, 21, 21, 25, 25, 29, 29); + const vu8 pb = VU8 (2, 2, 6, 6, 10, 10, 14, 14, 18, 18, 22, 22, 26, 26, 30, 30); + const vu8 pa = VU8 (3, 3, 7, 7, 11, 11, 15, 15, 19, 19, 23, 23, 27, 27, 31, 31); + const vu16 c255 = vec_splats ((unsigned short) 255); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (pixels + i); i++, rgba += 4) + if (rgba[3] != 0) + composite1_565 (pixels + i, rgba); + + if (i + 8 <= n) + reader_init (&r, rgba); + for (; i + 8 <= n; i += 8) + { + vu8 s0 = reader_next (&r), s1 = reader_next (&r); + vu16 d = vec_ld (0, pixels + i); + vu16 a = channel (s0, s1, pa), inv = vec_sub (c255, a); + vu16 dr = vec_sr (d, vec_splats ((unsigned short) 11)); + vu16 dg = vec_and (vec_sr (d, vec_splats ((unsigned short) 5)), vec_splats ((unsigned short) 0x3f)); + vu16 db = vec_and (d, vec_splats ((unsigned short) 0x1f)); + + /* the bits of the pixel repeated up to 8 */ + dr = vec_or (vec_sl (dr, vec_splats ((unsigned short) 3)), vec_sr (dr, vec_splats ((unsigned short) 2))); + dg = vec_or (vec_sl (dg, vec_splats ((unsigned short) 2)), vec_sr (dg, vec_splats ((unsigned short) 4))); + db = vec_or (vec_sl (db, vec_splats ((unsigned short) 3)), vec_sr (db, vec_splats ((unsigned short) 2))); + + vec_st (pack565 (blend (vec_mladd (channel (s0, s1, pr), a, vec_mladd (dr, inv, vec_splats ((unsigned short) 0)))), + blend (vec_mladd (channel (s0, s1, pg), a, vec_mladd (dg, inv, vec_splats ((unsigned short) 0)))), + blend (vec_mladd (channel (s0, s1, pb), a, vec_mladd (db, inv, vec_splats ((unsigned short) 0))))), + 0, pixels + i); + } + + return i; +} + +void +_gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) +{ + simd->name = "altivec"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->composite_x888 = composite_x888; + simd->composite_565 = composite_565; +} + +#else + +void +_gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index cb7055a74..99f201d0f 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -17,6 +17,31 @@ #if defined(__GNUC__) #include #endif +#elif defined(__powerpc__) || defined(__ppc__) +#if defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO) +#include +#elif defined(__APPLE__) +#include +#include +#endif +#endif + +/* The CPU's hardware capabilities word, as the kernel tells them */ +#if defined(__powerpc__) && \ + (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) +static unsigned long +hwcap (void) +{ +#if defined(HAVE_GETAUXVAL) + return getauxval (AT_HWCAP); +#else + unsigned long caps = 0; + + if (elf_aux_info (AT_HWCAP, &caps, sizeof (caps)) != 0) + return 0; + return caps; +#endif +} #endif static void @@ -37,6 +62,16 @@ detect (GdkRgbSimd *simd) _gdk_rgb_simd_init_sse2 (simd); } +#elif defined(__powerpc__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) + if (hwcap () & 0x10000000) /* PPC_FEATURE_HAS_ALTIVEC */ + _gdk_rgb_simd_init_altivec (simd); + +#elif defined(__ppc__) && defined(__APPLE__) + int vector_unit = 0; + size_t size = sizeof (vector_unit); + + if (sysctlbyname ("hw.vectorunit", &vector_unit, &size, NULL, 0) == 0 && vector_unit) + _gdk_rgb_simd_init_altivec (simd); #endif } diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index 159a002dd..abe9978a9 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -45,6 +45,7 @@ struct _GdkRgbSimd * only called when the CPU has it. */ void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); /* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ const GdkRgbSimd *_gdk_rgb_simd_get (void); diff --git a/gdk/makefile.msc b/gdk/makefile.msc index 93c51369f..f255c9958 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -95,6 +95,7 @@ gdk_OBJECTS = \ gdkrgbsimd.obj \ gdkrgb-mmx.obj \ gdkrgb-sse2.obj \ + gdkrgb-altivec.obj \ gdkscreen.obj \ gdkselection.obj \ gdkvisual.obj \ From 44a1b0bd38337d3d65d28ec4d0852cc5388c5ebd Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 14:08:04 +0200 Subject: [PATCH 021/249] gdkrgb: NEON for ARMv7 and AArch64 --- configure.ac | 10 +++ gdk/Makefile.am | 5 +- gdk/gdkrgb-neon.c | 163 ++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 11 +++- gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 6 files changed, 188 insertions(+), 3 deletions(-) create mode 100644 gdk/gdkrgb-neon.c diff --git a/configure.ac b/configure.ac index f7532e803..d8ebb7834 100644 --- a/configure.ac +++ b/configure.ac @@ -508,6 +508,7 @@ AC_SUBST($1_CFLAGS)]) MMX_CFLAGS= SSE2_CFLAGS= ALTIVEC_CFLAGS= +NEON_CFLAGS= case "$host_cpu" in i?86|x86_64|amd64) GTK_CHECK_SIMD_FLAGS([MMX], [-mmmx], @@ -531,6 +532,15 @@ case "$host_cpu" in #endif], [vector unsigned short v = vec_splats ((unsigned short) 1); v = vec_mladd (v, v, v); (void) v;]) ;; + arm*) + dnl toolchains for the Raspberry Pi 1 default to ARMv6, which has no NEON + GTK_CHECK_SIMD_FLAGS([NEON], [-mfpu=neon|-march=armv7-a -mfpu=neon], + [#include + #if !defined(__ARM_NEON) && !defined(__ARM_NEON__) + #error no NEON + #endif], + [uint8x8x4_t v = vld4_u8 ((const unsigned char *) 0); (void) v;]) + ;; esac # _NL_TIME_FIRST_WEEKDAY is an enum and not a define diff --git a/gdk/Makefile.am b/gdk/Makefile.am index a9311ffea..b74627918 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -172,7 +172,8 @@ common_sources = \ noinst_LTLIBRARIES = \ libgdk-rgb-mmx.la \ libgdk-rgb-sse2.la \ - libgdk-rgb-altivec.la + libgdk-rgb-altivec.la \ + libgdk-rgb-neon.la libgdk_rgb_mmx_la_SOURCES = gdkrgb-mmx.c libgdk_rgb_mmx_la_CFLAGS = $(MMX_CFLAGS) @@ -180,6 +181,8 @@ libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) libgdk_rgb_altivec_la_SOURCES = gdkrgb-altivec.c libgdk_rgb_altivec_la_CFLAGS = $(ALTIVEC_CFLAGS) +libgdk_rgb_neon_la_SOURCES = gdkrgb-neon.c +libgdk_rgb_neon_la_CFLAGS = $(NEON_CFLAGS) gdk_rgb_simd_libs = $(noinst_LTLIBRARIES) diff --git a/gdk/gdkrgb-neon.c b/gdk/gdkrgb-neon.c new file mode 100644 index 000000000..f2b0c02ae --- /dev/null +++ b/gdk/gdkrgb-neon.c @@ -0,0 +1,163 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for NEON (ARMv7 with NEON, AArch64) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +#if (defined(__ARM_NEON) || defined(__ARM_NEON__)) && !defined(__ARM_BIG_ENDIAN) + +#include + +/* An x888 pixel is the bytes B, G, R, 0xff. The structure loads and + * stores take the channels apart and put them together. */ + +/* (a * s + (255 - a) * d) / 255, rounded */ +static inline uint8x8_t +blend (uint8x8_t s, uint8x8_t d, uint8x8_t a, uint8x8_t inv) +{ + uint16x8_t t = vmlal_u8 (vmull_u8 (s, a), d, inv); + + return vrshrn_n_u16 (vrsraq_n_u16 (t, t, 8), 8); +} + +static inline uint16x8_t +pack565 (uint8x8_t r, uint8x8_t g, uint8x8_t b) +{ + uint16x8_t v = vshll_n_u8 (r, 8); + + v = vsriq_n_u16 (v, vshll_n_u8 (g, 8), 5); + + return vsriq_n_u16 (v, vshll_n_u8 (b, 8), 11); +} + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 16 <= n; i += 16, rgb += 48) + { + uint8x16x3_t s = vld3q_u8 (rgb); + uint8x16x4_t d; + + d.val[0] = s.val[2]; + d.val[1] = s.val[1]; + d.val[2] = s.val[0]; + d.val[3] = vdupq_n_u8 (0xff); + vst4q_u8 ((guchar *) (out + i), d); + } + + return i; +} + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + gint i; + + for (i = 0; i + 16 <= n; i += 16, rgbx += 64) + { + uint8x16x4_t s = vld4q_u8 (rgbx); + uint8x16x4_t d; + + d.val[0] = s.val[2]; + d.val[1] = s.val[1]; + d.val[2] = s.val[0]; + d.val[3] = vdupq_n_u8 (0xff); + vst4q_u8 ((guchar *) (out + i), d); + } + + return i; +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgb += 24) + { + uint8x8x3_t s = vld3_u8 (rgb); + + vst1q_u16 (out + i, pack565 (s.val[0], s.val[1], s.val[2])); + } + + return i; +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + uint8x8x4_t s = vld4_u8 (rgba); + uint8x8x4_t d = vld4_u8 ((const guchar *) (pixels + i)); + uint8x8_t a = s.val[3], inv = vmvn_u8 (a); + uint8x8_t transparent = vceq_u8 (a, vdup_n_u8 (0)); + uint8x8x4_t v; + + v.val[0] = vbsl_u8 (transparent, d.val[0], blend (s.val[2], d.val[0], a, inv)); + v.val[1] = vbsl_u8 (transparent, d.val[1], blend (s.val[1], d.val[1], a, inv)); + v.val[2] = vbsl_u8 (transparent, d.val[2], blend (s.val[0], d.val[2], a, inv)); + v.val[3] = vbsl_u8 (transparent, d.val[3], vdup_n_u8 (0xff)); + vst4_u8 ((guchar *) (pixels + i), v); + } + + return i; +} + +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + uint8x8x4_t s = vld4_u8 (rgba); + uint16x8_t d = vld1q_u16 (pixels + i); + uint8x8_t a = s.val[3], inv = vmvn_u8 (a); + uint8x8_t r = vmovn_u16 (vshrq_n_u16 (d, 8)); + uint8x8_t g = vmovn_u16 (vshrq_n_u16 (d, 3)); + uint8x8_t b = vmovn_u16 (vshlq_n_u16 (d, 3)); + + /* the bits of the pixel repeated up to 8 */ + r = vsri_n_u8 (r, r, 5); + g = vsri_n_u8 (vand_u8 (g, vdup_n_u8 (0xfc)), g, 6); + b = vsri_n_u8 (b, b, 5); + + vst1q_u16 (pixels + i, pack565 (blend (s.val[0], r, a, inv), + blend (s.val[1], g, a, inv), + blend (s.val[2], b, a, inv))); + } + + return i; +} + +void +_gdk_rgb_simd_init_neon (GdkRgbSimd *simd) +{ + simd->name = "neon"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->composite_x888 = composite_x888; + simd->composite_565 = composite_565; +} + +#else + +void +_gdk_rgb_simd_init_neon (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index 99f201d0f..f744e8310 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -17,7 +17,7 @@ #if defined(__GNUC__) #include #endif -#elif defined(__powerpc__) || defined(__ppc__) +#elif defined(__powerpc__) || defined(__ppc__) || defined(__arm__) #if defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO) #include #elif defined(__APPLE__) @@ -27,7 +27,7 @@ #endif /* The CPU's hardware capabilities word, as the kernel tells them */ -#if defined(__powerpc__) && \ +#if (defined(__powerpc__) || defined(__arm__)) && \ (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) static unsigned long hwcap (void) @@ -62,6 +62,13 @@ detect (GdkRgbSimd *simd) _gdk_rgb_simd_init_sse2 (simd); } +#elif defined(__aarch64__) + _gdk_rgb_simd_init_neon (simd); + +#elif defined(__arm__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) + if (hwcap () & (1 << 12)) /* HWCAP_NEON */ + _gdk_rgb_simd_init_neon (simd); + #elif defined(__powerpc__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) if (hwcap () & 0x10000000) /* PPC_FEATURE_HAS_ALTIVEC */ _gdk_rgb_simd_init_altivec (simd); diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index abe9978a9..d13392e79 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -46,6 +46,7 @@ struct _GdkRgbSimd void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); /* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ const GdkRgbSimd *_gdk_rgb_simd_get (void); diff --git a/gdk/makefile.msc b/gdk/makefile.msc index f255c9958..4fbbc7721 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -96,6 +96,7 @@ gdk_OBJECTS = \ gdkrgb-mmx.obj \ gdkrgb-sse2.obj \ gdkrgb-altivec.obj \ + gdkrgb-neon.obj \ gdkscreen.obj \ gdkselection.obj \ gdkvisual.obj \ From 2ef8d35f50d751cc971cf3f61e9d208ced088aa1 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 17:26:54 +0200 Subject: [PATCH 022/249] gdkcairo: convert pixbufs for cairo with the vector units too --- gdk/gdkcairo.c | 15 +++++++++++++-- gdk/gdkrgb-altivec.c | 35 +++++++++++++++++++++++++++++++++++ gdk/gdkrgb-mmx.c | 34 ++++++++++++++++++++++++++++++++++ gdk/gdkrgb-neon.c | 26 ++++++++++++++++++++++++++ gdk/gdkrgb-sse2.c | 32 ++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.h | 3 +++ 6 files changed, 143 insertions(+), 2 deletions(-) diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index e617a856a..052e15142 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -18,6 +18,7 @@ */ #include "gdkcairo.h" +#include "gdkrgbsimd.h" #include "gdkdrawable.h" #include "gdkinternals.h" #include "gdkregion-generic.h" @@ -186,6 +187,7 @@ gdk_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf) cairo_format_t format; cairo_surface_t *surface; static const cairo_user_data_key_t key; + const GdkRgbSimd *simd = _gdk_rgb_simd_get (); cairo_status_t status; int j; @@ -212,10 +214,19 @@ gdk_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf) { guchar *p = gdk_pixels; guchar *q = cairo_pixels; + gint done = 0; + + /* vector code where there is some, C for the rest of the row */ + if (n_channels == 3 && simd->rgb_to_x888) + done = simd->rgb_to_x888 ((guint32 *) q, p, width); + else if (n_channels == 4 && simd->rgba_to_argb) + done = simd->rgba_to_argb ((guint32 *) q, p, width); + p += done * n_channels; + q += done * 4; if (n_channels == 3) { - guchar *end = p + 3 * width; + guchar *end = gdk_pixels + 3 * width; while (p < end) { @@ -234,7 +245,7 @@ gdk_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf) } else { - guchar *end = p + 4 * width; + guchar *end = gdk_pixels + 4 * width; guint t1,t2,t3; #define MULT(d,c,a,t) G_STMT_START { t = c * a + 0x80; d = ((t >> 8) + t) >> 8; } G_STMT_END diff --git a/gdk/gdkrgb-altivec.c b/gdk/gdkrgb-altivec.c index 2a294f5e4..8114a665c 100644 --- a/gdk/gdkrgb-altivec.c +++ b/gdk/gdkrgb-altivec.c @@ -305,6 +305,40 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) return i; } +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + const vu8 argb = VU8 (3, 0, 1, 2, 7, 4, 5, 6, 11, 8, 9, 10, 15, 12, 13, 14); + /* a for R, G and B; 255 for the alpha, which a * 255 / 255 keeps */ + const vu8 factors = VU8 (16, 3, 3, 3, 16, 7, 7, 7, 16, 11, 11, 11, 16, 15, 15, 15); + const vu8 merge = VU8 (1, 17, 3, 19, 5, 21, 7, 23, 9, 25, 11, 27, 13, 29, 15, 31); + const vu8 ones = vec_splat_u8 (-1); + Reader r; + gint i; + + for (i = 0; i < n && !aligned (out + i); i++, rgba += 4) + { + guint a = rgba[3]; + + out[i] = (a << 24) | (blend8 (a, rgba[0], 0) << 16) | + (blend8 (a, rgba[1], 0) << 8) | blend8 (a, rgba[2], 0); + } + + if (i + 4 <= n) + reader_init (&r, rgba); + for (; i + 4 <= n; i += 4) + { + vu8 s = reader_next (&r); + vu8 m = vec_perm (s, ones, factors); + + s = vec_perm (s, s, argb); + vec_st (vec_perm ((vu8) blend (vec_mule (s, m)), (vu8) blend (vec_mulo (s, m)), merge), + 0, (guchar *) (out + i)); + } + + return i; +} + void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) { @@ -314,6 +348,7 @@ _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) simd->rgb_to_565 = rgb_to_565; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->rgba_to_argb = rgba_to_argb; } #else diff --git a/gdk/gdkrgb-mmx.c b/gdk/gdkrgb-mmx.c index a20d8fdad..2454574b6 100644 --- a/gdk/gdkrgb-mmx.c +++ b/gdk/gdkrgb-mmx.c @@ -210,6 +210,39 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) return i; } +/* c * a / 255 to the nearest */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + const __m64 zero = _mm_setzero_si64 (); + gint i; + + for (i = 0; i + 2 <= n; i += 2, rgba += 8) + { + __m64 s = load8 (rgba); + __m64 bgra, lo, hi, t; + + /* RGBA to BGRA, the bytes of 0xAARRGGBB */ + bgra = _mm_or_si64 (_mm_and_si64 (s, SPLAT (0xff00ff00)), + _mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (s, SPLAT (0xff)), 16), + _mm_and_si64 (_mm_srli_pi32 (s, 16), SPLAT (0xff)))); + lo = _mm_unpacklo_pi8 (bgra, zero); + hi = _mm_unpackhi_pi8 (bgra, zero); + + t = _mm_add_pi16 (_mm_mullo_pi16 (lo, alpha_of (lo)), _mm_set1_pi16 (0x80)); + lo = _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + t = _mm_add_pi16 (_mm_mullo_pi16 (hi, alpha_of (hi)), _mm_set1_pi16 (0x80)); + hi = _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + + /* the alpha byte as it was */ + store8 (out + i, _mm_or_si64 (_mm_and_si64 (_mm_packs_pu16 (lo, hi), SPLAT (0x00ffffff)), + _mm_and_si64 (s, SPLAT (0xff000000)))); + } + _mm_empty (); + + return i; +} + void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) { @@ -219,6 +252,7 @@ _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) simd->rgb_to_565 = rgb_to_565; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->rgba_to_argb = rgba_to_argb; } #else diff --git a/gdk/gdkrgb-neon.c b/gdk/gdkrgb-neon.c index f2b0c02ae..78131f2a2 100644 --- a/gdk/gdkrgb-neon.c +++ b/gdk/gdkrgb-neon.c @@ -142,6 +142,31 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) return i; } +/* c * a / 255 to the nearest */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + uint8x8x4_t s = vld4_u8 (rgba); + uint8x8x4_t v; + uint16x8_t t; + + t = vmull_u8 (s.val[2], s.val[3]); + v.val[0] = vrshrn_n_u16 (vrsraq_n_u16 (t, t, 8), 8); + t = vmull_u8 (s.val[1], s.val[3]); + v.val[1] = vrshrn_n_u16 (vrsraq_n_u16 (t, t, 8), 8); + t = vmull_u8 (s.val[0], s.val[3]); + v.val[2] = vrshrn_n_u16 (vrsraq_n_u16 (t, t, 8), 8); + v.val[3] = s.val[3]; + vst4_u8 ((guchar *) (out + i), v); + } + + return i; +} + void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd) { @@ -151,6 +176,7 @@ _gdk_rgb_simd_init_neon (GdkRgbSimd *simd) simd->rgb_to_565 = rgb_to_565; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->rgba_to_argb = rgba_to_argb; } #else diff --git a/gdk/gdkrgb-sse2.c b/gdk/gdkrgb-sse2.c index e8594822a..587849874 100644 --- a/gdk/gdkrgb-sse2.c +++ b/gdk/gdkrgb-sse2.c @@ -187,6 +187,37 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) return i; } +/* c * a / 255 to the nearest, which (c * a + 0x80) * 257 >> 16 is */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + const __m128i zero = _mm_setzero_si128 (); + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgba += 16) + { + __m128i s = _mm_loadu_si128 ((const __m128i *) rgba); + __m128i lo = _mm_unpacklo_epi8 (s, zero); + __m128i hi = _mm_unpackhi_epi8 (s, zero); + + lo = _mm_mulhi_epu16 (_mm_add_epi16 (_mm_mullo_epi16 (lo, alpha_of (lo)), _mm_set1_epi16 (0x80)), + _mm_set1_epi16 (257)); + hi = _mm_mulhi_epu16 (_mm_add_epi16 (_mm_mullo_epi16 (hi, alpha_of (hi)), _mm_set1_epi16 (0x80)), + _mm_set1_epi16 (257)); + + /* R, G, B to B, G, R: the bytes of 0xAARRGGBB */ + lo = _mm_shufflehi_epi16 (_mm_shufflelo_epi16 (lo, 0xc6), 0xc6); + hi = _mm_shufflehi_epi16 (_mm_shufflelo_epi16 (hi, 0xc6), 0xc6); + + /* the alpha byte as it was */ + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_or_si128 (_mm_and_si128 (_mm_packus_epi16 (lo, hi), SPLAT (0x00ffffff)), + _mm_and_si128 (s, SPLAT (0xff000000)))); + } + + return i; +} + void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd) { @@ -196,6 +227,7 @@ _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd) simd->rgb_to_565 = rgb_to_565; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->rgba_to_argb = rgba_to_argb; } #else diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index d13392e79..4b91edde3 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -15,6 +15,8 @@ * * x888 0xffRRGGBB, 32 bits * 565 RRRRRGGG GGGBBBBB, 16 bits + * argb 0xAARRGGBB, 32 bits, R, G and B multiplied by A / 255, + * rounded to the nearest: cairo's ARGB32 * * RGB and RGBA are bytes in that order; RGBA is not premultiplied. * Blending rounds as GdkRGB's C code does, so the results are the same. @@ -39,6 +41,7 @@ struct _GdkRgbSimd gint (*rgb_to_565) (guint16 *out, const guchar *rgb, gint n); gint (*composite_x888) (guint32 *pixels, const guchar *rgba, gint n); gint (*composite_565) (guint16 *pixels, const guchar *rgba, gint n); + gint (*rgba_to_argb) (guint32 *out, const guchar *rgba, gint n); }; /* Each fills in what its instruction set does better than C; they are From 7b12e554c8f1a2a6cb380d34d0464189031b6bd4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 17:39:52 +0200 Subject: [PATCH 023/249] gdkrgb: vector kernels for 15-bit pixels too --- gdk/gdkrgb-altivec.c | 102 ++++++++++++++++++++++++++++++++++++------- gdk/gdkrgb-neon.c | 62 ++++++++++++++++++++++++++ gdk/gdkrgb-sse2.c | 76 ++++++++++++++++++++++++++++---- gdk/gdkrgb.c | 4 ++ gdk/gdkrgbsimd.h | 3 ++ 5 files changed, 224 insertions(+), 23 deletions(-) diff --git a/gdk/gdkrgb-altivec.c b/gdk/gdkrgb-altivec.c index 8114a665c..8e3a3d1a0 100644 --- a/gdk/gdkrgb-altivec.c +++ b/gdk/gdkrgb-altivec.c @@ -84,6 +84,13 @@ rgb565 (const guchar *p) return ((p[0] & 0xf8) << 8) | ((p[1] & 0xfc) << 3) | (p[2] >> 3); } +/* with the unused bit set, as all of GdkRGB does */ +static inline guint16 +rgb555 (const guchar *p) +{ + return 0x8000 | ((p[0] & 0xf8) << 7) | ((p[1] & 0xf8) << 2) | (p[2] >> 3); +} + static inline guint blend8 (guint a, guint s, guint d) { @@ -115,6 +122,17 @@ composite1_565 (guint16 *pixel, const guchar *s) *pixel = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); } +static inline void +composite1_555 (guint16 *pixel, const guchar *s) +{ + guint d = *pixel, r = (d >> 10) & 0x1f, g = (d >> 5) & 0x1f, b = d & 0x1f; + + r = blend8 (s[3], s[0], (r << 3) | (r >> 2)); + g = blend8 (s[3], s[1], (g << 3) | (g >> 2)); + b = blend8 (s[3], s[2], (b << 3) | (b >> 2)); + *pixel = 0x8000 | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); +} + /* 0xff in the first byte of each pixel */ static inline vu8 fill_x888 (void) @@ -190,8 +208,22 @@ pack565 (vu16 r, vu16 g, vu16 b) vec_sr (b, vec_splats ((unsigned short) 3))); } -static gint -rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +static inline vu16 +pack555 (vu16 r, vu16 g, vu16 b) +{ + return vec_or (vec_or (vec_sl (vec_and (r, vec_splats ((unsigned short) 0xf8)), vec_splats ((unsigned short) 7)), + vec_sl (vec_and (g, vec_splats ((unsigned short) 0xf8)), vec_splats ((unsigned short) 2))), + vec_or (vec_sr (b, vec_splats ((unsigned short) 3)), vec_splats ((unsigned short) 0x8000))); +} + +static inline vu16 +pack16 (vu16 r, vu16 g, vu16 b, const gint green_bits) +{ + return green_bits == 6 ? pack565 (r, g, b) : pack555 (r, g, b); +} + +static inline gint +rgb_to_16 (guint16 *out, const guchar *rgb, gint n, const gint green_bits) { /* the channel byte of pixel k in both bytes of lane k */ const vu8 r0 = VU8 (0, 0, 3, 3, 6, 6, 9, 9, 12, 12, 15, 15, 18, 18, 21, 21); @@ -204,7 +236,7 @@ rgb_to_565 (guint16 *out, const guchar *rgb, gint n) gint i; for (i = 0; i < n && !aligned (out + i); i++, rgb += 3) - out[i] = rgb565 (rgb); + out[i] = green_bits == 6 ? rgb565 (rgb) : rgb555 (rgb); if (i + 16 <= n) reader_init (&r, rgb); @@ -212,13 +244,25 @@ rgb_to_565 (guint16 *out, const guchar *rgb, gint n) { vu8 a = reader_next (&r), b = reader_next (&r), c = reader_next (&r); - vec_st (pack565 (channel (a, b, r0), channel (a, b, g0), channel (a, b, b0)), 0, out + i); - vec_st (pack565 (channel (b, c, r1), channel (b, c, g1), channel (b, c, b1)), 0, out + i + 8); + vec_st (pack16 (channel (a, b, r0), channel (a, b, g0), channel (a, b, b0), green_bits), 0, out + i); + vec_st (pack16 (channel (b, c, r1), channel (b, c, g1), channel (b, c, b1), green_bits), 0, out + i + 8); } return i; } +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 6); +} + +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 5); +} + /* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ static inline vu16 blend (vu16 t) @@ -265,8 +309,8 @@ composite_x888 (guint32 *pixels, const guchar *rgba, gint n) return i; } -static gint -composite_565 (guint16 *pixels, const guchar *rgba, gint n) +static inline gint +composite_16 (guint16 *pixels, const guchar *rgba, gint n, const gint green_bits) { const vu8 pr = VU8 (0, 0, 4, 4, 8, 8, 12, 12, 16, 16, 20, 20, 24, 24, 28, 28); const vu8 pg = VU8 (1, 1, 5, 5, 9, 9, 13, 13, 17, 17, 21, 21, 25, 25, 29, 29); @@ -278,7 +322,12 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) for (i = 0; i < n && !aligned (pixels + i); i++, rgba += 4) if (rgba[3] != 0) - composite1_565 (pixels + i, rgba); + { + if (green_bits == 6) + composite1_565 (pixels + i, rgba); + else + composite1_555 (pixels + i, rgba); + } if (i + 8 <= n) reader_init (&r, rgba); @@ -287,19 +336,28 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) vu8 s0 = reader_next (&r), s1 = reader_next (&r); vu16 d = vec_ld (0, pixels + i); vu16 a = channel (s0, s1, pa), inv = vec_sub (c255, a); - vu16 dr = vec_sr (d, vec_splats ((unsigned short) 11)); - vu16 dg = vec_and (vec_sr (d, vec_splats ((unsigned short) 5)), vec_splats ((unsigned short) 0x3f)); + vu16 dr = vec_and (vec_sr (d, vec_splats ((unsigned short) (5 + green_bits))), vec_splats ((unsigned short) 0x1f)); + vu16 dg = vec_and (vec_sr (d, vec_splats ((unsigned short) 5)), vec_splats ((unsigned short) ((1 << green_bits) - 1))); vu16 db = vec_and (d, vec_splats ((unsigned short) 0x1f)); + vu16 v; /* the bits of the pixel repeated up to 8 */ dr = vec_or (vec_sl (dr, vec_splats ((unsigned short) 3)), vec_sr (dr, vec_splats ((unsigned short) 2))); - dg = vec_or (vec_sl (dg, vec_splats ((unsigned short) 2)), vec_sr (dg, vec_splats ((unsigned short) 4))); + if (green_bits == 6) + dg = vec_or (vec_sl (dg, vec_splats ((unsigned short) 2)), vec_sr (dg, vec_splats ((unsigned short) 4))); + else + dg = vec_or (vec_sl (dg, vec_splats ((unsigned short) 3)), vec_sr (dg, vec_splats ((unsigned short) 2))); db = vec_or (vec_sl (db, vec_splats ((unsigned short) 3)), vec_sr (db, vec_splats ((unsigned short) 2))); - vec_st (pack565 (blend (vec_mladd (channel (s0, s1, pr), a, vec_mladd (dr, inv, vec_splats ((unsigned short) 0)))), - blend (vec_mladd (channel (s0, s1, pg), a, vec_mladd (dg, inv, vec_splats ((unsigned short) 0)))), - blend (vec_mladd (channel (s0, s1, pb), a, vec_mladd (db, inv, vec_splats ((unsigned short) 0))))), - 0, pixels + i); + v = pack16 (blend (vec_mladd (channel (s0, s1, pr), a, vec_mladd (dr, inv, vec_splats ((unsigned short) 0)))), + blend (vec_mladd (channel (s0, s1, pg), a, vec_mladd (dg, inv, vec_splats ((unsigned short) 0)))), + blend (vec_mladd (channel (s0, s1, pb), a, vec_mladd (db, inv, vec_splats ((unsigned short) 0)))), + green_bits); + + /* where nothing is drawn the unused bit of 555 stays as it was */ + if (green_bits == 5) + v = vec_sel (v, d, vec_cmpeq (a, vec_splats ((unsigned short) 0))); + vec_st (v, 0, pixels + i); } return i; @@ -339,6 +397,18 @@ rgba_to_argb (guint32 *out, const guchar *rgba, gint n) return i; } +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 6); +} + +static gint +composite_555 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 5); +} + void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) { @@ -346,8 +416,10 @@ _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd) simd->rgb_to_x888 = rgb_to_x888; simd->rgbx_to_x888 = rgbx_to_x888; simd->rgb_to_565 = rgb_to_565; + simd->rgb_to_555 = rgb_to_555; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->composite_555 = composite_555; simd->rgba_to_argb = rgba_to_argb; } diff --git a/gdk/gdkrgb-neon.c b/gdk/gdkrgb-neon.c index 78131f2a2..1e90e8705 100644 --- a/gdk/gdkrgb-neon.c +++ b/gdk/gdkrgb-neon.c @@ -37,6 +37,18 @@ pack565 (uint8x8_t r, uint8x8_t g, uint8x8_t b) return vsriq_n_u16 (v, vshll_n_u8 (b, 8), 11); } +/* with the unused bit set, as all of GdkRGB does */ +static inline uint16x8_t +pack555 (uint8x8_t r, uint8x8_t g, uint8x8_t b) +{ + uint16x8_t v = vshll_n_u8 (r, 7); + + v = vsriq_n_u16 (v, vshll_n_u8 (g, 8), 6); + v = vsriq_n_u16 (v, vshll_n_u8 (b, 8), 11); + + return vorrq_u16 (v, vdupq_n_u16 (0x8000)); +} + static gint rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) { @@ -92,6 +104,21 @@ rgb_to_565 (guint16 *out, const guchar *rgb, gint n) return i; } +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgb += 24) + { + uint8x8x3_t s = vld3_u8 (rgb); + + vst1q_u16 (out + i, pack555 (s.val[0], s.val[1], s.val[2])); + } + + return i; +} + static gint composite_x888 (guint32 *pixels, const guchar *rgba, gint n) { @@ -167,6 +194,39 @@ rgba_to_argb (guint32 *out, const guchar *rgba, gint n) return i; } +static gint +composite_555 (guint16 *pixels, const guchar *rgba, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + uint8x8x4_t s = vld4_u8 (rgba); + uint16x8_t d = vld1q_u16 (pixels + i); + uint8x8_t a = s.val[3], inv = vmvn_u8 (a); + uint8x8_t r = vmovn_u16 (vshrq_n_u16 (d, 7)); + uint8x8_t g = vmovn_u16 (vshrq_n_u16 (d, 2)); + uint8x8_t b = vmovn_u16 (vshlq_n_u16 (d, 3)); + uint16x8_t v; + + /* the bits of the pixel repeated up to 8 */ + r = vsri_n_u8 (r, r, 5); + g = vsri_n_u8 (g, g, 5); + b = vsri_n_u8 (b, b, 5); + + v = pack555 (blend (s.val[0], r, a, inv), + blend (s.val[1], g, a, inv), + blend (s.val[2], b, a, inv)); + + /* where nothing is drawn the unused bit stays as it was */ + vst1q_u16 (pixels + i, + vbslq_u16 (vreinterpretq_u16_s16 (vmovl_s8 (vreinterpret_s8_u8 (vceq_u8 (a, vdup_n_u8 (0))))), + d, v)); + } + + return i; +} + void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd) { @@ -174,8 +234,10 @@ _gdk_rgb_simd_init_neon (GdkRgbSimd *simd) simd->rgb_to_x888 = rgb_to_x888; simd->rgbx_to_x888 = rgbx_to_x888; simd->rgb_to_565 = rgb_to_565; + simd->rgb_to_555 = rgb_to_555; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->composite_555 = composite_555; simd->rgba_to_argb = rgba_to_argb; } diff --git a/gdk/gdkrgb-sse2.c b/gdk/gdkrgb-sse2.c index 587849874..8662c6f96 100644 --- a/gdk/gdkrgb-sse2.c +++ b/gdk/gdkrgb-sse2.c @@ -50,6 +50,18 @@ rgb565_of (__m128i v) return _mm_srai_epi32 (_mm_slli_epi32 (v, 16), 16); } +/* The same to 555, with the unused bit set as all of GdkRGB does */ +static inline __m128i +rgb555_of (__m128i v) +{ + v = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (v, SPLAT (0xf8)), 7), + _mm_srli_epi32 (_mm_and_si128 (v, SPLAT (0xf800)), 6)), + _mm_or_si128 (_mm_and_si128 (_mm_srli_epi32 (v, 19), SPLAT (0x1f)), + SPLAT (0x8000))); + + return _mm_srai_epi32 (_mm_slli_epi32 (v, 16), 16); +} + static gint rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) { @@ -99,6 +111,25 @@ rgb_to_565 (guint16 *out, const guchar *rgb, gint n) return i; } +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) +{ + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgb += 24) + { + __m128i a = _mm_loadu_si128 ((const __m128i *) rgb); + __m128i b = _mm_loadl_epi64 ((const __m128i *) (rgb + 16)); + __m128i c = _mm_or_si128 (_mm_srli_si128 (a, 12), _mm_slli_si128 (b, 4)); + + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_packs_epi32 (rgb555_of (rgb_lanes (a)), + rgb555_of (rgb_lanes (c)))); + } + + return i; +} + /* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ static inline __m128i blend (__m128i s, __m128i d, __m128i a) @@ -149,9 +180,11 @@ composite_x888 (guint32 *pixels, const guchar *rgba, gint n) return i; } -static gint -composite_565 (guint16 *pixels, const guchar *rgba, gint n) +/* Eight 565 or 555 pixels at a time, each channel in a register */ +static inline gint +composite_16 (guint16 *pixels, const guchar *rgba, gint n, const gint green_bits) { + const gint red_shift = 5 + green_bits; gint i; for (i = 0; i + 8 <= n; i += 8, rgba += 32) @@ -166,27 +199,52 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) __m128i b = _mm_packs_epi32 (_mm_and_si128 (_mm_srli_epi32 (s0, 16), SPLAT (0xff)), _mm_and_si128 (_mm_srli_epi32 (s1, 16), SPLAT (0xff))); __m128i a = _mm_packs_epi32 (_mm_srli_epi32 (s0, 24), _mm_srli_epi32 (s1, 24)); - __m128i dr = _mm_srli_epi16 (d, 11); - __m128i dg = _mm_and_si128 (_mm_srli_epi16 (d, 5), _mm_set1_epi16 (0x3f)); + __m128i dr = _mm_and_si128 (_mm_srli_epi16 (d, red_shift), _mm_set1_epi16 (0x1f)); + __m128i dg = _mm_and_si128 (_mm_srli_epi16 (d, 5), _mm_set1_epi16 ((1 << green_bits) - 1)); __m128i db = _mm_and_si128 (d, _mm_set1_epi16 (0x1f)); + __m128i v; /* the bits of the pixel repeated up to 8 */ dr = _mm_or_si128 (_mm_slli_epi16 (dr, 3), _mm_srli_epi16 (dr, 2)); - dg = _mm_or_si128 (_mm_slli_epi16 (dg, 2), _mm_srli_epi16 (dg, 4)); + if (green_bits == 6) + dg = _mm_or_si128 (_mm_slli_epi16 (dg, 2), _mm_srli_epi16 (dg, 4)); + else + dg = _mm_or_si128 (_mm_slli_epi16 (dg, 3), _mm_srli_epi16 (dg, 2)); db = _mm_or_si128 (_mm_slli_epi16 (db, 3), _mm_srli_epi16 (db, 2)); r = blend (r, dr, a); g = blend (g, dg, a); b = blend (b, db, a); - d = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi16 (_mm_and_si128 (r, _mm_set1_epi16 (0xf8)), 8), - _mm_slli_epi16 (_mm_and_si128 (g, _mm_set1_epi16 (0xfc)), 3)), + v = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi16 (_mm_srli_epi16 (r, 3), red_shift), + _mm_slli_epi16 (_mm_srli_epi16 (g, 8 - green_bits), 5)), _mm_srli_epi16 (b, 3)); - _mm_storeu_si128 ((__m128i *) (pixels + i), d); + + if (green_bits == 5) + { + /* the unused bit is set, except where nothing is drawn */ + __m128i transparent = _mm_cmpeq_epi16 (a, _mm_setzero_si128 ()); + + v = _mm_or_si128 (_mm_and_si128 (transparent, d), + _mm_andnot_si128 (transparent, _mm_or_si128 (v, _mm_set1_epi16 ((gshort) 0x8000)))); + } + _mm_storeu_si128 ((__m128i *) (pixels + i), v); } return i; } +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 6); +} + +static gint +composite_555 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 5); +} + /* c * a / 255 to the nearest, which (c * a + 0x80) * 257 >> 16 is */ static gint rgba_to_argb (guint32 *out, const guchar *rgba, gint n) @@ -225,8 +283,10 @@ _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd) simd->rgb_to_x888 = rgb_to_x888; simd->rgbx_to_x888 = rgbx_to_x888; simd->rgb_to_565 = rgb_to_565; + simd->rgb_to_555 = rgb_to_555; simd->composite_x888 = composite_x888; simd->composite_565 = composite_565; + simd->composite_555 = composite_555; simd->rgba_to_argb = rgba_to_argb; } diff --git a/gdk/gdkrgb.c b/gdk/gdkrgb.c index 5daeef904..8f7a66b12 100644 --- a/gdk/gdkrgb.c +++ b/gdk/gdkrgb.c @@ -1489,6 +1489,8 @@ gdk_rgb_truecolor_row (GdkRgbInfo *info, done = simd->rgbx_to_x888 ? simd->rgbx_to_x888 (out32, in, width) : 0; else if (bits == 16 && info->layout == GDK_RGB_LAYOUT_565 && input == GDK_RGB_INPUT_RGB) done = simd->rgb_to_565 ? simd->rgb_to_565 (out16, in, width) : 0; + else if (bits == 16 && info->layout == GDK_RGB_LAYOUT_555 && input == GDK_RGB_INPUT_RGB) + done = simd->rgb_to_555 ? simd->rgb_to_555 (out16, in, width) : 0; out16 += done; out32 += done; @@ -1978,6 +1980,8 @@ _gdk_rgb_composite (GdkColormap *colormap, /* vector code where there is some, C for the rest of the row */ if (native && bits == 16 && info->layout == GDK_RGB_LAYOUT_565 && simd->composite_565) done = simd->composite_565 ((guint16 *) out, rgba, width); + else if (native && bits == 16 && info->layout == GDK_RGB_LAYOUT_555 && simd->composite_555) + done = simd->composite_555 ((guint16 *) out, rgba, width); else if (native && bits == 32 && info->layout == GDK_RGB_LAYOUT_X888 && simd->composite_x888) done = simd->composite_x888 ((guint32 *) out, rgba, width); diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index 4b91edde3..e7af7444a 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -15,6 +15,7 @@ * * x888 0xffRRGGBB, 32 bits * 565 RRRRRGGG GGGBBBBB, 16 bits + * 555 1RRRRRGG GGGBBBBB, 16 bits, with the unused bit set * argb 0xAARRGGBB, 32 bits, R, G and B multiplied by A / 255, * rounded to the nearest: cairo's ARGB32 * @@ -39,8 +40,10 @@ struct _GdkRgbSimd gint (*rgb_to_x888) (guint32 *out, const guchar *rgb, gint n); gint (*rgbx_to_x888) (guint32 *out, const guchar *rgbx, gint n); gint (*rgb_to_565) (guint16 *out, const guchar *rgb, gint n); + gint (*rgb_to_555) (guint16 *out, const guchar *rgb, gint n); gint (*composite_x888) (guint32 *pixels, const guchar *rgba, gint n); gint (*composite_565) (guint16 *pixels, const guchar *rgba, gint n); + gint (*composite_555) (guint16 *pixels, const guchar *rgba, gint n); gint (*rgba_to_argb) (guint32 *out, const guchar *rgba, gint n); }; From 038eacde6405a1ca3ac1217078abf85b4d9c5e72 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 17:39:58 +0200 Subject: [PATCH 024/249] gdkrgb: pshufw, pmulhuw and 3DNow! kernels, chosen one by one --- gdk/gdkrgb-mmx.c | 341 ++++++++++++++++++++++++++++++++++++++--------- gdk/gdkrgbsimd.c | 190 +++++++++++++++++++++++--- gdk/gdkrgbsimd.h | 19 +++ 3 files changed, 468 insertions(+), 82 deletions(-) diff --git a/gdk/gdkrgb-mmx.c b/gdk/gdkrgb-mmx.c index 2454574b6..56d5ba372 100644 --- a/gdk/gdkrgb-mmx.c +++ b/gdk/gdkrgb-mmx.c @@ -1,5 +1,7 @@ /* GDK - The GIMP Drawing Kit - * GdkRGB loops for MMX (Pentium MMX, Pentium II, K6) + * GdkRGB loops for MMX, and for what came later on the same registers: + * the integer SSE instructions of the Pentium III and Athlon (pshufw, + * pmulhuw), and 3DNow! of the K6-2, Athlon and Geode LX (pmulhrw) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -13,11 +15,29 @@ #include "gdkrgbsimd.h" -#if defined(__MMX__) +/* x86-64 always has SSE2, which does all of this better */ +#if defined(__MMX__) && !defined(__x86_64__) #include -/* Only the original MMX instructions are used, so no pshufw. */ +/* The file is compiled for plain MMX. The later instructions are + * written as assembler, so the compiler uses them nowhere else, and + * the kernels with them are only called on CPUs that have them. */ + +#if defined(__GNUC__) +#define KERNEL static inline __attribute__ ((always_inline)) +#else +#define KERNEL static inline +#endif + +/* How a kernel does what MMX has no instruction for */ +enum +{ + PLAIN, /* MMX only */ + EXT, /* pshufw and pmulhuw */ + AMD3D, /* pmulhrw */ + AMD3D_EXT /* all three */ +}; #define SPLAT(v) _mm_set1_pi32 ((gint) (v)) @@ -45,6 +65,37 @@ load4 (const void *p) return _mm_cvtsi32_si64 (v); } +#if defined(__i386__) && defined(__GNUC__) + +#define HAVE_LATER_MMX 1 + +#define PSHUFW(v, imm) G_STMT_START { \ + __asm__ ("pshufw $" #imm ", %0, %0" : "+y" (v)); \ + } G_STMT_END + +static inline __m64 +pmulhuw (__m64 a, __m64 b) +{ + __asm__ ("pmulhuw %1, %0" : "+y" (a) : "y" (b)); + return a; +} + +static inline __m64 +pmulhrw (__m64 a, __m64 b) +{ + __asm__ ("pmulhrw %1, %0" : "+y" (a) : "y" (b)); + return a; +} + +#else + +/* never used: only plain kernels are made here */ +#define PSHUFW(v, imm) G_STMT_START { } G_STMT_END +#define pmulhuw(a, b) ((void) (b), (a)) +#define pmulhrw(a, b) ((void) (b), (a)) + +#endif + /* The 6 bytes of two RGB pixels as lanes R | G << 8 | B << 16 */ static inline __m64 rgb_lanes (__m64 v) @@ -61,6 +112,8 @@ x888_of (__m64 v) SPLAT (0xff000000))); } +/* Lanes R | G << 8 | B << 16 to 565 or 555, sign extended for packing. + * The bit 555 has no use for is set, as in all of GdkRGB's pixels. */ static inline __m64 rgb565_of (__m64 v) { @@ -71,6 +124,17 @@ rgb565_of (__m64 v) return _mm_srai_pi32 (_mm_slli_pi32 (v, 16), 16); } +static inline __m64 +rgb555_of (__m64 v) +{ + v = _mm_or_si64 (_mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (v, SPLAT (0xf8)), 7), + _mm_srli_pi32 (_mm_and_si64 (v, SPLAT (0xf800)), 6)), + _mm_or_si64 (_mm_and_si64 (_mm_srli_pi32 (v, 19), SPLAT (0x1f)), + SPLAT (0x8000))); + + return _mm_srai_pi32 (_mm_slli_pi32 (v, 16), 16); +} + static gint rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) { @@ -118,29 +182,113 @@ rgb_to_565 (guint16 *out, const guchar *rgb, gint n) return i; } -/* (a * s + (255 - a) * d) / 255, rounded, in 16-bit lanes */ -static inline __m64 -blend (__m64 s, __m64 d, __m64 a) +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) { - __m64 t = _mm_add_pi16 (_mm_add_pi16 (_mm_mullo_pi16 (s, a), - _mm_mullo_pi16 (d, _mm_sub_pi16 (_mm_set1_pi16 (255), a))), - _mm_set1_pi16 (0x80)); + gint i; - return _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + for (i = 0; i + 4 <= n; i += 4, rgb += 12) + { + __m64 a = load8 (rgb); + __m64 b = _mm_or_si64 (_mm_srli_si64 (a, 48), _mm_slli_si64 (load4 (rgb + 8), 16)); + + store8 (out + i, _mm_packs_pi32 (rgb555_of (rgb_lanes (a)), rgb555_of (rgb_lanes (b)))); + } + _mm_empty (); + + return i; } -/* The alpha of a pixel in 16-bit lanes B, G, R, A in all four lanes */ -static inline __m64 -alpha_of (__m64 v) +/* (a * s + (255 - a) * d) / 255, rounded as GdkRGB's C code does, in + * 16-bit lanes. 3DNow! does it as d + (s - d) * a / 255: pmulhrw + * rounds the signed difference times a * 257, a correction makes up + * for a * 257 not fitting a signed lane from a = 128 on. That is the + * same in all 16777216 cases. */ +KERNEL __m64 +blend (__m64 s, __m64 d, __m64 a, const gint how) { + if (how == AMD3D || how == AMD3D_EXT) + { + __m64 scaled = _mm_slli_pi16 (a, 8); + __m64 mask = _mm_srai_pi16 (scaled, 15); + __m64 coeff = _mm_sub_pi16 (_mm_add_pi16 (a, scaled), mask); + __m64 delta = _mm_sub_pi16 (s, d); + + return _mm_add_pi16 (_mm_add_pi16 (pmulhrw (delta, coeff), _mm_and_si64 (delta, mask)), d); + } + else + { + __m64 t = _mm_add_pi16 (_mm_add_pi16 (_mm_mullo_pi16 (s, a), + _mm_mullo_pi16 (d, _mm_sub_pi16 (_mm_set1_pi16 (255), a))), + _mm_set1_pi16 (0x80)); + + /* t * 257 >> 16 is (t + (t >> 8)) >> 8 */ + if (how == EXT) + return pmulhuw (t, _mm_set1_pi16 (257)); + return _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + } +} + +/* c * a / 255, rounded the same way */ +KERNEL __m64 +premultiply (__m64 c, __m64 a, const gint how) +{ + if (how == AMD3D || how == AMD3D_EXT) + return blend (c, _mm_setzero_si64 (), a, how); + else + { + __m64 t = _mm_add_pi16 (_mm_mullo_pi16 (c, a), _mm_set1_pi16 (0x80)); + + if (how == EXT) + return pmulhuw (t, _mm_set1_pi16 (257)); + return _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + } +} + +/* The alpha of a pixel in 16-bit lanes in all four lanes */ +KERNEL __m64 +alpha_of (__m64 v, const gint how) +{ + if (how == EXT || how == AMD3D_EXT) + { + PSHUFW (v, 0xff); + return v; + } v = _mm_srli_si64 (v, 48); v = _mm_unpacklo_pi16 (v, v); return _mm_unpacklo_pi32 (v, v); } -static gint -composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +/* Two RGBA pixels as 16-bit lanes B, G, R, A each: the order of the + * bytes of 0xAARRGGBB */ +KERNEL void +unpack_bgra (__m64 s, __m64 *lo, __m64 *hi, const gint how) +{ + const __m64 zero = _mm_setzero_si64 (); + + if (how == EXT || how == AMD3D_EXT) + { + __m64 l = _mm_unpacklo_pi8 (s, zero); + __m64 h = _mm_unpackhi_pi8 (s, zero); + + PSHUFW (l, 0xc6); + PSHUFW (h, 0xc6); + *lo = l; + *hi = h; + } + else + { + s = _mm_or_si64 (_mm_and_si64 (s, SPLAT (0xff00ff00)), + _mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (s, SPLAT (0xff)), 16), + _mm_and_si64 (_mm_srli_pi32 (s, 16), SPLAT (0xff)))); + *lo = _mm_unpacklo_pi8 (s, zero); + *hi = _mm_unpackhi_pi8 (s, zero); + } +} + +KERNEL gint +composite_x888_k (guint32 *pixels, const guchar *rgba, gint n, const gint how) { const __m64 zero = _mm_setzero_si64 (); gint i; @@ -152,15 +300,9 @@ composite_x888 (guint32 *pixels, const guchar *rgba, gint n) __m64 transparent = _mm_cmpeq_pi32 (_mm_srli_pi32 (s, 24), zero); __m64 lo, hi, v; - /* RGBA to BGRA, the order of the pixels */ - s = _mm_or_si64 (_mm_and_si64 (s, SPLAT (0xff00ff00)), - _mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (s, SPLAT (0xff)), 16), - _mm_and_si64 (_mm_srli_pi32 (s, 16), SPLAT (0xff)))); - - lo = _mm_unpacklo_pi8 (s, zero); - hi = _mm_unpackhi_pi8 (s, zero); - lo = blend (lo, _mm_unpacklo_pi8 (d, zero), alpha_of (lo)); - hi = blend (hi, _mm_unpackhi_pi8 (d, zero), alpha_of (hi)); + unpack_bgra (s, &lo, &hi, how); + lo = blend (lo, _mm_unpacklo_pi8 (d, zero), alpha_of (lo, how), how); + hi = blend (hi, _mm_unpackhi_pi8 (d, zero), alpha_of (hi, how), how); v = _mm_or_si64 (_mm_packs_pu16 (lo, hi), SPLAT (0xff000000)); /* fully transparent pixels stay as they are */ @@ -172,9 +314,12 @@ composite_x888 (guint32 *pixels, const guchar *rgba, gint n) return i; } -static gint -composite_565 (guint16 *pixels, const guchar *rgba, gint n) +/* Four 565 or 555 pixels at a time, each channel in a register */ +KERNEL gint +composite_16_k (guint16 *pixels, const guchar *rgba, gint n, const gint green_bits, const gint how) { + const gint red_shift = 5 + green_bits; + const __m64 zero = _mm_setzero_si64 (); gint i; for (i = 0; i + 4 <= n; i += 4, rgba += 16) @@ -188,51 +333,54 @@ composite_565 (guint16 *pixels, const guchar *rgba, gint n) __m64 b = _mm_packs_pi32 (_mm_and_si64 (_mm_srli_pi32 (s0, 16), SPLAT (0xff)), _mm_and_si64 (_mm_srli_pi32 (s1, 16), SPLAT (0xff))); __m64 a = _mm_packs_pi32 (_mm_srli_pi32 (s0, 24), _mm_srli_pi32 (s1, 24)); - __m64 dr = _mm_srli_pi16 (d, 11); - __m64 dg = _mm_and_si64 (_mm_srli_pi16 (d, 5), _mm_set1_pi16 (0x3f)); + __m64 dr = _mm_and_si64 (_mm_srli_pi16 (d, red_shift), _mm_set1_pi16 (0x1f)); + __m64 dg = _mm_and_si64 (_mm_srli_pi16 (d, 5), _mm_set1_pi16 ((1 << green_bits) - 1)); __m64 db = _mm_and_si64 (d, _mm_set1_pi16 (0x1f)); + __m64 v; /* the bits of the pixel repeated up to 8 */ dr = _mm_or_si64 (_mm_slli_pi16 (dr, 3), _mm_srli_pi16 (dr, 2)); - dg = _mm_or_si64 (_mm_slli_pi16 (dg, 2), _mm_srli_pi16 (dg, 4)); + if (green_bits == 6) + dg = _mm_or_si64 (_mm_slli_pi16 (dg, 2), _mm_srli_pi16 (dg, 4)); + else + dg = _mm_or_si64 (_mm_slli_pi16 (dg, 3), _mm_srli_pi16 (dg, 2)); db = _mm_or_si64 (_mm_slli_pi16 (db, 3), _mm_srli_pi16 (db, 2)); - r = blend (r, dr, a); - g = blend (g, dg, a); - b = blend (b, db, a); - store8 (pixels + i, - _mm_or_si64 (_mm_or_si64 (_mm_slli_pi16 (_mm_and_si64 (r, _mm_set1_pi16 (0xf8)), 8), - _mm_slli_pi16 (_mm_and_si64 (g, _mm_set1_pi16 (0xfc)), 3)), - _mm_srli_pi16 (b, 3))); + r = blend (r, dr, a, how); + g = blend (g, dg, a, how); + b = blend (b, db, a, how); + v = _mm_or_si64 (_mm_or_si64 (_mm_slli_pi16 (_mm_srli_pi16 (r, 3), red_shift), + _mm_slli_pi16 (_mm_srli_pi16 (g, 8 - green_bits), 5)), + _mm_srli_pi16 (b, 3)); + + if (green_bits == 5) + { + /* the unused bit is set, except where nothing is drawn */ + __m64 transparent = _mm_cmpeq_pi16 (a, zero); + + v = _mm_or_si64 (_mm_and_si64 (transparent, d), + _mm_andnot_si64 (transparent, _mm_or_si64 (v, _mm_set1_pi16 ((gshort) 0x8000)))); + } + store8 (pixels + i, v); } _mm_empty (); return i; } -/* c * a / 255 to the nearest */ -static gint -rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +KERNEL gint +rgba_to_argb_k (guint32 *out, const guchar *rgba, gint n, const gint how) { - const __m64 zero = _mm_setzero_si64 (); gint i; for (i = 0; i + 2 <= n; i += 2, rgba += 8) { __m64 s = load8 (rgba); - __m64 bgra, lo, hi, t; + __m64 lo, hi; - /* RGBA to BGRA, the bytes of 0xAARRGGBB */ - bgra = _mm_or_si64 (_mm_and_si64 (s, SPLAT (0xff00ff00)), - _mm_or_si64 (_mm_slli_pi32 (_mm_and_si64 (s, SPLAT (0xff)), 16), - _mm_and_si64 (_mm_srli_pi32 (s, 16), SPLAT (0xff)))); - lo = _mm_unpacklo_pi8 (bgra, zero); - hi = _mm_unpackhi_pi8 (bgra, zero); - - t = _mm_add_pi16 (_mm_mullo_pi16 (lo, alpha_of (lo)), _mm_set1_pi16 (0x80)); - lo = _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); - t = _mm_add_pi16 (_mm_mullo_pi16 (hi, alpha_of (hi)), _mm_set1_pi16 (0x80)); - hi = _mm_srli_pi16 (_mm_add_pi16 (t, _mm_srli_pi16 (t, 8)), 8); + unpack_bgra (s, &lo, &hi, how); + lo = premultiply (lo, alpha_of (lo, how), how); + hi = premultiply (hi, alpha_of (hi, how), how); /* the alpha byte as it was */ store8 (out + i, _mm_or_si64 (_mm_and_si64 (_mm_packs_pu16 (lo, hi), SPLAT (0x00ffffff)), @@ -243,23 +391,90 @@ rgba_to_argb (guint32 *out, const guchar *rgba, gint n) return i; } +#define DEFINE_KERNELS(suffix, how) \ +static gint \ +composite_x888_##suffix (guint32 *pixels, const guchar *rgba, gint n) \ +{ \ + return composite_x888_k (pixels, rgba, n, how); \ +} \ + \ +static gint \ +composite_565_##suffix (guint16 *pixels, const guchar *rgba, gint n) \ +{ \ + return composite_16_k (pixels, rgba, n, 6, how); \ +} \ + \ +static gint \ +composite_555_##suffix (guint16 *pixels, const guchar *rgba, gint n) \ +{ \ + return composite_16_k (pixels, rgba, n, 5, how); \ +} \ + \ +static gint \ +rgba_to_argb_##suffix (guint32 *out, const guchar *rgba, gint n) \ +{ \ + return rgba_to_argb_k (out, rgba, n, how); \ +} \ + \ +static void \ +init_##suffix (GdkRgbSimd *simd, const gchar *name) \ +{ \ + simd->name = name; \ + simd->rgb_to_x888 = rgb_to_x888; \ + simd->rgbx_to_x888 = rgbx_to_x888; \ + simd->rgb_to_565 = rgb_to_565; \ + simd->rgb_to_555 = rgb_to_555; \ + simd->composite_x888 = composite_x888_##suffix; \ + simd->composite_565 = composite_565_##suffix; \ + simd->composite_555 = composite_555_##suffix; \ + simd->rgba_to_argb = rgba_to_argb_##suffix; \ +} + +DEFINE_KERNELS (mmx, PLAIN) + void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) { - simd->name = "mmx"; - simd->rgb_to_x888 = rgb_to_x888; - simd->rgbx_to_x888 = rgbx_to_x888; - simd->rgb_to_565 = rgb_to_565; - simd->composite_x888 = composite_x888; - simd->composite_565 = composite_565; - simd->rgba_to_argb = rgba_to_argb; + init_mmx (simd, "mmx"); +} + +#if defined(HAVE_LATER_MMX) + +DEFINE_KERNELS (ext, EXT) +DEFINE_KERNELS (3dnow, AMD3D) +DEFINE_KERNELS (3dnowext, AMD3D_EXT) + +void +_gdk_rgb_simd_init_mmxext (GdkRgbSimd *simd) +{ + init_ext (simd, "mmxext"); +} + +void +_gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd) +{ + init_3dnow (simd, "3dnow"); +} + +void +_gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd) +{ + init_3dnowext (simd, "3dnowext"); } #else -void -_gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) -{ -} +void _gdk_rgb_simd_init_mmxext (GdkRgbSimd *simd) { } +void _gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd) { } +void _gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd) { } + +#endif + +#else + +void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd) { } +void _gdk_rgb_simd_init_mmxext (GdkRgbSimd *simd) { } +void _gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd) { } +void _gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd) { } #endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index f744e8310..1722914e4 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -10,6 +10,7 @@ #include "config.h" #include +#include #include "gdkrgbsimd.h" @@ -26,6 +27,33 @@ #endif #endif +/* All instruction sets, from the least to the most preferred: each + * kernel comes from the last set that has it and the CPU can run */ +static const GdkRgbSimdSet all_sets[] = +{ + { "mmx", _gdk_rgb_simd_init_mmx }, + { "mmxext", _gdk_rgb_simd_init_mmxext }, + { "3dnow", _gdk_rgb_simd_init_3dnow }, + { "3dnowext", _gdk_rgb_simd_init_3dnowext }, + { "sse2", _gdk_rgb_simd_init_sse2 }, + { "altivec", _gdk_rgb_simd_init_altivec }, + { "neon", _gdk_rgb_simd_init_neon }, +}; + +static const GdkRgbSimdOp all_ops[] = +{ + { "rgb_to_x888", G_STRUCT_OFFSET (GdkRgbSimd, rgb_to_x888) }, + { "rgbx_to_x888", G_STRUCT_OFFSET (GdkRgbSimd, rgbx_to_x888) }, + { "rgb_to_565", G_STRUCT_OFFSET (GdkRgbSimd, rgb_to_565) }, + { "rgb_to_555", G_STRUCT_OFFSET (GdkRgbSimd, rgb_to_555) }, + { "composite_x888", G_STRUCT_OFFSET (GdkRgbSimd, composite_x888) }, + { "composite_565", G_STRUCT_OFFSET (GdkRgbSimd, composite_565) }, + { "composite_555", G_STRUCT_OFFSET (GdkRgbSimd, composite_555) }, + { "rgba_to_argb", G_STRUCT_OFFSET (GdkRgbSimd, rgba_to_argb) }, +}; + +#define OP(simd, i) G_STRUCT_MEMBER (gpointer, (simd), all_ops[i].offset) + /* The CPU's hardware capabilities word, as the kernel tells them */ #if (defined(__powerpc__) || defined(__arm__)) && \ (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) @@ -44,44 +72,150 @@ hwcap (void) } #endif -static void -detect (GdkRgbSimd *simd) +/* Whether this CPU can run the set */ +static gboolean +cpu_has (const gchar *set) { #if defined(__x86_64__) - /* every x86-64 CPU has SSE2 */ - _gdk_rgb_simd_init_sse2 (simd); + /* every x86-64 CPU has SSE2, which beats the older sets */ + return strcmp (set, "sse2") == 0; #elif defined(__i386__) && defined(__GNUC__) - unsigned int eax, ebx, ecx, edx; + unsigned int eax, ebx, ecx, edx, ext = 0, max_ext; - if (__get_cpuid (1, &eax, &ebx, &ecx, &edx)) + if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) + return FALSE; + /* CPUs without the extended leaves answer with something else */ + max_ext = __get_cpuid_max (0x80000000, NULL); + if ((max_ext & 0xffff0000) == 0x80000000 && max_ext >= 0x80000001) { - if (edx & (1 << 23)) - _gdk_rgb_simd_init_mmx (simd); - if (edx & (1 << 26)) - _gdk_rgb_simd_init_sse2 (simd); + unsigned int a, b, c; + + __cpuid (0x80000001, a, b, c, ext); } + if (strcmp (set, "mmx") == 0) + return (edx & (1 << 23)) != 0; + /* the integer part of SSE, or AMD's extensions to MMX */ + if (strcmp (set, "mmxext") == 0) + return (edx & (1 << 25)) != 0 || (ext & (1 << 22)) != 0; + if (strcmp (set, "3dnow") == 0) + return (ext & (1u << 31)) != 0; + if (strcmp (set, "3dnowext") == 0) + return (ext & (1 << 30)) != 0 && (ext & (1u << 31)) != 0 && (ext & (1 << 22)) != 0; + if (strcmp (set, "sse2") == 0) + return (edx & (1 << 26)) != 0; + return FALSE; + #elif defined(__aarch64__) - _gdk_rgb_simd_init_neon (simd); + return strcmp (set, "neon") == 0; #elif defined(__arm__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) - if (hwcap () & (1 << 12)) /* HWCAP_NEON */ - _gdk_rgb_simd_init_neon (simd); + return strcmp (set, "neon") == 0 && (hwcap () & (1 << 12)) != 0; /* HWCAP_NEON */ #elif defined(__powerpc__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) - if (hwcap () & 0x10000000) /* PPC_FEATURE_HAS_ALTIVEC */ - _gdk_rgb_simd_init_altivec (simd); + return strcmp (set, "altivec") == 0 && (hwcap () & 0x10000000) != 0; /* PPC_FEATURE_HAS_ALTIVEC */ #elif defined(__ppc__) && defined(__APPLE__) int vector_unit = 0; size_t size = sizeof (vector_unit); - if (sysctlbyname ("hw.vectorunit", &vector_unit, &size, NULL, 0) == 0 && vector_unit) - _gdk_rgb_simd_init_altivec (simd); + return strcmp (set, "altivec") == 0 && + sysctlbyname ("hw.vectorunit", &vector_unit, &size, NULL, 0) == 0 && vector_unit; +#else + return FALSE; #endif } +/** + * _gdk_rgb_simd_sets: + * @n_sets: the number of sets + * + * The instruction sets this CPU can run, least preferred first. The + * init function of a set fills in only what is in it. + */ +const GdkRgbSimdSet * +_gdk_rgb_simd_sets (gint *n_sets) +{ + static GdkRgbSimdSet sets[G_N_ELEMENTS (all_sets)]; + static gint n = -1; + guint i; + + if (n < 0) + { + n = 0; + for (i = 0; i < G_N_ELEMENTS (all_sets); i++) + if (cpu_has (all_sets[i].name)) + { + GdkRgbSimd probe = { NULL, }; + + /* a set the compiler couldn't build fills in nothing */ + all_sets[i].init (&probe); + if (probe.name) + sets[n++] = all_sets[i]; + } + } + + *n_sets = n; + return sets; +} + +/** + * _gdk_rgb_simd_ops: + * @n_ops: the number of operations + * + * The names of the kernels and where they are in a #GdkRgbSimd. + */ +const GdkRgbSimdOp * +_gdk_rgb_simd_ops (gint *n_ops) +{ + *n_ops = G_N_ELEMENTS (all_ops); + return all_ops; +} + +/* GDK_RGB_SIMD picks sets by hand, to try them: "c" for none, a set + * for that one wherever it has a kernel, "op=set" or "op=c" for one + * kernel; several of these separated by commas, applied in order. */ +static void +choose_by_hand (GdkRgbSimd *simd, + const gchar *spec, + const GdkRgbSimdSet *sets, + gint n_sets) +{ + gchar **items = g_strsplit (spec, ",", -1); + gint i, k, s; + + for (i = 0; items[i]; i++) + { + gchar *item = g_strstrip (items[i]); + gchar *eq = strchr (item, '='); + const gchar *set = eq ? eq + 1 : item; + GdkRgbSimd from = { NULL, }; + + if (eq) + *eq = '\0'; + + for (s = 0; s < n_sets; s++) + if (strcmp (sets[s].name, set) == 0) + { + sets[s].init (&from); + break; + } + if (s == n_sets && strcmp (set, "c") != 0) + { + g_warning ("GDK_RGB_SIMD: %s is not an instruction set this CPU has", set); + continue; + } + + for (k = 0; k < (gint) G_N_ELEMENTS (all_ops); k++) + if (!eq || strcmp (item, all_ops[k].name) == 0) + OP (simd, k) = OP (&from, k); + } + + simd->name = "by hand"; + g_strfreev (items); +} + const GdkRgbSimd * _gdk_rgb_simd_get (void) { @@ -91,10 +225,28 @@ _gdk_rgb_simd_get (void) if (!done) { const gchar *disable = g_getenv ("GDK_DISABLE_SIMD"); + const gchar *spec = g_getenv ("GDK_RGB_SIMD"); + const GdkRgbSimdSet *sets; + gint n_sets, s, k; - if (!disable || !*disable || *disable == '0') - detect (&simd); done = TRUE; + if (disable && *disable && *disable != '0') + return &simd; + + sets = _gdk_rgb_simd_sets (&n_sets); + for (s = 0; s < n_sets; s++) + { + GdkRgbSimd set = { NULL, }; + + sets[s].init (&set); + for (k = 0; k < (gint) G_N_ELEMENTS (all_ops); k++) + if (OP (&set, k)) + OP (&simd, k) = OP (&set, k); + simd.name = set.name; + } + + if (spec && *spec) + choose_by_hand (&simd, spec, sets, n_sets); } return &simd; diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index e7af7444a..fe01ef35b 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -47,9 +47,24 @@ struct _GdkRgbSimd gint (*rgba_to_argb) (guint32 *out, const guchar *rgba, gint n); }; +typedef struct +{ + const gchar *name; + void (*init) (GdkRgbSimd *simd); +} GdkRgbSimdSet; + +typedef struct +{ + const gchar *name; + glong offset; +} GdkRgbSimdOp; + /* Each fills in what its instruction set does better than C; they are * only called when the CPU has it. */ void _gdk_rgb_simd_init_mmx (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_mmxext (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); @@ -57,6 +72,10 @@ void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); /* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ const GdkRgbSimd *_gdk_rgb_simd_get (void); +/* For trying them: the sets this CPU has and the kernels by name */ +const GdkRgbSimdSet *_gdk_rgb_simd_sets (gint *n_sets); +const GdkRgbSimdOp *_gdk_rgb_simd_ops (gint *n_ops); + G_END_DECLS #endif /* __GDK_RGB_SIMD_H__ */ From 0e8ad2b09a8dd64cb7b79fcb40567a24fe3b49db Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 17:39:58 +0200 Subject: [PATCH 025/249] gdk: rgbsimdbench checks and times the vector kernels on a machine --- docs/reference/gtk/running.sgml | 18 ++ gdk/Makefile.am | 18 +- gdk/rgbsimdbench.c | 310 ++++++++++++++++++++++++++++++++ 3 files changed, 341 insertions(+), 5 deletions(-) create mode 100644 gdk/rgbsimdbench.c diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml index 1721ba239..a27c86581 100644 --- a/docs/reference/gtk/running.sgml +++ b/docs/reference/gtk/running.sgml @@ -407,6 +407,24 @@ nevertheless. + + <envar>GDK_DISABLE_SIMD</envar>, <envar>GDK_RGB_SIMD</envar> + + + GDK converts and blends pixels with the vector instructions of the + CPU where it has them (MMX, the integer part of SSE, 3DNow!, SSE2, + AltiVec, NEON), with the same results as its C code. If + GDK_DISABLE_SIMD is set to anything but 0, only the + C code is used. GDK_RGB_SIMD chooses by hand, to + compare: c for none, the name of an instruction + set for that one, or kernel=set for a single + kernel, several separated by commas. The program + rgbsimdbench in the gdk + directory of the sources (make rgbsimdbench) + lists the kernels and sets and times them on the machine. + + + <envar>XDG_DATA_HOME</envar>, <envar>XDG_DATA_DIRS</envar> diff --git a/gdk/Makefile.am b/gdk/Makefile.am index b74627918..042caf505 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -50,7 +50,7 @@ endif # libtool stuff: set version and export symbols for resolving # since automake doesn't support conditionalized libsomething_la_LDFLAGS # we use the general approach here -LDADD = \ +gdk_ldflags = \ $(GTK_LINK_FLAGS) \ -version-info $(LT_VERSION_INFO) \ -export-dynamic \ @@ -186,22 +186,30 @@ libgdk_rgb_neon_la_CFLAGS = $(NEON_CFLAGS) gdk_rgb_simd_libs = $(noinst_LTLIBRARIES) +# Checks and times the kernels on this machine against the C code: +# make rgbsimdbench && ./rgbsimdbench +EXTRA_PROGRAMS = rgbsimdbench +rgbsimdbench_SOURCES = rgbsimdbench.c gdkrgbsimd.c +rgbsimdbench_CFLAGS = $(AM_CFLAGS) +rgbsimdbench_LDADD = $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) +CLEANFILES += rgbsimdbench + libgdk_directfb_2_0_la_SOURCES = $(common_sources) libgdk_directfb_2_0_la_LIBADD = directfb/libgdk-directfb.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) -libgdk_directfb_2_0_la_LDFLAGS = $(LDADD) +libgdk_directfb_2_0_la_LDFLAGS = $(gdk_ldflags) libgdk_x11_2_0_la_SOURCES = $(common_sources) libgdk_x11_2_0_la_LIBADD = x11/libgdk-x11.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) -libgdk_x11_2_0_la_LDFLAGS = $(LDADD) +libgdk_x11_2_0_la_LDFLAGS = $(gdk_ldflags) libgdk_quartz_2_0_la_SOURCES = $(common_sources) gdkkeynames.c libgdk_quartz_2_0_la_LIBADD = quartz/libgdk-quartz.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) -libgdk_quartz_2_0_la_LDFLAGS = $(LDADD) +libgdk_quartz_2_0_la_LDFLAGS = $(gdk_ldflags) libgdk_win32_2_0_la_SOURCES = $(common_sources) gdkkeynames.c libgdk_win32_2_0_la_LIBADD = win32/libgdk-win32.la $(gdk_rgb_simd_libs) $(GDK_DEP_LIBS) libgdk_win32_2_0_la_DEPENDENCIES = win32/libgdk-win32.la $(gdk_rgb_simd_libs) win32/rc/gdk-win32-res.o gdk.def -libgdk_win32_2_0_la_LDFLAGS = -Wl,win32/rc/gdk-win32-res.o -export-symbols $(srcdir)/gdk.def $(LDADD) +libgdk_win32_2_0_la_LDFLAGS = -Wl,win32/rc/gdk-win32-res.o -export-symbols $(srcdir)/gdk.def $(gdk_ldflags) if HAVE_INTROSPECTION diff --git a/gdk/rgbsimdbench.c b/gdk/rgbsimdbench.c new file mode 100644 index 000000000..3a4402d2f --- /dev/null +++ b/gdk/rgbsimdbench.c @@ -0,0 +1,310 @@ +/* rgbsimdbench: checks and times GdkRGB's vector kernels on this machine + * + * Every kernel of every instruction set the CPU has is run against the + * C code it stands in for: first on random data, which must come out + * the same, then for speed. The table at the end shows millions of + * pixels per second; the fastest of each row is marked. + * + * make -C gdk rgbsimdbench && gdk/rgbsimdbench + * + * GDK_RGB_SIMD="op=set,..." tries a choice in a running program. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include +#include + +#include + +#include "gdkrgbsimd.h" + +#define WIDTH 256 +#define ROWS 64 + +typedef gint (*Kernel) (gpointer out, gconstpointer in, gint n); + +static guint32 seed = 1; + +static guint +rnd (void) +{ + seed = seed * 1103515245 + 12345; + return seed >> 8; +} + +static inline guint +blend8 (guint a, guint s, guint d) +{ + guint t = a * s + (255 - a) * d + 0x80; + + return (t + (t >> 8)) >> 8; +} + +/* The C code of GdkRGB and gdk_cairo_set_source_pixbuf(), as plain as + * there, for one pixel at position i */ +static void +c_pixel (gint op, gpointer out, const guchar *s, gint i) +{ + guint32 *o32 = (guint32 *) out + i; + guint16 *o16 = (guint16 *) out + i; + guint r, g, b; + + switch (op) + { + case 0: /* rgb_to_x888 */ + case 1: /* rgbx_to_x888 */ + *o32 = 0xff000000 | (s[0] << 16) | (s[1] << 8) | s[2]; + break; + case 2: /* rgb_to_565 */ + *o16 = ((s[0] & 0xf8) << 8) | ((s[1] & 0xfc) << 3) | (s[2] >> 3); + break; + case 3: /* rgb_to_555 */ + *o16 = 0x8000 | ((s[0] & 0xf8) << 7) | ((s[1] & 0xf8) << 2) | (s[2] >> 3); + break; + case 4: /* composite_x888 */ + if (s[3] == 0) + break; + if (s[3] == 255) + *o32 = 0xff000000 | (s[0] << 16) | (s[1] << 8) | s[2]; + else + *o32 = 0xff000000 | (blend8 (s[3], s[0], (*o32 >> 16) & 0xff) << 16) | + (blend8 (s[3], s[1], (*o32 >> 8) & 0xff) << 8) | blend8 (s[3], s[2], *o32 & 0xff); + break; + case 5: /* composite_565 */ + if (s[3] == 0) + break; + r = *o16 >> 11, g = (*o16 >> 5) & 0x3f, b = *o16 & 0x1f; + r = blend8 (s[3], s[0], (r << 3) | (r >> 2)); + g = blend8 (s[3], s[1], (g << 2) | (g >> 4)); + b = blend8 (s[3], s[2], (b << 3) | (b >> 2)); + *o16 = ((r & 0xf8) << 8) | ((g & 0xfc) << 3) | (b >> 3); + break; + case 6: /* composite_555 */ + if (s[3] == 0) + break; + r = (*o16 >> 10) & 0x1f, g = (*o16 >> 5) & 0x1f, b = *o16 & 0x1f; + r = blend8 (s[3], s[0], (r << 3) | (r >> 2)); + g = blend8 (s[3], s[1], (g << 3) | (g >> 2)); + b = blend8 (s[3], s[2], (b << 3) | (b >> 2)); + *o16 = 0x8000 | ((r & 0xf8) << 7) | ((g & 0xf8) << 2) | (b >> 3); + break; + case 7: /* rgba_to_argb */ + *o32 = ((guint32) s[3] << 24) | (blend8 (s[3], s[0], 0) << 16) | + (blend8 (s[3], s[1], 0) << 8) | blend8 (s[3], s[2], 0); + break; + } +} + +static gint +in_bytes (gint op) +{ + return op == 0 || op == 2 || op == 3 ? 3 : 4; +} + +static gint +out_bytes (gint op) +{ + return op == 2 || op == 3 || op == 5 || op == 6 ? 2 : 4; +} + +static void +run_c (gint op, gpointer out, const guchar *in, gint n) +{ + gint i, step = in_bytes (op); + + for (i = 0; i < n; i++) + c_pixel (op, out, in + i * step, i); +} + +static void +run (gint op, Kernel kernel, gpointer out, const guchar *in, gint n) +{ + gint done = kernel ? kernel (out, in, n) : 0, i, step = in_bytes (op); + + /* the C code does the rest of the row */ + for (i = done; i < n; i++) + c_pixel (op, out, in + i * step, i); +} + +/* Source rows: for the alpha either like icons, mostly nothing or + * everything, or like soft shadows, everything in between */ +static void +fill_source (guchar *in, gint op, gboolean icons) +{ + gint i, n = ROWS * WIDTH * in_bytes (op); + + for (i = 0; i < n; i++) + in[i] = rnd (); + if (in_bytes (op) == 4) + for (i = 3; i < n; i += 4) + { + guint k = rnd () % 10; + + if (icons && k < 4) + in[i] = 0; + else if (icons && k < 8) + in[i] = 255; + } +} + +static gboolean +check (gint op, Kernel kernel) +{ + static guchar in[WIDTH * 4 + 16], a[WIDTH * 4 + 16], b[WIDTH * 4 + 16]; + gint t, i; + + for (t = 0; t < 2000; t++) + { + gint n = rnd () % WIDTH, ia = rnd () % 16, oa = (rnd () % 8) * 2; + + for (i = 0; i < (gint) sizeof in; i++) + in[i] = rnd (); + for (i = 3; i < (gint) sizeof in; i += 4) + if (rnd () % 3 == 0) + in[i] = rnd () % 2 ? 0 : 255; + for (i = 0; i < (gint) sizeof a; i++) + a[i] = b[i] = rnd (); + run_c (op, a + oa, in + ia, n); + run (op, kernel, b + oa, in + ia, n); + if (memcmp (a, b, sizeof a) != 0) + return FALSE; + } + + return TRUE; +} + +/* Millions of pixels per second */ +static gdouble +measure (gint op, Kernel kernel, gboolean c_only, gboolean icons) +{ + static guchar in[ROWS * WIDTH * 4], out[ROWS * WIDTH * 4]; + gint64 start, elapsed; + gint rounds = 0, y; + + seed = 7; + fill_source (in, op, icons); + for (y = 0; y < (gint) sizeof out; y++) + out[y] = rnd (); + + start = g_get_monotonic_time (); + do + { + for (y = 0; y < ROWS; y++) + { + const guchar *src = in + y * WIDTH * in_bytes (op); + guchar *dst = out + y * WIDTH * out_bytes (op); + + if (c_only) + run_c (op, dst, src, WIDTH); + else + run (op, kernel, dst, src, WIDTH); + } + rounds++; + elapsed = g_get_monotonic_time () - start; + } + while (elapsed < 300000); + + return (gdouble) rounds * ROWS * WIDTH / elapsed; +} + +static void +print_cpu (void) +{ + gchar *info = NULL, **lines; + gint i, shown = 0; + + if (!g_file_get_contents ("/proc/cpuinfo", &info, NULL, NULL)) + return; + lines = g_strsplit (info, "\n", -1); + for (i = 0; lines[i] && shown < 4; i++) + if (g_str_has_prefix (lines[i], "model name") || g_str_has_prefix (lines[i], "cpu\t") || + g_str_has_prefix (lines[i], "vendor_id") || g_str_has_prefix (lines[i], "flags") || + g_str_has_prefix (lines[i], "Features") || g_str_has_prefix (lines[i], "CPU part") || + g_str_has_prefix (lines[i], "Hardware")) + { + printf ("%.150s\n", lines[i]); + shown++; + } + g_strfreev (lines); + g_free (info); +} + +int +main (int argc, char **argv) +{ + const GdkRgbSimdSet *sets; + const GdkRgbSimdOp *ops; + const GdkRgbSimd *chosen; + gint n_sets, n_ops, s, k, pass; + gboolean all_good = TRUE; + + print_cpu (); + sets = _gdk_rgb_simd_sets (&n_sets); + ops = _gdk_rgb_simd_ops (&n_ops); + chosen = _gdk_rgb_simd_get (); + + printf ("\nMillions of pixels per second, * the fastest, < what GDK takes now\n\n"); + printf ("%-22s %8s", "", "c"); + for (s = 0; s < n_sets; s++) + printf (" %9s", sets[s].name); + printf ("\n"); + + for (k = 0; k < n_ops; k++) + for (pass = 0; pass < (in_bytes (k) == 4 && k != 1 ? 2 : 1); pass++) + { + gdouble speed[16], best = 0; + const gchar *mark[16]; + gchar label[64]; + Kernel now = G_STRUCT_MEMBER (Kernel, chosen, ops[k].offset); + + g_snprintf (label, sizeof label, "%s%s", ops[k].name, + in_bytes (k) == 4 && k != 1 ? (pass ? " soft" : " icons") : ""); + speed[0] = measure (k, NULL, TRUE, !pass); + best = speed[0]; + for (s = 0; s < n_sets; s++) + { + GdkRgbSimd set; + Kernel kernel; + + memset (&set, 0, sizeof set); + sets[s].init (&set); + kernel = G_STRUCT_MEMBER (Kernel, &set, ops[k].offset); + speed[s + 1] = -1; + mark[s + 1] = " "; + if (!kernel) + continue; + if (!check (k, kernel)) + { + printf ("%s of %s does not give what the C code does!\n", ops[k].name, sets[s].name); + all_good = FALSE; + continue; + } + speed[s + 1] = measure (k, kernel, FALSE, !pass); + if (speed[s + 1] > best) + best = speed[s + 1]; + if (kernel == now) + mark[s + 1] = "<"; + } + + printf ("%-22s %7.1f%s", label, speed[0], speed[0] == best ? "*" : (now ? " " : "<")); + for (s = 0; s < n_sets; s++) + { + if (speed[s + 1] < 0) + printf (" %9s", "-"); + else + printf (" %8.1f%s", speed[s + 1], speed[s + 1] == best ? "*" : mark[s + 1]); + } + printf ("\n"); + } + + if (!all_good) + printf ("\nSome kernels are wrong on this machine; please send this output.\n"); + + return all_good ? 0 : 1; +} From d52c9cd2b358511ae88e35498c22a16e08d290cd Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 18:55:10 +0200 Subject: [PATCH 026/249] gdkrgb: SSSE3 kernels for Atom and Core 2 --- configure.ac | 7 + docs/reference/gtk/running.sgml | 2 +- gdk/Makefile.am | 3 + gdk/gdkrgb-ssse3.c | 224 ++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 11 +- gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 7 files changed, 247 insertions(+), 2 deletions(-) create mode 100644 gdk/gdkrgb-ssse3.c diff --git a/configure.ac b/configure.ac index d8ebb7834..6d9b6207e 100644 --- a/configure.ac +++ b/configure.ac @@ -507,6 +507,7 @@ AC_SUBST($1_CFLAGS)]) MMX_CFLAGS= SSE2_CFLAGS= +SSSE3_CFLAGS= ALTIVEC_CFLAGS= NEON_CFLAGS= case "$host_cpu" in @@ -523,6 +524,12 @@ case "$host_cpu" in #error no SSE2 #endif], [__m128i v = _mm_setzero_si128 (); v = _mm_mullo_epi16 (v, v); (void) v;]) + GTK_CHECK_SIMD_FLAGS([SSSE3], [-mssse3], + [#include + #ifndef __SSSE3__ + #error no SSSE3 + #endif], + [__m128i v = _mm_setzero_si128 (); v = _mm_shuffle_epi8 (v, v); (void) v;]) ;; powerpc*|ppc*) GTK_CHECK_SIMD_FLAGS([ALTIVEC], [-maltivec], diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml index a27c86581..83be66e5d 100644 --- a/docs/reference/gtk/running.sgml +++ b/docs/reference/gtk/running.sgml @@ -412,7 +412,7 @@ nevertheless. GDK converts and blends pixels with the vector instructions of the - CPU where it has them (MMX, the integer part of SSE, 3DNow!, SSE2, + CPU where it has them (MMX, the integer part of SSE, 3DNow!, SSE2, SSSE3, AltiVec, NEON), with the same results as its C code. If GDK_DISABLE_SIMD is set to anything but 0, only the C code is used. GDK_RGB_SIMD chooses by hand, to diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 042caf505..cb5b2b9bd 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -172,6 +172,7 @@ common_sources = \ noinst_LTLIBRARIES = \ libgdk-rgb-mmx.la \ libgdk-rgb-sse2.la \ + libgdk-rgb-ssse3.la \ libgdk-rgb-altivec.la \ libgdk-rgb-neon.la @@ -179,6 +180,8 @@ libgdk_rgb_mmx_la_SOURCES = gdkrgb-mmx.c libgdk_rgb_mmx_la_CFLAGS = $(MMX_CFLAGS) libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) +libgdk_rgb_ssse3_la_SOURCES = gdkrgb-ssse3.c +libgdk_rgb_ssse3_la_CFLAGS = $(SSSE3_CFLAGS) libgdk_rgb_altivec_la_SOURCES = gdkrgb-altivec.c libgdk_rgb_altivec_la_CFLAGS = $(ALTIVEC_CFLAGS) libgdk_rgb_neon_la_SOURCES = gdkrgb-neon.c diff --git a/gdk/gdkrgb-ssse3.c b/gdk/gdkrgb-ssse3.c new file mode 100644 index 000000000..f2157955c --- /dev/null +++ b/gdk/gdkrgb-ssse3.c @@ -0,0 +1,224 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for SSSE3 (Atom, Core 2 and later): pshufb moves the + * bytes of pixels where SSE2 takes a row of shifts and masks + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +#if defined(__SSSE3__) + +#include + +/* x86 is little endian: an x888 pixel is the bytes B, G, R, 0xff */ + +#define SPLAT(v) _mm_set1_epi32 ((gint) (v)) +#define BYTES(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ + _mm_setr_epi8 (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) + +/* The first 12 bytes of four RGB pixels to B, G, R, 0 each */ +static inline __m128i +bgr0_of_rgb (__m128i v) +{ + return _mm_shuffle_epi8 (v, BYTES (2, 1, 0, -1, 5, 4, 3, -1, 8, 7, 6, -1, 11, 10, 9, -1)); +} + +/* ... and to lanes R | G << 8 | B << 16, which SSE2 calls them */ +static inline __m128i +rgb0_of_rgb (__m128i v) +{ + return _mm_shuffle_epi8 (v, BYTES (0, 1, 2, -1, 3, 4, 5, -1, 6, 7, 8, -1, 9, 10, 11, -1)); +} + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + const __m128i fill = SPLAT (0xff000000); + gint i; + + for (i = 0; i + 16 <= n; i += 16, rgb += 48) + { + __m128i a = _mm_loadu_si128 ((const __m128i *) rgb); + __m128i b = _mm_loadu_si128 ((const __m128i *) (rgb + 16)); + __m128i c = _mm_loadu_si128 ((const __m128i *) (rgb + 32)); + + _mm_storeu_si128 ((__m128i *) (out + i), _mm_or_si128 (bgr0_of_rgb (a), fill)); + _mm_storeu_si128 ((__m128i *) (out + i + 4), + _mm_or_si128 (bgr0_of_rgb (_mm_alignr_epi8 (b, a, 12)), fill)); + _mm_storeu_si128 ((__m128i *) (out + i + 8), + _mm_or_si128 (bgr0_of_rgb (_mm_alignr_epi8 (c, b, 8)), fill)); + _mm_storeu_si128 ((__m128i *) (out + i + 12), + _mm_or_si128 (bgr0_of_rgb (_mm_srli_si128 (c, 4)), fill)); + } + + return i; +} + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + const __m128i order = BYTES (2, 1, 0, -1, 6, 5, 4, -1, 10, 9, 8, -1, 14, 13, 12, -1); + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgbx += 16) + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_or_si128 (_mm_shuffle_epi8 (_mm_loadu_si128 ((const __m128i *) rgbx), order), + SPLAT (0xff000000))); + + return i; +} + +/* Lanes R | G << 8 | B << 16 to 565 or 555, sign extended for packing. + * The bit 555 has no use for is set, as in all of GdkRGB's pixels. */ +static inline __m128i +rgb16_of (__m128i v, const gint green_bits) +{ + if (green_bits == 6) + v = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (v, SPLAT (0xf8)), 8), + _mm_srli_epi32 (_mm_and_si128 (v, SPLAT (0xfc00)), 5)), + _mm_and_si128 (_mm_srli_epi32 (v, 19), SPLAT (0x1f))); + else + v = _mm_or_si128 (_mm_or_si128 (_mm_slli_epi32 (_mm_and_si128 (v, SPLAT (0xf8)), 7), + _mm_srli_epi32 (_mm_and_si128 (v, SPLAT (0xf800)), 6)), + _mm_or_si128 (_mm_and_si128 (_mm_srli_epi32 (v, 19), SPLAT (0x1f)), + SPLAT (0x8000))); + + return _mm_srai_epi32 (_mm_slli_epi32 (v, 16), 16); +} + +static inline gint +rgb_to_16 (guint16 *out, const guchar *rgb, gint n, const gint green_bits) +{ + gint i; + + for (i = 0; i + 16 <= n; i += 16, rgb += 48) + { + __m128i a = _mm_loadu_si128 ((const __m128i *) rgb); + __m128i b = _mm_loadu_si128 ((const __m128i *) (rgb + 16)); + __m128i c = _mm_loadu_si128 ((const __m128i *) (rgb + 32)); + + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_packs_epi32 (rgb16_of (rgb0_of_rgb (a), green_bits), + rgb16_of (rgb0_of_rgb (_mm_alignr_epi8 (b, a, 12)), green_bits))); + _mm_storeu_si128 ((__m128i *) (out + i + 8), + _mm_packs_epi32 (rgb16_of (rgb0_of_rgb (_mm_alignr_epi8 (c, b, 8)), green_bits), + rgb16_of (rgb0_of_rgb (_mm_srli_si128 (c, 4)), green_bits))); + } + + return i; +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 6); +} + +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 5); +} + +/* The alpha of each pixel in its four 16-bit lanes */ +static inline __m128i +alpha_of (__m128i v) +{ + return _mm_shuffle_epi8 (v, BYTES (6, 7, 6, 7, 6, 7, 6, 7, 14, 15, 14, 15, 14, 15, 14, 15)); +} + +/* (a * s + (255 - a) * d) / 255, rounded as GdkRGB's C code does */ +static inline __m128i +blend (__m128i s, __m128i d, __m128i a) +{ + __m128i t = _mm_add_epi16 (_mm_add_epi16 (_mm_mullo_epi16 (s, a), + _mm_mullo_epi16 (d, _mm_sub_epi16 (_mm_set1_epi16 (255), a))), + _mm_set1_epi16 (0x80)); + + return _mm_mulhi_epu16 (t, _mm_set1_epi16 (257)); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + const __m128i zero = _mm_setzero_si128 (); + const __m128i order = BYTES (2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15); + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgba += 16) + { + __m128i s = _mm_loadu_si128 ((const __m128i *) rgba); + __m128i d = _mm_loadu_si128 ((const __m128i *) (pixels + i)); + __m128i transparent = _mm_cmpeq_epi32 (_mm_srli_epi32 (s, 24), zero); + __m128i lo, hi, v; + + /* RGBA to BGRA, the order of the pixels */ + s = _mm_shuffle_epi8 (s, order); + lo = _mm_unpacklo_epi8 (s, zero); + hi = _mm_unpackhi_epi8 (s, zero); + lo = blend (lo, _mm_unpacklo_epi8 (d, zero), alpha_of (lo)); + hi = blend (hi, _mm_unpackhi_epi8 (d, zero), alpha_of (hi)); + v = _mm_or_si128 (_mm_packus_epi16 (lo, hi), SPLAT (0xff000000)); + + /* fully transparent pixels stay as they are */ + v = _mm_or_si128 (_mm_and_si128 (transparent, d), _mm_andnot_si128 (transparent, v)); + _mm_storeu_si128 ((__m128i *) (pixels + i), v); + } + + return i; +} + +/* c * a / 255 to the nearest, which (c * a + 0x80) * 257 >> 16 is */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + const __m128i zero = _mm_setzero_si128 (); + const __m128i order = BYTES (2, 1, 0, -1, 6, 5, 4, -1, 10, 9, 8, -1, 14, 13, 12, -1); + gint i; + + for (i = 0; i + 4 <= n; i += 4, rgba += 16) + { + __m128i s = _mm_loadu_si128 ((const __m128i *) rgba); + __m128i lo = _mm_unpacklo_epi8 (s, zero); + __m128i hi = _mm_unpackhi_epi8 (s, zero); + + lo = _mm_mulhi_epu16 (_mm_add_epi16 (_mm_mullo_epi16 (lo, alpha_of (lo)), _mm_set1_epi16 (0x80)), + _mm_set1_epi16 (257)); + hi = _mm_mulhi_epu16 (_mm_add_epi16 (_mm_mullo_epi16 (hi, alpha_of (hi)), _mm_set1_epi16 (0x80)), + _mm_set1_epi16 (257)); + + /* R, G, B to B, G, R, and the alpha byte as it was */ + _mm_storeu_si128 ((__m128i *) (out + i), + _mm_or_si128 (_mm_shuffle_epi8 (_mm_packus_epi16 (lo, hi), order), + _mm_and_si128 (s, SPLAT (0xff000000)))); + } + + return i; +} + +void +_gdk_rgb_simd_init_ssse3 (GdkRgbSimd *simd) +{ + simd->name = "ssse3"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->rgb_to_555 = rgb_to_555; + simd->composite_x888 = composite_x888; + simd->rgba_to_argb = rgba_to_argb; +} + +#else + +void +_gdk_rgb_simd_init_ssse3 (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index 1722914e4..65ac42eef 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -36,6 +36,7 @@ static const GdkRgbSimdSet all_sets[] = { "3dnow", _gdk_rgb_simd_init_3dnow }, { "3dnowext", _gdk_rgb_simd_init_3dnowext }, { "sse2", _gdk_rgb_simd_init_sse2 }, + { "ssse3", _gdk_rgb_simd_init_ssse3 }, { "altivec", _gdk_rgb_simd_init_altivec }, { "neon", _gdk_rgb_simd_init_neon }, }; @@ -77,8 +78,14 @@ static gboolean cpu_has (const gchar *set) { #if defined(__x86_64__) + unsigned int eax, ebx, ecx, edx; + /* every x86-64 CPU has SSE2, which beats the older sets */ - return strcmp (set, "sse2") == 0; + if (strcmp (set, "sse2") == 0) + return TRUE; + if (strcmp (set, "ssse3") == 0) + return __get_cpuid (1, &eax, &ebx, &ecx, &edx) && (ecx & (1 << 9)) != 0; + return FALSE; #elif defined(__i386__) && defined(__GNUC__) unsigned int eax, ebx, ecx, edx, ext = 0, max_ext; @@ -105,6 +112,8 @@ cpu_has (const gchar *set) return (ext & (1 << 30)) != 0 && (ext & (1u << 31)) != 0 && (ext & (1 << 22)) != 0; if (strcmp (set, "sse2") == 0) return (edx & (1 << 26)) != 0; + if (strcmp (set, "ssse3") == 0) + return (ecx & (1 << 9)) != 0; return FALSE; #elif defined(__aarch64__) diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index fe01ef35b..9c91607a0 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -66,6 +66,7 @@ void _gdk_rgb_simd_init_mmxext (GdkRgbSimd *simd); void _gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd); void _gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_ssse3 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); diff --git a/gdk/makefile.msc b/gdk/makefile.msc index 4fbbc7721..24dceb28a 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -95,6 +95,7 @@ gdk_OBJECTS = \ gdkrgbsimd.obj \ gdkrgb-mmx.obj \ gdkrgb-sse2.obj \ + gdkrgb-ssse3.obj \ gdkrgb-altivec.obj \ gdkrgb-neon.obj \ gdkscreen.obj \ From d08bb11aef32281035be69f358598c46bf567a0e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:41:33 +0200 Subject: [PATCH 027/249] gdkrgb: AVX2 for the loops of four-byte pixels --- configure.ac | 14 +++++ gdk/Makefile.am | 3 + gdk/gdkrgb-avx2.c | 136 ++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 30 +++++++++- gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 6 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 gdk/gdkrgb-avx2.c diff --git a/configure.ac b/configure.ac index 6d9b6207e..5cf23a79e 100644 --- a/configure.ac +++ b/configure.ac @@ -508,6 +508,7 @@ AC_SUBST($1_CFLAGS)]) MMX_CFLAGS= SSE2_CFLAGS= SSSE3_CFLAGS= +AVX2_CFLAGS= ALTIVEC_CFLAGS= NEON_CFLAGS= case "$host_cpu" in @@ -530,6 +531,19 @@ case "$host_cpu" in #error no SSSE3 #endif], [__m128i v = _mm_setzero_si128 (); v = _mm_shuffle_epi8 (v, v); (void) v;]) + dnl not with MinGW: GCC does not align its stack for AVX there (GCC + dnl bug 54412), and unoptimized builds would crash on spills + case "$host_os" in + mingw*|cygwin*) ;; + *) + GTK_CHECK_SIMD_FLAGS([AVX2], [-mavx2], + [#include + #ifndef __AVX2__ + #error no AVX2 + #endif], + [__m256i v = _mm256_setzero_si256 (); v = _mm256_shuffle_epi8 (v, v); (void) v;]) + ;; + esac ;; powerpc*|ppc*) GTK_CHECK_SIMD_FLAGS([ALTIVEC], [-maltivec], diff --git a/gdk/Makefile.am b/gdk/Makefile.am index cb5b2b9bd..466415025 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -173,6 +173,7 @@ noinst_LTLIBRARIES = \ libgdk-rgb-mmx.la \ libgdk-rgb-sse2.la \ libgdk-rgb-ssse3.la \ + libgdk-rgb-avx2.la \ libgdk-rgb-altivec.la \ libgdk-rgb-neon.la @@ -182,6 +183,8 @@ libgdk_rgb_sse2_la_SOURCES = gdkrgb-sse2.c libgdk_rgb_sse2_la_CFLAGS = $(SSE2_CFLAGS) libgdk_rgb_ssse3_la_SOURCES = gdkrgb-ssse3.c libgdk_rgb_ssse3_la_CFLAGS = $(SSSE3_CFLAGS) +libgdk_rgb_avx2_la_SOURCES = gdkrgb-avx2.c +libgdk_rgb_avx2_la_CFLAGS = $(AVX2_CFLAGS) libgdk_rgb_altivec_la_SOURCES = gdkrgb-altivec.c libgdk_rgb_altivec_la_CFLAGS = $(ALTIVEC_CFLAGS) libgdk_rgb_neon_la_SOURCES = gdkrgb-neon.c diff --git a/gdk/gdkrgb-avx2.c b/gdk/gdkrgb-avx2.c new file mode 100644 index 000000000..3ee7d6a5d --- /dev/null +++ b/gdk/gdkrgb-avx2.c @@ -0,0 +1,136 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for AVX2 (Haswell, Zen and later): the SSSE3 loops eight + * pixels at a time, for the pixels of four bytes, where the lanes of 128 + * bits do not mix. Pixels of three bytes would cross the two halves of + * a register and need permutes; those stay with SSSE3. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +#if defined(__AVX2__) + +#include + +/* x86 is little endian: an x888 pixel is the bytes B, G, R, 0xff */ + +#define SPLAT(v) _mm256_set1_epi32 ((gint) (v)) + +/* the same order of bytes in both halves */ +#define BYTES(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) \ + _mm256_setr_epi8 (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, \ + a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) + +static gint +rgbx_to_x888 (guint32 *out, const guchar *rgbx, gint n) +{ + const __m256i order = BYTES (2, 1, 0, -1, 6, 5, 4, -1, 10, 9, 8, -1, 14, 13, 12, -1); + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgbx += 32) + _mm256_storeu_si256 ((__m256i *) (out + i), + _mm256_or_si256 (_mm256_shuffle_epi8 (_mm256_loadu_si256 ((const __m256i *) rgbx), order), + SPLAT (0xff000000))); + + return i; +} + +/* The alpha of each pixel in its four 16-bit lanes */ +static inline __m256i +alpha_of (__m256i v) +{ + return _mm256_shuffle_epi8 (v, BYTES (6, 7, 6, 7, 6, 7, 6, 7, 14, 15, 14, 15, 14, 15, 14, 15)); +} + +/* (a * s + (255 - a) * d) / 255, rounded as GdkRGB's C code does */ +static inline __m256i +blend (__m256i s, __m256i d, __m256i a) +{ + __m256i t = _mm256_add_epi16 (_mm256_add_epi16 (_mm256_mullo_epi16 (s, a), + _mm256_mullo_epi16 (d, _mm256_sub_epi16 (_mm256_set1_epi16 (255), a))), + _mm256_set1_epi16 (0x80)); + + return _mm256_mulhi_epu16 (t, _mm256_set1_epi16 (257)); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + const __m256i zero = _mm256_setzero_si256 (); + const __m256i order = BYTES (2, 1, 0, 3, 6, 5, 4, 7, 10, 9, 8, 11, 14, 13, 12, 15); + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + __m256i s = _mm256_loadu_si256 ((const __m256i *) rgba); + __m256i d = _mm256_loadu_si256 ((const __m256i *) (pixels + i)); + __m256i transparent = _mm256_cmpeq_epi32 (_mm256_srli_epi32 (s, 24), zero); + __m256i lo, hi, v; + + /* RGBA to BGRA, the order of the pixels */ + s = _mm256_shuffle_epi8 (s, order); + lo = _mm256_unpacklo_epi8 (s, zero); + hi = _mm256_unpackhi_epi8 (s, zero); + lo = blend (lo, _mm256_unpacklo_epi8 (d, zero), alpha_of (lo)); + hi = blend (hi, _mm256_unpackhi_epi8 (d, zero), alpha_of (hi)); + v = _mm256_or_si256 (_mm256_packus_epi16 (lo, hi), SPLAT (0xff000000)); + + /* fully transparent pixels stay as they are */ + v = _mm256_blendv_epi8 (v, d, transparent); + _mm256_storeu_si256 ((__m256i *) (pixels + i), v); + } + + return i; +} + +/* c * a / 255 to the nearest, which (c * a + 0x80) * 257 >> 16 is */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + const __m256i zero = _mm256_setzero_si256 (); + const __m256i order = BYTES (2, 1, 0, -1, 6, 5, 4, -1, 10, 9, 8, -1, 14, 13, 12, -1); + gint i; + + for (i = 0; i + 8 <= n; i += 8, rgba += 32) + { + __m256i s = _mm256_loadu_si256 ((const __m256i *) rgba); + __m256i lo = _mm256_unpacklo_epi8 (s, zero); + __m256i hi = _mm256_unpackhi_epi8 (s, zero); + + lo = _mm256_mulhi_epu16 (_mm256_add_epi16 (_mm256_mullo_epi16 (lo, alpha_of (lo)), _mm256_set1_epi16 (0x80)), + _mm256_set1_epi16 (257)); + hi = _mm256_mulhi_epu16 (_mm256_add_epi16 (_mm256_mullo_epi16 (hi, alpha_of (hi)), _mm256_set1_epi16 (0x80)), + _mm256_set1_epi16 (257)); + + /* R, G, B to B, G, R, and the alpha byte as it was */ + _mm256_storeu_si256 ((__m256i *) (out + i), + _mm256_or_si256 (_mm256_shuffle_epi8 (_mm256_packus_epi16 (lo, hi), order), + _mm256_and_si256 (s, SPLAT (0xff000000)))); + } + + return i; +} + +void +_gdk_rgb_simd_init_avx2 (GdkRgbSimd *simd) +{ + simd->name = "avx2"; + simd->rgbx_to_x888 = rgbx_to_x888; + simd->composite_x888 = composite_x888; + simd->rgba_to_argb = rgba_to_argb; +} + +#else + +void +_gdk_rgb_simd_init_avx2 (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index 65ac42eef..8ffcba418 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -37,6 +37,7 @@ static const GdkRgbSimdSet all_sets[] = { "3dnowext", _gdk_rgb_simd_init_3dnowext }, { "sse2", _gdk_rgb_simd_init_sse2 }, { "ssse3", _gdk_rgb_simd_init_ssse3 }, + { "avx2", _gdk_rgb_simd_init_avx2 }, { "altivec", _gdk_rgb_simd_init_altivec }, { "neon", _gdk_rgb_simd_init_neon }, }; @@ -73,6 +74,27 @@ hwcap (void) } #endif +#if (defined(__x86_64__) || defined(__i386__)) && defined(__GNUC__) +/* AVX2: the CPU has it, and the system saves the wide registers + * (OSXSAVE, then XCR0 says SSE and AVX state) */ +static gboolean +cpu_has_avx2 (unsigned int ecx) +{ + unsigned int eax, ebx, ecx7, edx, xcr0_low, xcr0_high; + + if ((ecx & (1 << 27)) == 0 || (ecx & (1 << 28)) == 0 || + __get_cpuid_max (0, NULL) < 7) + return FALSE; + __cpuid_count (7, 0, eax, ebx, ecx7, edx); + if ((ebx & (1 << 5)) == 0) + return FALSE; + __asm__ (".byte 0x0f, 0x01, 0xd0" /* xgetbv, which old assemblers do not know */ + : "=a" (xcr0_low), "=d" (xcr0_high) : "c" (0)); + + return (xcr0_low & 6) == 6; +} +#endif + /* Whether this CPU can run the set */ static gboolean cpu_has (const gchar *set) @@ -83,8 +105,12 @@ cpu_has (const gchar *set) /* every x86-64 CPU has SSE2, which beats the older sets */ if (strcmp (set, "sse2") == 0) return TRUE; + if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx)) + return FALSE; if (strcmp (set, "ssse3") == 0) - return __get_cpuid (1, &eax, &ebx, &ecx, &edx) && (ecx & (1 << 9)) != 0; + return (ecx & (1 << 9)) != 0; + if (strcmp (set, "avx2") == 0) + return cpu_has_avx2 (ecx); return FALSE; #elif defined(__i386__) && defined(__GNUC__) @@ -114,6 +140,8 @@ cpu_has (const gchar *set) return (edx & (1 << 26)) != 0; if (strcmp (set, "ssse3") == 0) return (ecx & (1 << 9)) != 0; + if (strcmp (set, "avx2") == 0) + return cpu_has_avx2 (ecx); return FALSE; #elif defined(__aarch64__) diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index 9c91607a0..b590a81c3 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -67,6 +67,7 @@ void _gdk_rgb_simd_init_3dnow (GdkRgbSimd *simd); void _gdk_rgb_simd_init_3dnowext (GdkRgbSimd *simd); void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_ssse3 (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_avx2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); diff --git a/gdk/makefile.msc b/gdk/makefile.msc index 24dceb28a..d3276287a 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -96,6 +96,7 @@ gdk_OBJECTS = \ gdkrgb-mmx.obj \ gdkrgb-sse2.obj \ gdkrgb-ssse3.obj \ + gdkrgb-avx2.obj \ gdkrgb-altivec.obj \ gdkrgb-neon.obj \ gdkscreen.obj \ From aff0e29467ad4f9e15d2faca28f9d1f98e30d6a0 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:43:52 +0200 Subject: [PATCH 028/249] gdkcairo: without vector units, read and write a pixel as one word, and multiply red and blue together --- gdk/gdkcairo.c | 63 +++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 052e15142..f9730d995 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -17,6 +17,8 @@ * Boston, MA 02111-1307, USA. */ +#include + #include "gdkcairo.h" #include "gdkrgbsimd.h" #include "gdkdrawable.h" @@ -224,51 +226,50 @@ gdk_cairo_surface_from_pixbuf (const GdkPixbuf *pixbuf) p += done * n_channels; q += done * 4; + /* One word out for each pixel, so that machines without vector + * units, the PowerPC G3 or ARMv5, store once, not three or four + * times; and the unused byte of RGB24 gets a value */ if (n_channels == 3) { guchar *end = gdk_pixels + 3 * width; + guint32 *q32 = (guint32 *) q; - while (p < end) - { -#if G_BYTE_ORDER == G_LITTLE_ENDIAN - q[0] = p[2]; - q[1] = p[1]; - q[2] = p[0]; -#else - q[1] = p[0]; - q[2] = p[1]; - q[3] = p[2]; -#endif - p += 3; - q += 4; - } + for (; p < end; p += 3) + *q32++ = 0xff000000 | ((guint32) p[0] << 16) | (p[1] << 8) | p[2]; } else { guchar *end = gdk_pixels + 4 * width; - guint t1,t2,t3; + guint32 *q32 = (guint32 *) q; -#define MULT(d,c,a,t) G_STMT_START { t = c * a + 0x80; d = ((t >> 8) + t) >> 8; } G_STMT_END - - while (p < end) + /* Red and blue 16 bits apart in one register, multiplied by + * alpha at once: c * a / 255 to the nearest, as + * ((t >> 8) + t) >> 8 with t = c * a + 0x80, which does not + * carry from one into the other. The pixel is read as one word + * as well. */ + for (; p < end; p += 4) { + guint32 w, a, rb, g; + + memcpy (&w, p, 4); #if G_BYTE_ORDER == G_LITTLE_ENDIAN - MULT(q[0], p[2], p[3], t1); - MULT(q[1], p[1], p[3], t2); - MULT(q[2], p[0], p[3], t3); - q[3] = p[3]; + a = w >> 24; + rb = w & 0x00ff00ff; /* B << 16 | R */ + g = (w >> 8) & 0xff; #else - q[0] = p[3]; - MULT(q[1], p[0], p[3], t1); - MULT(q[2], p[1], p[3], t2); - MULT(q[3], p[2], p[3], t3); + a = w & 0xff; + rb = (w >> 8) & 0x00ff00ff; /* R << 16 | B */ + g = (w >> 16) & 0xff; #endif - - p += 4; - q += 4; + rb = rb * a + 0x00800080; + rb = ((((rb >> 8) & 0x00ff00ff) + rb) >> 8) & 0x00ff00ff; + g = g * a + 0x80; + g = ((g >> 8) + g) >> 8; +#if G_BYTE_ORDER == G_LITTLE_ENDIAN + rb = (rb << 16) | (rb >> 16); /* R << 16 | B */ +#endif + *q32++ = (a << 24) | rb | (g << 8); } - -#undef MULT } gdk_pixels += gdk_rowstride; From e02b716780d56d603ea56b6f6e2edd2a1e61bf0d Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:51:30 +0200 Subject: [PATCH 029/249] gdkrgb: the media instructions of ARMv6, for the Raspberry Pi 1 and Zero --- configure.ac | 7 + gdk/Makefile.am | 3 + gdk/gdkrgb-armv6.c | 318 +++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkrgbsimd.c | 14 ++ gdk/gdkrgbsimd.h | 1 + gdk/makefile.msc | 1 + 6 files changed, 344 insertions(+) create mode 100644 gdk/gdkrgb-armv6.c diff --git a/configure.ac b/configure.ac index 5cf23a79e..5d38c73ee 100644 --- a/configure.ac +++ b/configure.ac @@ -510,6 +510,7 @@ SSE2_CFLAGS= SSSE3_CFLAGS= AVX2_CFLAGS= ALTIVEC_CFLAGS= +ARMV6_CFLAGS= NEON_CFLAGS= case "$host_cpu" in i?86|x86_64|amd64) @@ -554,6 +555,12 @@ case "$host_cpu" in [vector unsigned short v = vec_splats ((unsigned short) 1); v = vec_mladd (v, v, v); (void) v;]) ;; arm*) + dnl the media instructions of ARMv6, for builds for older ARMs too + GTK_CHECK_SIMD_FLAGS([ARMV6], [|-march=armv6], + [#if !defined(__ARM_ARCH_6__) && !(defined(__ARM_ARCH) && __ARM_ARCH >= 6) + #error no ARMv6 + #endif], + [unsigned int r, x = 1; __asm__ ("uxtab16 %0, %1, %2, ror #8" : "=r" (r) : "r" (x), "r" (x)); (void) r;]) dnl toolchains for the Raspberry Pi 1 default to ARMv6, which has no NEON GTK_CHECK_SIMD_FLAGS([NEON], [-mfpu=neon|-march=armv7-a -mfpu=neon], [#include diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 466415025..02727f6b7 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -175,6 +175,7 @@ noinst_LTLIBRARIES = \ libgdk-rgb-ssse3.la \ libgdk-rgb-avx2.la \ libgdk-rgb-altivec.la \ + libgdk-rgb-armv6.la \ libgdk-rgb-neon.la libgdk_rgb_mmx_la_SOURCES = gdkrgb-mmx.c @@ -187,6 +188,8 @@ libgdk_rgb_avx2_la_SOURCES = gdkrgb-avx2.c libgdk_rgb_avx2_la_CFLAGS = $(AVX2_CFLAGS) libgdk_rgb_altivec_la_SOURCES = gdkrgb-altivec.c libgdk_rgb_altivec_la_CFLAGS = $(ALTIVEC_CFLAGS) +libgdk_rgb_armv6_la_SOURCES = gdkrgb-armv6.c +libgdk_rgb_armv6_la_CFLAGS = $(ARMV6_CFLAGS) libgdk_rgb_neon_la_SOURCES = gdkrgb-neon.c libgdk_rgb_neon_la_CFLAGS = $(NEON_CFLAGS) diff --git a/gdk/gdkrgb-armv6.c b/gdk/gdkrgb-armv6.c new file mode 100644 index 000000000..5c32b4f4e --- /dev/null +++ b/gdk/gdkrgb-armv6.c @@ -0,0 +1,318 @@ +/* GDK - The GIMP Drawing Kit + * GdkRGB loops for the media instructions of ARMv6 (the ARM11 of the + * Raspberry Pi 1 and Zero), which has no NEON: two channels of a pixel + * 16 bits apart in one register, multiplied at once, with UXTB16 and + * UXTAB16 taking bytes apart and adding them in both halves; REV puts + * the bytes of a pixel in the other order. A pixel goes in and out as + * one word, not byte by byte. + * + * GDK_RGB_ARMV6_C builds the same loops with C for the instructions, + * to check them on other machines. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include "gdkrgbsimd.h" + +/* ARMv6 or later in ARM or Thumb-2 code, little endian */ +#if defined(__arm__) && !defined(__ARMEB__) && \ + (!defined(__thumb__) || defined(__thumb2__)) && \ + (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) || defined(__ARM_ARCH_6K__) || \ + defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) || defined(__ARM_ARCH_6T2__) || \ + (defined(__ARM_ARCH) && __ARM_ARCH >= 6)) +#define ARMV6_ASM 1 +#endif + +#if defined(ARMV6_ASM) || defined(GDK_RGB_ARMV6_C) + +#ifdef ARMV6_ASM + +/* bytes 0 and 2 in the two halves */ +static inline guint32 +uxtb16 (guint32 x) +{ + guint32 r; + __asm__ ("uxtb16 %0, %1" : "=r" (r) : "r" (x)); + return r; +} + +/* bytes 1 and 3 */ +static inline guint32 +uxtb16_ror8 (guint32 x) +{ + guint32 r; + __asm__ ("uxtb16 %0, %1, ror #8" : "=r" (r) : "r" (x)); + return r; +} + +/* @acc plus bytes 1 and 3 of @x, in each half */ +static inline guint32 +uxtab16_ror8 (guint32 acc, guint32 x) +{ + guint32 r; + __asm__ ("uxtab16 %0, %1, %2, ror #8" : "=r" (r) : "r" (acc), "r" (x)); + return r; +} + +static inline guint32 +rev (guint32 x) +{ + guint32 r; + __asm__ ("rev %0, %1" : "=r" (r) : "r" (x)); + return r; +} + +#else + +static inline guint32 uxtb16 (guint32 x) { return x & 0x00ff00ff; } +static inline guint32 uxtb16_ror8 (guint32 x) { return (x >> 8 | x << 24) & 0x00ff00ff; } +static inline guint32 +uxtab16_ror8 (guint32 acc, guint32 x) +{ + guint32 b = uxtb16_ror8 (x); + + return ((acc + b) & 0xffff) | ((acc & 0xffff0000) + (b & 0xffff0000)); +} +static inline guint32 +rev (guint32 x) +{ + return x >> 24 | (x >> 8 & 0xff00) | (x << 8 & 0xff0000) | x << 24; +} + +#endif + +/* A word of pixels, at an address of a whole word: rows of pixbufs + * start there, and the loops take words from the start. Rows that do + * not are left to the C code, as ARMv6 compilers read words byte by + * byte where they are not sure. */ +typedef guint32 __attribute__ ((may_alias)) word; + +#define ALIGNED(p) (((gsize) (p) & 3) == 0) + +static inline guint32 +load32 (const guchar *p) +{ + return *(const word *) p; +} + +/* t / 255 rounded, in both halves, for t = c * a + 0x80 (no carries + * between the halves: t stays below 65536) */ +static inline guint32 +div255 (guint32 t) +{ + return uxtb16_ror8 (uxtab16_ror8 (t, t)); +} + +/* Of each three RGB pixels: R G B R | G B R G | B R G B in three words */ + +static gint +rgb_to_x888 (guint32 *out, const guchar *rgb, gint n) +{ + gint i; + + if (!ALIGNED (rgb)) + return 0; + + for (i = 0; i + 4 <= n; i += 4, rgb += 12) + { + guint32 w0 = load32 (rgb), w1 = load32 (rgb + 4), w2 = load32 (rgb + 8); + + /* B G R x, reversed and moved down, is R << 16 | G << 8 | B */ + out[i] = (rev (w0) >> 8) | 0xff000000; + out[i + 1] = (rev ((w0 >> 24) | (w1 << 8)) >> 8) | 0xff000000; + out[i + 2] = (rev ((w1 >> 16) | (w2 << 16)) >> 8) | 0xff000000; + out[i + 3] = (rev (w2) & 0xffffff) | 0xff000000; + } + + return i; +} + +/* Lanes R | G << 8 | B << 16 to 565 or 555 */ +static inline guint32 +rgb16_of (guint32 v, const gint green_bits) +{ + if (green_bits == 6) + return ((v & 0xf8) << 8) | ((v >> 5) & 0x7e0) | ((v >> 19) & 0x1f); + else + return ((v & 0xf8) << 7) | ((v >> 6) & 0x3e0) | ((v >> 19) & 0x1f) | 0x8000; +} + +static inline gint +rgb_to_16 (guint16 *out, const guchar *rgb, gint n, const gint green_bits) +{ + guint32 *out32 = (guint32 *) out; + gint i; + + /* two pixels to a word of the output; the words of both at their + * places, or the C code does the row */ + if (!ALIGNED (rgb) || !ALIGNED (out)) + return 0; + + for (i = 0; i + 4 <= n; i += 4, rgb += 12, out32 += 2) + { + guint32 w0 = load32 (rgb), w1 = load32 (rgb + 4), w2 = load32 (rgb + 8); + + out32[0] = rgb16_of (w0, green_bits) | + (rgb16_of ((w0 >> 24) | (w1 << 8), green_bits) << 16); + out32[1] = rgb16_of ((w1 >> 16) | (w2 << 16), green_bits) | + (rgb16_of (w2 >> 8, green_bits) << 16); + } + + return i; +} + +static gint +rgb_to_565 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 6); +} + +static gint +rgb_to_555 (guint16 *out, const guchar *rgb, gint n) +{ + return rgb_to_16 (out, rgb, n, 5); +} + +/* c * a / 255 to the nearest for the channels of the RGBA word @w: + * red and blue together, green and alpha together */ +static gint +rgba_to_argb (guint32 *out, const guchar *rgba, gint n) +{ + gint i; + + if (!ALIGNED (rgba)) + return 0; + + for (i = 0; i < n; i++, rgba += 4) + { + guint32 w = load32 (rgba); + guint32 a = w >> 24; + guint32 rb = div255 (uxtb16 (w) * a + 0x00800080); /* R | B << 16 */ + guint32 g = div255 (uxtb16_ror8 (w) * a + 0x80) & 0xff; + + /* B | R << 16, which a rotation is */ + out[i] = (a << 24) | (g << 8) | (rb >> 16) | (rb << 16); + } + + return i; +} + +/* a * s + (255 - a) * d, rounded, for two channels at once */ +static inline guint32 +blend2 (guint32 s, guint32 d, guint32 a) +{ + return div255 (s * a + d * (255 - a) + 0x00800080); +} + +static gint +composite_x888 (guint32 *pixels, const guchar *rgba, gint n) +{ + gint i; + + if (!ALIGNED (rgba)) + return 0; + + for (i = 0; i < n; i++, rgba += 4) + { + guint32 w = load32 (rgba); + guint32 a = w >> 24; + guint32 d, rb, g; + + if (a == 0) + continue; + if (a == 255) + { + pixels[i] = (rev (w) >> 8) | 0xff000000; + continue; + } + + /* the pixel is B | G << 8 | R << 16: blue and red as in @w swapped */ + d = pixels[i]; + rb = blend2 (uxtb16 (w), ((d >> 16) & 0xff) | ((d & 0xff) << 16), a); + g = blend2 ((w >> 8) & 0xff, (d >> 8) & 0xff, a) & 0xff; + pixels[i] = 0xff000000 | ((rb & 0xff) << 16) | (g << 8) | (rb >> 16); + } + + return i; +} + +/* The bits of a channel repeated up to 8, as GdkRGB unpacks them */ +#define WIDEN5(c) (((c) << 3) | ((c) >> 2)) +#define WIDEN6(c) (((c) << 2) | ((c) >> 4)) + +static inline gint +composite_16 (guint16 *pixels, const guchar *rgba, gint n, const gint green_bits) +{ + const gint red_shift = 5 + green_bits; + gint i; + + if (!ALIGNED (rgba)) + return 0; + + for (i = 0; i < n; i++, rgba += 4) + { + guint32 w = load32 (rgba); + guint32 a = w >> 24; + guint32 d, dr, dg, db, rb, g, v; + + if (a == 0) + continue; + + d = pixels[i]; + dr = (d >> red_shift) & 0x1f; + dg = (d >> 5) & ((1 << green_bits) - 1); + db = d & 0x1f; + dr = WIDEN5 (dr); + dg = green_bits == 6 ? WIDEN6 (dg) : WIDEN5 (dg); + db = WIDEN5 (db); + + rb = blend2 (uxtb16 (w), dr | (db << 16), a); /* R | B << 16 */ + g = blend2 ((w >> 8) & 0xff, dg, a) & 0xff; + + v = (((rb & 0xff) >> 3) << red_shift) | ((g >> (8 - green_bits)) << 5) | (rb >> 19); + if (green_bits == 5) + v |= 0x8000; + pixels[i] = v; + } + + return i; +} + +static gint +composite_565 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 6); +} + +static gint +composite_555 (guint16 *pixels, const guchar *rgba, gint n) +{ + return composite_16 (pixels, rgba, n, 5); +} + +void +_gdk_rgb_simd_init_armv6 (GdkRgbSimd *simd) +{ + simd->name = "armv6"; + simd->rgb_to_x888 = rgb_to_x888; + simd->rgb_to_565 = rgb_to_565; + simd->rgb_to_555 = rgb_to_555; + simd->composite_x888 = composite_x888; + simd->composite_565 = composite_565; + simd->composite_555 = composite_555; + simd->rgba_to_argb = rgba_to_argb; +} + +#else + +void +_gdk_rgb_simd_init_armv6 (GdkRgbSimd *simd) +{ +} + +#endif diff --git a/gdk/gdkrgbsimd.c b/gdk/gdkrgbsimd.c index 8ffcba418..7e8c14e26 100644 --- a/gdk/gdkrgbsimd.c +++ b/gdk/gdkrgbsimd.c @@ -39,6 +39,7 @@ static const GdkRgbSimdSet all_sets[] = { "ssse3", _gdk_rgb_simd_init_ssse3 }, { "avx2", _gdk_rgb_simd_init_avx2 }, { "altivec", _gdk_rgb_simd_init_altivec }, + { "armv6", _gdk_rgb_simd_init_armv6 }, { "neon", _gdk_rgb_simd_init_neon }, }; @@ -148,6 +149,19 @@ cpu_has (const gchar *set) return strcmp (set, "neon") == 0; #elif defined(__arm__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) + if (strcmp (set, "armv6") == 0) + { +#if defined(__ARM_ARCH) && __ARM_ARCH >= 6 + return TRUE; /* what all of this is built for */ +#elif defined(HAVE_GETAUXVAL) + /* "v6l", "v7l", "v8l" */ + const gchar *platform = (const gchar *) getauxval (AT_PLATFORM); + + return platform && platform[0] == 'v' && atoi (platform + 1) >= 6; +#else + return FALSE; +#endif + } return strcmp (set, "neon") == 0 && (hwcap () & (1 << 12)) != 0; /* HWCAP_NEON */ #elif defined(__powerpc__) && (defined(HAVE_GETAUXVAL) || defined(HAVE_ELF_AUX_INFO)) diff --git a/gdk/gdkrgbsimd.h b/gdk/gdkrgbsimd.h index b590a81c3..ffaf5a687 100644 --- a/gdk/gdkrgbsimd.h +++ b/gdk/gdkrgbsimd.h @@ -69,6 +69,7 @@ void _gdk_rgb_simd_init_sse2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_ssse3 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_avx2 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_altivec (GdkRgbSimd *simd); +void _gdk_rgb_simd_init_armv6 (GdkRgbSimd *simd); void _gdk_rgb_simd_init_neon (GdkRgbSimd *simd); /* The kernels for this CPU, or none with GDK_DISABLE_SIMD set */ diff --git a/gdk/makefile.msc b/gdk/makefile.msc index d3276287a..f8785e818 100644 --- a/gdk/makefile.msc +++ b/gdk/makefile.msc @@ -98,6 +98,7 @@ gdk_OBJECTS = \ gdkrgb-ssse3.obj \ gdkrgb-avx2.obj \ gdkrgb-altivec.obj \ + gdkrgb-armv6.obj \ gdkrgb-neon.obj \ gdkscreen.obj \ gdkselection.obj \ From f50d9b18d6a7d5d1e66e2b89f0a6b76bc5204931 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 19:34:36 +0200 Subject: [PATCH 030/249] Smooth scrolling for high resolution wheels and touchpads --- configure.ac | 16 ++ docs/reference/gdk/gdk2-sections.txt | 2 + docs/reference/gtk/running.sgml | 9 + gdk/gdk.symbols | 2 + gdk/gdkevents.c | 58 ++++ gdk/gdkevents.h | 8 +- gdk/gdkinternals.h | 18 +- gdk/gdkwindow.c | 4 + gdk/quartz/gdkevents-quartz.c | 16 +- gdk/x11/Makefile.am | 1 + gdk/x11/gdkdisplay-x11.c | 3 + gdk/x11/gdkdisplay-x11.h | 4 + gdk/x11/gdkevents-x11.c | 32 +++ gdk/x11/gdkprivate-x11.h | 13 + gdk/x11/gdkscroll-x11.c | 398 +++++++++++++++++++++++++++ gdk/x11/gdkwindow-x11.c | 7 + gtk/gtkmain.c | 103 +++++++ gtk/gtkmenu.c | 2 + gtk/gtknotebook.c | 2 + gtk/gtkpathbar.c | 2 + gtk/gtkprivate.h | 4 + gtk/gtkrange.c | 27 +- gtk/gtkrange.h | 4 +- gtk/gtkscrolledwindow.c | 61 ++-- 24 files changed, 757 insertions(+), 39 deletions(-) create mode 100644 gdk/x11/gdkscroll-x11.c diff --git a/configure.ac b/configure.ac index 5d38c73ee..ddee74a62 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,10 @@ AC_ARG_ENABLE(xrandr, [AS_HELP_STRING([--enable-xrandr], [support XRandR extension if available [default=yes]])],, [enable_xrandr="yes"]) +AC_ARG_ENABLE(xinput2, + [AS_HELP_STRING([--enable-xinput2], + [smooth scrolling with XInput 2.1 if available [default=yes]])],, + [enable_xinput2="yes"]) AC_ARG_ENABLE(xfixes, [AS_HELP_STRING([--enable-xfixes], [support XFixes extension if available [default=yes]])],, @@ -1336,6 +1340,18 @@ if test "x$gdktarget" = "xx11"; then AM_CONDITIONAL(XINPUT_XFREE, test x$with_xinput = xxfree || test x$with_xinput = xyes) + # XInput 2.1 has the scroll valuators of high resolution wheels and + # touchpads; it is independent of the XInput 1 devices above + + if test "x$enable_xinput2" != "xno" && $PKG_CONFIG --exists "xi >= 1.5" ; then + AC_DEFINE(HAVE_XINPUT2, 1, [Have XInput 2.1 for smooth scrolling]) + + case " $X_PACKAGES " in + *" xi "*) ;; + *) X_PACKAGES="$X_PACKAGES xi" ;; + esac + fi + # Check for the RANDR extension if test "x$enable_xrandr" != "xno" && $PKG_CONFIG --exists "xrandr >= 1.2.99" ; then AC_DEFINE(HAVE_RANDR, 1, [Have the Xrandr extension library]) diff --git a/docs/reference/gdk/gdk2-sections.txt b/docs/reference/gdk/gdk2-sections.txt index 4987c31ee..cac4956d4 100644 --- a/docs/reference/gdk/gdk2-sections.txt +++ b/docs/reference/gdk/gdk2-sections.txt @@ -1174,6 +1174,8 @@ gdk_get_show_events gdk_set_show_events gdk_event_set_screen gdk_event_get_screen +gdk_event_get_scroll_deltas +gdk_event_get_pointer_emulated gdk_setting_get diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml index 83be66e5d..9c44b58cd 100644 --- a/docs/reference/gtk/running.sgml +++ b/docs/reference/gtk/running.sgml @@ -407,6 +407,15 @@ nevertheless. + + <envar>GDK_CORE_DEVICE_EVENTS</envar> + + + If set, GDK does not use XInput 2.1 and scrolls only by whole + wheel steps, as before smooth scrolling. + + + <envar>GDK_DISABLE_SIMD</envar>, <envar>GDK_RGB_SIMD</envar> diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index 7f553df52..6756d4759 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -45,7 +45,9 @@ gdk_event_get gdk_event_get_axis gdk_event_get_coords gdk_event_get_root_coords +gdk_event_get_pointer_emulated gdk_event_get_screen +gdk_event_get_scroll_deltas gdk_event_get_state gdk_event_get_time gdk_event_get_type G_GNUC_CONST diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index bd8598059..489f82ba8 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -465,6 +465,10 @@ gdk_event_copy (const GdkEvent *event) GdkEventPrivate *private = (GdkEventPrivate *)event; new_private->screen = private->screen; + new_private->flags |= private->flags & GDK_EVENT_POINTER_EMULATED; + if (event->any.type == GDK_SCROLL && + event->scroll.direction == GDK_SCROLL_SMOOTH) + new_private->u = private->u; } switch (event->any.type) @@ -1034,6 +1038,60 @@ gdk_event_get_screen (const GdkEvent *event) return NULL; } +/** + * gdk_event_get_scroll_deltas: + * @event: a #GdkEvent + * @delta_x: (out): return location for the steps to the right + * @delta_y: (out): return location for the steps down + * + * Gets how far a %GDK_SCROLL_SMOOTH event scrolls, in steps of a + * mouse wheel: high resolution wheels and touchpads give fractions. + * The same movement also arrives as ordinary scroll events, one per + * whole step, which gdk_event_get_pointer_emulated() tells apart. + * + * Return value: %TRUE if @event is a smooth scroll event + * + * Since: 2.24 + **/ +gboolean +gdk_event_get_scroll_deltas (const GdkEvent *event, + gdouble *delta_x, + gdouble *delta_y) +{ + const GdkEventPrivate *private = (const GdkEventPrivate *) event; + + if (!event || event->type != GDK_SCROLL || + event->scroll.direction != GDK_SCROLL_SMOOTH || + !gdk_event_is_allocated (event)) + return FALSE; + + if (delta_x) + *delta_x = private->u.delta.x; + if (delta_y) + *delta_y = private->u.delta.y; + + return TRUE; +} + +/** + * gdk_event_get_pointer_emulated: + * @event: a #GdkEvent + * + * Tells whether a scroll event of a whole wheel step repeats what a + * %GDK_SCROLL_SMOOTH event has already given; whoever handles the + * smooth events ignores these. + * + * Return value: %TRUE if the event is emulated + * + * Since: 2.24 + **/ +gboolean +gdk_event_get_pointer_emulated (GdkEvent *event) +{ + return event && gdk_event_is_allocated (event) && + (((GdkEventPrivate *) event)->flags & GDK_EVENT_POINTER_EMULATED) != 0; +} + /** * gdk_set_show_events: * @show_events: %TRUE to output event debugging information. diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 707700cbb..1904fe611 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -196,7 +196,8 @@ typedef enum GDK_SCROLL_UP, GDK_SCROLL_DOWN, GDK_SCROLL_LEFT, - GDK_SCROLL_RIGHT + GDK_SCROLL_RIGHT, + GDK_SCROLL_SMOOTH } GdkScrollDirection; /* Types of enter/leave notifications. @@ -549,6 +550,11 @@ void gdk_event_set_screen (GdkEvent *event, GdkScreen *screen); GdkScreen *gdk_event_get_screen (const GdkEvent *event); +gboolean gdk_event_get_scroll_deltas (const GdkEvent *event, + gdouble *delta_x, + gdouble *delta_y); +gboolean gdk_event_get_pointer_emulated (GdkEvent *event); + void gdk_set_show_events (gboolean show_events); gboolean gdk_get_show_events (void); diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 16806f2d2..c3049f163 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -163,7 +163,11 @@ typedef enum /* Following flag is set for events on the event queue during * translation and cleared afterwards. */ - GDK_EVENT_PENDING = 1 << 0 + GDK_EVENT_PENDING = 1 << 0, + + /* A scroll event from a wheel step that a smooth scroll event with + * the same time has already given */ + GDK_EVENT_POINTER_EMULATED = 1 << 1 } GdkEventFlags; struct _GdkEventPrivate @@ -171,7 +175,17 @@ struct _GdkEventPrivate GdkEvent event; guint flags; GdkScreen *screen; - gpointer windowing_data; + union + { + /* the NSEvent on Quartz */ + gpointer windowing_data; + /* the steps of a GDK_SCROLL_SMOOTH event on X11 */ + struct + { + gfloat x; + gfloat y; + } delta; + } u; }; /* Tracks information about the pointer grab on this display */ diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index aa5e2fe80..a9f473c88 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -10836,6 +10836,10 @@ proxy_button_event (GdkEvent *source_event, event->scroll.y_root = source_event->scroll.y_root; event->scroll.state = state; event->scroll.device = source_event->scroll.device; + ((GdkEventPrivate *) event)->flags |= + ((GdkEventPrivate *) source_event)->flags & GDK_EVENT_POINTER_EMULATED; + if (source_event->scroll.direction == GDK_SCROLL_SMOOTH) + ((GdkEventPrivate *) event)->u = ((GdkEventPrivate *) source_event)->u; return TRUE; default: diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 9d62ec55a..cf5e1d1f1 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -62,7 +62,7 @@ NSEvent * gdk_quartz_event_get_nsevent (GdkEvent *event) { /* FIXME: If the event here is unallocated, we crash. */ - return ((GdkEventPrivate *) event)->windowing_data; + return ((GdkEventPrivate *) event)->u.windowing_data; } static void @@ -1015,7 +1015,7 @@ fill_key_event (GdkWindow *window, gunichar c = 0; priv = (GdkEventPrivate *) event; - priv->windowing_data = [nsevent retain]; + priv->u.windowing_data = [nsevent retain]; event->any.type = type; event->key.window = window; @@ -1738,10 +1738,10 @@ _gdk_windowing_event_data_copy (const GdkEvent *src, GdkEventPrivate *priv_src = (GdkEventPrivate *) src; GdkEventPrivate *priv_dst = (GdkEventPrivate *) dst; - if (priv_src->windowing_data) + if (priv_src->u.windowing_data) { - priv_dst->windowing_data = priv_src->windowing_data; - [(NSEvent *)priv_dst->windowing_data retain]; + priv_dst->u.windowing_data = priv_src->u.windowing_data; + [(NSEvent *)priv_dst->u.windowing_data retain]; } } @@ -1750,9 +1750,9 @@ _gdk_windowing_event_data_free (GdkEvent *event) { GdkEventPrivate *priv = (GdkEventPrivate *) event; - if (priv->windowing_data) + if (priv->u.windowing_data) { - [(NSEvent *)priv->windowing_data release]; - priv->windowing_data = NULL; + [(NSEvent *)priv->u.windowing_data release]; + priv->u.windowing_data = NULL; } } diff --git a/gdk/x11/Makefile.am b/gdk/x11/Makefile.am index 1169821f8..43574f1a5 100644 --- a/gdk/x11/Makefile.am +++ b/gdk/x11/Makefile.am @@ -42,6 +42,7 @@ libgdk_x11_la_SOURCES = \ gdkpixmap-x11.h \ gdkproperty-x11.c \ gdkscreen-x11.c \ + gdkscroll-x11.c \ gdkscreen-x11.h \ gdkselection-x11.c \ gdkspawn-x11.c \ diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 4e46981af..dffb376e7 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -235,6 +235,8 @@ gdk_display_open (const gchar *display_name) display_x11->have_render = GDK_UNKNOWN; + _gdk_x11_scroll_init (display); + #ifdef HAVE_XFIXES if (XFixesQueryExtension (display_x11->xdisplay, &display_x11->xfixes_event_base, @@ -855,6 +857,7 @@ gdk_display_x11_finalize (GObject *object) } _gdk_x11_cursor_display_finalize (GDK_DISPLAY_OBJECT(display_x11)); + _gdk_x11_scroll_finalize (GDK_DISPLAY_OBJECT(display_x11)); /* Atom Hashtable */ g_hash_table_destroy (display_x11->atom_from_virtual); diff --git a/gdk/x11/gdkdisplay-x11.h b/gdk/x11/gdkdisplay-x11.h index 45f5834df..d9f20a2bf 100644 --- a/gdk/x11/gdkdisplay-x11.h +++ b/gdk/x11/gdkdisplay-x11.h @@ -37,6 +37,7 @@ G_BEGIN_DECLS typedef struct _GdkDisplayX11 GdkDisplayX11; typedef struct _GdkDisplayX11Class GdkDisplayX11Class; +typedef struct _GdkX11Scroll GdkX11Scroll; #define GDK_TYPE_DISPLAY_X11 (_gdk_display_x11_get_type()) #define GDK_DISPLAY_X11(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_DISPLAY_X11, GdkDisplayX11)) @@ -155,6 +156,9 @@ struct _GdkDisplayX11 /* The offscreen window that has the pointer in it (if any) */ GdkWindow *active_offscreen_window; + + /* Smooth scrolling with XInput 2.1, NULL without */ + GdkX11Scroll *scroll; }; struct _GdkDisplayX11Class diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index b5d3df4fd..3a859da1b 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -976,6 +976,16 @@ gdk_event_translate (GdkDisplay *display, } } + /* XInput 2 motion stands for the core motion it hides */ + if (xevent->type == GenericEvent && display_x11->scroll) + { + XEvent motion; + + if (_gdk_x11_scroll_translate (display, xevent, &motion)) + return motion.type != 0 && !XFilterEvent (&motion, None) && + gdk_event_translate (display, event, &motion, return_exposes); + } + /* Find the GdkWindow that this event relates to. * Basically this means substructure events * are reported same as structure events @@ -1214,6 +1224,10 @@ gdk_event_translate (GdkDisplay *display, event->scroll.state = (GdkModifierType) xevent->xbutton.state; event->scroll.device = display->core_pointer; + if (display_x11->scroll && + _gdk_x11_scroll_is_emulated (display, xevent->xbutton.time)) + ((GdkEventPrivate *) event)->flags |= GDK_EVENT_POINTER_EMULATED; + if (!set_screen_from_root (display, event, xevent->xbutton.root)) { return_val = FALSE; @@ -1223,6 +1237,10 @@ gdk_event_translate (GdkDisplay *display, break; default: + /* an implicit core grab, without XI_Motion, begins */ + if (display_x11->scroll) + _gdk_x11_scroll_reset (display, FALSE); + event->button.type = GDK_BUTTON_PRESS; event->button.window = window; event->button.time = xevent->xbutton.time; @@ -1268,6 +1286,9 @@ gdk_event_translate (GdkDisplay *display, break; } + if (display_x11->scroll) + _gdk_x11_scroll_reset (display, FALSE); + event->button.type = GDK_BUTTON_RELEASE; event->button.window = window; event->button.time = xevent->xbutton.time; @@ -1338,6 +1359,11 @@ gdk_event_translate (GdkDisplay *display, break; } + if (display_x11->scroll) + _gdk_x11_scroll_reset (display, + xevent->xcrossing.detail != NotifyInferior && + window_private->window_type != GDK_WINDOW_CHILD); + /* Handle focusing (in the case where no window manager is running */ if (toplevel && xevent->xcrossing.detail != NotifyInferior) { @@ -2367,6 +2393,12 @@ _gdk_events_queue (GdkDisplay *display) g_list_free_1 (node); gdk_event_free (event); } + + /* the smooth scroll of an XI_Motion comes after its motion */ + if (xevent.type == GenericEvent && GDK_DISPLAY_X11 (display)->scroll && + (event = _gdk_x11_scroll_take_pending (display))) + _gdk_windowing_got_event (display, _gdk_event_queue_append (display, event), + event, xevent.xany.serial); } } diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h index a7754b024..b4c82d0e4 100644 --- a/gdk/x11/gdkprivate-x11.h +++ b/gdk/x11/gdkprivate-x11.h @@ -195,6 +195,19 @@ gboolean _gdk_x11_get_xft_setting (GdkScreen *screen, const gchar *name, GValue *value); +void _gdk_x11_scroll_init (GdkDisplay *display); +void _gdk_x11_scroll_finalize (GdkDisplay *display); +void _gdk_x11_scroll_select (GdkWindow *window, + long xevent_mask); +void _gdk_x11_scroll_reset (GdkDisplay *display, + gboolean forget_device); +gboolean _gdk_x11_scroll_is_emulated (GdkDisplay *display, + guint32 time); +gboolean _gdk_x11_scroll_translate (GdkDisplay *display, + XEvent *xevent, + XEvent *motion); +GdkEvent *_gdk_x11_scroll_take_pending (GdkDisplay *display); + extern GdkDrawableClass _gdk_x11_drawable_class; extern gboolean _gdk_use_xshm; extern const int _gdk_nenvent_masks; diff --git a/gdk/x11/gdkscroll-x11.c b/gdk/x11/gdkscroll-x11.c new file mode 100644 index 000000000..79a23f3e3 --- /dev/null +++ b/gdk/x11/gdkscroll-x11.c @@ -0,0 +1,398 @@ +/* GDK - The GIMP Drawing Kit + * + * Smooth scrolling from the scroll valuators of XInput 2.1 + * + * High resolution wheels and touchpads move scroll valuators in small + * amounts; X makes the old wheel buttons 4 to 7 of them, one press a + * whole step. Selecting XI_Motion on a window brings the valuators, + * but no more core motion events there, so those are made here from + * the XI_Motion events, and everything else stays core events. + * + * Smooth scroll events are only made for the event handler of GTK+, + * which knows who can take them; a program with a handler of its own + * sees the events it always saw. Nothing is kept per window. The + * display has one small record, made only when the server can do this. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include + +#include "gdkx.h" +#include "gdkprivate-x11.h" +#include "gdkdisplay-x11.h" +#include "gdkinternals.h" +#include "gdkalias.h" + +#ifdef HAVE_XINPUT2 + +#include + +typedef struct +{ + gint number; /* the valuator, -1 for none */ + gdouble increment; /* how much of it a step of the wheel is */ + gdouble last; + gboolean valid; +} ScrollAxis; + +struct _GdkX11Scroll +{ + gint opcode; + gint sourceid; /* the device the axes belong to, 0 for none */ + ScrollAxis axis[2]; /* horizontal and vertical */ + guint32 smooth_time; /* when the last smooth event came */ + gboolean smooth_valid; + GdkEvent *pending; /* the smooth event of the last XI_Motion */ +}; + +void +_gdk_x11_scroll_init (GdkDisplay *display) +{ + GdkDisplayX11 *display_x11 = GDK_DISPLAY_X11 (display); + int opcode, event, error, major = 2, minor = 2; + Status status; + + if (g_getenv ("GDK_CORE_DEVICE_EVENTS") || + !XQueryExtension (display_x11->xdisplay, "XInputExtension", &opcode, &event, &error)) + return; + + /* Clients that ask for 2.2 or more may ask again with another + * version, which other libraries in the program might */ + gdk_error_trap_push (); + status = XIQueryVersion (display_x11->xdisplay, &major, &minor); + if (gdk_error_trap_pop () || status != Success || major * 1000 + minor < 2001) + return; + + display_x11->scroll = g_new0 (GdkX11Scroll, 1); + display_x11->scroll->opcode = opcode; + display_x11->scroll->axis[0].number = -1; + display_x11->scroll->axis[1].number = -1; +} + +void +_gdk_x11_scroll_finalize (GdkDisplay *display) +{ + GdkX11Scroll *scroll = GDK_DISPLAY_X11 (display)->scroll; + + if (scroll && scroll->pending) + gdk_event_free (scroll->pending); + g_free (scroll); +} + +/* XI_Motion where the window takes core motion, without hints. The + * selection is for the master pointers, so XInput 1 devices stay. */ +void +_gdk_x11_scroll_select (GdkWindow *window, + long xevent_mask) +{ + unsigned char bits[XIMaskLen (XI_Motion)] = { 0 }; + XIEventMask mask; + + if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_ROOT || + GDK_WINDOW_TYPE (window) == GDK_WINDOW_FOREIGN) + return; + + if ((xevent_mask & (PointerMotionMask | PointerMotionHintMask)) == PointerMotionMask) + XISetMask (bits, XI_Motion); + + mask.deviceid = XIAllMasterDevices; + mask.mask_len = sizeof bits; + mask.mask = bits; + XISelectEvents (GDK_WINDOW_XDISPLAY (window), GDK_WINDOW_XID (window), &mask, 1); +} + +/* The valuators may have moved where no XI_Motion came here: outside, + * in other programs' windows inside ours, or under a core grab, which + * gets core events only. The next scroll starts afresh; when the + * pointer comes from outside, maybe with another device, the device + * is looked at again as well. */ +void +_gdk_x11_scroll_reset (GdkDisplay *display, + gboolean forget_device) +{ + GdkX11Scroll *scroll = GDK_DISPLAY_X11 (display)->scroll; + + scroll->axis[0].valid = FALSE; + scroll->axis[1].valid = FALSE; + if (forget_device) + scroll->sourceid = 0; +} + +/* A core press of buttons 4 to 7: was it made of a smooth event? */ +gboolean +_gdk_x11_scroll_is_emulated (GdkDisplay *display, + guint32 time) +{ + GdkX11Scroll *scroll = GDK_DISPLAY_X11 (display)->scroll; + + return scroll->smooth_valid && scroll->smooth_time == time; +} + +GdkEvent * +_gdk_x11_scroll_take_pending (GdkDisplay *display) +{ + GdkX11Scroll *scroll = GDK_DISPLAY_X11 (display)->scroll; + GdkEvent *event = scroll->pending; + + scroll->pending = NULL; + + return event; +} + +static void +find_axes (Display *xdisplay, + GdkX11Scroll *scroll, + gint sourceid) +{ + XIDeviceInfo *info; + gint n, i; + + scroll->sourceid = sourceid; + scroll->axis[0].number = -1; + scroll->axis[1].number = -1; + + gdk_error_trap_push (); + info = XIQueryDevice (xdisplay, sourceid, &n); + gdk_error_trap_pop (); + if (!info) + return; + + for (i = 0; i < info->num_classes; i++) + { + XIScrollClassInfo *class = (XIScrollClassInfo *) info->classes[i]; + ScrollAxis *axis; + + if (class->type != XIScrollClass || class->increment == 0) + continue; + + axis = &scroll->axis[class->scroll_type == XIScrollTypeVertical]; + axis->number = class->number; + axis->increment = class->increment; + axis->valid = FALSE; + } + + XIFreeDeviceInfo (info); +} + +static guint +core_state (XIDeviceEvent *ev) +{ + guint state = (ev->mods.effective & 0xff) | ((ev->group.effective & 0x3) << 13); + gint b; + + for (b = 1; b <= 5 && b < ev->buttons.mask_len * 8; b++) + if (XIMaskIsSet (ev->buttons.mask, b)) + state |= Button1Mask << (b - 1); + + return state; +} + +/* Only GTK+'s own handler decides who gets smooth events; libgtk puts + * it here when it sets it */ +static gboolean +handler_takes_smooth (void) +{ + static GQuark quark; + + if (!quark) + quark = g_quark_from_static_string ("gdk-smooth-scroll-handler"); + + return _gdk_event_func != NULL && + (gpointer) _gdk_event_func == g_object_get_qdata (G_OBJECT (gdk_display_manager_get ()), quark); +} + +static GdkEvent * +smooth_event (GdkDisplay *display, + XIDeviceEvent *ev, + gdouble dx, + gdouble dy) +{ + GdkWindow *window; + GdkScreen *screen; + GdkEventPrivate *private; + GdkEvent *event; + + /* Over a window inside that took no XI_Motion, such as another + * program's, the core steps go there and the smooth event would + * go past it */ + if (ev->child != None || !handler_takes_smooth ()) + return NULL; + + window = gdk_window_lookup_for_display (display, ev->event); + screen = _gdk_x11_display_screen_for_xrootwin (display, ev->root); + if (!window || !GDK_IS_WINDOW (window) || GDK_WINDOW_DESTROYED (window) || !screen) + return NULL; + + event = gdk_event_new (GDK_SCROLL); + event->scroll.window = g_object_ref (window); + event->scroll.send_event = ev->send_event ? TRUE : FALSE; + event->scroll.time = ev->time; + event->scroll.x = ev->event_x; + event->scroll.y = ev->event_y; + event->scroll.x_root = ev->root_x; + event->scroll.y_root = ev->root_y; + event->scroll.state = core_state (ev); + event->scroll.direction = GDK_SCROLL_SMOOTH; + event->scroll.device = display->core_pointer; + gdk_event_set_screen (event, screen); + + private = (GdkEventPrivate *) event; + private->u.delta.x = dx; + private->u.delta.y = dy; + + return event; +} + +/* An XI_Motion becomes the core motion event that the window would + * have had, in @motion (type 0 for none), and maybe a smooth scroll + * event, which _gdk_x11_scroll_take_pending() then gives. + * Returns FALSE for other events. */ +gboolean +_gdk_x11_scroll_translate (GdkDisplay *display, + XEvent *xevent, + XEvent *motion) +{ + GdkX11Scroll *scroll = GDK_DISPLAY_X11 (display)->scroll; + XGenericEventCookie *cookie = &xevent->xcookie; + XIDeviceEvent *ev; + gdouble delta[2] = { 0, 0 }; + gboolean scrolled = FALSE, claimed; + gint i, k; + + motion->type = 0; + + if (cookie->extension != scroll->opcode || cookie->evtype != XI_Motion) + return FALSE; + + /* a filter of the program may have taken the data already */ + claimed = XGetEventData (cookie->display, cookie); + if (!cookie->data) + return FALSE; + + ev = cookie->data; + + /* Scroll valuators: anything past x and y on a new device */ + if (ev->sourceid != scroll->sourceid) + { + for (i = 2; i < ev->valuators.mask_len * 8; i++) + if (XIMaskIsSet (ev->valuators.mask, i)) + break; + if (i < ev->valuators.mask_len * 8) + find_axes (cookie->display, scroll, ev->sourceid); + } + + if (ev->sourceid == scroll->sourceid) + for (i = 0, k = 0; i < ev->valuators.mask_len * 8; i++) + { + gint a; + + if (!XIMaskIsSet (ev->valuators.mask, i)) + continue; + + for (a = 0; a < 2; a++) + if (scroll->axis[a].number == i) + { + gdouble value = ev->valuators.values[k]; + + /* a scroll that old wheel buttons made is already there */ + if (scroll->axis[a].valid && !(ev->flags & XIPointerEmulated)) + delta[a] = (value - scroll->axis[a].last) / scroll->axis[a].increment; + scrolled |= delta[a] != 0; + scroll->axis[a].last = value; + scroll->axis[a].valid = TRUE; + } + k++; + } + + /* X makes core motion of the events that have x or y */ + if (ev->valuators.mask_len > 0 && (ev->valuators.mask[0] & 3)) + { + XMotionEvent *m = &motion->xmotion; + + m->type = MotionNotify; + m->serial = ev->serial; + m->send_event = ev->send_event; + m->display = ev->display; + m->window = ev->event; + m->root = ev->root; + m->subwindow = ev->child; + m->time = ev->time; + m->x = floor (ev->event_x); + m->y = floor (ev->event_y); + m->x_root = floor (ev->root_x); + m->y_root = floor (ev->root_y); + m->state = core_state (ev); + m->is_hint = NotifyNormal; + m->same_screen = True; + } + + if (scrolled) + { + if (scroll->pending) + gdk_event_free (scroll->pending); + scroll->pending = smooth_event (display, ev, delta[0], delta[1]); + if (scroll->pending) + { + scroll->smooth_time = ev->time; + scroll->smooth_valid = TRUE; + } + } + + if (claimed) + XFreeEventData (cookie->display, cookie); + + return TRUE; +} + +#else /* !HAVE_XINPUT2 */ + +void +_gdk_x11_scroll_init (GdkDisplay *display) +{ +} + +void +_gdk_x11_scroll_finalize (GdkDisplay *display) +{ +} + +void +_gdk_x11_scroll_select (GdkWindow *window, + long xevent_mask) +{ +} + +void +_gdk_x11_scroll_reset (GdkDisplay *display, + gboolean forget_device) +{ +} + +gboolean +_gdk_x11_scroll_is_emulated (GdkDisplay *display, + guint32 time) +{ + return FALSE; +} + +GdkEvent * +_gdk_x11_scroll_take_pending (GdkDisplay *display) +{ + return NULL; +} + +gboolean +_gdk_x11_scroll_translate (GdkDisplay *display, + XEvent *xevent, + XEvent *motion) +{ + return FALSE; +} + +#endif diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 4421273f6..89e86c8f8 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -795,6 +795,10 @@ _gdk_window_impl_new (GdkWindow *window, 0, private->depth, class, xvisual, xattributes_mask, &xattributes); + if (GDK_DISPLAY_X11 (screen_x11->display)->scroll && + (xattributes.event_mask & PointerMotionMask)) + _gdk_x11_scroll_select (window, xattributes.event_mask); + g_object_ref (window); _gdk_xid_table_insert (screen_x11->display, &draw_impl->xid, window); @@ -3445,6 +3449,9 @@ gdk_window_x11_set_events (GdkWindow *window, XSelectInput (GDK_WINDOW_XDISPLAY (window), GDK_WINDOW_XID (window), xevent_mask); + + if (GDK_DISPLAY_X11 (GDK_WINDOW_DISPLAY (window))->scroll) + _gdk_x11_scroll_select (window, xevent_mask); } } diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 9124f001c..0609d86f2 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -63,6 +63,13 @@ #include "gtkwindow.h" #include "gtktooltip.h" #include "gtkdebug.h" +#include "gtkrange.h" +#include "gtkscrollbar.h" +#include "gtkscrolledwindow.h" +#include "gtktextview.h" +#ifdef GDK_WINDOWING_X11 +#include "gtksocket.h" +#endif #include "gtkalias.h" #include "gtkmenu.h" #include "gdk/gdkkeysyms.h" @@ -678,6 +685,10 @@ do_pre_parse_initialization (int *argc, gdk_pre_parse_libgtk_only (); gdk_event_handler_set ((GdkEventFunc)gtk_main_do_event, NULL, NULL); + /* GDK makes smooth scroll events only for this handler, which knows + * who can take them, not for one a program puts in its place */ + g_object_set_data (G_OBJECT (gdk_display_manager_get ()), + "gdk-smooth-scroll-handler", gtk_main_do_event); #ifdef G_ENABLE_DEBUG env_string = g_getenv ("GTK_DEBUG"); @@ -1448,6 +1459,94 @@ rewrite_event_for_window (GdkEvent *event, * are delivered normally, otherwise, the event is delivered in terms of the * grab window. */ +/* Smooth scroll events go where GTK+ itself scrolls: to scrollbars + * and scrolled windows that nobody else hears a scroll event before. + * Everything else, most of all what programs do with scroll events, + * keeps the whole steps of the wheel, which X sends as well. */ +static gboolean +smooth_scroll_wanted (GtkWidget *widget, + gdouble dx, + gdouble dy) +{ + static guint event_id, scroll_event_id, event_after_id; + static gboolean (*range_scroll) (GtkWidget *, GdkEventScroll *); + static gboolean (*scrolled_window_scroll) (GtkWidget *, GdkEventScroll *); + static gboolean (*text_view_event) (GtkWidget *, GdkEvent *); + + if (!event_id) + { + event_id = g_signal_lookup ("event", GTK_TYPE_WIDGET); + scroll_event_id = g_signal_lookup ("scroll-event", GTK_TYPE_WIDGET); + event_after_id = g_signal_lookup ("event-after", GTK_TYPE_WIDGET); + range_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_RANGE))->scroll_event; + scrolled_window_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_SCROLLED_WINDOW))->scroll_event; + /* only for the "event" of text tags */ + text_view_event = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_TEXT_VIEW))->event; + } + +#ifdef GDK_WINDOWING_X11 + /* the window of another program inside, which hears the steps */ + if (GTK_IS_SOCKET (widget)) + return FALSE; +#endif + + for (; widget; widget = widget->parent) + { + GtkWidgetClass *class = GTK_WIDGET_GET_CLASS (widget); + + if (!gtk_widget_is_sensitive (widget)) + continue; + + if (g_signal_has_handler_pending (widget, event_id, 0, FALSE) || + g_signal_has_handler_pending (widget, scroll_event_id, 0, FALSE) || + g_signal_has_handler_pending (widget, event_after_id, 0, FALSE) || + (class->event && class->event != text_view_event)) + return FALSE; + + if (class->scroll_event == scrolled_window_scroll) + { + if (_gtk_scrolled_window_takes_smooth (widget, dx, dy)) + return TRUE; + } + else if (class->scroll_event) + /* scales keep their steps, which their digits may round */ + return class->scroll_event == range_scroll && GTK_IS_SCROLLBAR (widget); + } + + return FALSE; +} + +/* Whether to pass on a scroll event: either the smooth ones or the + * whole steps that X made of them, by direction */ +static gboolean +scroll_event_wanted (GtkWidget *widget, + GdkEvent *event) +{ + static guint32 smooth_time; + static guint taken; /* 1 across, 2 up and down */ + gdouble dx, dy; + + if (event->scroll.direction != GDK_SCROLL_SMOOTH) + { + guint axis = event->scroll.direction <= GDK_SCROLL_DOWN ? 2 : 1; + + return !(taken & axis) || event->scroll.time != smooth_time || + !gdk_event_get_pointer_emulated (event); + } + + if (event->scroll.time != smooth_time) + taken = 0; + smooth_time = event->scroll.time; + + if (!gdk_event_get_scroll_deltas (event, &dx, &dy) || + !smooth_scroll_wanted (widget, dx, dy)) + return FALSE; + + taken |= (dx != 0 ? 1 : 0) | (dy != 0 ? 2 : 0); + + return TRUE; +} + static GdkEvent * rewrite_event_for_grabs (GdkEvent *event) { @@ -1650,6 +1749,10 @@ gtk_main_do_event (GdkEvent *event) break; case GDK_SCROLL: + if (scroll_event_wanted (grab_widget, event)) + gtk_propagate_event (grab_widget, event); + break; + case GDK_BUTTON_PRESS: case GDK_2BUTTON_PRESS: case GDK_3BUTTON_PRESS: diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index 08de60aea..29a997606 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -3523,6 +3523,8 @@ gtk_menu_scroll (GtkWidget *widget, case GDK_SCROLL_UP: gtk_menu_scroll_by (menu, - MENU_SCROLL_STEP2); break; + default: + break; } return TRUE; diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 1b514ca5f..fcc4bf4ff 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2641,6 +2641,8 @@ gtk_notebook_scroll (GtkWidget *widget, case GDK_SCROLL_UP: gtk_notebook_prev_page (notebook); break; + default: + break; } return TRUE; diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index fc9da8acc..67fb78abc 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -698,6 +698,8 @@ gtk_path_bar_scroll (GtkWidget *widget, case GDK_SCROLL_UP: gtk_path_bar_scroll_up (GTK_PATH_BAR (widget)); break; + default: + break; } return TRUE; diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index cc1b50dfa..e00530630 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -186,6 +186,10 @@ gboolean _gtk_fnmatch (const char *pattern, gboolean _gtk_button_event_triggers_context_menu (GdkEventButton *event); +gboolean _gtk_scrolled_window_takes_smooth (GtkWidget *widget, + gdouble dx, + gdouble dy); + gboolean _gtk_translate_keyboard_accel_state (GdkKeymap *keymap, guint hardware_keycode, GdkModifierType state, diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index a38ea51b8..73cd6c679 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -2560,28 +2560,39 @@ gtk_range_button_release (GtkWidget *widget, /** * _gtk_range_get_wheel_delta: * @range: a #GtkRange - * @direction: A #GdkScrollDirection + * @event: the scroll event * - * Returns a good step value for the mouse wheel. + * Returns a good step value for the mouse wheel; a smooth scroll moves + * by its fraction of that, a horizontal range by the steps to the right + * where there are some. * * Return value: A good step value for the mouse wheel. * * Since: 2.4 **/ gdouble -_gtk_range_get_wheel_delta (GtkRange *range, - GdkScrollDirection direction) +_gtk_range_get_wheel_delta (GtkRange *range, + GdkEventScroll *event) { GtkAdjustment *adj = range->adjustment; - gdouble delta; + gdouble delta, dx, dy; if (GTK_IS_SCROLLBAR (range)) delta = pow (adj->page_size, 2.0 / 3.0); else delta = adj->step_increment * 2; - if (direction == GDK_SCROLL_UP || - direction == GDK_SCROLL_LEFT) + if (gdk_event_get_scroll_deltas ((GdkEvent *) event, &dx, &dy)) + { + if (range->orientation == GTK_ORIENTATION_HORIZONTAL) + delta *= dx != 0 ? dx : dy; + else + delta *= dy != 0 ? dy : dx; + } + else if (event->direction == GDK_SCROLL_SMOOTH) + delta = 0; + else if (event->direction == GDK_SCROLL_UP || + event->direction == GDK_SCROLL_LEFT) delta = - delta; if (range->inverted) @@ -2602,7 +2613,7 @@ gtk_range_scroll_event (GtkWidget *widget, gdouble delta; gboolean handled; - delta = _gtk_range_get_wheel_delta (range, event->direction); + delta = _gtk_range_get_wheel_delta (range, event); g_signal_emit (range, signals[CHANGE_VALUE], 0, GTK_SCROLL_JUMP, adj->value + delta, diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index e1e5034f3..398f2c56c 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -199,8 +199,8 @@ gint gtk_range_get_round_digits (GtkRange *range /* internal API */ -gdouble _gtk_range_get_wheel_delta (GtkRange *range, - GdkScrollDirection direction); +gdouble _gtk_range_get_wheel_delta (GtkRange *range, + GdkEventScroll *event); void _gtk_range_set_stop_values (GtkRange *range, gdouble *values, diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index a836953b3..8d7a4858d 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1559,35 +1559,60 @@ gtk_scrolled_window_size_allocate (GtkWidget *widget, gtk_widget_hide (scrolled_window->vscrollbar); } +static gboolean +scroll_range (GtkWidget *range, + GdkEventScroll *event) +{ + GtkAdjustment *adj; + + if (!range || !gtk_widget_get_visible (range)) + return FALSE; + + adj = GTK_RANGE (range)->adjustment; + gtk_adjustment_set_value (adj, CLAMP (adj->value + _gtk_range_get_wheel_delta (GTK_RANGE (range), event), + adj->lower, adj->upper - adj->page_size)); + + return TRUE; +} + static gboolean gtk_scrolled_window_scroll_event (GtkWidget *widget, GdkEventScroll *event) { - GtkWidget *range; + GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); + gdouble dx, dy; + gboolean handled; g_return_val_if_fail (GTK_IS_SCROLLED_WINDOW (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); - if (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN) - range = GTK_SCROLLED_WINDOW (widget)->vscrollbar; - else - range = GTK_SCROLLED_WINDOW (widget)->hscrollbar; - - if (range && gtk_widget_get_visible (range)) + if (!gdk_event_get_scroll_deltas ((GdkEvent *) event, &dx, &dy)) { - GtkAdjustment *adj = GTK_RANGE (range)->adjustment; - gdouble delta, new_value; - - delta = _gtk_range_get_wheel_delta (GTK_RANGE (range), event->direction); - - new_value = CLAMP (adj->value + delta, adj->lower, adj->upper - adj->page_size); - - gtk_adjustment_set_value (adj, new_value); - - return TRUE; + if (event->direction == GDK_SCROLL_SMOOTH) + return FALSE; + dy = event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN; + dx = !dy; } - return FALSE; + handled = dy != 0 && scroll_range (scrolled_window->vscrollbar, event); + if (dx != 0) + handled |= scroll_range (scrolled_window->hscrollbar, event); + + return handled; +} + +/* Whether a smooth scroll by @dx, @dy steps moves something */ +gboolean +_gtk_scrolled_window_takes_smooth (GtkWidget *widget, + gdouble dx, + gdouble dy) +{ + GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); + + return (dy != 0 && scrolled_window->vscrollbar && + gtk_widget_get_visible (scrolled_window->vscrollbar)) || + (dx != 0 && scrolled_window->hscrollbar && + gtk_widget_get_visible (scrolled_window->hscrollbar)); } static gboolean From bd5a82428e58094e911df4c070a5827dce5f20a4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 22:01:00 +0200 Subject: [PATCH 031/249] Smooth scrolling on Windows and macOS --- gdk/gdkevents.c | 116 +++++++++++++++++++++++++++++++++- gdk/gdkinternals.h | 33 +++++++--- gdk/gdkwindow.c | 2 +- gdk/quartz/gdkevents-quartz.c | 65 +++++++++++-------- gdk/win32/gdkevents-win32.c | 47 ++++++++------ gdk/x11/gdkscroll-x11.c | 31 ++------- gtk/gtkmain.c | 39 ++++++++---- gtk/gtkprivate.h | 9 ++- gtk/gtkrange.c | 87 ++++++++++++++++++------- gtk/gtkrange.h | 2 + gtk/gtkscrolledwindow.c | 64 ++++++++++--------- 11 files changed, 340 insertions(+), 155 deletions(-) diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 489f82ba8..615c71ce0 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -468,7 +468,7 @@ gdk_event_copy (const GdkEvent *event) new_private->flags |= private->flags & GDK_EVENT_POINTER_EMULATED; if (event->any.type == GDK_SCROLL && event->scroll.direction == GDK_SCROLL_SMOOTH) - new_private->u = private->u; + new_private->delta = private->delta; } switch (event->any.type) @@ -1046,6 +1046,7 @@ gdk_event_get_screen (const GdkEvent *event) * * Gets how far a %GDK_SCROLL_SMOOTH event scrolls, in steps of a * mouse wheel: high resolution wheels and touchpads give fractions. + * On Quartz, trackpads give pixels, as in GTK+ 3. * The same movement also arrives as ordinary scroll events, one per * whole step, which gdk_event_get_pointer_emulated() tells apart. * @@ -1066,9 +1067,9 @@ gdk_event_get_scroll_deltas (const GdkEvent *event, return FALSE; if (delta_x) - *delta_x = private->u.delta.x; + *delta_x = private->delta.x; if (delta_y) - *delta_y = private->u.delta.y; + *delta_y = private->delta.y; return TRUE; } @@ -1092,6 +1093,115 @@ gdk_event_get_pointer_emulated (GdkEvent *event) (((GdkEventPrivate *) event)->flags & GDK_EVENT_POINTER_EMULATED) != 0; } +/* GDK makes smooth scroll events only for GTK+'s event handler, which + * knows who can take them; libgtk leaves it here when it sets it. A + * program with a handler of its own sees what it always saw. */ +gboolean +_gdk_event_handler_takes_smooth (void) +{ + static GQuark quark; + + if (!quark) + quark = g_quark_from_static_string ("gdk-smooth-scroll-handler"); + + return _gdk_event_func != NULL && + (gpointer) _gdk_event_func == g_object_get_qdata (G_OBJECT (gdk_display_manager_get ()), quark); +} + +void +_gdk_event_set_scroll_deltas (GdkEvent *event, + gdouble delta_x, + gdouble delta_y) +{ + GdkEventPrivate *private = (GdkEventPrivate *) event; + + event->scroll.direction = GDK_SCROLL_SMOOTH; + private->delta.x = delta_x; + private->delta.y = delta_y; +} + +static GdkEvent * +scroll_event_from (GdkEvent **first, + const GdkEvent *template_event) +{ + GdkEvent *event = *first ? *first : gdk_event_new (GDK_SCROLL); + + *first = NULL; + event->scroll = template_event->scroll; + event->scroll.type = GDK_SCROLL; + + return event; +} + +/* For backends whose system tells how far to scroll: makes of + * @template_event (a scroll event but for the direction) a smooth + * event of @delta_x, @delta_y if asked and GTK+ takes those, and the + * whole steps of the wheel that @steps_x, @steps_y complete in @rest, + * marked as emulated when the smooth event goes out as well. The + * first event made goes into @first if there is one, the others to + * @append, which takes their references. Returns whether any event + * was made. */ +gboolean +_gdk_event_emit_scroll (GdkEvent *first, + const GdkEvent *template_event, + gboolean smooth, + gdouble delta_x, + gdouble delta_y, + gdouble steps_x, + gdouble steps_y, + gdouble rest[2], + void (*append) (GdkEvent *event)) +{ + static const GdkScrollDirection direction[2][2] = { + { GDK_SCROLL_LEFT, GDK_SCROLL_RIGHT }, + { GDK_SCROLL_UP, GDK_SCROLL_DOWN } + }; + gdouble steps[2]; + gboolean made = FALSE; + gint a, n; + + steps[0] = steps_x; + steps[1] = steps_y; + + if (smooth && (delta_x != 0 || delta_y != 0) && _gdk_event_handler_takes_smooth ()) + { + gboolean into_first = first != NULL; + GdkEvent *event = scroll_event_from (&first, template_event); + + _gdk_event_set_scroll_deltas (event, delta_x, delta_y); + if (!into_first) + append (event); + made = TRUE; + } + else + smooth = FALSE; + + for (a = 0; a < 2; a++) + { + /* turning the other way starts afresh */ + if (steps[a] * rest[a] < 0) + rest[a] = 0; + rest[a] += steps[a]; + n = (gint) CLAMP (rest[a] + (rest[a] > 0 ? 1e-9 : -1e-9), -64, 64); + rest[a] -= n; + + for (; n != 0; n += n > 0 ? -1 : 1) + { + gboolean into_first = first != NULL; + GdkEvent *event = scroll_event_from (&first, template_event); + + event->scroll.direction = direction[a][n > 0]; + if (smooth) + ((GdkEventPrivate *) event)->flags |= GDK_EVENT_POINTER_EMULATED; + if (!into_first) + append (event); + made = TRUE; + } + } + + return made; +} + /** * gdk_set_show_events: * @show_events: %TRUE to output event debugging information. diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index c3049f163..ff3b538bb 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -175,17 +175,16 @@ struct _GdkEventPrivate GdkEvent event; guint flags; GdkScreen *screen; - union +#ifdef GDK_WINDOWING_QUARTZ + gpointer windowing_data; /* the NSEvent */ +#endif + /* the steps of a GDK_SCROLL_SMOOTH event, where elsewhere a + * windowing_data pointer nobody used was */ + struct { - /* the NSEvent on Quartz */ - gpointer windowing_data; - /* the steps of a GDK_SCROLL_SMOOTH event on X11 */ - struct - { - gfloat x; - gfloat y; - } delta; - } u; + gfloat x; + gfloat y; + } delta; }; /* Tracks information about the pointer grab on this display */ @@ -302,6 +301,20 @@ extern GdkEventFunc _gdk_event_func; /* Callback for events */ extern gpointer _gdk_event_data; extern GDestroyNotify _gdk_event_notify; +gboolean _gdk_event_handler_takes_smooth (void); +void _gdk_event_set_scroll_deltas (GdkEvent *event, + gdouble delta_x, + gdouble delta_y); +gboolean _gdk_event_emit_scroll (GdkEvent *first, + const GdkEvent *template_event, + gboolean smooth, + gdouble delta_x, + gdouble delta_y, + gdouble steps_x, + gdouble steps_y, + gdouble rest[2], + void (*append) (GdkEvent *event)); + extern GSList *_gdk_displays; extern gchar *_gdk_display_name; extern gint _gdk_screen_number; diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index a9f473c88..a89d48ab7 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -10839,7 +10839,7 @@ proxy_button_event (GdkEvent *source_event, ((GdkEventPrivate *) event)->flags |= ((GdkEventPrivate *) source_event)->flags & GDK_EVENT_POINTER_EMULATED; if (source_event->scroll.direction == GDK_SCROLL_SMOOTH) - ((GdkEventPrivate *) event)->u = ((GdkEventPrivate *) source_event)->u; + ((GdkEventPrivate *) event)->delta = ((GdkEventPrivate *) source_event)->delta; return TRUE; default: diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index cf5e1d1f1..1c9710b0d 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -62,7 +62,7 @@ NSEvent * gdk_quartz_event_get_nsevent (GdkEvent *event) { /* FIXME: If the event here is unallocated, we crash. */ - return ((GdkEventPrivate *) event)->u.windowing_data; + return ((GdkEventPrivate *) event)->windowing_data; } static void @@ -250,6 +250,12 @@ append_event (GdkEvent *event, _gdk_windowing_got_event (_gdk_display, node, event, 0); } +static void +append_scroll_event (GdkEvent *event) +{ + append_event (event, TRUE); +} + static gint gdk_event_apply_filters (NSEvent *nsevent, GdkEvent *event, @@ -1015,7 +1021,7 @@ fill_key_event (GdkWindow *window, gunichar c = 0; priv = (GdkEventPrivate *) event; - priv->u.windowing_data = [nsevent retain]; + priv->windowing_data = [nsevent retain]; event->any.type = type; event->key.window = window; @@ -1489,29 +1495,34 @@ gdk_event_translate (GdkEvent *event, case NSScrollWheel: { - float dx = [nsevent deltaX]; - float dy = [nsevent deltaY]; - GdkScrollDirection direction; + /* Trackpads and the Magic Mouse tell how far to scroll in + * pixels, as GTK+ 3 takes them, and in lines, which make up + * whole steps of the wheel; a plain wheel just turns, a step + * each time, as before */ + static gdouble rest[2]; + GdkEvent scroll; + gdouble dx = [nsevent deltaX]; + gdouble dy = [nsevent deltaY]; + gdouble px = 0, py = 0; + gboolean precise = [nsevent respondsToSelector:@selector(hasPreciseScrollingDeltas)] && + [nsevent hasPreciseScrollingDeltas]; - if (dy != 0) + if (precise) { - if (dy < 0.0) - direction = GDK_SCROLL_DOWN; - else - direction = GDK_SCROLL_UP; - - fill_scroll_event (window, event, nsevent, x, y, x_root, y_root, direction); + px = - [nsevent scrollingDeltaX]; + py = - [nsevent scrollingDeltaY]; + } + else + { + dx = dx > 0 ? 1 : dx < 0 ? -1 : 0; + dy = dy > 0 ? 1 : dy < 0 ? -1 : 0; + rest[0] = rest[1] = 0; } - if (dx != 0) - { - if (dx < 0.0) - direction = GDK_SCROLL_RIGHT; - else - direction = GDK_SCROLL_LEFT; - - fill_scroll_event (window, event, nsevent, x, y, x_root, y_root, direction); - } + memset (&scroll, 0, sizeof scroll); + fill_scroll_event (window, &scroll, nsevent, x, y, x_root, y_root, GDK_SCROLL_SMOOTH); + _gdk_event_emit_scroll (event, &scroll, precise, px, py, - dx, - dy, rest, + append_scroll_event); } break; @@ -1738,10 +1749,10 @@ _gdk_windowing_event_data_copy (const GdkEvent *src, GdkEventPrivate *priv_src = (GdkEventPrivate *) src; GdkEventPrivate *priv_dst = (GdkEventPrivate *) dst; - if (priv_src->u.windowing_data) + if (priv_src->windowing_data) { - priv_dst->u.windowing_data = priv_src->u.windowing_data; - [(NSEvent *)priv_dst->u.windowing_data retain]; + priv_dst->windowing_data = priv_src->windowing_data; + [(NSEvent *)priv_dst->windowing_data retain]; } } @@ -1750,9 +1761,9 @@ _gdk_windowing_event_data_free (GdkEvent *event) { GdkEventPrivate *priv = (GdkEventPrivate *) event; - if (priv->u.windowing_data) + if (priv->windowing_data) { - [(NSEvent *)priv->u.windowing_data release]; - priv->u.windowing_data = NULL; + [(NSEvent *)priv->windowing_data release]; + priv->windowing_data = NULL; } } diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index c4e212786..98b3b31c8 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -2778,28 +2778,35 @@ gdk_event_translate (MSG *msg, ScreenToClient (msg->hwnd, &point); - event = gdk_event_new (GDK_SCROLL); - event->scroll.window = window; + { + /* What the wheel turned, in steps of WHEEL_DELTA: precision + * touchpads and fine wheels send fractions, which become + * smooth scroll events and, once they make up a step, the + * usual ones as well */ + static gdouble rest[2]; + GdkEvent scroll; + gdouble delta = (short) HIWORD (msg->wParam) / (gdouble) WHEEL_DELTA; + gdouble dx = 0, dy = 0; - if (msg->message == WM_MOUSEWHEEL) - { - event->scroll.direction = (((short) HIWORD (msg->wParam)) > 0) ? - GDK_SCROLL_UP : GDK_SCROLL_DOWN; - } - else if (msg->message == WM_MOUSEHWHEEL) - { - event->scroll.direction = (((short) HIWORD (msg->wParam)) > 0) ? - GDK_SCROLL_RIGHT : GDK_SCROLL_LEFT; - } - event->scroll.time = _gdk_win32_get_next_tick (msg->time); - event->scroll.x = (gint16) point.x; - event->scroll.y = (gint16) point.y; - event->scroll.x_root = (gint16) GET_X_LPARAM (msg->lParam) + _gdk_offset_x; - event->scroll.y_root = (gint16) GET_Y_LPARAM (msg->lParam) + _gdk_offset_y; - event->scroll.state = build_pointer_event_state (msg); - event->scroll.device = _gdk_display->core_pointer; + if (msg->message == WM_MOUSEWHEEL) + dy = - delta; + else + dx = delta; - _gdk_win32_append_event (event); + memset (&scroll, 0, sizeof scroll); + scroll.scroll.type = GDK_SCROLL; + scroll.scroll.window = window; + scroll.scroll.time = _gdk_win32_get_next_tick (msg->time); + scroll.scroll.x = (gint16) point.x; + scroll.scroll.y = (gint16) point.y; + scroll.scroll.x_root = (gint16) GET_X_LPARAM (msg->lParam) + _gdk_offset_x; + scroll.scroll.y_root = (gint16) GET_Y_LPARAM (msg->lParam) + _gdk_offset_y; + scroll.scroll.state = build_pointer_event_state (msg); + scroll.scroll.device = _gdk_display->core_pointer; + + _gdk_event_emit_scroll (NULL, &scroll, TRUE, dx, dy, dx, dy, rest, + _gdk_win32_append_event); + } return_val = TRUE; break; diff --git a/gdk/x11/gdkscroll-x11.c b/gdk/x11/gdkscroll-x11.c index 79a23f3e3..3f77e4e5b 100644 --- a/gdk/x11/gdkscroll-x11.c +++ b/gdk/x11/gdkscroll-x11.c @@ -8,10 +8,10 @@ * but no more core motion events there, so those are made here from * the XI_Motion events, and everything else stays core events. * - * Smooth scroll events are only made for the event handler of GTK+, - * which knows who can take them; a program with a handler of its own - * sees the events it always saw. Nothing is kept per window. The - * display has one small record, made only when the server can do this. + * Smooth scroll events are only made for the event handler of GTK+ + * (see _gdk_event_handler_takes_smooth()). Nothing is kept per + * window. The display has one small record, made only when the + * server can do this. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -193,20 +193,6 @@ core_state (XIDeviceEvent *ev) return state; } -/* Only GTK+'s own handler decides who gets smooth events; libgtk puts - * it here when it sets it */ -static gboolean -handler_takes_smooth (void) -{ - static GQuark quark; - - if (!quark) - quark = g_quark_from_static_string ("gdk-smooth-scroll-handler"); - - return _gdk_event_func != NULL && - (gpointer) _gdk_event_func == g_object_get_qdata (G_OBJECT (gdk_display_manager_get ()), quark); -} - static GdkEvent * smooth_event (GdkDisplay *display, XIDeviceEvent *ev, @@ -215,13 +201,12 @@ smooth_event (GdkDisplay *display, { GdkWindow *window; GdkScreen *screen; - GdkEventPrivate *private; GdkEvent *event; /* Over a window inside that took no XI_Motion, such as another * program's, the core steps go there and the smooth event would * go past it */ - if (ev->child != None || !handler_takes_smooth ()) + if (ev->child != None || !_gdk_event_handler_takes_smooth ()) return NULL; window = gdk_window_lookup_for_display (display, ev->event); @@ -238,13 +223,9 @@ smooth_event (GdkDisplay *display, event->scroll.x_root = ev->root_x; event->scroll.y_root = ev->root_y; event->scroll.state = core_state (ev); - event->scroll.direction = GDK_SCROLL_SMOOTH; event->scroll.device = display->core_pointer; gdk_event_set_screen (event, screen); - - private = (GdkEventPrivate *) event; - private->u.delta.x = dx; - private->u.delta.y = dy; + _gdk_event_set_scroll_deltas (event, dx, dy); return event; } diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 0609d86f2..717890fe5 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1463,27 +1463,43 @@ rewrite_event_for_window (GdkEvent *event, * and scrolled windows that nobody else hears a scroll event before. * Everything else, most of all what programs do with scroll events, * keeps the whole steps of the wheel, which X sends as well. */ +/* Whether a program, or a widget's own "event", hears events of + * @widget before its scroll handler */ static gboolean -smooth_scroll_wanted (GtkWidget *widget, - gdouble dx, - gdouble dy) +hears_scroll (GtkWidget *widget) { static guint event_id, scroll_event_id, event_after_id; - static gboolean (*range_scroll) (GtkWidget *, GdkEventScroll *); - static gboolean (*scrolled_window_scroll) (GtkWidget *, GdkEventScroll *); static gboolean (*text_view_event) (GtkWidget *, GdkEvent *); + GtkWidgetClass *class = GTK_WIDGET_GET_CLASS (widget); if (!event_id) { event_id = g_signal_lookup ("event", GTK_TYPE_WIDGET); scroll_event_id = g_signal_lookup ("scroll-event", GTK_TYPE_WIDGET); event_after_id = g_signal_lookup ("event-after", GTK_TYPE_WIDGET); - range_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_RANGE))->scroll_event; - scrolled_window_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_SCROLLED_WINDOW))->scroll_event; /* only for the "event" of text tags */ text_view_event = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_TEXT_VIEW))->event; } + return g_signal_has_handler_pending (widget, event_id, 0, FALSE) || + g_signal_has_handler_pending (widget, scroll_event_id, 0, FALSE) || + g_signal_has_handler_pending (widget, event_after_id, 0, FALSE) || + (class->event && class->event != text_view_event); +} + +static gboolean +smooth_scroll_wanted (GtkWidget *widget, + GdkEventScroll *event) +{ + static gboolean (*range_scroll) (GtkWidget *, GdkEventScroll *); + static gboolean (*scrolled_window_scroll) (GtkWidget *, GdkEventScroll *); + + if (!range_scroll) + { + range_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_RANGE))->scroll_event; + scrolled_window_scroll = GTK_WIDGET_CLASS (g_type_class_ref (GTK_TYPE_SCROLLED_WINDOW))->scroll_event; + } + #ifdef GDK_WINDOWING_X11 /* the window of another program inside, which hears the steps */ if (GTK_IS_SOCKET (widget)) @@ -1497,15 +1513,12 @@ smooth_scroll_wanted (GtkWidget *widget, if (!gtk_widget_is_sensitive (widget)) continue; - if (g_signal_has_handler_pending (widget, event_id, 0, FALSE) || - g_signal_has_handler_pending (widget, scroll_event_id, 0, FALSE) || - g_signal_has_handler_pending (widget, event_after_id, 0, FALSE) || - (class->event && class->event != text_view_event)) + if (hears_scroll (widget)) return FALSE; if (class->scroll_event == scrolled_window_scroll) { - if (_gtk_scrolled_window_takes_smooth (widget, dx, dy)) + if (_gtk_scrolled_window_takes_smooth (widget, event)) return TRUE; } else if (class->scroll_event) @@ -1539,7 +1552,7 @@ scroll_event_wanted (GtkWidget *widget, smooth_time = event->scroll.time; if (!gdk_event_get_scroll_deltas (event, &dx, &dy) || - !smooth_scroll_wanted (widget, dx, dy)) + !smooth_scroll_wanted (widget, &event->scroll)) return FALSE; taken |= (dx != 0 ? 1 : 0) | (dy != 0 ? 2 : 0); diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index e00530630..d1c09687d 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -186,9 +186,12 @@ gboolean _gtk_fnmatch (const char *pattern, gboolean _gtk_button_event_triggers_context_menu (GdkEventButton *event); -gboolean _gtk_scrolled_window_takes_smooth (GtkWidget *widget, - gdouble dx, - gdouble dy); +gboolean _gtk_scroll_event_get_steps (GdkEventScroll *event, + gdouble *steps_x, + gdouble *steps_y, + gboolean *pixels); +gboolean _gtk_scrolled_window_takes_smooth (GtkWidget *widget, + GdkEventScroll *event); gboolean _gtk_translate_keyboard_accel_state (GdkKeymap *keymap, guint hardware_keycode, diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 73cd6c679..e4de423ae 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -2557,6 +2557,62 @@ gtk_range_button_release (GtkWidget *widget, return FALSE; } +/* The steps of the wheel in a scroll event, to the right and down; + * on Quartz, smooth events of trackpads come in pixels, as GTK+ 3 + * takes them. FALSE for a smooth event without its steps. */ +gboolean +_gtk_scroll_event_get_steps (GdkEventScroll *event, + gdouble *steps_x, + gdouble *steps_y, + gboolean *pixels) +{ + *steps_x = *steps_y = 0; + *pixels = FALSE; + + switch (event->direction) + { + case GDK_SCROLL_UP: + *steps_y = -1; + break; + case GDK_SCROLL_DOWN: + *steps_y = 1; + break; + case GDK_SCROLL_LEFT: + *steps_x = -1; + break; + case GDK_SCROLL_RIGHT: + *steps_x = 1; + break; + default: + if (!gdk_event_get_scroll_deltas ((GdkEvent *) event, steps_x, steps_y)) + return FALSE; +#ifdef GDK_WINDOWING_QUARTZ + *pixels = TRUE; +#endif + break; + } + + return TRUE; +} + +/* How far a step of the wheel, or a pixel of a trackpad, moves @range */ +gdouble +_gtk_range_get_wheel_step (GtkRange *range, + gboolean pixels) +{ + GtkAdjustment *adj = range->adjustment; + gdouble step; + + if (pixels) + step = 1; + else if (GTK_IS_SCROLLBAR (range)) + step = pow (adj->page_size, 2.0 / 3.0); + else + step = adj->step_increment * 2; + + return range->inverted ? - step : step; +} + /** * _gtk_range_get_wheel_delta: * @range: a #GtkRange @@ -2574,31 +2630,18 @@ gdouble _gtk_range_get_wheel_delta (GtkRange *range, GdkEventScroll *event) { - GtkAdjustment *adj = range->adjustment; - gdouble delta, dx, dy; + gdouble steps_x, steps_y, steps; + gboolean pixels; - if (GTK_IS_SCROLLBAR (range)) - delta = pow (adj->page_size, 2.0 / 3.0); + if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) + return 0; + + if (range->orientation == GTK_ORIENTATION_HORIZONTAL) + steps = steps_x != 0 ? steps_x : steps_y; else - delta = adj->step_increment * 2; + steps = steps_y != 0 ? steps_y : steps_x; - if (gdk_event_get_scroll_deltas ((GdkEvent *) event, &dx, &dy)) - { - if (range->orientation == GTK_ORIENTATION_HORIZONTAL) - delta *= dx != 0 ? dx : dy; - else - delta *= dy != 0 ? dy : dx; - } - else if (event->direction == GDK_SCROLL_SMOOTH) - delta = 0; - else if (event->direction == GDK_SCROLL_UP || - event->direction == GDK_SCROLL_LEFT) - delta = - delta; - - if (range->inverted) - delta = - delta; - - return delta; + return steps * _gtk_range_get_wheel_step (range, pixels); } static gboolean diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index 398f2c56c..7a51ffe08 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -201,6 +201,8 @@ gint gtk_range_get_round_digits (GtkRange *range /* internal API */ gdouble _gtk_range_get_wheel_delta (GtkRange *range, GdkEventScroll *event); +gdouble _gtk_range_get_wheel_step (GtkRange *range, + gboolean pixels); void _gtk_range_set_stop_values (GtkRange *range, gdouble *values, diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 8d7a4858d..9fac94814 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1559,20 +1559,16 @@ gtk_scrolled_window_size_allocate (GtkWidget *widget, gtk_widget_hide (scrolled_window->vscrollbar); } -static gboolean -scroll_range (GtkWidget *range, - GdkEventScroll *event) +static void +scroll_bar (GtkWidget *bar, + gdouble steps, + gboolean pixels) { - GtkAdjustment *adj; + GtkRange *range = GTK_RANGE (bar); + GtkAdjustment *adj = range->adjustment; - if (!range || !gtk_widget_get_visible (range)) - return FALSE; - - adj = GTK_RANGE (range)->adjustment; - gtk_adjustment_set_value (adj, CLAMP (adj->value + _gtk_range_get_wheel_delta (GTK_RANGE (range), event), + gtk_adjustment_set_value (adj, CLAMP (adj->value + steps * _gtk_range_get_wheel_step (range, pixels), adj->lower, adj->upper - adj->page_size)); - - return TRUE; } static gboolean @@ -1580,39 +1576,45 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, GdkEventScroll *event) { GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); - gdouble dx, dy; - gboolean handled; + GtkWidget *vbar = scrolled_window->vscrollbar, *hbar = scrolled_window->hscrollbar; + gdouble steps_x, steps_y; + gboolean pixels, handled = FALSE; g_return_val_if_fail (GTK_IS_SCROLLED_WINDOW (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); - if (!gdk_event_get_scroll_deltas ((GdkEvent *) event, &dx, &dy)) - { - if (event->direction == GDK_SCROLL_SMOOTH) - return FALSE; - dy = event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN; - dx = !dy; - } + if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) + return FALSE; - handled = dy != 0 && scroll_range (scrolled_window->vscrollbar, event); - if (dx != 0) - handled |= scroll_range (scrolled_window->hscrollbar, event); + if (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) + { + handled = TRUE; + scroll_bar (vbar, steps_y, pixels); + } + if (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)) + { + handled = TRUE; + scroll_bar (hbar, steps_x, pixels); + } return handled; } -/* Whether a smooth scroll by @dx, @dy steps moves something */ +/* Whether a smooth scroll event would move something */ gboolean -_gtk_scrolled_window_takes_smooth (GtkWidget *widget, - gdouble dx, - gdouble dy) +_gtk_scrolled_window_takes_smooth (GtkWidget *widget, + GdkEventScroll *event) { GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); + GtkWidget *vbar = scrolled_window->vscrollbar, *hbar = scrolled_window->hscrollbar; + gdouble steps_x, steps_y; + gboolean pixels; - return (dy != 0 && scrolled_window->vscrollbar && - gtk_widget_get_visible (scrolled_window->vscrollbar)) || - (dx != 0 && scrolled_window->hscrollbar && - gtk_widget_get_visible (scrolled_window->hscrollbar)); + if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) + return FALSE; + + return (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) || + (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)); } static gboolean From 36f1bab5dbd3da5ad3011e86f88738c1c468c6f2 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 22:01:29 +0200 Subject: [PATCH 032/249] Wheel steps glide, and shift with the wheel scrolls sideways --- gtk/gtkscrolledwindow.c | 196 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 189 insertions(+), 7 deletions(-) diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 9fac94814..9e7c7f34a 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1559,16 +1559,189 @@ gtk_scrolled_window_size_allocate (GtkWidget *widget, gtk_widget_hide (scrolled_window->vscrollbar); } +/* Wheel steps glide over a short while, as in GTK+ 3 and browsers, + * unless the setting gtk-enable-animations is off. A record exists + * only while an adjustment glides; a value that someone else sets + * meanwhile, by the keyboard or the slider, ends it. A machine that + * cannot draw the frames in time gets the step at once instead. */ + +#define GLIDE_MIN_TIME 50000 /* microseconds */ +#define GLIDE_MAX_TIME 150000 +#define GLIDE_INTERVAL 16 /* milliseconds */ +#define GLIDE_TOO_SLOW 50000 /* microseconds between frames */ + +typedef struct +{ + GtkAdjustment *adjustment; + gdouble from; + gdouble to; + gdouble last; /* what the adjustment got last */ + gint64 start; + gint64 duration; + gint64 tick; /* when the last frame was */ + guint source; +} Glide; + +static GQuark glide_quark; + static void +glide_free (gpointer data) +{ + Glide *glide = data; + + if (glide->source) + g_source_remove (glide->source); + g_slice_free (Glide, glide); +} + +static void +glide_stop (GtkAdjustment *adj) +{ + if (glide_quark) + g_object_set_qdata (G_OBJECT (adj), glide_quark, NULL); +} + +/* The highest value @adj takes; never below the lowest */ +static gdouble +adjustment_top (GtkAdjustment *adj) +{ + return MAX (adj->lower, adj->upper - adj->page_size); +} + +static gboolean +glide_tick (gpointer data) +{ + Glide *glide = data; + GtkAdjustment *adj = glide->adjustment; + gboolean more = FALSE; + + /* "value-changed" may drop the adjustment, or end the glide */ + g_object_ref (adj); + + if (adj->value == glide->last) + { + gint64 now = g_get_monotonic_time (); + gdouble t = (now - glide->start) / (gdouble) glide->duration, value; + + if (now - glide->tick > GLIDE_TOO_SLOW) + t = 1; + glide->tick = now; + + if (t < 1) + value = glide->to - (glide->to - glide->from) * (1 - t) * (1 - t) * (1 - t); + else + value = glide->to; + + gtk_adjustment_set_value (adj, CLAMP (value, adj->lower, adjustment_top (adj))); + + if (g_object_get_qdata (G_OBJECT (adj), glide_quark) != glide) + { + g_object_unref (adj); + return FALSE; + } + glide->last = adj->value; + more = t < 1 && adj->value != glide->to; + } + + if (!more) + { + glide->source = 0; + glide_stop (adj); + } + g_object_unref (adj); + + return more; +} + +/* Moves @adj by @delta; returns whether it is going to move */ +static gboolean +scroll_adjustment (GtkAdjustment *adj, + gdouble delta, + gboolean glide) +{ + Glide *running = glide_quark ? g_object_get_qdata (G_OBJECT (adj), glide_quark) : NULL; + gdouble top = adjustment_top (adj); + gdouble target; + + if (running && adj->value != running->last) + { + /* someone else moved it */ + glide_stop (adj); + running = NULL; + } + + if (!glide) + { + target = CLAMP (adj->value + delta, adj->lower, top); + if (running) + { + /* a fine step during a glide moves the whole glide along */ + running->from += target - adj->value; + running->to = CLAMP (running->to + target - adj->value, adj->lower, top); + } + if (target == adj->value) + return FALSE; + gtk_adjustment_set_value (adj, target); + if (running && g_object_get_qdata (G_OBJECT (adj), glide_quark) == running) + running->last = adj->value; + return TRUE; + } + + /* a step while gliding goes on from where it was going */ + target = CLAMP ((running ? running->to : adj->value) + delta, adj->lower, top); + if (target == adj->value) + { + if (running) + glide_stop (adj); + return FALSE; + } + + if (!running) + { + if (!glide_quark) + glide_quark = g_quark_from_static_string ("gtk-scroll-glide"); + running = g_slice_new0 (Glide); + running->adjustment = adj; + running->source = gdk_threads_add_timeout (GLIDE_INTERVAL, glide_tick, running); + g_object_set_qdata_full (G_OBJECT (adj), glide_quark, running, glide_free); + } + + running->from = adj->value; + running->to = target; + running->last = adj->value; + running->start = running->tick = g_get_monotonic_time (); + running->duration = CLAMP (sqrt (fabs (target - adj->value)) / 60 * G_USEC_PER_SEC, + GLIDE_MIN_TIME, GLIDE_MAX_TIME); + + return TRUE; +} + +/* Shift and the wheel go sideways where that is possible, as in GTK+ 3 + * and browsers */ +static void +shift_sideways (GtkScrolledWindow *scrolled_window, + GdkEventScroll *event, + gdouble *steps_x, + gdouble *steps_y) +{ + if ((event->state & GDK_SHIFT_MASK) && *steps_x == 0 && + scrolled_window->hscrollbar && gtk_widget_get_visible (scrolled_window->hscrollbar)) + { + *steps_x = *steps_y; + *steps_y = 0; + } +} + +static gboolean scroll_bar (GtkWidget *bar, gdouble steps, - gboolean pixels) + gboolean pixels, + gboolean glide) { GtkRange *range = GTK_RANGE (bar); - GtkAdjustment *adj = range->adjustment; - gtk_adjustment_set_value (adj, CLAMP (adj->value + steps * _gtk_range_get_wheel_step (range, pixels), - adj->lower, adj->upper - adj->page_size)); + return scroll_adjustment (range->adjustment, + steps * _gtk_range_get_wheel_step (range, pixels), glide); } static gboolean @@ -1578,7 +1751,7 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); GtkWidget *vbar = scrolled_window->vscrollbar, *hbar = scrolled_window->hscrollbar; gdouble steps_x, steps_y; - gboolean pixels, handled = FALSE; + gboolean pixels, glide = FALSE, handled = FALSE; g_return_val_if_fail (GTK_IS_SCROLLED_WINDOW (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); @@ -1586,15 +1759,22 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) return FALSE; + shift_sideways (scrolled_window, event, &steps_x, &steps_y); + + /* whole steps glide; the fractions of fine wheels and touchpads + * are already smooth */ + if (!pixels && steps_x == floor (steps_x) && steps_y == floor (steps_y)) + g_object_get (gtk_widget_get_settings (widget), "gtk-enable-animations", &glide, NULL); + if (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) { handled = TRUE; - scroll_bar (vbar, steps_y, pixels); + scroll_bar (vbar, steps_y, pixels, glide); } if (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)) { handled = TRUE; - scroll_bar (hbar, steps_x, pixels); + scroll_bar (hbar, steps_x, pixels, glide); } return handled; @@ -1613,6 +1793,8 @@ _gtk_scrolled_window_takes_smooth (GtkWidget *widget, if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) return FALSE; + shift_sideways (scrolled_window, event, &steps_x, &steps_y); + return (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) || (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)); } From d2bd382b150f6a3daa911e63d9507b09a7e7cc54 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 22:03:10 +0200 Subject: [PATCH 033/249] A scrolled window keeps the wheel while it scrolls --- gtk/gtkmain.c | 124 ++++++++++++++++++++++++++++++++++++---- gtk/gtkprivate.h | 2 + gtk/gtkscrolledwindow.c | 9 ++- 3 files changed, 121 insertions(+), 14 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 717890fe5..9190e8c63 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1452,17 +1452,6 @@ rewrite_event_for_window (GdkEvent *event, return event; } -/* If there is a pointer or keyboard grab in effect with owner_events = TRUE, - * then what X11 does is deliver the event normally if it was going to this - * client, otherwise, delivers it in terms of the grab window. This function - * rewrites events to the effect that events going to the same window group - * are delivered normally, otherwise, the event is delivered in terms of the - * grab window. - */ -/* Smooth scroll events go where GTK+ itself scrolls: to scrollbars - * and scrolled windows that nobody else hears a scroll event before. - * Everything else, most of all what programs do with scroll events, - * keeps the whole steps of the wheel, which X sends as well. */ /* Whether a program, or a widget's own "event", hears events of * @widget before its scroll handler */ static gboolean @@ -1487,6 +1476,10 @@ hears_scroll (GtkWidget *widget) (class->event && class->event != text_view_event); } +/* Smooth scroll events go where GTK+ itself scrolls: to scrollbars + * and scrolled windows that nobody else hears a scroll event before. + * Everything else, most of all what programs do with scroll events, + * keeps the whole steps of the wheel, which X sends as well. */ static gboolean smooth_scroll_wanted (GtkWidget *widget, GdkEventScroll *event) @@ -1529,6 +1522,103 @@ smooth_scroll_wanted (GtkWidget *widget, return FALSE; } +/* A scrolled window that the wheel has just moved keeps the wheel for + * a while, even when the pointer now stands over something inside that + * scrolls too, a list or a spin button that moved under it: browsers + * do the same. It lets go after a second without moving, or when the + * pointer moves or a button or key is pressed; outside it, nothing + * changes anyway. */ + +#define SCROLL_LATCH_TIME 1000 /* milliseconds */ +#define SCROLL_LATCH_MOVE 100 /* motion closer to the wheel is no motion */ + +static GtkWidget *scroll_latch; +static guint32 scroll_latch_time; + +static void +scroll_latch_release (void) +{ + if (scroll_latch) + g_object_remove_weak_pointer (G_OBJECT (scroll_latch), (gpointer *) &scroll_latch); + scroll_latch = NULL; +} + +void +_gtk_scroll_latch (GtkWidget *widget, + guint32 time) +{ + if (scroll_latch != widget) + { + scroll_latch_release (); + scroll_latch = widget; + g_object_add_weak_pointer (G_OBJECT (widget), (gpointer *) &scroll_latch); + } + scroll_latch_time = time; +} + +static void +scroll_latch_see (GdkEvent *event) +{ + switch (event->type) + { + case GDK_MOTION_NOTIFY: + if ((gint32) (event->motion.time - scroll_latch_time) > SCROLL_LATCH_MOVE) + scroll_latch_release (); + break; + case GDK_BUTTON_PRESS: + case GDK_KEY_PRESS: + scroll_latch_release (); + break; + default: + break; + } +} + +/* Whether the scroll handler of @class is one of GTK+'s own, not one + * that a program's subclass brings */ +static gboolean +scroll_handler_of_gtk (GtkWidgetClass *class) +{ + GType type = G_TYPE_FROM_CLASS (class), parent; + + /* the class that put the handler there */ + while ((parent = g_type_parent (type)) != G_TYPE_INVALID && + g_type_is_a (parent, GTK_TYPE_WIDGET) && + GTK_WIDGET_CLASS (g_type_class_peek (parent))->scroll_event == class->scroll_event) + type = parent; + + return g_str_has_prefix (g_type_name (type), "Gtk"); +} + +/* Only GTK+'s own widgets inside give way to the latch: where the + * program hears scroll events, it goes on hearing them. And only + * the way the latched window scrolls is kept. */ +static GtkWidget * +scroll_latch_target (GtkWidget *widget, + GdkEvent *event) +{ + GtkWidget *w; + gboolean inside = FALSE; + + if ((gint32) (event->scroll.time - scroll_latch_time) >= SCROLL_LATCH_TIME || + !gtk_widget_get_mapped (scroll_latch) || !gtk_widget_is_sensitive (scroll_latch) || + !_gtk_scrolled_window_takes_smooth (scroll_latch, &event->scroll)) + return widget; + + for (w = widget; w && w != scroll_latch; w = w->parent) + { + GtkWidgetClass *class = GTK_WIDGET_GET_CLASS (w); + + if (!gtk_widget_is_sensitive (w)) + continue; + if (hears_scroll (w) || (class->scroll_event && !scroll_handler_of_gtk (class))) + return widget; + inside |= class->scroll_event != NULL; + } + + return w && inside ? scroll_latch : widget; +} + /* Whether to pass on a scroll event: either the smooth ones or the * whole steps that X made of them, by direction */ static gboolean @@ -1560,6 +1650,13 @@ scroll_event_wanted (GtkWidget *widget, return TRUE; } +/* If there is a pointer or keyboard grab in effect with owner_events = TRUE, + * then what X11 does is deliver the event normally if it was going to this + * client, otherwise, delivers it in terms of the grab window. This function + * rewrites events to the effect that events going to the same window group + * are delivered normally, otherwise, the event is delivered in terms of the + * grab window. + */ static GdkEvent * rewrite_event_for_grabs (GdkEvent *event) { @@ -1664,6 +1761,9 @@ gtk_main_do_event (GdkEvent *event) window_group = gtk_main_get_window_group (event_widget); + if (scroll_latch) + scroll_latch_see (event); + /* Push the event onto a stack of current events for * gtk_current_event_get(). */ @@ -1762,6 +1862,8 @@ gtk_main_do_event (GdkEvent *event) break; case GDK_SCROLL: + if (scroll_latch) + grab_widget = scroll_latch_target (grab_widget, event); if (scroll_event_wanted (grab_widget, event)) gtk_propagate_event (grab_widget, event); break; diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index d1c09687d..5e8a36f69 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -192,6 +192,8 @@ gboolean _gtk_scroll_event_get_steps (GdkEventScroll *event, gboolean *pixels); gboolean _gtk_scrolled_window_takes_smooth (GtkWidget *widget, GdkEventScroll *event); +void _gtk_scroll_latch (GtkWidget *widget, + guint32 time); gboolean _gtk_translate_keyboard_accel_state (GdkKeymap *keymap, guint hardware_keycode, diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index 9e7c7f34a..c1714d79d 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1751,7 +1751,7 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); GtkWidget *vbar = scrolled_window->vscrollbar, *hbar = scrolled_window->hscrollbar; gdouble steps_x, steps_y; - gboolean pixels, glide = FALSE, handled = FALSE; + gboolean pixels, glide = FALSE, handled = FALSE, moved = FALSE; g_return_val_if_fail (GTK_IS_SCROLLED_WINDOW (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); @@ -1769,14 +1769,17 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, if (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) { handled = TRUE; - scroll_bar (vbar, steps_y, pixels, glide); + moved |= scroll_bar (vbar, steps_y, pixels, glide); } if (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)) { handled = TRUE; - scroll_bar (hbar, steps_x, pixels, glide); + moved |= scroll_bar (hbar, steps_x, pixels, glide); } + if (moved) + _gtk_scroll_latch (widget, event->time); + return handled; } From 06d0c842ff86f5d40b4c3ed2222209c7453ae30a Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 22:21:03 +0200 Subject: [PATCH 034/249] Smooth scrolls leave the steps of a direction they do not use --- gtk/gtkmain.c | 46 +++++++++++++++++++++++++++-------------- gtk/gtkprivate.h | 2 +- gtk/gtkscrolledwindow.c | 21 ++++++++++++------- 3 files changed, 44 insertions(+), 25 deletions(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 9190e8c63..87b748c8d 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1480,12 +1480,16 @@ hears_scroll (GtkWidget *widget) * and scrolled windows that nobody else hears a scroll event before. * Everything else, most of all what programs do with scroll events, * keeps the whole steps of the wheel, which X sends as well. */ -static gboolean +/* Which steps of the smooth event @event the widgets from @widget up + * would use, as in _gtk_scrolled_window_takes_scroll(); 0 for not + * wanted at all */ +static guint smooth_scroll_wanted (GtkWidget *widget, GdkEventScroll *event) { static gboolean (*range_scroll) (GtkWidget *, GdkEventScroll *); static gboolean (*scrolled_window_scroll) (GtkWidget *, GdkEventScroll *); + gdouble dx, dy; if (!range_scroll) { @@ -1496,9 +1500,12 @@ smooth_scroll_wanted (GtkWidget *widget, #ifdef GDK_WINDOWING_X11 /* the window of another program inside, which hears the steps */ if (GTK_IS_SOCKET (widget)) - return FALSE; + return 0; #endif + if (!gdk_event_get_scroll_deltas ((GdkEvent *) event, &dx, &dy)) + return 0; + for (; widget; widget = widget->parent) { GtkWidgetClass *class = GTK_WIDGET_GET_CLASS (widget); @@ -1507,19 +1514,28 @@ smooth_scroll_wanted (GtkWidget *widget, continue; if (hears_scroll (widget)) - return FALSE; + return 0; if (class->scroll_event == scrolled_window_scroll) { - if (_gtk_scrolled_window_takes_smooth (widget, event)) - return TRUE; + guint taken = _gtk_scrolled_window_takes_scroll (widget, event); + + if (taken) + return taken; } else if (class->scroll_event) - /* scales keep their steps, which their digits may round */ - return class->scroll_event == range_scroll && GTK_IS_SCROLLBAR (widget); + { + /* scales keep their steps, which their digits may round; + * a scrollbar goes its own way, or else the other */ + if (class->scroll_event != range_scroll || !GTK_IS_SCROLLBAR (widget)) + return 0; + if (GTK_RANGE (widget)->orientation == GTK_ORIENTATION_HORIZONTAL) + return dx != 0 ? 1 : 2; + return dy != 0 ? 2 : 1; + } } - return FALSE; + return 0; } /* A scrolled window that the wheel has just moved keeps the wheel for @@ -1602,7 +1618,7 @@ scroll_latch_target (GtkWidget *widget, if ((gint32) (event->scroll.time - scroll_latch_time) >= SCROLL_LATCH_TIME || !gtk_widget_get_mapped (scroll_latch) || !gtk_widget_is_sensitive (scroll_latch) || - !_gtk_scrolled_window_takes_smooth (scroll_latch, &event->scroll)) + !_gtk_scrolled_window_takes_scroll (scroll_latch, &event->scroll)) return widget; for (w = widget; w && w != scroll_latch; w = w->parent) @@ -1627,7 +1643,7 @@ scroll_event_wanted (GtkWidget *widget, { static guint32 smooth_time; static guint taken; /* 1 across, 2 up and down */ - gdouble dx, dy; + guint wanted; if (event->scroll.direction != GDK_SCROLL_SMOOTH) { @@ -1641,13 +1657,11 @@ scroll_event_wanted (GtkWidget *widget, taken = 0; smooth_time = event->scroll.time; - if (!gdk_event_get_scroll_deltas (event, &dx, &dy) || - !smooth_scroll_wanted (widget, &event->scroll)) - return FALSE; + /* the steps of a direction that the smooth event does not use stay */ + wanted = smooth_scroll_wanted (widget, &event->scroll); + taken |= wanted; - taken |= (dx != 0 ? 1 : 0) | (dy != 0 ? 2 : 0); - - return TRUE; + return wanted != 0; } /* If there is a pointer or keyboard grab in effect with owner_events = TRUE, diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index 5e8a36f69..c9144448b 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -190,7 +190,7 @@ gboolean _gtk_scroll_event_get_steps (GdkEventScroll *event, gdouble *steps_x, gdouble *steps_y, gboolean *pixels); -gboolean _gtk_scrolled_window_takes_smooth (GtkWidget *widget, +guint _gtk_scrolled_window_takes_scroll (GtkWidget *widget, GdkEventScroll *event); void _gtk_scroll_latch (GtkWidget *widget, guint32 time); diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c index c1714d79d..884b358c9 100644 --- a/gtk/gtkscrolledwindow.c +++ b/gtk/gtkscrolledwindow.c @@ -1783,23 +1783,28 @@ gtk_scrolled_window_scroll_event (GtkWidget *widget, return handled; } -/* Whether a smooth scroll event would move something */ -gboolean -_gtk_scrolled_window_takes_smooth (GtkWidget *widget, +/* Which steps of a scroll event the scrolled window would use: 1 for + * those to the side, 2 for those up and down */ +guint +_gtk_scrolled_window_takes_scroll (GtkWidget *widget, GdkEventScroll *event) { GtkScrolledWindow *scrolled_window = GTK_SCROLLED_WINDOW (widget); GtkWidget *vbar = scrolled_window->vscrollbar, *hbar = scrolled_window->hscrollbar; - gdouble steps_x, steps_y; + gdouble steps_x, steps_y, sideways_x, sideways_y; gboolean pixels; if (!_gtk_scroll_event_get_steps (event, &steps_x, &steps_y, &pixels)) - return FALSE; + return 0; - shift_sideways (scrolled_window, event, &steps_x, &steps_y); + sideways_x = steps_x; + sideways_y = steps_y; + shift_sideways (scrolled_window, event, &sideways_x, &sideways_y); + if (sideways_x != steps_x) + return 2; - return (steps_y != 0 && vbar && gtk_widget_get_visible (vbar)) || - (steps_x != 0 && hbar && gtk_widget_get_visible (hbar)); + return (steps_y != 0 && vbar && gtk_widget_get_visible (vbar) ? 2 : 0) | + (steps_x != 0 && hbar && gtk_widget_get_visible (hbar) ? 1 : 0); } static gboolean From 8e80537cd175dc47c8535a19c2040045e2263bd6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 08:59:14 +0200 Subject: [PATCH 035/249] quartz: smooth scrolling builds with SDKs older than 10.7 again --- gdk/quartz/gdkevents-quartz.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c index 1c9710b0d..73a8cd8ae 100644 --- a/gdk/quartz/gdkevents-quartz.c +++ b/gdk/quartz/gdkevents-quartz.c @@ -1504,15 +1504,19 @@ gdk_event_translate (GdkEvent *event, gdouble dx = [nsevent deltaX]; gdouble dy = [nsevent deltaY]; gdouble px = 0, py = 0; - gboolean precise = [nsevent respondsToSelector:@selector(hasPreciseScrollingDeltas)] && - [nsevent hasPreciseScrollingDeltas]; + gboolean precise = FALSE; + /* from 10.7; older SDKs do not know these */ +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 + precise = [nsevent respondsToSelector:@selector(hasPreciseScrollingDeltas)] && + [nsevent hasPreciseScrollingDeltas]; if (precise) { px = - [nsevent scrollingDeltaX]; py = - [nsevent scrollingDeltaY]; } else +#endif { dx = dx > 0 ? 1 : dx < 0 ? -1 : 0; dy = dy > 0 ? 1 : dy < 0 ? -1 : 0; From 6c418413d6d101b50d7db87af3c5c214e94bd1e2 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 00:01:28 +0200 Subject: [PATCH 036/249] filechooser: make thumbnails of images for the icon view, and drop outdated ones --- gtk/Makefile.am | 2 + gtk/gtkfilechooserdefault.c | 257 ++++++++++++++++++- gtk/gtkfilechooserprivate.h | 3 + gtk/gtkfilechoosersettings.c | 27 ++ gtk/gtkfilechoosersettings.h | 5 + gtk/gtkfilethumbnail.c | 480 +++++++++++++++++++++++++++++++++++ gtk/gtkfilethumbnail.h | 35 +++ gtk/makefile.msc.in | 1 + 8 files changed, 805 insertions(+), 5 deletions(-) create mode 100644 gtk/gtkfilethumbnail.c create mode 100644 gtk/gtkfilethumbnail.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 31cc16730..0027855ee 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -389,6 +389,7 @@ gtk_private_h_sources = \ gtkfilechooserutils.h \ gtkfilesystem.h \ gtkfilesystemmodel.h \ + gtkfilethumbnail.h \ gtkiconcache.h \ gtkimcontextsimpleseqs.h \ gtkintl.h \ @@ -491,6 +492,7 @@ gtk_base_c_sources = \ gtkfilefilter.c \ gtkfilesystem.c \ gtkfilesystemmodel.c \ + gtkfilethumbnail.c \ gtkfixed.c \ gtkfontbutton.c \ gtkfontsel.c \ diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 6b5239d85..9270f309e 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -42,6 +42,7 @@ #include "gtkfilechooser.h" #include "gtkfilesystem.h" #include "gtkfilesystemmodel.h" +#include "gtkfilethumbnail.h" #include "gtkframe.h" #include "gtkhbox.h" #include "gtkhpaned.h" @@ -786,6 +787,7 @@ _gtk_file_chooser_default_init (GtkFileChooserDefault *impl) impl->select_multiple = FALSE; impl->show_hidden = FALSE; impl->show_size_column = TRUE; + impl->show_thumbnails = TRUE; impl->list_view_icon_size = FALLBACK_LIST_VIEW_ICON_SIZE; impl->icon_view_icon_size = FALLBACK_ICON_VIEW_ICON_SIZE; impl->load_state = LOAD_EMPTY; @@ -889,6 +891,13 @@ gtk_file_chooser_default_finalize (GObject *object) icon_view_scale_remove_timeout (impl); + /* requests hold a reference: none are left */ + if (impl->thumbnail_requests) + { + g_hash_table_destroy (impl->thumbnail_requests); + impl->thumbnail_requests = NULL; + } + unset_file_system_backend (impl); if (impl->shortcuts_pane_filter_model) @@ -4081,6 +4090,7 @@ popup_menu_detach_cb (GtkWidget *attach_widget, impl->browse_files_popup_menu_add_shortcut_item = NULL; impl->browse_files_popup_menu_copy_location_item = NULL; impl->browse_files_popup_menu_hidden_files_item = NULL; + impl->browse_files_popup_menu_thumbnails_item = NULL; } /* Callback used when the "Add to Bookmarks" menu item is activated */ @@ -4149,6 +4159,17 @@ show_hidden_toggled_cb (GtkCheckMenuItem *item, NULL); } +static void thumbnails_reload (GtkFileChooserDefault *impl); + +/* Callback used when the "Show Thumbnails" menu item is toggled */ +static void +show_thumbnails_toggled_cb (GtkCheckMenuItem *item, + GtkFileChooserDefault *impl) +{ + impl->show_thumbnails = gtk_check_menu_item_get_active (item); + thumbnails_reload (impl); +} + /* Callback used when the "Show Size Column" menu item is toggled */ static void show_size_column_toggled_cb (GtkCheckMenuItem *item, @@ -4508,6 +4529,13 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_check_menu_item_new_with_mnemonic (_("Show _Thumbnails")); + impl->browse_files_popup_menu_thumbnails_item = item; + g_signal_connect (item, "toggled", + G_CALLBACK (show_thumbnails_toggled_cb), impl); + gtk_widget_show (item); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + if (impl->view_mode == VIEW_MODE_LIST) { item = gtk_check_menu_item_new_with_mnemonic (_("Show _Size Column")); @@ -4601,6 +4629,14 @@ file_list_update_popup_menu (GtkFileChooserDefault *impl) g_signal_handlers_unblock_by_func (impl->browse_files_popup_menu_hidden_files_item, G_CALLBACK (show_hidden_toggled_cb), impl); + /* 'Show Thumbnails' */ + g_signal_handlers_block_by_func (impl->browse_files_popup_menu_thumbnails_item, + G_CALLBACK (show_thumbnails_toggled_cb), impl); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (impl->browse_files_popup_menu_thumbnails_item), + impl->show_thumbnails); + g_signal_handlers_unblock_by_func (impl->browse_files_popup_menu_thumbnails_item, + G_CALLBACK (show_thumbnails_toggled_cb), impl); + if (impl->view_mode == VIEW_MODE_LIST) { /* 'Show Size Column' */ @@ -7527,7 +7563,7 @@ settings_load (GtkFileChooserDefault *impl) LocationMode location_mode; ViewMode view_mode; gboolean show_hidden; - gboolean show_size_column; + gboolean show_size_column, show_thumbnails; gint sort_column, icon_view_scale; GtkSortType sort_order; StartupMode startup_mode; @@ -7539,6 +7575,7 @@ settings_load (GtkFileChooserDefault *impl) icon_view_scale = _gtk_file_chooser_settings_get_icon_view_scale (settings); show_hidden = _gtk_file_chooser_settings_get_show_hidden (settings); show_size_column = _gtk_file_chooser_settings_get_show_size_column (settings); + show_thumbnails = _gtk_file_chooser_settings_get_show_thumbnails (settings); sort_column = _gtk_file_chooser_settings_get_sort_column (settings); sort_order = _gtk_file_chooser_settings_get_sort_order (settings); startup_mode = _gtk_file_chooser_settings_get_startup_mode (settings); @@ -7569,6 +7606,11 @@ settings_load (GtkFileChooserDefault *impl) gtk_file_chooser_set_show_hidden (GTK_FILE_CHOOSER (impl), show_hidden); impl->show_size_column = show_size_column; + if (impl->show_thumbnails != show_thumbnails) + { + impl->show_thumbnails = show_thumbnails; + thumbnails_reload (impl); + } if (impl->list_size_column) gtk_tree_view_column_set_visible (impl->list_size_column, show_size_column); @@ -7613,6 +7655,7 @@ settings_save (GtkFileChooserDefault *impl) _gtk_file_chooser_settings_set_icon_view_scale (settings, impl->icon_view_icon_size); _gtk_file_chooser_settings_set_show_hidden (settings, gtk_file_chooser_get_show_hidden (GTK_FILE_CHOOSER (impl))); _gtk_file_chooser_settings_set_show_size_column (settings, impl->show_size_column); + _gtk_file_chooser_settings_set_show_thumbnails (settings, impl->show_thumbnails); _gtk_file_chooser_settings_set_sort_column (settings, impl->sort_column); _gtk_file_chooser_settings_set_sort_order (settings, impl->sort_order); _gtk_file_chooser_settings_set_startup_mode (settings, impl->startup_mode); @@ -8311,6 +8354,129 @@ icon_query_cancel (IconQuery *query) static void icon_queries_start (GtkFileChooserDefault *impl); +/* Thumbnails of images that have none are made in the background for + * the icon view, once a row on screen has its icon: see gtkfilethumbnail.c. + * The list view only shows those that exist. Rows scrolled far away + * give up their request and ask again when they come back. */ +#define THUMBNAIL_TRIED_ATTRIBUTE "filechooser::thumbnail_tried" + +typedef struct +{ + GtkFileChooserDefault *impl; /* owns a reference */ + GtkFileSystemModel *model; /* owns a reference */ + GFile *file; + GCancellable *cancellable; +} ThumbnailRequest; + +static void +thumbnail_request_free (gpointer data) +{ + ThumbnailRequest *request = data; + GtkFileChooserDefault *impl = request->impl; + + if (impl->thumbnail_requests && + g_hash_table_lookup (impl->thumbnail_requests, request->file) == request) + g_hash_table_remove (impl->thumbnail_requests, request->file); + + g_object_unref (request->cancellable); + g_object_unref (request->file); + g_object_unref (request->model); + g_object_unref (impl); + g_slice_free (ThumbnailRequest, request); +} + +static void +thumbnail_done (GFile *file, + const gchar *thumbnail, + gpointer data) +{ + ThumbnailRequest *request = data; + GtkTreeIter iter; + + if (thumbnail && + _gtk_file_system_model_get_iter_for_file (request->model, &iter, file)) + { + GFileInfo *info = g_file_info_dup (_gtk_file_system_model_get_info (request->model, &iter)); + + g_file_info_set_attribute_byte_string (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH, thumbnail); + _gtk_file_system_model_update_file (request->model, file, info); + g_object_unref (info); + } +} + +/* Gives up the request for @file; the row may ask again later */ +static void +thumbnail_request_cancel (GtkFileChooserDefault *impl, + ThumbnailRequest *request) +{ + GtkTreeIter iter; + + if (_gtk_file_system_model_get_iter_for_file (request->model, &iter, request->file)) + { + GFileInfo *info = _gtk_file_system_model_get_info (request->model, &iter); + + if (info) + g_file_info_remove_attribute (info, THUMBNAIL_TRIED_ATTRIBUTE); + } + + g_cancellable_cancel (request->cancellable); + g_hash_table_remove (impl->thumbnail_requests, request->file); +} + +static void +thumbnail_requests_cancel_all (GtkFileChooserDefault *impl) +{ + GList *requests, *l; + + if (impl->thumbnail_requests == NULL) + return; + + requests = g_hash_table_get_values (impl->thumbnail_requests); + for (l = requests; l; l = l->next) + thumbnail_request_cancel (impl, l->data); + g_list_free (requests); +} + +static void +thumbnail_maybe_request (GtkFileChooserDefault *impl, + GtkFileSystemModel *model, + GtkTreeIter *iter, + GFileInfo *info) +{ + ThumbnailRequest *request; + GFile *file; + + if (!impl->show_thumbnails || impl->view_mode != VIEW_MODE_ICON || + !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON) || + g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH) || + g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED) || + g_file_info_has_attribute (info, THUMBNAIL_TRIED_ATTRIBUTE)) + return; + + file = _gtk_file_system_model_get_file (model, iter); + if (!_gtk_file_thumbnail_wanted (file, info)) + return; + + g_file_info_set_attribute_boolean (info, THUMBNAIL_TRIED_ATTRIBUTE, TRUE); + + if (impl->thumbnail_requests == NULL) + impl->thumbnail_requests = g_hash_table_new (g_file_hash, (GEqualFunc) g_file_equal); + /* the row changed meanwhile; the request still runs and updates it */ + else if (g_hash_table_lookup (impl->thumbnail_requests, file)) + return; + + request = g_slice_new (ThumbnailRequest); + request->impl = g_object_ref (impl); + request->model = g_object_ref (model); + request->file = g_object_ref (file); + request->cancellable = g_cancellable_new (); + g_hash_table_insert (impl->thumbnail_requests, request->file, request); + + _gtk_file_thumbnail_request (file, info, impl->icon_view_icon_size, + request->cancellable, thumbnail_done, + request, thumbnail_request_free); +} + static void icon_query_done (GObject *object, GAsyncResult *res, @@ -8334,7 +8500,12 @@ icon_query_done (GObject *object, { GFileInfo *info = g_file_info_dup (_gtk_file_system_model_get_info (query->model, &iter)); - copy_attribute (info, queried, G_FILE_ATTRIBUTE_THUMBNAIL_PATH); + /* a thumbnail older than its file is not shown (GLib 2.40 and + * later can tell) */ + if (impl->show_thumbnails && + (!g_file_info_has_attribute (queried, "thumbnail::is-valid") || + g_file_info_get_attribute_boolean (queried, "thumbnail::is-valid"))) + copy_attribute (info, queried, G_FILE_ATTRIBUTE_THUMBNAIL_PATH); copy_attribute (info, queried, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED); copy_attribute (info, queried, G_FILE_ATTRIBUTE_STANDARD_ICON); @@ -8364,6 +8535,7 @@ icon_queries_start (GtkFileChooserDefault *impl) impl->icon_queries_running = g_list_prepend (impl->icon_queries_running, query); g_file_query_info_async (query->file, G_FILE_ATTRIBUTE_THUMBNAIL_PATH "," + "thumbnail::is-valid," G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "," G_FILE_ATTRIBUTE_STANDARD_ICON, G_FILE_QUERY_INFO_NONE, @@ -8396,6 +8568,8 @@ icon_queries_cancel_all (GtkFileChooserDefault *impl) /* Running queries free themselves when they complete. */ for (l = impl->icon_queries_running; l; l = l->next) icon_query_cancel (l->data); + + thumbnail_requests_cancel_all (impl); } static gboolean @@ -8459,6 +8633,31 @@ icons_update_cb (gpointer data) } } + /* So may thumbnails */ + if (impl->thumbnail_requests) + { + GList *requests = g_hash_table_get_values (impl->thumbnail_requests), *r; + + for (r = requests; r; r = r->next) + { + ThumbnailRequest *request = r->data; + GtkTreeIter iter; + + row = -1; + if (request->model == model && + _gtk_file_system_model_get_iter_for_file (model, &iter, request->file)) + { + GtkTreePath *path = gtk_tree_model_get_path (impl->current_model, &iter); + + row = gtk_tree_path_get_indices (path)[0]; + gtk_tree_path_free (path); + } + if (row < first - margin || row > last + margin) + thumbnail_request_cancel (impl, request); + } + g_list_free (requests); + } + for (row = first; row <= last; row++) { GtkTreeIter iter; @@ -8469,10 +8668,14 @@ icons_update_cb (gpointer data) break; info = _gtk_file_system_model_get_info (model, &iter); - if (info == NULL || - g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON) || - g_file_info_has_attribute (info, ICON_QUERIED_ATTRIBUTE)) + if (info == NULL) continue; + if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON) || + g_file_info_has_attribute (info, ICON_QUERIED_ATTRIBUTE)) + { + thumbnail_maybe_request (impl, model, &iter, info); + continue; + } g_file_info_set_attribute_boolean (info, ICON_QUERIED_ATTRIBUTE, TRUE); @@ -8505,6 +8708,50 @@ icons_queue_update (GtkWidget *view, return FALSE; } +static gboolean +forget_icon (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer data) +{ + GFileInfo *info = _gtk_file_system_model_get_info (GTK_FILE_SYSTEM_MODEL (model), iter); + + if (info) + { + g_file_info_remove_attribute (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH); + g_file_info_remove_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON); + g_file_info_remove_attribute (info, ICON_QUERIED_ATTRIBUTE); + g_file_info_remove_attribute (info, THUMBNAIL_TRIED_ATTRIBUTE); + } + + return FALSE; +} + +/* Thumbnails were turned on or off: the icons are queried again */ +static void +thumbnails_reload (GtkFileChooserDefault *impl) +{ + GtkFileSystemModel *models[3]; + gint i; + + models[0] = impl->browse_files_model; + models[1] = impl->search_model; + models[2] = impl->recent_model; + + icon_queries_cancel_all (impl); + + for (i = 0; i < 3; i++) + if (models[i]) + { + gtk_tree_model_foreach (GTK_TREE_MODEL (models[i]), forget_icon, NULL); + _gtk_file_system_model_clear_cache (models[i], MODEL_COL_LIST_PIXBUF); + _gtk_file_system_model_clear_cache (models[i], MODEL_COL_ICON_PIXBUF); + } + + if (impl->icons_update_id == 0) + impl->icons_update_id = gdk_threads_add_idle (icons_update_cb, impl); +} + static gboolean get_visible_range (GtkTreePath **start, GtkTreePath **end, GtkFileChooserDefault *impl) diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index bebb17687..f17e18726 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -183,6 +183,7 @@ struct _GtkFileChooserDefault GtkWidget *browse_files_popup_menu_add_shortcut_item; GtkWidget *browse_files_popup_menu_copy_location_item; GtkWidget *browse_files_popup_menu_hidden_files_item; + GtkWidget *browse_files_popup_menu_thumbnails_item; GtkWidget *browse_files_popup_menu_size_column_item; GtkWidget *browse_files_popup_menu_sort_by_name_item; GtkWidget *browse_files_popup_menu_sort_by_size_item; @@ -239,6 +240,7 @@ struct _GtkFileChooserDefault GQueue icon_queries_waiting; GList *icon_queries_running; guint icons_update_id; + GHashTable *thumbnail_requests; /* GFile -> ThumbnailRequest, while made */ gint icon_view_scale_visible_overscan; ViewMode view_mode; @@ -334,6 +336,7 @@ struct _GtkFileChooserDefault guint has_desktop : 1; guint has_search : 1; guint show_size_column : 1; + guint show_thumbnails : 1; guint create_folders : 1; #if 0 diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index ce34291ef..440f0813f 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -43,6 +43,7 @@ #define ICON_VIEW_SCALE_KEY "IconViewScale" #define SHOW_HIDDEN_KEY "ShowHidden" #define SHOW_SIZE_COLUMN_KEY "ShowSizeColumn" +#define SHOW_THUMBNAILS_KEY "ShowThumbnails" #define GEOMETRY_X_KEY "GeometryX" #define GEOMETRY_Y_KEY "GeometryY" #define GEOMETRY_WIDTH_KEY "GeometryWidth" @@ -203,6 +204,15 @@ ensure_settings_read (GtkFileChooserSettings *settings) else settings->show_size_column = value != FALSE; + /* Show thumbnails */ + + value = g_key_file_get_boolean (key_file, SETTINGS_GROUP, + SHOW_THUMBNAILS_KEY, &error); + if (error) + warn_if_invalid_key_and_clear_error (SHOW_THUMBNAILS_KEY, &error); + else + settings->show_thumbnails = value != FALSE; + /* Geometry */ get_int_key (key_file, SETTINGS_GROUP, GEOMETRY_X_KEY, &settings->geometry_x); @@ -288,6 +298,7 @@ _gtk_file_chooser_settings_init (GtkFileChooserSettings *settings) settings->sort_column = FILE_LIST_COL_NAME; settings->show_hidden = FALSE; settings->show_size_column = TRUE; + settings->show_thumbnails = TRUE; settings->geometry_x = -1; settings->geometry_y = -1; settings->geometry_width = -1; @@ -371,6 +382,20 @@ _gtk_file_chooser_settings_get_show_size_column (GtkFileChooserSettings *setting return settings->show_size_column; } +void +_gtk_file_chooser_settings_set_show_thumbnails (GtkFileChooserSettings *settings, + gboolean show_thumbnails) +{ + settings->show_thumbnails = show_thumbnails != FALSE; +} + +gboolean +_gtk_file_chooser_settings_get_show_thumbnails (GtkFileChooserSettings *settings) +{ + ensure_settings_read (settings); + return settings->show_thumbnails; +} + void _gtk_file_chooser_settings_get_geometry (GtkFileChooserSettings *settings, int *out_x, @@ -547,6 +572,8 @@ _gtk_file_chooser_settings_save (GtkFileChooserSettings *settings, SHOW_HIDDEN_KEY, settings->show_hidden); g_key_file_set_boolean (key_file, SETTINGS_GROUP, SHOW_SIZE_COLUMN_KEY, settings->show_size_column); + g_key_file_set_boolean (key_file, SETTINGS_GROUP, + SHOW_THUMBNAILS_KEY, settings->show_thumbnails); g_key_file_set_integer (key_file, SETTINGS_GROUP, GEOMETRY_X_KEY, settings->geometry_x); g_key_file_set_integer (key_file, SETTINGS_GROUP, diff --git a/gtk/gtkfilechoosersettings.h b/gtk/gtkfilechoosersettings.h index b987fca8c..7d39526ca 100644 --- a/gtk/gtkfilechoosersettings.h +++ b/gtk/gtkfilechoosersettings.h @@ -59,6 +59,7 @@ struct _GtkFileChooserSettings guint settings_read : 1; guint show_hidden : 1; guint show_size_column : 1; + guint show_thumbnails : 1; }; struct _GtkFileChooserSettingsClass @@ -86,6 +87,10 @@ gboolean _gtk_file_chooser_settings_get_show_hidden (GtkFileChooserSettings *set void _gtk_file_chooser_settings_set_show_hidden (GtkFileChooserSettings *settings, gboolean show_hidden); +gboolean _gtk_file_chooser_settings_get_show_thumbnails (GtkFileChooserSettings *settings); +void _gtk_file_chooser_settings_set_show_thumbnails (GtkFileChooserSettings *settings, + gboolean show_thumbnails); + gboolean _gtk_file_chooser_settings_get_show_size_column (GtkFileChooserSettings *settings); void _gtk_file_chooser_settings_set_show_size_column (GtkFileChooserSettings *settings, gboolean show_column); diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c new file mode 100644 index 000000000..60ae5ca31 --- /dev/null +++ b/gtk/gtkfilethumbnail.c @@ -0,0 +1,480 @@ +/* GTK - The GIMP Toolkit + * gtkfilethumbnail.c: thumbnails made in the background + * + * Thumbnails of images go where every program that follows the + * freedesktop.org thumbnail specification finds them, and where GIO's + * thumbnail::path points to: $XDG_CACHE_HOME/thumbnails, which GLib + * gives on Linux, the BSDs, macOS and Windows alike. + * + * One thread makes them, newest request first, so a slow machine only + * ever decodes one image at a time. Images are decoded straight to + * the size of the thumbnail where the loader can (JPEG), never larger + * than they are, and not at all when they would need too much memory. + * Files on network shares are left alone: reading every picture there + * would be slow, and the user may not want copies of them. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#include "config.h" + +#include +#include +#include +#include +#include + +#include "gtkfilethumbnail.h" + +#ifndef O_BINARY +#define O_BINARY 0 +#endif + +#define MAX_FILE_SIZE (64 * 1024 * 1024) +#define MAX_PIXELS (3840 * 2400) /* decoded whole: a 4K screenshot, 37 MB */ +#define MAX_JPEG_PIXELS (128 * 1024 * 1024) /* decoded at 1/8, a few rows at a time */ +#define MAX_GIF_SIZE (4 * 1024 * 1024) /* older loaders keep every frame */ +#define READ_CHUNK (64 * 1024) +#define FAIL_DIR "gtk2-ng" + +typedef struct +{ + GFile *file; + gchar *path; + gchar *uri; + guint64 mtime; + goffset size; + gint thumbnail_size; /* 128 or 256 */ + GCancellable *cancellable; + GtkFileThumbnailDone done; + gpointer data; + GDestroyNotify destroy; + guint serial; + gchar *result; +} Job; + +static GThreadPool *pool; +static guint serial; + +static void +job_free (Job *job) +{ + g_object_unref (job->file); + g_free (job->path); + g_free (job->uri); + if (job->cancellable) + g_object_unref (job->cancellable); + if (job->destroy) + job->destroy (job->data); + g_free (job->result); + g_slice_free (Job, job); +} + +/* the newest request first: that is what came on screen last */ +static gint +job_compare (gconstpointer a, + gconstpointer b, + gpointer user_data) +{ + const Job *ja = a, *jb = b; + + return ja->serial < jb->serial ? 1 : ja->serial > jb->serial ? -1 : 0; +} + +static gchar * +thumbnail_name (const gchar *uri) +{ + gchar *md5 = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri, -1); + gchar *name = g_strconcat (md5, ".png", NULL); + + g_free (md5); + + return name; +} + +static gchar * +thumbnail_path (const gchar *subdir, + const gchar *uri) +{ + gchar *name = thumbnail_name (uri); + gchar *path = g_build_filename (g_get_user_cache_dir (), "thumbnails", subdir, name, NULL); + + g_free (name); + + return path; +} + +/* A thumbnail, or failure, recorded for this version of the file */ +static gboolean +thumbnail_matches (const gchar *path, + Job *job) +{ + GdkPixbuf *pixbuf; + const gchar *mtime; + gboolean matches; + + if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) + return FALSE; + + pixbuf = gdk_pixbuf_new_from_file (path, NULL); + if (pixbuf == NULL) + return FALSE; + + mtime = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::MTime"); + matches = mtime && g_ascii_strtoull (mtime, NULL, 10) == job->mtime; + g_object_unref (pixbuf); + + return matches; +} + +/* Network shares, and FUSE mounts like sshfs, are left alone; the + * answer is kept per folder */ +static gboolean +on_remote_filesystem (Job *job) +{ + static gchar *last_folder; + static gboolean last_remote; + gchar *folder = g_path_get_dirname (job->path); + GFileInfo *info; + + if (g_strcmp0 (folder, last_folder) == 0) + { + g_free (folder); + return last_remote; + } + + last_remote = TRUE; + info = g_file_query_filesystem_info (job->file, + G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE "," + G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, + job->cancellable, NULL); + if (info) + { + const gchar *type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE); + + last_remote = g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE) || + (type && g_str_has_prefix (type, "fuse")); + g_object_unref (info); + } + + g_free (last_folder); + last_folder = folder; + + return last_remote; +} + +static void +size_prepared (GdkPixbufLoader *loader, + gint width, + gint height, + gpointer data) +{ + gint size = GPOINTER_TO_INT (data); + + /* only ever smaller, keeping the shape */ + if (width > size || height > size) + { + if (width > height) + { + height = MAX (1, (gint) ((gint64) height * size / width)); + width = size; + } + else + { + width = MAX (1, (gint) ((gint64) width * size / height)); + height = size; + } + gdk_pixbuf_loader_set_size (loader, width, height); + } +} + +/* A progressive JPEG needs memory for the whole picture, however small + * it is decoded; its frame header (SOFn) tells */ +static gboolean +jpeg_is_progressive (const gchar *path) +{ + FILE *f = g_fopen (path, "rb"); + gboolean progressive = TRUE; /* not found: the careful answer */ + guchar m[4]; + gint i; + + if (f == NULL) + return TRUE; + + if (fread (m, 1, 2, f) == 2 && m[0] == 0xff && m[1] == 0xd8) + for (i = 0; i < 64 && fread (m, 1, 4, f) == 4 && m[0] == 0xff; i++) + { + /* SOF0 to SOF15, but for DHT, JPG and DAC */ + if (m[1] >= 0xc0 && m[1] <= 0xcf && m[1] != 0xc4 && m[1] != 0xc8 && m[1] != 0xcc) + { + progressive = m[1] == 0xc2 || m[1] == 0xc6 || m[1] == 0xca || m[1] == 0xce; + break; + } + if (fseek (f, ((m[2] << 8) | m[3]) - 2, SEEK_CUR) != 0) + break; + } + fclose (f); + + return progressive; +} + +static GdkPixbuf * +decode (Job *job) +{ + GdkPixbufLoader *loader; + GdkPixbuf *pixbuf = NULL; + guchar *buffer; + gboolean ok = TRUE; + FILE *f; + gsize n; + + f = g_fopen (job->path, "rb"); + if (f == NULL) + return NULL; + + loader = gdk_pixbuf_loader_new (); + g_signal_connect (loader, "size-prepared", G_CALLBACK (size_prepared), + GINT_TO_POINTER (job->thumbnail_size)); + + buffer = g_malloc (READ_CHUNK); + while (ok && (n = fread (buffer, 1, READ_CHUNK, f)) > 0) + ok = !g_cancellable_is_cancelled (job->cancellable) && + gdk_pixbuf_loader_write (loader, buffer, n, NULL); + g_free (buffer); + fclose (f); + + if (gdk_pixbuf_loader_close (loader, NULL) && ok) + { + pixbuf = gdk_pixbuf_loader_get_pixbuf (loader); + if (pixbuf) + pixbuf = gdk_pixbuf_apply_embedded_orientation (pixbuf); + } + g_object_unref (loader); + + return pixbuf; +} + +/* Saves @pixbuf as the thumbnail @path, readable by the user only, and + * in one step, so nobody finds half a thumbnail */ +static gboolean +save (GdkPixbuf *pixbuf, + const gchar *path, + Job *job, + gint width, + gint height) +{ + gchar *dir = g_path_get_dirname (path); + gchar *tmp = g_build_filename (dir, "gtk2-ng-XXXXXX.png", NULL); + gchar *mtime = g_strdup_printf ("%" G_GUINT64_FORMAT, job->mtime); + gchar *size = g_strdup_printf ("%" G_GINT64_FORMAT, (gint64) job->size); + gchar *w = g_strdup_printf ("%d", width), *h = g_strdup_printf ("%d", height); + gboolean saved = FALSE; + gint fd; + + if (g_mkdir_with_parents (dir, 0700) == 0 && + (fd = g_mkstemp_full (tmp, O_RDWR | O_BINARY, 0600)) >= 0) + { + g_close (fd, NULL); + saved = gdk_pixbuf_save (pixbuf, tmp, "png", NULL, + "tEXt::Thumb::URI", job->uri, + "tEXt::Thumb::MTime", mtime, + "tEXt::Thumb::Size", size, + "tEXt::Thumb::Image::Width", w, + "tEXt::Thumb::Image::Height", h, + "tEXt::Software", "GTK+ 2", + NULL) && + g_rename (tmp, path) == 0; + if (!saved) + g_unlink (tmp); + } + + g_free (dir); + g_free (tmp); + g_free (mtime); + g_free (size); + g_free (w); + g_free (h); + + return saved; +} + +/* Remembers that this version of the file gives no thumbnail */ +static void +save_failure (Job *job) +{ + GdkPixbuf *pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 1, 1); + gchar *path = thumbnail_path ("fail" G_DIR_SEPARATOR_S FAIL_DIR, job->uri); + + gdk_pixbuf_fill (pixbuf, 0); + save (pixbuf, path, job, 0, 0); + g_object_unref (pixbuf); + g_free (path); +} + +static gchar * +make_thumbnail (Job *job) +{ + const gchar *subdir = job->thumbnail_size > 128 ? "large" : "normal"; + gchar *path = thumbnail_path (subdir, job->uri); + gchar *fail = thumbnail_path ("fail" G_DIR_SEPARATOR_S FAIL_DIR, job->uri); + GdkPixbufFormat *format; + GdkPixbuf *pixbuf = NULL; + gint width, height; + + /* made meanwhile, by us or another program */ + if (thumbnail_matches (path, job)) + goto done; + + if (g_cancellable_is_cancelled (job->cancellable) || + thumbnail_matches (fail, job) || on_remote_filesystem (job)) + goto none; + + format = gdk_pixbuf_get_file_info (job->path, &width, &height); + if (format == NULL || width <= 0 || height <= 0) + { + save_failure (job); + goto none; + } + + /* JPEG decodes at a fraction of its size, unless progressive; the + * others decode whole */ + { + gchar *name = gdk_pixbuf_format_get_name (format); + gint64 pixels = (gint64) width * height; + gboolean fits; + + if (g_strcmp0 (name, "jpeg") == 0) + fits = pixels <= (jpeg_is_progressive (job->path) ? MAX_PIXELS : MAX_JPEG_PIXELS); + else if (g_strcmp0 (name, "gif") == 0) + fits = pixels <= MAX_PIXELS && job->size <= MAX_GIF_SIZE; + else + fits = pixels <= MAX_PIXELS; + g_free (name); + if (!fits) + goto none; + } + + pixbuf = decode (job); + if (pixbuf == NULL) + { + if (!g_cancellable_is_cancelled (job->cancellable)) + save_failure (job); + goto none; + } + + if (!save (pixbuf, path, job, width, height)) + goto none; + + g_object_unref (pixbuf); + done: + g_free (fail); + return path; + + none: + if (pixbuf) + g_object_unref (pixbuf); + g_free (fail); + g_free (path); + return NULL; +} + +static gboolean +job_finish (gpointer data) +{ + Job *job = data; + + if (!g_cancellable_is_cancelled (job->cancellable)) + job->done (job->file, job->result, job->data); + job_free (job); + + return FALSE; +} + +static void +job_run (gpointer data, + gpointer user_data) +{ + Job *job = data; + + if (!g_cancellable_is_cancelled (job->cancellable)) + job->result = make_thumbnail (job); + + gdk_threads_add_idle (job_finish, job); +} + +/* Whether a thumbnail could be made for @file, of which @info knows the + * fast content type, size and modification time */ +gboolean +_gtk_file_thumbnail_wanted (GFile *file, + GFileInfo *info) +{ + const gchar *type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE); + gchar *mime, *path; + gboolean wanted; + + if (type == NULL) + type = g_file_info_get_content_type (info); + if (type == NULL || + !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SIZE) || + !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_TIME_MODIFIED) || + g_file_info_get_size (info) > MAX_FILE_SIZE) + return FALSE; + + mime = g_content_type_get_mime_type (type); + wanted = mime && g_str_has_prefix (mime, "image/"); + g_free (mime); + if (!wanted) + return FALSE; + + /* local files, but not the thumbnails themselves */ + path = g_file_get_path (file); + if (path) + { + gchar *cache = g_build_filename (g_get_user_cache_dir (), "thumbnails", NULL); + + wanted = !g_str_has_prefix (path, cache); + g_free (cache); + g_free (path); + } + else + wanted = FALSE; + + return wanted; +} + +/* Makes a thumbnail of @size, 128 or 256, for @file in the background; + * @destroy frees @data when the request is over, made or not */ +void +_gtk_file_thumbnail_request (GFile *file, + GFileInfo *info, + gint size, + GCancellable *cancellable, + GtkFileThumbnailDone done, + gpointer data, + GDestroyNotify destroy) +{ + Job *job = g_slice_new0 (Job); + + job->file = g_object_ref (file); + job->path = g_file_get_path (file); + job->uri = g_file_get_uri (file); + job->mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED); + job->size = g_file_info_get_size (info); + job->thumbnail_size = size > 128 ? 256 : 128; + job->cancellable = cancellable ? g_object_ref (cancellable) : NULL; + job->done = done; + job->data = data; + job->destroy = destroy; + job->serial = ++serial; + + if (pool == NULL) + { + pool = g_thread_pool_new (job_run, NULL, 1, FALSE, NULL); + g_thread_pool_set_sort_function (pool, job_compare, NULL); + } + + g_thread_pool_push (pool, job, NULL); +} diff --git a/gtk/gtkfilethumbnail.h b/gtk/gtkfilethumbnail.h new file mode 100644 index 000000000..eead71140 --- /dev/null +++ b/gtk/gtkfilethumbnail.h @@ -0,0 +1,35 @@ +/* GTK - The GIMP Toolkit + * gtkfilethumbnail.h: thumbnails made in the background + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + */ + +#ifndef __GTK_FILE_THUMBNAIL_H__ +#define __GTK_FILE_THUMBNAIL_H__ + +#include + +G_BEGIN_DECLS + +/* Called in the main loop, with the GDK lock, unless @cancellable was + * cancelled: @thumbnail is the path of the new thumbnail, or NULL. */ +typedef void (*GtkFileThumbnailDone) (GFile *file, + const gchar *thumbnail, + gpointer data); + +gboolean _gtk_file_thumbnail_wanted (GFile *file, + GFileInfo *info); +void _gtk_file_thumbnail_request (GFile *file, + GFileInfo *info, + gint size, + GCancellable *cancellable, + GtkFileThumbnailDone done, + gpointer data, + GDestroyNotify destroy); + +G_END_DECLS + +#endif /* __GTK_FILE_THUMBNAIL_H__ */ diff --git a/gtk/makefile.msc.in b/gtk/makefile.msc.in index 97db1b787..67a0ae4d1 100644 --- a/gtk/makefile.msc.in +++ b/gtk/makefile.msc.in @@ -124,6 +124,7 @@ gtk_OBJECTS_file = \ gtkfilefilter.obj \ gtkfilesystem.obj \ gtkfilesystemmodel.obj \ + gtkfilethumbnail.obj \ gtk_OBJECTS_print = \ gtkprint-win32.obj \ From c3651fec43e7c1c0e4cbd15c9482771fb4147001 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 00:12:11 +0200 Subject: [PATCH 037/249] filechooser: rename a file in place with F2 or the context menu --- gtk/gtkfilechooserdefault.c | 218 ++++++++++++++++++++++++++++++++++++ gtk/gtkfilechooserprivate.h | 8 ++ 2 files changed, 226 insertions(+) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 9270f309e..7e9c2f417 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -472,6 +472,7 @@ static void current_selection_selected_foreach (GtkFileChooserDefault GtkTreeSelectionForeachFunc func, gpointer data); static guint current_selection_count_selected_rows (GtkFileChooserDefault *impl); +static GFile * get_selected_file (GtkFileChooserDefault *impl); static void current_selection_select_iter (GtkFileChooserDefault *impl, GtkTreeIter *iter); static void copy_old_selection_to_current_view (GtkFileChooserDefault *impl, @@ -939,6 +940,8 @@ gtk_file_chooser_default_finalize (GObject *object) g_free (impl->preview_display_name); g_free (impl->edited_new_text); + if (impl->rename_file) + g_object_unref (impl->rename_file); G_OBJECT_CLASS (_gtk_file_chooser_default_parent_class)->finalize (object); } @@ -2547,6 +2550,188 @@ create_folder (GtkFileChooserDefault *impl, create_folder_cb, data); } +/* Renaming a file: F2 or "Rename..." edits its name in place, like a new + * folder's; then GIO renames it in the background. The list follows + * from the folder monitor; the renamed file is selected when it shows. */ + +static void +rename_select_clear (GtkFileChooserDefault *impl) +{ + if (impl->rename_select_handler) + g_signal_handler_disconnect (impl->rename_select_model, impl->rename_select_handler); + impl->rename_select_handler = 0; + g_clear_object (&impl->rename_select_model); + g_clear_object (&impl->rename_select); +} + +/* Selects the renamed file if it is in the list */ +static gboolean +rename_select_now (GtkFileChooserDefault *impl) +{ + GtkFileSystemModel *model = impl->browse_files_model; + GtkTreeIter iter; + GtkTreePath *path; + + if (model == NULL || impl->current_model != GTK_TREE_MODEL (model) || + !_gtk_file_system_model_get_iter_for_file (model, &iter, impl->rename_select) || + !_gtk_file_system_model_iter_is_visible (model, &iter)) + return FALSE; + + current_selection_unselect_all (impl); + current_selection_select_iter (impl, &iter); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (model), &iter); + current_view_set_cursor (impl, path); + gtk_tree_path_free (path); + + return TRUE; +} + +static void +rename_row_inserted_cb (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + GtkFileChooserDefault *impl) +{ + GFile *file = _gtk_file_system_model_get_file (GTK_FILE_SYSTEM_MODEL (model), iter); + + if (file && g_file_equal (file, impl->rename_select)) + { + rename_select_now (impl); + rename_select_clear (impl); + } +} + +typedef struct +{ + GtkFileChooserDefault *impl; + GFile *file; +} RenameData; + +static void +rename_done (GObject *source, + GAsyncResult *result, + gpointer user_data) +{ + RenameData *data = user_data; + GtkFileChooserDefault *impl = data->impl; + GError *error = NULL; + GFile *renamed; + + renamed = g_file_set_display_name_finish (G_FILE (source), result, &error); + + GDK_THREADS_ENTER (); + + if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) + g_error_free (error); + else if (renamed == NULL) + error_dialog (impl, _("The file could not be renamed"), data->file, error); + else if (impl->browse_files_model && impl->current_folder && + g_file_has_parent (renamed, impl->current_folder)) + { + /* still in its folder */ + rename_select_clear (impl); + impl->rename_select = g_object_ref (renamed); + if (rename_select_now (impl)) + rename_select_clear (impl); + else + { + /* the monitor may be slower, or there is none */ + impl->rename_select_model = g_object_ref (impl->browse_files_model); + impl->rename_select_handler = + g_signal_connect (impl->rename_select_model, "row-inserted", + G_CALLBACK (rename_row_inserted_cb), impl); + _gtk_file_system_model_add_and_query_file (impl->browse_files_model, + renamed, MODEL_ATTRIBUTES); + } + } + + GDK_THREADS_LEAVE (); + + if (renamed) + g_object_unref (renamed); + g_object_unref (data->file); + g_object_unref (data->impl); + g_slice_free (RenameData, data); +} + +static void +rename_finish_editing (GtkFileChooserDefault *impl) +{ + GFile *file = impl->rename_file; + gchar *name = impl->edited_new_text; + gchar *old_name = NULL; + GtkTreeIter iter; + + impl->rename_file = NULL; + impl->edited_new_text = NULL; + + if (impl->list_name_renderer) + g_object_set (impl->list_name_renderer, "editable", FALSE, NULL); + gtk_widget_set_sensitive (impl->browse_new_folder_button, TRUE); + + if (impl->browse_files_model && + _gtk_file_system_model_get_iter_for_file (impl->browse_files_model, &iter, file)) + gtk_tree_model_get (GTK_TREE_MODEL (impl->browse_files_model), &iter, + MODEL_COL_NAME, &old_name, -1); + + if (name && *name && g_strcmp0 (name, old_name) != 0 && + strchr (name, '/') == NULL && strchr (name, G_DIR_SEPARATOR) == NULL) + { + RenameData *data = g_slice_new (RenameData); + + data->impl = g_object_ref (impl); + data->file = g_object_ref (file); + + if (impl->rename_cancellable == NULL) + impl->rename_cancellable = g_cancellable_new (); + g_file_set_display_name_async (file, name, G_PRIORITY_DEFAULT, + impl->rename_cancellable, rename_done, data); + } + + g_free (old_name); + g_free (name); + g_object_unref (file); +} + +/* Starts editing the name of the one selected file */ +static void +rename_selected_file (GtkFileChooserDefault *impl) +{ + GtkTreeIter iter; + GtkTreePath *path; + GFile *file; + + if (impl->operation_mode != OPERATION_MODE_BROWSE || + impl->rename_file || impl->edited_idle || impl->start_editing_icon_view_idle || + impl->browse_files_model == NULL || + impl->current_model != GTK_TREE_MODEL (impl->browse_files_model) || + current_selection_count_selected_rows (impl) != 1) + return; + + file = get_selected_file (impl); + if (file == NULL || + !_gtk_file_system_model_get_iter_for_file (impl->browse_files_model, &iter, file)) + { + if (file) + g_object_unref (file); + return; + } + + impl->rename_file = file; + gtk_widget_set_sensitive (impl->browse_new_folder_button, FALSE); + path = gtk_tree_model_get_path (GTK_TREE_MODEL (impl->browse_files_model), &iter); + + if (impl->view_mode == VIEW_MODE_LIST) + { + g_object_set (impl->list_name_renderer, "editable", TRUE, NULL); + gtk_tree_view_set_cursor (GTK_TREE_VIEW (impl->browse_files_tree_view), + path, impl->list_name_column, TRUE); + gtk_tree_path_free (path); + } + else + add_idle_to_edit_icon_view (impl, path); +} + /* Idle handler for creating a new folder after editing its name cell, or for * canceling the editing. */ @@ -2558,6 +2743,13 @@ edited_idle_cb (GtkFileChooserDefault *impl) g_source_destroy (impl->edited_idle); impl->edited_idle = NULL; + if (impl->rename_file) + { + rename_finish_editing (impl); + GDK_THREADS_LEAVE (); + return FALSE; + } + _gtk_file_system_model_remove_editable (impl->browse_files_model); g_object_set (impl->list_name_renderer, "editable", FALSE, NULL); @@ -4044,6 +4236,13 @@ browse_files_key_press_event_cb (GtkWidget *widget, return TRUE; } + if (event->keyval == GDK_KEY_F2 && + !(event->state & gtk_accelerator_get_default_mod_mask ())) + { + rename_selected_file (impl); + return TRUE; + } + if ((event->keyval == GDK_KEY_Return || event->keyval == GDK_KEY_ISO_Enter || event->keyval == GDK_KEY_KP_Enter @@ -4089,6 +4288,7 @@ popup_menu_detach_cb (GtkWidget *attach_widget, impl->browse_files_popup_menu = NULL; impl->browse_files_popup_menu_add_shortcut_item = NULL; impl->browse_files_popup_menu_copy_location_item = NULL; + impl->browse_files_popup_menu_rename_item = NULL; impl->browse_files_popup_menu_hidden_files_item = NULL; impl->browse_files_popup_menu_thumbnails_item = NULL; } @@ -4509,6 +4709,13 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_menu_item_new_with_mnemonic (_("_Rename\342\200\246")); + impl->browse_files_popup_menu_rename_item = item; + g_signal_connect_swapped (item, "activate", + G_CALLBACK (rename_selected_file), impl); + gtk_widget_show (item); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_image_menu_item_new_with_mnemonic (_("_Copy Location")); impl->browse_files_popup_menu_copy_location_item = item; gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), @@ -4618,6 +4825,9 @@ file_list_update_popup_menu (GtkFileChooserDefault *impl) * bookmarks_check_add_sensitivity() */ + gtk_widget_set_sensitive (impl->browse_files_popup_menu_rename_item, + impl->operation_mode == OPERATION_MODE_BROWSE && + current_selection_count_selected_rows (impl) == 1); gtk_widget_set_sensitive (impl->browse_files_popup_menu_copy_location_item, current_selection_count_selected_rows (impl) > 0); @@ -7211,6 +7421,13 @@ cancel_all_operations (GtkFileChooserDefault *impl) pending_select_files_free (impl); + if (impl->rename_cancellable) + { + g_cancellable_cancel (impl->rename_cancellable); + g_clear_object (&impl->rename_cancellable); + } + rename_select_clear (impl); + if (impl->reload_icon_cancellables) { for (l = impl->reload_icon_cancellables; l; l = l->next) @@ -8164,6 +8381,7 @@ stop_loading_and_clear_list_model (GtkFileChooserDefault *impl, /* Icon queries keep the model alive; drop them so it is disposed * and stops loading now, and do not hear from it any more. */ icon_queries_cancel_all (impl); + rename_select_clear (impl); g_signal_handlers_disconnect_by_data (impl->browse_files_model, impl); if (impl->current_model == GTK_TREE_MODEL (impl->browse_files_model)) diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index f17e18726..c96fec183 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -182,6 +182,7 @@ struct _GtkFileChooserDefault GtkWidget *browse_files_popup_menu; GtkWidget *browse_files_popup_menu_add_shortcut_item; GtkWidget *browse_files_popup_menu_copy_location_item; + GtkWidget *browse_files_popup_menu_rename_item; GtkWidget *browse_files_popup_menu_hidden_files_item; GtkWidget *browse_files_popup_menu_thumbnails_item; GtkWidget *browse_files_popup_menu_size_column_item; @@ -300,6 +301,13 @@ struct _GtkFileChooserDefault GSource *edited_idle; char *edited_new_text; + /* renaming a file in place, and selecting it afterwards */ + GFile *rename_file; + GCancellable *rename_cancellable; + GFile *rename_select; + GtkFileSystemModel *rename_select_model; + gulong rename_select_handler; + gulong settings_signal_id; int list_view_icon_size; int icon_view_icon_size; From 2abbe2d8658f58d2e0afaf416f850f4e994de59c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 00:13:44 +0200 Subject: [PATCH 038/249] filechooser: move files to the trash with Delete or the context menu --- gtk/gtkfilechooserdefault.c | 113 ++++++++++++++++++++++++++++++++++++ gtk/gtkfilechooserprivate.h | 1 + 2 files changed, 114 insertions(+) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 7e9c2f417..3ebbe28b8 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -2693,6 +2693,98 @@ rename_finish_editing (GtkFileChooserDefault *impl) g_object_unref (file); } +/* Moving the selected files to the trash, one after the other in the + * background; the folder monitor takes them off the list. The files go + * even if the dialog closes meanwhile, as the user asked for that. */ + +typedef struct +{ + GtkFileChooserDefault *impl; + GList *files; +} TrashData; + +static void trash_next (TrashData *data); + +static void +trash_done (GObject *source, + GAsyncResult *result, + gpointer user_data) +{ + TrashData *data = user_data; + GError *error = NULL; + + GDK_THREADS_ENTER (); + + if (g_file_trash_finish (G_FILE (source), result, &error)) + trash_next (data); + else + { + /* the rest stays, so the user sees what happened */ + g_list_free_full (data->files, g_object_unref); + data->files = NULL; + if (gtk_widget_get_mapped (GTK_WIDGET (data->impl))) + error_dialog (data->impl, _("The file could not be moved to the Trash"), + G_FILE (source), error); + else + g_error_free (error); + trash_next (data); + } + + GDK_THREADS_LEAVE (); +} + +static void +trash_next (TrashData *data) +{ + GFile *file; + + if (data->files == NULL) + { + g_object_unref (data->impl); + g_slice_free (TrashData, data); + return; + } + + file = data->files->data; + data->files = g_list_delete_link (data->files, data->files); + g_file_trash_async (file, G_PRIORITY_DEFAULT, NULL, trash_done, data); + g_object_unref (file); +} + +static void +trash_selected_foreach (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer user_data) +{ + GList **files = user_data; + GFile *file; + + gtk_tree_model_get (model, iter, MODEL_COL_FILE, &file, -1); + if (file) + *files = g_list_prepend (*files, file); +} + +static void +trash_selected_files (GtkFileChooserDefault *impl) +{ + TrashData *data; + GList *files = NULL; + + if (impl->operation_mode != OPERATION_MODE_BROWSE || + impl->rename_file || impl->edited_idle) + return; + + current_selection_selected_foreach (impl, trash_selected_foreach, &files); + if (files == NULL) + return; + + data = g_slice_new (TrashData); + data->impl = g_object_ref (impl); + data->files = g_list_reverse (files); + trash_next (data); +} + /* Starts editing the name of the one selected file */ static void rename_selected_file (GtkFileChooserDefault *impl) @@ -4243,6 +4335,14 @@ browse_files_key_press_event_cb (GtkWidget *widget, return TRUE; } + if ((event->keyval == GDK_KEY_Delete || event->keyval == GDK_KEY_KP_Delete) && + !(event->state & gtk_accelerator_get_default_mod_mask ()) && + impl->operation_mode == OPERATION_MODE_BROWSE) + { + trash_selected_files (impl); + return TRUE; + } + if ((event->keyval == GDK_KEY_Return || event->keyval == GDK_KEY_ISO_Enter || event->keyval == GDK_KEY_KP_Enter @@ -4289,6 +4389,7 @@ popup_menu_detach_cb (GtkWidget *attach_widget, impl->browse_files_popup_menu_add_shortcut_item = NULL; impl->browse_files_popup_menu_copy_location_item = NULL; impl->browse_files_popup_menu_rename_item = NULL; + impl->browse_files_popup_menu_trash_item = NULL; impl->browse_files_popup_menu_hidden_files_item = NULL; impl->browse_files_popup_menu_thumbnails_item = NULL; } @@ -4716,6 +4817,15 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_image_menu_item_new_with_mnemonic (_("Move to _Trash")); + impl->browse_files_popup_menu_trash_item = item; + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), + gtk_image_new_from_icon_name ("user-trash", GTK_ICON_SIZE_MENU)); + g_signal_connect_swapped (item, "activate", + G_CALLBACK (trash_selected_files), impl); + gtk_widget_show (item); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_image_menu_item_new_with_mnemonic (_("_Copy Location")); impl->browse_files_popup_menu_copy_location_item = item; gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), @@ -4828,6 +4938,9 @@ file_list_update_popup_menu (GtkFileChooserDefault *impl) gtk_widget_set_sensitive (impl->browse_files_popup_menu_rename_item, impl->operation_mode == OPERATION_MODE_BROWSE && current_selection_count_selected_rows (impl) == 1); + gtk_widget_set_sensitive (impl->browse_files_popup_menu_trash_item, + impl->operation_mode == OPERATION_MODE_BROWSE && + current_selection_count_selected_rows (impl) > 0); gtk_widget_set_sensitive (impl->browse_files_popup_menu_copy_location_item, current_selection_count_selected_rows (impl) > 0); diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index c96fec183..7efcaec5a 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -183,6 +183,7 @@ struct _GtkFileChooserDefault GtkWidget *browse_files_popup_menu_add_shortcut_item; GtkWidget *browse_files_popup_menu_copy_location_item; GtkWidget *browse_files_popup_menu_rename_item; + GtkWidget *browse_files_popup_menu_trash_item; GtkWidget *browse_files_popup_menu_hidden_files_item; GtkWidget *browse_files_popup_menu_thumbnails_item; GtkWidget *browse_files_popup_menu_size_column_item; From 75233a7e5f377ad68703e1475f685c1f238b8d35 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 00:15:43 +0200 Subject: [PATCH 039/249] filechooser: "Visit File" shows a found or recent file in its folder --- gtk/gtkfilechooserdefault.c | 27 +++++++++++++++++++++++++++ gtk/gtkfilechooserprivate.h | 1 + 2 files changed, 28 insertions(+) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 3ebbe28b8..2c29cec39 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -4390,10 +4390,25 @@ popup_menu_detach_cb (GtkWidget *attach_widget, impl->browse_files_popup_menu_copy_location_item = NULL; impl->browse_files_popup_menu_rename_item = NULL; impl->browse_files_popup_menu_trash_item = NULL; + impl->browse_files_popup_menu_visit_item = NULL; impl->browse_files_popup_menu_hidden_files_item = NULL; impl->browse_files_popup_menu_thumbnails_item = NULL; } +/* "Visit File": a file found by searching, or a recent one, in its folder */ +static void +visit_file_cb (GtkMenuItem *item, + GtkFileChooserDefault *impl) +{ + GFile *file = get_selected_file (impl); + + if (file) + { + gtk_file_chooser_select_file (GTK_FILE_CHOOSER (impl), file, NULL); + g_object_unref (file); + } +} + /* Callback used when the "Add to Bookmarks" menu item is activated */ static void add_to_shortcuts_cb (GtkMenuItem *item, @@ -4801,6 +4816,14 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) impl->browse_files_current_view, popup_menu_detach_cb); + item = gtk_image_menu_item_new_with_mnemonic (_("_Visit File")); + impl->browse_files_popup_menu_visit_item = item; + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), + gtk_image_new_from_stock (GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_MENU)); + g_signal_connect (item, "activate", + G_CALLBACK (visit_file_cb), impl); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_image_menu_item_new_with_mnemonic (_("_Add to Bookmarks")); impl->browse_files_popup_menu_add_shortcut_item = item; gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), @@ -4935,6 +4958,10 @@ file_list_update_popup_menu (GtkFileChooserDefault *impl) * bookmarks_check_add_sensitivity() */ + gtk_widget_set_visible (impl->browse_files_popup_menu_visit_item, + impl->operation_mode != OPERATION_MODE_BROWSE); + gtk_widget_set_sensitive (impl->browse_files_popup_menu_visit_item, + current_selection_count_selected_rows (impl) == 1); gtk_widget_set_sensitive (impl->browse_files_popup_menu_rename_item, impl->operation_mode == OPERATION_MODE_BROWSE && current_selection_count_selected_rows (impl) == 1); diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 7efcaec5a..f4ca19549 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -184,6 +184,7 @@ struct _GtkFileChooserDefault GtkWidget *browse_files_popup_menu_copy_location_item; GtkWidget *browse_files_popup_menu_rename_item; GtkWidget *browse_files_popup_menu_trash_item; + GtkWidget *browse_files_popup_menu_visit_item; GtkWidget *browse_files_popup_menu_hidden_files_item; GtkWidget *browse_files_popup_menu_thumbnails_item; GtkWidget *browse_files_popup_menu_size_column_item; From 90ab7b50498acf9b069dea4ab86151d353c66eee Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 00:17:28 +0200 Subject: [PATCH 040/249] filechooser: show names that are cut short in a tooltip --- gtk/gtkfilechooserdefault.c | 142 ++++++++++++++++++++++++++++++++---- gtk/gtkfilechooserprivate.h | 5 ++ 2 files changed, 131 insertions(+), 16 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 2c29cec39..758a3481d 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -942,6 +942,8 @@ gtk_file_chooser_default_finalize (GObject *object) g_free (impl->edited_new_text); if (impl->rename_file) g_object_unref (impl->rename_file); + if (impl->tooltip_file) + g_object_unref (impl->tooltip_file); G_OBJECT_CLASS (_gtk_file_chooser_default_parent_class)->finalize (object); } @@ -5167,6 +5169,94 @@ file_list_set_sort_column_ids (GtkFileChooserDefault *impl) } } +static PangoLayout *name_renderer_create_layout (GtkCellRenderer *cell, + GtkWidget *widget, + gint width); +static gint get_icon_view_item_width (GtkFileChooserDefault *impl); + +/* Whether the name of @file is cut short at @width; the answer for the + * last name is kept, as tooltips ask at every motion while shown */ +static gboolean +file_name_ellipsized (GtkFileChooserDefault *impl, + GtkWidget *view, + GFile *file, + const gchar *name, + gint width) +{ + PangoLayout *layout; + + if (impl->tooltip_file && g_file_equal (impl->tooltip_file, file) && + impl->tooltip_width == width) + return impl->tooltip_ellipsized; + + if (GTK_IS_ICON_VIEW (view)) + { + g_object_set (impl->list_name_renderer, "text", name, NULL); + layout = name_renderer_create_layout (GTK_CELL_RENDERER (impl->list_name_renderer), view, width); + } + else + { + layout = gtk_widget_create_pango_layout (view, name); + pango_layout_set_width (layout, MAX (width, 1) * PANGO_SCALE); + pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END); + } + + if (impl->tooltip_file) + g_object_unref (impl->tooltip_file); + impl->tooltip_file = g_object_ref (file); + impl->tooltip_width = width; + impl->tooltip_ellipsized = pango_layout_is_ellipsized (layout); + g_object_unref (layout); + + return impl->tooltip_ellipsized; +} + +/* Tooltips: in search and recent results, where the file is; elsewhere + * the name, if it is cut short */ +static gboolean +file_icon_view_query_tooltip_cb (GtkWidget *widget, + gint x, + gint y, + gboolean keyboard_tip, + GtkTooltip *tooltip, + gpointer user_data) +{ + GtkFileChooserDefault *impl = user_data; + GtkTreeModel *model; + GtkTreePath *path; + GtkTreeIter iter; + GFile *file; + gchar *name, *text = NULL; + + if (!gtk_icon_view_get_tooltip_context (GTK_ICON_VIEW (widget), &x, &y, keyboard_tip, + &model, &path, &iter)) + return FALSE; + + gtk_tree_model_get (model, &iter, MODEL_COL_FILE, &file, MODEL_COL_NAME, &name, -1); + + if (file && name) + { + if (impl->operation_mode != OPERATION_MODE_BROWSE) + text = g_file_get_parse_name (file); + else if (file_name_ellipsized (impl, widget, file, name, get_icon_view_item_width (impl))) + text = g_strdup (name); + } + + if (text) + { + gtk_tooltip_set_text (tooltip, text); + gtk_icon_view_set_tooltip_item (GTK_ICON_VIEW (widget), tooltip, path); + } + + g_free (text); + g_free (name); + if (file) + g_object_unref (file); + gtk_tree_path_free (path); + + return text != NULL; +} + static gboolean file_list_query_tooltip_cb (GtkWidget *widget, gint x, @@ -5180,11 +5270,7 @@ file_list_query_tooltip_cb (GtkWidget *widget, GtkTreePath *path; GtkTreeIter iter; GFile *file; - char *parse_name; - - if (impl->operation_mode == OPERATION_MODE_BROWSE) - return FALSE; - + gchar *name, *text = NULL; if (!gtk_tree_view_get_tooltip_context (GTK_TREE_VIEW (impl->browse_files_tree_view), &x, &y, @@ -5194,25 +5280,45 @@ file_list_query_tooltip_cb (GtkWidget *widget, gtk_tree_model_get (model, &iter, MODEL_COL_FILE, &file, + MODEL_COL_NAME, &name, -1); - if (file == NULL) + if (file && name) { - gtk_tree_path_free (path); - return FALSE; + if (impl->operation_mode != OPERATION_MODE_BROWSE) + text = g_file_get_parse_name (file); + else + { + gint start, width, xpad; + + if (gtk_tree_view_column_cell_get_position (impl->list_name_column, + GTK_CELL_RENDERER (impl->list_name_renderer), + &start, &width)) + { + gtk_cell_renderer_get_padding (GTK_CELL_RENDERER (impl->list_name_renderer), &xpad, NULL); + /* the column may be narrower than its cells want */ + width = MIN (width, gtk_tree_view_column_get_width (impl->list_name_column) - start); + if (file_name_ellipsized (impl, widget, file, name, width - 2 * xpad)) + text = g_strdup (name); + } + } } - parse_name = g_file_get_parse_name (file); - gtk_tooltip_set_text (tooltip, parse_name); - gtk_tree_view_set_tooltip_row (GTK_TREE_VIEW (impl->browse_files_tree_view), - tooltip, - path); + if (text) + { + gtk_tooltip_set_text (tooltip, text); + gtk_tree_view_set_tooltip_row (GTK_TREE_VIEW (impl->browse_files_tree_view), + tooltip, + path); + } - g_free (parse_name); - g_object_unref (file); + g_free (text); + g_free (name); + if (file) + g_object_unref (file); gtk_tree_path_free (path); - return TRUE; + return text != NULL; } static void @@ -5750,6 +5856,10 @@ create_browse_files_icon_view (GtkFileChooserDefault *impl) impl->list_name_renderer = g_object_new (name_renderer_get_type (), NULL); update_icon_view_cell_layout (impl); + gtk_widget_set_has_tooltip (impl->browse_files_icon_view, TRUE); + g_signal_connect (impl->browse_files_icon_view, "query-tooltip", + G_CALLBACK (file_icon_view_query_tooltip_cb), impl); + g_signal_connect (impl->list_name_renderer, "edited", G_CALLBACK (renderer_edited_cb), impl); g_signal_connect (impl->list_name_renderer, "editing-started", diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index f4ca19549..690623d5a 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -310,6 +310,11 @@ struct _GtkFileChooserDefault GtkFileSystemModel *rename_select_model; gulong rename_select_handler; + /* the last name a tooltip was considered for */ + GFile *tooltip_file; + gint tooltip_width; + guint tooltip_ellipsized : 1; + gulong settings_signal_id; int list_view_icon_size; int icon_view_icon_size; From 67a59dd5896ad3ffd8b4d5b537caee6278a3ce93 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:10:19 +0200 Subject: [PATCH 041/249] filechooser: a compact view, small icons beside the names --- gtk/gtkfilechooserdefault.c | 153 ++++++++++++++++++++++++++++++----- gtk/gtkfilechooserprivate.h | 5 +- gtk/gtkfilechoosersettings.c | 5 ++ 3 files changed, 144 insertions(+), 19 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 758a3481d..fb2c08a1e 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -257,6 +257,7 @@ typedef enum { #define FALLBACK_ICON_VIEW_ICON_SIZE 48 #define ICON_VIEW_ITEM_WIDTH 128 +#define COMPACT_VIEW_ITEM_WIDTH 200 #define ICON_VIEW_SCALE_MAX_VISIBLE_OVERSCAN 128 #define PREVIEW_HBOX_SPACING 12 @@ -5236,9 +5237,15 @@ file_icon_view_query_tooltip_cb (GtkWidget *widget, if (file && name) { + gint width = get_icon_view_item_width (impl); + + /* in the compact view the name has what the icon leaves */ + if (impl->compact_view) + gtk_cell_renderer_get_fixed_size (GTK_CELL_RENDERER (impl->list_name_renderer), &width, NULL); + if (impl->operation_mode != OPERATION_MODE_BROWSE) text = g_file_get_parse_name (file); - else if (file_name_ellipsized (impl, widget, file, name, get_icon_view_item_width (impl))) + else if (file_name_ellipsized (impl, widget, file, name, width)) text = g_strdup (name); } @@ -5359,6 +5366,9 @@ get_icon_view_item_width (GtkFileChooserDefault *impl) gint xpad = 0; gint item_width; + if (impl->compact_view) + return COMPACT_VIEW_ITEM_WIDTH; + icon_size = impl->icon_view_icon_size; if (icon_size <= 0) icon_size = FALLBACK_ICON_VIEW_ICON_SIZE; @@ -5379,6 +5389,9 @@ get_icon_view_item_width (GtkFileChooserDefault *impl) return MAX (ICON_VIEW_ITEM_WIDTH, item_width); } +static void name_renderer_set_compact (GtkCellRenderer *cell, + gboolean compact); + static void update_icon_view_cell_layout (GtkFileChooserDefault *impl) { @@ -5394,6 +5407,39 @@ update_icon_view_cell_layout (GtkFileChooserDefault *impl) gtk_icon_view_set_item_width (GTK_ICON_VIEW (impl->browse_files_icon_view), item_width); + /* The compact view: the small icon of the list beside one line of name */ + gtk_icon_view_set_orientation (GTK_ICON_VIEW (impl->browse_files_icon_view), + impl->compact_view ? GTK_ORIENTATION_HORIZONTAL + : GTK_ORIENTATION_VERTICAL); + if (impl->list_name_renderer) + name_renderer_set_compact (GTK_CELL_RENDERER (impl->list_name_renderer), impl->compact_view); + if (impl->list_icon_renderer) + gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (impl->browse_files_icon_view), + impl->list_icon_renderer, + "pixbuf", impl->compact_view ? MODEL_COL_LIST_PIXBUF + : MODEL_COL_ICON_PIXBUF, + NULL); + if (impl->compact_view) + { + gint small = impl->list_view_icon_size > 0 ? impl->list_view_icon_size : FALLBACK_LIST_VIEW_ICON_SIZE; + + gtk_icon_view_set_spacing (GTK_ICON_VIEW (impl->browse_files_icon_view), 4); + gtk_icon_view_set_row_spacing (GTK_ICON_VIEW (impl->browse_files_icon_view), 0); + if (impl->list_icon_renderer) + { + gtk_cell_renderer_get_padding (impl->list_icon_renderer, &xpad, &ypad); + gtk_cell_renderer_set_fixed_size (impl->list_icon_renderer, + small + 2 * xpad, small + 2 * ypad); + if (impl->list_name_renderer) + gtk_cell_renderer_set_fixed_size (GTK_CELL_RENDERER (impl->list_name_renderer), + item_width - small - 2 * xpad - 4, -1); + } + return; + } + + gtk_icon_view_set_spacing (GTK_ICON_VIEW (impl->browse_files_icon_view), 0); + gtk_icon_view_set_row_spacing (GTK_ICON_VIEW (impl->browse_files_icon_view), 6); + icon_size = impl->icon_view_icon_size; if (icon_size <= 0) icon_size = FALLBACK_ICON_VIEW_ICON_SIZE; @@ -5685,6 +5731,7 @@ typedef struct GtkCellRendererText parent; GtkStyle *metrics_style; /* style line_height was computed for, not a reference */ gint line_height; + gint lines; /* NAME_RENDERER_LINES, or 1 in the compact view */ } NameRenderer; typedef GtkCellRendererTextClass NameRendererClass; @@ -5699,12 +5746,14 @@ name_renderer_create_layout (GtkCellRenderer *cell, { PangoLayout *layout; + gint lines = ((NameRenderer *) cell)->lines; + layout = gtk_widget_create_pango_layout (widget, GTK_CELL_RENDERER_TEXT (cell)->text); pango_layout_set_width (layout, MAX (width, 1) * PANGO_SCALE); pango_layout_set_wrap (layout, PANGO_WRAP_WORD_CHAR); - pango_layout_set_alignment (layout, PANGO_ALIGN_CENTER); + pango_layout_set_alignment (layout, lines > 1 ? PANGO_ALIGN_CENTER : PANGO_ALIGN_LEFT); pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_END); - pango_layout_set_height (layout, -NAME_RENDERER_LINES); + pango_layout_set_height (layout, -lines); return layout; } @@ -5743,7 +5792,7 @@ name_renderer_get_size (GtkCellRenderer *cell, } if (height) - *height = 2 * cell->ypad + NAME_RENDERER_LINES * renderer->line_height; + *height = 2 * cell->ypad + renderer->lines * renderer->line_height; if (x_offset) *x_offset = 0; if (y_offset) @@ -5774,12 +5823,24 @@ name_renderer_render (GtkCellRenderer *cell, else state = gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE ? GTK_STATE_INSENSITIVE : GTK_STATE_NORMAL; - /* As wide as the item, like the wrap width a text renderer gets here. */ + /* As wide as the item, like the wrap width a text renderer gets here; + * a single line stands in the middle of its height */ layout = name_renderer_create_layout (cell, widget, cell_area->width); - gtk_paint_layout (widget->style, window, state, TRUE, expose_area, widget, - "cellrenderertext", - cell_area->x, cell_area->y + cell->ypad, - layout); + { + gint y = cell_area->y + cell->ypad; + + if (((NameRenderer *) cell)->lines == 1) + { + PangoRectangle logical; + + pango_layout_get_pixel_extents (layout, NULL, &logical); + y = cell_area->y + MAX (0, (cell_area->height - logical.height) / 2); + } + gtk_paint_layout (widget->style, window, state, TRUE, expose_area, widget, + "cellrenderertext", + cell_area->x, y, + layout); + } g_object_unref (layout); } @@ -5795,6 +5856,14 @@ name_renderer_class_init (NameRendererClass *class) static void name_renderer_init (NameRenderer *renderer) { + renderer->lines = NAME_RENDERER_LINES; +} + +static void +name_renderer_set_compact (GtkCellRenderer *cell, + gboolean compact) +{ + ((NameRenderer *) cell)->lines = compact ? 1 : NAME_RENDERER_LINES; } static GtkWidget * @@ -6186,7 +6255,7 @@ view_mode_set (GtkFileChooserDefault *impl, ViewMode view_mode) impl->view_mode = view_mode; gtk_combo_box_set_active (GTK_COMBO_BOX (impl->view_mode_combo_box), - view_mode); + view_mode == VIEW_MODE_ICON && impl->compact_view ? 2 : view_mode); /* Creating the target view */ if (view_mode == VIEW_MODE_ICON) @@ -6229,7 +6298,7 @@ view_mode_set (GtkFileChooserDefault *impl, ViewMode view_mode) impl->list_name_column = NULL; impl->list_mtime_column = NULL; impl->list_size_column = NULL; - gtk_widget_show (impl->icon_view_scale_hbox); + gtk_widget_set_visible (impl->icon_view_scale_hbox, !impl->compact_view); } else if (view_mode == VIEW_MODE_LIST) { @@ -6255,14 +6324,56 @@ view_mode_set (GtkFileChooserDefault *impl, ViewMode view_mode) browse_files_center_selected_row (impl); } -/* Callback used when view mode combo box active item is changed */ +static void thumbnail_requests_cancel_all (GtkFileChooserDefault *impl); +static void browse_files_center_selected_row (GtkFileChooserDefault *impl); + +/* The icon view, compact or not: the same view, other sizes */ +static void +compact_view_set (GtkFileChooserDefault *impl, + gboolean compact) +{ + if (impl->compact_view == (compact != FALSE)) + return; + + impl->compact_view = compact != FALSE; + if (impl->view_mode != VIEW_MODE_ICON || impl->browse_files_icon_view == NULL) + return; + + /* the setting may say so, on the next showing of the dialog */ + g_signal_handlers_block_by_func (impl->view_mode_combo_box, + view_mode_combo_box_changed_cb, impl); + gtk_combo_box_set_active (GTK_COMBO_BOX (impl->view_mode_combo_box), compact ? 2 : 1); + g_signal_handlers_unblock_by_func (impl->view_mode_combo_box, + view_mode_combo_box_changed_cb, impl); + + thumbnail_requests_cancel_all (impl); + update_icon_view_cell_layout (impl); + gtk_widget_set_visible (impl->icon_view_scale_hbox, !compact); + gtk_widget_queue_resize (impl->browse_files_icon_view); + browse_files_center_selected_row (impl); +} + +/* Callback used when view mode combo box active item is changed: list, + * icons, compact */ static void view_mode_combo_box_changed_cb (GtkComboBox *combo, GtkFileChooserDefault *impl) { - ViewMode target = gtk_combo_box_get_active (combo); + gint target = gtk_combo_box_get_active (combo); - view_mode_set (impl, target); + if (target < 0) + return; + + if (target == 2) + { + compact_view_set (impl, TRUE); + view_mode_set (impl, VIEW_MODE_ICON); + } + else + { + compact_view_set (impl, FALSE); + view_mode_set (impl, target); + } } static void @@ -6608,7 +6719,7 @@ browse_files_icon_view_scroll_event_cb (GtkWidget *widget, GdkEventScroll *event, GtkFileChooserDefault *impl) { - if (impl->view_mode != VIEW_MODE_ICON) + if (impl->view_mode != VIEW_MODE_ICON || impl->compact_view) return FALSE; if ((event->state & GDK_CONTROL_MASK) == 0) @@ -6698,6 +6809,8 @@ view_mode_combo_box_create (GtkFileChooserDefault *impl) _("List View")); /* VIEW_MODE_LIST */ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(impl->view_mode_combo_box), _("Icon View")); /* VIEW_MODE_ICON */ + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(impl->view_mode_combo_box), + _("Compact View")); /* VIEW_MODE_ICON, compact */ gtk_combo_box_set_active (GTK_COMBO_BOX(impl->view_mode_combo_box), VIEW_MODE_LIST); @@ -8068,7 +8181,9 @@ settings_load (GtkFileChooserDefault *impl) impl); } - view_mode_set (impl, view_mode); + /* compact is the icon view, smaller */ + compact_view_set (impl, view_mode == VIEW_MODE_COMPACT); + view_mode_set (impl, view_mode == VIEW_MODE_COMPACT ? VIEW_MODE_ICON : view_mode); gtk_file_chooser_set_show_hidden (GTK_FILE_CHOOSER (impl), show_hidden); @@ -8118,7 +8233,9 @@ settings_save (GtkFileChooserDefault *impl) /* All the other state */ _gtk_file_chooser_settings_set_location_mode (settings, impl->location_mode); - _gtk_file_chooser_settings_set_view_mode (settings, impl->view_mode); + _gtk_file_chooser_settings_set_view_mode (settings, + impl->view_mode == VIEW_MODE_ICON && impl->compact_view + ? VIEW_MODE_COMPACT : impl->view_mode); _gtk_file_chooser_settings_set_icon_view_scale (settings, impl->icon_view_icon_size); _gtk_file_chooser_settings_set_show_hidden (settings, gtk_file_chooser_get_show_hidden (GTK_FILE_CHOOSER (impl))); _gtk_file_chooser_settings_set_show_size_column (settings, impl->show_size_column); @@ -8914,7 +9031,7 @@ thumbnail_maybe_request (GtkFileChooserDefault *impl, ThumbnailRequest *request; GFile *file; - if (!impl->show_thumbnails || impl->view_mode != VIEW_MODE_ICON || + if (!impl->show_thumbnails || impl->view_mode != VIEW_MODE_ICON || impl->compact_view || !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_ICON) || g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH) || g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED) || diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 690623d5a..94be404d7 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -138,7 +138,9 @@ typedef enum { typedef enum { VIEW_MODE_LIST, - VIEW_MODE_ICON + VIEW_MODE_ICON, + /* only in the settings: the icon view, compact */ + VIEW_MODE_COMPACT } ViewMode; typedef enum { @@ -352,6 +354,7 @@ struct _GtkFileChooserDefault guint has_search : 1; guint show_size_column : 1; guint show_thumbnails : 1; + guint compact_view : 1; /* the icon view with small icons beside the names */ guint create_folders : 1; #if 0 diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index 440f0813f..bed4b170c 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -66,6 +66,7 @@ #define MODE_LIST_VIEW "list-view" #define MODE_ICON_VIEW "icon-view" +#define MODE_COMPACT_VIEW "compact-view" #define EQ(a, b) (g_ascii_strcasecmp ((a), (b)) == 0) @@ -175,6 +176,8 @@ ensure_settings_read (GtkFileChooserSettings *settings) settings->view_mode = VIEW_MODE_LIST; else if (EQ (view_mode_str, MODE_ICON_VIEW)) settings->view_mode = VIEW_MODE_ICON; + else if (EQ (view_mode_str, MODE_COMPACT_VIEW)) + settings->view_mode = VIEW_MODE_COMPACT; else g_warning ("Unknown view mode '%s' encountered in filechooser settings", view_mode_str); @@ -502,6 +505,8 @@ _gtk_file_chooser_settings_save (GtkFileChooserSettings *settings, view_mode_str = MODE_LIST_VIEW; else if (settings->view_mode == VIEW_MODE_ICON) view_mode_str = MODE_ICON_VIEW; + else if (settings->view_mode == VIEW_MODE_COMPACT) + view_mode_str = MODE_COMPACT_VIEW; else { g_assert_not_reached (); From 40b362303ae31b806922a2d815b55a28c1f1e0f2 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:30:48 +0200 Subject: [PATCH 042/249] filechooser: a preview of its own beside the files, for programs that have none --- gtk/gtkfilechooserdefault.c | 277 ++++++++++++++++++++++++++++++++++- gtk/gtkfilechooserprivate.h | 11 ++ gtk/gtkfilechoosersettings.c | 26 ++++ gtk/gtkfilechoosersettings.h | 5 + 4 files changed, 317 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index fb2c08a1e..a068883b9 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -351,6 +351,7 @@ static void set_sort_column (GtkFileChooserDefault *impl); static void set_current_filter (GtkFileChooserDefault *impl, GtkFileFilter *filter); static void check_preview_change (GtkFileChooserDefault *impl); +static void preview_panel_sync (GtkFileChooserDefault *impl); static void filter_combo_changed (GtkComboBox *combo_box, GtkFileChooserDefault *impl); @@ -1191,10 +1192,248 @@ update_preview_widget_visibility (GtkFileChooserDefault *impl) else gtk_widget_hide (impl->preview_box); + preview_panel_sync (impl); + if (!gtk_widget_get_mapped (GTK_WIDGET (impl))) emit_default_size_changed (impl); } +/* The preview of GTK+ itself, beside the files, for programs that have + * none: the picture, the name, the type, size and date of the file under + * the cursor. It is made when turned on and destroyed when turned off; + * it follows the cursor after a short pause, so going through a folder + * with the arrow keys reads nothing. Pictures come from thumbnails, + * made in the background where there are none yet (gtkfilethumbnail.c). */ + +#define PREVIEW_PANEL_WIDTH 220 +#define PREVIEW_PANEL_IMAGE 200 +#define PREVIEW_PANEL_DELAY 120 /* milliseconds */ + +static gchar *file_list_format_size (goffset size); +static char *my_g_format_time_for_display (gint64 secs); + +/* Not beside a preview of the program, even while that one is not + * active: many turn theirs off and on for each file */ +static gboolean +preview_panel_wanted (GtkFileChooserDefault *impl) +{ + return impl->show_preview_panel && impl->preview_widget == NULL; +} + +static void +preview_panel_stop (GtkFileChooserDefault *impl) +{ + if (impl->preview_panel_update_id) + { + g_source_remove (impl->preview_panel_update_id); + impl->preview_panel_update_id = 0; + } + if (impl->preview_panel_cancellable) + { + g_cancellable_cancel (impl->preview_panel_cancellable); + g_clear_object (&impl->preview_panel_cancellable); + } +} + +/* Shows the thumbnail at @path, never made bigger; FALSE if it cannot + * be read. *@small tells whether it is smaller than the panel, and a + * bigger one could be made. */ +static gboolean +preview_panel_set_picture (GtkFileChooserDefault *impl, + const gchar *path, + gboolean *small) +{ + GdkPixbuf *pixbuf; + gint width, height; + + if (!gdk_pixbuf_get_file_info (path, &width, &height)) + return FALSE; + + *small = width < PREVIEW_PANEL_IMAGE && height < PREVIEW_PANEL_IMAGE; + if (width <= PREVIEW_PANEL_IMAGE && height <= PREVIEW_PANEL_IMAGE) + pixbuf = gdk_pixbuf_new_from_file (path, NULL); + else + pixbuf = gdk_pixbuf_new_from_file_at_size (path, PREVIEW_PANEL_IMAGE, + PREVIEW_PANEL_IMAGE, NULL); + if (pixbuf == NULL) + return FALSE; + + /* as big as the picture itself already */ + if (*small) + { + const gchar *original = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::Image::Width"); + + if (original && g_ascii_strtoll (original, NULL, 10) <= width) + *small = FALSE; + } + + gtk_image_set_from_pixbuf (GTK_IMAGE (impl->preview_panel_image), pixbuf); + g_object_unref (pixbuf); + + return TRUE; +} + +static void +preview_panel_thumbnail_done (GFile *file, + const gchar *thumbnail, + gpointer data) +{ + GtkFileChooserDefault *impl = data; + gboolean small; + + if (thumbnail && impl->preview_panel && + impl->preview_file && g_file_equal (impl->preview_file, file)) + preview_panel_set_picture (impl, thumbnail, &small); +} + +static void +preview_panel_update (GtkFileChooserDefault *impl) +{ + GFileInfo *info = NULL; + GtkTreeIter iter; + GString *text; + const gchar *type, *thumbnail; + gboolean small = TRUE; + + preview_panel_stop (impl); + + if (impl->preview_file && GTK_IS_FILE_SYSTEM_MODEL (impl->current_model) && + _gtk_file_system_model_get_iter_for_file (GTK_FILE_SYSTEM_MODEL (impl->current_model), + &iter, impl->preview_file)) + info = _gtk_file_system_model_get_info (GTK_FILE_SYSTEM_MODEL (impl->current_model), &iter); + + if (info == NULL) + { + gtk_image_clear (GTK_IMAGE (impl->preview_panel_image)); + gtk_label_set_text (GTK_LABEL (impl->preview_panel_name), ""); + gtk_label_set_text (GTK_LABEL (impl->preview_panel_info), ""); + return; + } + + gtk_label_set_text (GTK_LABEL (impl->preview_panel_name), g_file_info_get_display_name (info)); + + text = g_string_new (NULL); + type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE); + if (type) + { + gchar *description = g_content_type_get_description (type); + + g_string_append (text, description); + g_free (description); + } + if (!_gtk_file_info_consider_as_directory (info) && + g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SIZE)) + { + gchar *size = file_list_format_size (g_file_info_get_size (info)); + + g_string_append_printf (text, "\n%s", size); + g_free (size); + } + if (g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_TIME_MODIFIED)) + { + gchar *date = my_g_format_time_for_display (g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED)); + + g_string_append_printf (text, "\n%s", date); + g_free (date); + } + gtk_label_set_text (GTK_LABEL (impl->preview_panel_info), text->str); + g_string_free (text, TRUE); + + /* The thumbnail there is, else the icon; a large thumbnail is made + * when the one there is smaller than the panel */ + thumbnail = impl->show_thumbnails ? + g_file_info_get_attribute_byte_string (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH) : NULL; + if (!thumbnail || !preview_panel_set_picture (impl, thumbnail, &small)) + { + GdkPixbuf *pixbuf = _gtk_file_info_render_icon (info, impl->preview_panel, 128); + + gtk_image_set_from_pixbuf (GTK_IMAGE (impl->preview_panel_image), pixbuf); + if (pixbuf) + g_object_unref (pixbuf); + } + + if (small && impl->show_thumbnails && _gtk_file_thumbnail_wanted (impl->preview_file, info)) + { + impl->preview_panel_cancellable = g_cancellable_new (); + _gtk_file_thumbnail_request (impl->preview_file, info, 256, + impl->preview_panel_cancellable, + preview_panel_thumbnail_done, + g_object_ref (impl), g_object_unref); + } +} + +static gboolean +preview_panel_update_cb (gpointer data) +{ + GtkFileChooserDefault *impl = data; + + impl->preview_panel_update_id = 0; + preview_panel_update (impl); + + return FALSE; +} + +static void +preview_panel_queue_update (GtkFileChooserDefault *impl) +{ + if (impl->preview_panel == NULL) + return; + + if (impl->preview_panel_update_id) + g_source_remove (impl->preview_panel_update_id); + impl->preview_panel_update_id = gdk_threads_add_timeout (PREVIEW_PANEL_DELAY, + preview_panel_update_cb, impl); +} + +/* Makes or destroys the panel as it is wanted */ +static void +preview_panel_sync (GtkFileChooserDefault *impl) +{ + GtkWidget *box; + + if (!preview_panel_wanted (impl)) + { + if (impl->preview_panel) + { + preview_panel_stop (impl); + gtk_widget_destroy (impl->preview_panel); + impl->preview_panel = NULL; + impl->preview_panel_image = NULL; + impl->preview_panel_name = NULL; + impl->preview_panel_info = NULL; + } + return; + } + + if (impl->preview_panel == NULL && impl->preview_box) + { + impl->preview_panel = gtk_vbox_new (FALSE, 6); + gtk_widget_set_size_request (impl->preview_panel, PREVIEW_PANEL_WIDTH, -1); + + impl->preview_panel_image = gtk_image_new (); + gtk_widget_set_size_request (impl->preview_panel_image, -1, PREVIEW_PANEL_IMAGE); + gtk_box_pack_start (GTK_BOX (impl->preview_panel), impl->preview_panel_image, FALSE, FALSE, 0); + + impl->preview_panel_name = gtk_label_new (NULL); + gtk_label_set_line_wrap (GTK_LABEL (impl->preview_panel_name), TRUE); + gtk_label_set_line_wrap_mode (GTK_LABEL (impl->preview_panel_name), PANGO_WRAP_WORD_CHAR); + gtk_label_set_selectable (GTK_LABEL (impl->preview_panel_name), TRUE); + gtk_misc_set_alignment (GTK_MISC (impl->preview_panel_name), 0.0, 0.0); + gtk_widget_set_size_request (impl->preview_panel_name, PREVIEW_PANEL_WIDTH, -1); + gtk_box_pack_start (GTK_BOX (impl->preview_panel), impl->preview_panel_name, FALSE, FALSE, 0); + + impl->preview_panel_info = gtk_label_new (NULL); + gtk_misc_set_alignment (GTK_MISC (impl->preview_panel_info), 0.0, 0.0); + gtk_box_pack_start (GTK_BOX (impl->preview_panel), impl->preview_panel_info, FALSE, FALSE, 0); + + box = gtk_widget_get_parent (impl->preview_box); + gtk_box_pack_start (GTK_BOX (box), impl->preview_panel, FALSE, FALSE, 0); + gtk_widget_show_all (impl->preview_panel); + } + + preview_panel_queue_update (impl); +} + static void set_preview_widget (GtkFileChooserDefault *impl, GtkWidget *preview_widget) @@ -4396,6 +4635,7 @@ popup_menu_detach_cb (GtkWidget *attach_widget, impl->browse_files_popup_menu_visit_item = NULL; impl->browse_files_popup_menu_hidden_files_item = NULL; impl->browse_files_popup_menu_thumbnails_item = NULL; + impl->browse_files_popup_menu_preview_item = NULL; } /* "Visit File": a file found by searching, or a recent one, in its folder */ @@ -4487,6 +4727,16 @@ show_thumbnails_toggled_cb (GtkCheckMenuItem *item, { impl->show_thumbnails = gtk_check_menu_item_get_active (item); thumbnails_reload (impl); + preview_panel_queue_update (impl); +} + +/* Callback used when the "Show Preview" menu item is toggled */ +static void +show_preview_panel_toggled_cb (GtkCheckMenuItem *item, + GtkFileChooserDefault *impl) +{ + impl->show_preview_panel = gtk_check_menu_item_get_active (item); + preview_panel_sync (impl); } /* Callback used when the "Show Size Column" menu item is toggled */ @@ -4879,6 +5129,13 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_check_menu_item_new_with_mnemonic (_("Show _Preview")); + impl->browse_files_popup_menu_preview_item = item; + g_signal_connect (item, "toggled", + G_CALLBACK (show_preview_panel_toggled_cb), impl); + gtk_widget_show (item); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + if (impl->view_mode == VIEW_MODE_LIST) { item = gtk_check_menu_item_new_with_mnemonic (_("Show _Size Column")); @@ -4990,6 +5247,16 @@ file_list_update_popup_menu (GtkFileChooserDefault *impl) g_signal_handlers_unblock_by_func (impl->browse_files_popup_menu_thumbnails_item, G_CALLBACK (show_thumbnails_toggled_cb), impl); + /* 'Show Preview', not beside the preview of the program */ + gtk_widget_set_visible (impl->browse_files_popup_menu_preview_item, + impl->preview_widget == NULL); + g_signal_handlers_block_by_func (impl->browse_files_popup_menu_preview_item, + G_CALLBACK (show_preview_panel_toggled_cb), impl); + gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (impl->browse_files_popup_menu_preview_item), + impl->show_preview_panel); + g_signal_handlers_unblock_by_func (impl->browse_files_popup_menu_preview_item, + G_CALLBACK (show_preview_panel_toggled_cb), impl); + if (impl->view_mode == VIEW_MODE_LIST) { /* 'Show Size Column' */ @@ -7865,6 +8132,7 @@ cancel_all_operations (GtkFileChooserDefault *impl) search_stop_searching (impl, TRUE); recent_stop_loading (impl); + preview_panel_stop (impl); } /* Removes the settings signal handler. It's safe to call multiple times */ @@ -8143,7 +8411,7 @@ settings_load (GtkFileChooserDefault *impl) LocationMode location_mode; ViewMode view_mode; gboolean show_hidden; - gboolean show_size_column, show_thumbnails; + gboolean show_size_column, show_thumbnails, show_preview_panel; gint sort_column, icon_view_scale; GtkSortType sort_order; StartupMode startup_mode; @@ -8156,6 +8424,7 @@ settings_load (GtkFileChooserDefault *impl) show_hidden = _gtk_file_chooser_settings_get_show_hidden (settings); show_size_column = _gtk_file_chooser_settings_get_show_size_column (settings); show_thumbnails = _gtk_file_chooser_settings_get_show_thumbnails (settings); + show_preview_panel = _gtk_file_chooser_settings_get_show_preview_panel (settings); sort_column = _gtk_file_chooser_settings_get_sort_column (settings); sort_order = _gtk_file_chooser_settings_get_sort_order (settings); startup_mode = _gtk_file_chooser_settings_get_startup_mode (settings); @@ -8193,6 +8462,8 @@ settings_load (GtkFileChooserDefault *impl) impl->show_thumbnails = show_thumbnails; thumbnails_reload (impl); } + impl->show_preview_panel = show_preview_panel; + preview_panel_sync (impl); if (impl->list_size_column) gtk_tree_view_column_set_visible (impl->list_size_column, show_size_column); @@ -8240,6 +8511,7 @@ settings_save (GtkFileChooserDefault *impl) _gtk_file_chooser_settings_set_show_hidden (settings, gtk_file_chooser_get_show_hidden (GTK_FILE_CHOOSER (impl))); _gtk_file_chooser_settings_set_show_size_column (settings, impl->show_size_column); _gtk_file_chooser_settings_set_show_thumbnails (settings, impl->show_thumbnails); + _gtk_file_chooser_settings_set_show_preview_panel (settings, impl->show_preview_panel); _gtk_file_chooser_settings_set_sort_column (settings, impl->sort_column); _gtk_file_chooser_settings_set_sort_order (settings, impl->sort_order); _gtk_file_chooser_settings_set_startup_mode (settings, impl->startup_mode); @@ -12271,7 +12543,7 @@ check_preview_change (GtkFileChooserDefault *impl) if (impl->view_mode == VIEW_MODE_LIST) gtk_tree_view_get_cursor (GTK_TREE_VIEW (impl->browse_files_tree_view), &cursor_path, NULL); else if (impl->view_mode == VIEW_MODE_ICON) - cursor_path = NULL; + gtk_icon_view_get_cursor (GTK_ICON_VIEW (impl->browse_files_icon_view), &cursor_path, NULL); else g_assert_not_reached (); @@ -12320,6 +12592,7 @@ check_preview_change (GtkFileChooserDefault *impl) if (impl->use_preview_label && impl->preview_label) gtk_label_set_text (GTK_LABEL (impl->preview_label), impl->preview_display_name); + preview_panel_queue_update (impl); g_signal_emit_by_name (impl, "update-preview"); } else diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 94be404d7..b759ab1fe 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -187,6 +187,7 @@ struct _GtkFileChooserDefault GtkWidget *browse_files_popup_menu_rename_item; GtkWidget *browse_files_popup_menu_trash_item; GtkWidget *browse_files_popup_menu_visit_item; + GtkWidget *browse_files_popup_menu_preview_item; GtkWidget *browse_files_popup_menu_hidden_files_item; GtkWidget *browse_files_popup_menu_thumbnails_item; GtkWidget *browse_files_popup_menu_size_column_item; @@ -296,6 +297,15 @@ struct _GtkFileChooserDefault GFile *preview_file; char *preview_display_name; + /* the preview of GTK+ itself, for programs without one; made only + * while shown */ + GtkWidget *preview_panel; + GtkWidget *preview_panel_image; + GtkWidget *preview_panel_name; + GtkWidget *preview_panel_info; + guint preview_panel_update_id; + GCancellable *preview_panel_cancellable; + GtkTreeViewColumn *list_name_column; GtkCellRenderer *list_name_renderer; GtkCellRenderer *list_icon_renderer; @@ -355,6 +365,7 @@ struct _GtkFileChooserDefault guint show_size_column : 1; guint show_thumbnails : 1; guint compact_view : 1; /* the icon view with small icons beside the names */ + guint show_preview_panel : 1; guint create_folders : 1; #if 0 diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index bed4b170c..24d9ac684 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -44,6 +44,7 @@ #define SHOW_HIDDEN_KEY "ShowHidden" #define SHOW_SIZE_COLUMN_KEY "ShowSizeColumn" #define SHOW_THUMBNAILS_KEY "ShowThumbnails" +#define SHOW_PREVIEW_PANEL_KEY "ShowPreviewPanel" #define GEOMETRY_X_KEY "GeometryX" #define GEOMETRY_Y_KEY "GeometryY" #define GEOMETRY_WIDTH_KEY "GeometryWidth" @@ -216,6 +217,15 @@ ensure_settings_read (GtkFileChooserSettings *settings) else settings->show_thumbnails = value != FALSE; + /* Show the preview panel */ + + value = g_key_file_get_boolean (key_file, SETTINGS_GROUP, + SHOW_PREVIEW_PANEL_KEY, &error); + if (error) + warn_if_invalid_key_and_clear_error (SHOW_PREVIEW_PANEL_KEY, &error); + else + settings->show_preview_panel = value != FALSE; + /* Geometry */ get_int_key (key_file, SETTINGS_GROUP, GEOMETRY_X_KEY, &settings->geometry_x); @@ -392,6 +402,20 @@ _gtk_file_chooser_settings_set_show_thumbnails (GtkFileChooserSettings *settings settings->show_thumbnails = show_thumbnails != FALSE; } +void +_gtk_file_chooser_settings_set_show_preview_panel (GtkFileChooserSettings *settings, + gboolean show_preview_panel) +{ + settings->show_preview_panel = show_preview_panel != FALSE; +} + +gboolean +_gtk_file_chooser_settings_get_show_preview_panel (GtkFileChooserSettings *settings) +{ + ensure_settings_read (settings); + return settings->show_preview_panel; +} + gboolean _gtk_file_chooser_settings_get_show_thumbnails (GtkFileChooserSettings *settings) { @@ -579,6 +603,8 @@ _gtk_file_chooser_settings_save (GtkFileChooserSettings *settings, SHOW_SIZE_COLUMN_KEY, settings->show_size_column); g_key_file_set_boolean (key_file, SETTINGS_GROUP, SHOW_THUMBNAILS_KEY, settings->show_thumbnails); + g_key_file_set_boolean (key_file, SETTINGS_GROUP, + SHOW_PREVIEW_PANEL_KEY, settings->show_preview_panel); g_key_file_set_integer (key_file, SETTINGS_GROUP, GEOMETRY_X_KEY, settings->geometry_x); g_key_file_set_integer (key_file, SETTINGS_GROUP, diff --git a/gtk/gtkfilechoosersettings.h b/gtk/gtkfilechoosersettings.h index 7d39526ca..2348ff8f5 100644 --- a/gtk/gtkfilechoosersettings.h +++ b/gtk/gtkfilechoosersettings.h @@ -60,6 +60,7 @@ struct _GtkFileChooserSettings guint show_hidden : 1; guint show_size_column : 1; guint show_thumbnails : 1; + guint show_preview_panel : 1; }; struct _GtkFileChooserSettingsClass @@ -87,6 +88,10 @@ gboolean _gtk_file_chooser_settings_get_show_hidden (GtkFileChooserSettings *set void _gtk_file_chooser_settings_set_show_hidden (GtkFileChooserSettings *settings, gboolean show_hidden); +gboolean _gtk_file_chooser_settings_get_show_preview_panel (GtkFileChooserSettings *settings); +void _gtk_file_chooser_settings_set_show_preview_panel (GtkFileChooserSettings *settings, + gboolean show_preview_panel); + gboolean _gtk_file_chooser_settings_get_show_thumbnails (GtkFileChooserSettings *settings); void _gtk_file_chooser_settings_set_show_thumbnails (GtkFileChooserSettings *settings, gboolean show_thumbnails); From bc5e1169b94ff084500f366b0cc41045d84d743a Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:30:54 +0200 Subject: [PATCH 043/249] filechooser: on the Mac, files go to the trash of the Finder, and Command+Backspace puts them there --- gtk/gtkfilechooserdefault.c | 65 +++++++++++++++++++++++++++---------- gtk/gtkquartz.c | 61 ++++++++++++++++++++++++++++++++++ gtk/gtkquartz.h | 3 ++ 3 files changed, 112 insertions(+), 17 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index a068883b9..69bfaa3d2 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -2945,8 +2945,29 @@ typedef struct GList *files; } TrashData; +#ifdef GDK_WINDOWING_QUARTZ +/* in gtkquartz.c, where Cocoa is */ +gboolean _gtk_quartz_trash_file (GFile *file, + GError **error); +#endif + static void trash_next (TrashData *data); +/* On a failure the rest stays, so the user sees what happened */ +static void +trash_failed (TrashData *data, + GFile *file, + GError *error) +{ + g_list_free_full (data->files, g_object_unref); + data->files = NULL; + if (gtk_widget_get_mapped (GTK_WIDGET (data->impl))) + error_dialog (data->impl, _("The file could not be moved to the Trash"), + file, error); + else + g_error_free (error); +} + static void trash_done (GObject *source, GAsyncResult *result, @@ -2957,20 +2978,9 @@ trash_done (GObject *source, GDK_THREADS_ENTER (); - if (g_file_trash_finish (G_FILE (source), result, &error)) - trash_next (data); - else - { - /* the rest stays, so the user sees what happened */ - g_list_free_full (data->files, g_object_unref); - data->files = NULL; - if (gtk_widget_get_mapped (GTK_WIDGET (data->impl))) - error_dialog (data->impl, _("The file could not be moved to the Trash"), - G_FILE (source), error); - else - g_error_free (error); - trash_next (data); - } + if (!g_file_trash_finish (G_FILE (source), result, &error)) + trash_failed (data, G_FILE (source), error); + trash_next (data); GDK_THREADS_LEAVE (); } @@ -2980,6 +2990,22 @@ trash_next (TrashData *data) { GFile *file; +#ifdef GDK_WINDOWING_QUARTZ + /* GLib before 2.90 puts the files into ~/.local/share/Trash, which + * the Finder does not show; the trash of the Mac it is, then */ + if (glib_check_version (2, 90, 0) != NULL) + while (data->files) + { + GError *error = NULL; + + file = data->files->data; + data->files = g_list_delete_link (data->files, data->files); + if (!_gtk_quartz_trash_file (file, &error)) + trash_failed (data, file, error); + g_object_unref (file); + } +#endif + if (data->files == NULL) { g_object_unref (data->impl); @@ -4577,9 +4603,14 @@ browse_files_key_press_event_cb (GtkWidget *widget, return TRUE; } - if ((event->keyval == GDK_KEY_Delete || event->keyval == GDK_KEY_KP_Delete) && - !(event->state & gtk_accelerator_get_default_mod_mask ()) && - impl->operation_mode == OPERATION_MODE_BROWSE) + if ((((event->keyval == GDK_KEY_Delete || event->keyval == GDK_KEY_KP_Delete) && + !(event->state & gtk_accelerator_get_default_mod_mask ())) +#ifdef GDK_WINDOWING_QUARTZ + /* Command+Backspace, as in the Finder */ + || (event->keyval == GDK_KEY_BackSpace && + (event->state & (gtk_accelerator_get_default_mod_mask () | GDK_MOD2_MASK)) == GDK_MOD2_MASK) +#endif + ) && impl->operation_mode == OPERATION_MODE_BROWSE) { trash_selected_files (impl); return TRUE; diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c index caf8404f8..60a0df581 100644 --- a/gtk/gtkquartz.c +++ b/gtk/gtkquartz.c @@ -20,8 +20,11 @@ #include "config.h" +#include + #include "gtkquartz.h" #include +#include "gtkintl.h" #include "gtkalias.h" NSImage * @@ -381,3 +384,61 @@ _gtk_get_data_prefix (void) { return get_bundle_path (); } + +/* Moves @file to the trash of the Mac, where the Finder shows it: + * NSFileManager from 10.8, NSWorkspace before */ +gboolean +_gtk_quartz_trash_file (GFile *file, + GError **error) +{ + NSAutoreleasePool *pool; + NSString *nspath; + gchar *path = g_file_get_path (file); + gboolean done = FALSE; + NSString *reason = nil; + + if (path == NULL) + { + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, + _("Only local files can be moved to the Trash")); + return FALSE; + } + + pool = [[NSAutoreleasePool alloc] init]; + nspath = [[NSFileManager defaultManager] stringWithFileSystemRepresentation: path + length: strlen (path)]; + g_free (path); + +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 + if ([NSFileManager instancesRespondToSelector: @selector(trashItemAtURL:resultingItemURL:error:)]) + { + NSError *nserror = nil; + + done = [[NSFileManager defaultManager] trashItemAtURL: [NSURL fileURLWithPath: nspath] + resultingItemURL: NULL + error: &nserror]; + if (!done && nserror) + reason = [nserror localizedDescription]; + } + else +#endif + { +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1080 + NSInteger tag; + + done = [[NSWorkspace sharedWorkspace] performFileOperation: NSWorkspaceRecycleOperation + source: [nspath stringByDeletingLastPathComponent] + destination: @"" + files: [NSArray arrayWithObject: [nspath lastPathComponent]] + tag: &tag]; +#endif + } + + if (!done) + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_FAILED, + reason ? [reason UTF8String] : _("The Trash refused the file")); + + [pool release]; + + return done; +} diff --git a/gtk/gtkquartz.h b/gtk/gtkquartz.h index d98eb877b..5ff6b61a7 100644 --- a/gtk/gtkquartz.h +++ b/gtk/gtkquartz.h @@ -39,6 +39,9 @@ GtkSelectionData *_gtk_quartz_get_selection_data_from_pasteboard (NSPasteboard * void _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard, GtkSelectionData *selection_data); +gboolean _gtk_quartz_trash_file (GFile *file, + GError **error); + NSImage *_gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf); G_END_DECLS From bf41a56254a39e5b6354ed15cd87244cb25bf2ec Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:30:54 +0200 Subject: [PATCH 044/249] filechooser: tell network shares from local disks on every system, for thumbnails --- gtk/gtkfilethumbnail.c | 78 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index 60ae5ca31..4454d1fbb 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -29,6 +29,13 @@ #include "gtkfilethumbnail.h" +#ifdef G_OS_WIN32 +#include +#endif +#ifdef __linux__ +#include +#endif + #ifndef O_BINARY #define O_BINARY 0 #endif @@ -130,6 +137,30 @@ thumbnail_matches (const gchar *path, return matches; } +#ifndef G_OS_WIN32 +/* Filesystem types of network shares and FUSE mounts, as statfs() names + * them on the BSDs and macOS, and GIO on Linux: smbfs, smb2, nfs4, + * fusefs.sshfs, perfuse|sshfs, macfuse... GLib itself knows only a few + * of them as remote. */ +static const gchar *const remote_types[] = { + "nfs", "smb", "cifs", "afpfs", "webdav", "ncp", "coda", "afs", "9p", + "ceph", "fuse", "puffs", "perfuse", "macfuse", "osxfuse" +}; + +#ifdef __linux__ +/* Linux calls every FUSE mount "fuse"; those on a disk of their own, + * fuseblk with NTFS or exFAT, have the device number of the disk, + * where sshfs and the like have one of major 0 */ +static gboolean +local_fuse_mount (const gchar *path) +{ + GStatBuf buf; + + return g_stat (path, &buf) == 0 && major (buf.st_dev) != 0; +} +#endif +#endif + /* Network shares, and FUSE mounts like sshfs, are left alone; the * answer is kept per folder */ static gboolean @@ -138,7 +169,6 @@ on_remote_filesystem (Job *job) static gchar *last_folder; static gboolean last_remote; gchar *folder = g_path_get_dirname (job->path); - GFileInfo *info; if (g_strcmp0 (folder, last_folder) == 0) { @@ -146,19 +176,45 @@ on_remote_filesystem (Job *job) return last_remote; } - last_remote = TRUE; - info = g_file_query_filesystem_info (job->file, - G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE "," - G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, - job->cancellable, NULL); - if (info) +#ifdef G_OS_WIN32 + /* GIO tells nothing of the kind here: \\server\share, and drives + * that are mapped to one */ + if (G_IS_DIR_SEPARATOR (folder[0]) && G_IS_DIR_SEPARATOR (folder[1])) + last_remote = TRUE; + else { - const gchar *type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE); + wchar_t root[4] = { 0, L':', L'\\', 0 }; - last_remote = g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE) || - (type && g_str_has_prefix (type, "fuse")); - g_object_unref (info); + root[0] = g_ascii_isalpha (folder[0]) && folder[1] == ':' ? folder[0] : 0; + last_remote = root[0] == 0 || GetDriveTypeW (root) == DRIVE_REMOTE; } +#else + { + GFileInfo *info = g_file_query_filesystem_info (job->file, + G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE "," + G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, + job->cancellable, NULL); + const gchar *type; + guint i; + + /* no answer, as when cancelled: not kept */ + if (info == NULL) + { + g_free (folder); + return TRUE; + } + + type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE); + last_remote = g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE); + for (i = 0; type && !last_remote && i < G_N_ELEMENTS (remote_types); i++) + last_remote = g_str_has_prefix (type, remote_types[i]); +#ifdef __linux__ + if (last_remote && g_strcmp0 (type, "fuse") == 0) + last_remote = !local_fuse_mount (job->path); +#endif + g_object_unref (info); + } +#endif g_free (last_folder); last_folder = folder; From 21e2004e90f85e149bcc2247e9f9e1d6c8e44f46 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:40:50 +0200 Subject: [PATCH 045/249] iconview: a double click works after a click on another item --- gtk/gtkiconview.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 78e415478..63bedb2bc 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -2244,8 +2244,9 @@ gtk_icon_view_button_press (GtkWidget *widget, icon_view->priv->press_start_y = event->y; } - if (!icon_view->priv->last_single_clicked) - icon_view->priv->last_single_clicked = item; + /* the item of this click, not of one long ago, or a double click + * after a click on another item does nothing */ + icon_view->priv->last_single_clicked = item; /* cancel the current editing, if it exists */ gtk_icon_view_stop_editing (icon_view, TRUE); From edcfa22894b5bcbfaa442db4728326e3694bd822 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:40:51 +0200 Subject: [PATCH 046/249] filechooser: selected files of the icon view in the order they are shown --- gtk/gtkfilechooserdefault.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 69bfaa3d2..f8f4e86ed 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -13407,6 +13407,7 @@ icon_view_selection_selected_foreach (GtkFileChooserDefault *impl, GtkTreePath *icon_selection_path; icon_selection = gtk_icon_view_get_selected_items (GTK_ICON_VIEW (impl->browse_files_icon_view)); + icon_selection = g_list_reverse (icon_selection); for (elem = icon_selection; elem; elem = elem->next) { icon_selection_path = elem->data; From d342e73380ddc487dcb8437dc6f3edce4a0e88dc Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:40:51 +0200 Subject: [PATCH 047/249] filechooser: drag several selected files at once --- gtk/gtkfilechooserdefault.c | 183 ++++++++++++++++++++++++++++++++++++ gtk/gtkfilechooserprivate.h | 2 + 2 files changed, 185 insertions(+) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index f8f4e86ed..979cc6033 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -894,6 +894,9 @@ gtk_file_chooser_default_finalize (GObject *object) icon_view_scale_remove_timeout (impl); + if (impl->drag_press_row) + gtk_tree_row_reference_free (impl->drag_press_row); + /* requests hold a reference: none are left */ if (impl->thumbnail_requests) { @@ -5454,6 +5457,182 @@ list_button_press_event_cb (GtkWidget *widget, return TRUE; } +/* Dragging several files, as in file managers: a press on one of the + * selected files keeps them all selected, so that they all go; a click + * without a drag then selects just that one. The views themselves + * would drop the others on the press already. */ + +static gboolean +file_list_button_press_drag_cb (GtkWidget *widget, + GdkEventButton *event, + GtkFileChooserDefault *impl) +{ + GtkTreePath *path = NULL; + GList *selected, *l; + gpointer selection; + + /* Command, which selects on the Mac, is not among the default ones */ + if (event->type != GDK_BUTTON_PRESS || event->button != 1 || + (event->state & (gtk_accelerator_get_default_mod_mask () | + GTK_MODIFY_SELECTION_MOD_MASK | GTK_EXTEND_SELECTION_MOD_MASK)) || + current_selection_count_selected_rows (impl) < 2) + return FALSE; + + if (GTK_IS_TREE_VIEW (widget)) + { + GtkTreeView *tree_view = GTK_TREE_VIEW (widget); + + selection = gtk_tree_view_get_selection (tree_view); + if (event->window != gtk_tree_view_get_bin_window (tree_view) || + !gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, NULL, NULL, NULL) || + !gtk_tree_selection_path_is_selected (selection, path)) + goto out; + selected = gtk_tree_selection_get_selected_rows (selection, NULL); + } + else + { + GtkIconView *icon_view = GTK_ICON_VIEW (widget); + + selection = icon_view; + if (event->window == widget->window || + !(path = gtk_icon_view_get_path_at_pos (icon_view, event->x, event->y)) || + !gtk_icon_view_path_is_selected (icon_view, path)) + goto out; + selected = gtk_icon_view_get_selected_items (icon_view); + } + + /* the view does its part, the press for a drag, the cursor, focus; + * then the selection is as it was, and nobody hears of the change */ + g_signal_handlers_block_by_func (selection, list_selection_changed, impl); + GTK_WIDGET_GET_CLASS (widget)->button_press_event (widget, event); + for (l = selected; l; l = l->next) + { + if (GTK_IS_TREE_VIEW (widget)) + gtk_tree_selection_select_path (selection, l->data); + else + gtk_icon_view_select_path (selection, l->data); + } + g_signal_handlers_unblock_by_func (selection, list_selection_changed, impl); + g_list_free_full (selected, (GDestroyNotify) gtk_tree_path_free); + check_preview_change (impl); + + /* rows may come meanwhile, while the folder loads */ + if (impl->drag_press_row) + gtk_tree_row_reference_free (impl->drag_press_row); + impl->drag_press_row = gtk_tree_row_reference_new (impl->current_model, path); + gtk_tree_path_free (path); + + return TRUE; + + out: + if (path) + gtk_tree_path_free (path); + return FALSE; +} + +static gboolean +file_list_button_release_drag_cb (GtkWidget *widget, + GdkEventButton *event, + GtkFileChooserDefault *impl) +{ + GtkTreePath *path; + + if (impl->drag_press_row == NULL || event->button != 1) + return FALSE; + + path = gtk_tree_row_reference_get_model (impl->drag_press_row) == impl->current_model ? + gtk_tree_row_reference_get_path (impl->drag_press_row) : NULL; + gtk_tree_row_reference_free (impl->drag_press_row); + impl->drag_press_row = NULL; + if (path == NULL) + return FALSE; + + current_selection_unselect_all (impl); + if (GTK_IS_TREE_VIEW (widget)) + gtk_tree_selection_select_path (gtk_tree_view_get_selection (GTK_TREE_VIEW (widget)), path); + else + gtk_icon_view_select_path (GTK_ICON_VIEW (widget), path); + gtk_tree_path_free (path); + + return FALSE; +} + +static void +file_list_drag_begin_cb (GtkWidget *widget, + GdkDragContext *context, + GtkFileChooserDefault *impl) +{ + if (impl->drag_press_row) + { + gtk_tree_row_reference_free (impl->drag_press_row); + impl->drag_press_row = NULL; + impl->drag_several = TRUE; + gtk_drag_set_icon_stock (context, GTK_STOCK_DND_MULTIPLE, -2, -2); + } +} + +static void +file_list_drag_end_cb (GtkWidget *widget, + GdkDragContext *context, + GtkFileChooserDefault *impl) +{ + impl->drag_several = FALSE; +} + +static void +drag_uris_foreach (GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer data) +{ + GPtrArray *uris = data; + GFile *file; + + gtk_tree_model_get (model, iter, MODEL_COL_FILE, &file, -1); + if (file) + { + g_ptr_array_add (uris, g_file_get_uri (file)); + g_object_unref (file); + } +} + +/* after the view, which gives the one file under the pointer */ +static void +file_list_drag_data_get_cb (GtkWidget *widget, + GdkDragContext *context, + GtkSelectionData *selection_data, + guint info, + guint time_, + GtkFileChooserDefault *impl) +{ + GPtrArray *uris; + + if (!impl->drag_several) + return; + + uris = g_ptr_array_new_with_free_func (g_free); + current_selection_selected_foreach (impl, drag_uris_foreach, uris); + g_ptr_array_add (uris, NULL); + gtk_selection_data_set_uris (selection_data, (gchar **) uris->pdata); + g_ptr_array_free (uris, TRUE); +} + +static void +file_list_drag_source_connect (GtkFileChooserDefault *impl, + GtkWidget *view) +{ + g_signal_connect (view, "button-press-event", + G_CALLBACK (file_list_button_press_drag_cb), impl); + g_signal_connect (view, "button-release-event", + G_CALLBACK (file_list_button_release_drag_cb), impl); + g_signal_connect_after (view, "drag-begin", + G_CALLBACK (file_list_drag_begin_cb), impl); + g_signal_connect (view, "drag-end", + G_CALLBACK (file_list_drag_end_cb), impl); + g_signal_connect_after (view, "drag-data-get", + G_CALLBACK (file_list_drag_data_get_cb), impl); +} + /* Sets the sort column IDs for the file list; needs to be done whenever we * change the model on the treeview. */ @@ -5946,6 +6125,7 @@ create_browse_files_tree_view (GtkFileChooserDefault *impl) NULL, 0, GDK_ACTION_COPY | GDK_ACTION_MOVE); gtk_drag_source_add_uri_targets (impl->browse_files_tree_view); + file_list_drag_source_connect (impl, impl->browse_files_tree_view); g_signal_connect (selection, "changed", G_CALLBACK (list_selection_changed), impl); @@ -6206,6 +6386,7 @@ create_browse_files_icon_view (GtkFileChooserDefault *impl) NULL, 0, GDK_ACTION_COPY | GDK_ACTION_MOVE); gtk_drag_source_add_uri_targets (impl->browse_files_icon_view); + file_list_drag_source_connect (impl, impl->browse_files_icon_view); impl->list_icon_renderer = gtk_cell_renderer_pixbuf_new (); g_object_set (G_OBJECT (impl->list_icon_renderer), @@ -13396,6 +13577,8 @@ get_selected_tree_iter_from_icon_view (GtkFileChooserDefault *impl, return TRUE; } +/* In the order shown, as in the list view; the list is taken first, + * as @func may run a dialog, meanwhile the folder may change */ static void icon_view_selection_selected_foreach (GtkFileChooserDefault *impl, GtkTreeSelectionForeachFunc func, diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index b759ab1fe..0a5d7708c 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -267,6 +267,7 @@ struct _GtkFileChooserDefault GSList *loading_shortcuts; GSList *reload_icon_cancellables; GCancellable *file_list_drag_data_received_cancellable; + GtkTreeRowReference *drag_press_row; /* pressed among several selected files */ GCancellable *update_current_folder_cancellable; GCancellable *should_respond_get_info_cancellable; GCancellable *file_exists_get_info_cancellable; @@ -366,6 +367,7 @@ struct _GtkFileChooserDefault guint show_thumbnails : 1; guint compact_view : 1; /* the icon view with small icons beside the names */ guint show_preview_panel : 1; + guint drag_several : 1; /* a drag of all selected files */ guint create_folders : 1; #if 0 From f8705d4038835a6736d3bb1a5809812309e2a313 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 06:40:51 +0200 Subject: [PATCH 048/249] quartz: dragging several files to the Finder gives it all of them --- gtk/gtkdnd-quartz.c | 45 +++++++++++++++++++++++++++++++++++-- gtk/gtkfilechooserdefault.c | 5 +++++ gtk/gtkquartz.c | 7 ++++-- 3 files changed, 53 insertions(+), 4 deletions(-) diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c index 9dcba4a01..b1992a97a 100644 --- a/gtk/gtkdnd-quartz.c +++ b/gtk/gtkdnd-quartz.c @@ -143,16 +143,46 @@ struct _GtkDragFindData @end +/* The local files of a URI list, for the Finder, which takes only one + * URL from NSURLPboardType */ +static void +set_filenames_for_pasteboard (NSPasteboard *pasteboard, + GtkSelectionData *selection_data) +{ + gchar **uris = gtk_selection_data_get_uris (selection_data); + NSMutableArray *paths = [NSMutableArray array]; + gint i; + + for (i = 0; uris && uris[i]; i++) + { + gchar *path = g_filename_from_uri (uris[i], NULL, NULL); + + if (path) + { + [paths addObject:[[NSFileManager defaultManager] stringWithFileSystemRepresentation:path + length:strlen (path)]]; + g_free (path); + } + } + g_strfreev (uris); + + [pasteboard setPropertyList:paths forType:NSFilenamesPboardType]; +} + @implementation GtkDragSourceOwner -(void)pasteboard:(NSPasteboard *)sender provideDataForType:(NSString *)type { guint target_info; GtkSelectionData selection_data; + gboolean filenames = [type isEqualToString:NSFilenamesPboardType]; selection_data.selection = GDK_NONE; selection_data.data = NULL; selection_data.length = -1; - selection_data.target = gdk_quartz_pasteboard_type_to_atom_libgtk_only (type); + selection_data.type = GDK_NONE; + selection_data.format = 0; + selection_data.target = filenames ? gdk_atom_intern_static_string ("text/uri-list") + : gdk_quartz_pasteboard_type_to_atom_libgtk_only (type); selection_data.display = gdk_display_get_default (); if (gtk_target_list_find (info->target_list, @@ -166,7 +196,12 @@ struct _GtkDragFindData time); if (selection_data.length >= 0) - _gtk_quartz_set_selection_data_for_pasteboard (sender, &selection_data); + { + if (filenames) + set_filenames_for_pasteboard (sender, &selection_data); + else + _gtk_quartz_set_selection_data_for_pasteboard (sender, &selection_data); + } g_free (selection_data.data); } @@ -1084,6 +1119,12 @@ gtk_drag_begin_idle (gpointer arg) owner = [[GtkDragSourceOwner alloc] initWithInfo:info]; types = _gtk_quartz_target_list_to_pasteboard_types (info->target_list); + /* beside the URL, the names of all files, for the Finder, where the + * widget gives local files only (the file chooser says so); the set + * is a mutable one, made for us */ + if ([types containsObject:NSURLPboardType] && + g_object_get_data (G_OBJECT (info->widget), "gtk-drag-local-files")) + [(NSMutableSet *) types addObject:NSFilenamesPboardType]; [pasteboard declareTypes:[types allObjects] owner:owner]; diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 979cc6033..1d9f7764b 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -5631,6 +5631,11 @@ file_list_drag_source_connect (GtkFileChooserDefault *impl, G_CALLBACK (file_list_drag_end_cb), impl); g_signal_connect_after (view, "drag-data-get", G_CALLBACK (file_list_drag_data_get_cb), impl); +#ifdef GDK_WINDOWING_QUARTZ + /* files on the Mac are local ones: the Finder is given the names of + * all of them then (gtkdnd-quartz.c) */ + g_object_set_data (G_OBJECT (view), I_("gtk-drag-local-files"), GINT_TO_POINTER (TRUE)); +#endif } /* Sets the sort column IDs for the file list; needs to be done whenever we diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c index 60a0df581..64f20bb63 100644 --- a/gtk/gtkquartz.c +++ b/gtk/gtkquartz.c @@ -288,8 +288,11 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard, result = g_uri_list_extract_uris (list[0]); - url = [NSURL URLWithString:[NSString stringWithUTF8String:result[0]]]; - [url writeToPasteboard:pasteboard]; + if (result[0]) + { + url = [NSURL URLWithString:[NSString stringWithUTF8String:result[0]]]; + [url writeToPasteboard:pasteboard]; + } g_strfreev (result); } From efdb0098e1b9633319d393f318c9d4df51d317f4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:12:16 +0200 Subject: [PATCH 049/249] filechooser: use the thumbnails other file managers made, in any size, and check them as GLib does --- gtk/gtkfilechooserdefault.c | 60 ++++++++++++-- gtk/gtkfilethumbnail.c | 153 ++++++++++++++++++++++++++++++------ gtk/gtkfilethumbnail.h | 5 ++ 3 files changed, 186 insertions(+), 32 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 1d9f7764b..ee55d4658 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -9551,6 +9551,49 @@ thumbnail_maybe_request (GtkFileChooserDefault *impl, request, thumbnail_request_free); } +/* The thumbnail to show at @size, if valid: one of that size, or the + * large one for normal icons; not the x-large ones newer programs make, + * slow to decode; from those the worker makes one of the size. GLib + * 2.76 tells the sizes apart, before only the one path. */ +static const gchar * +thumbnail_for_icon (GFileInfo *queried, + gint size, + GFile *file, + GFileInfo *info) +{ + static const gchar *const dirs[] = { "normal", "large" }; + const gchar *path; + gint i; + + for (i = size > 128 ? 1 : 0; i < 2; i++) + { + gchar *path_attribute = g_strconcat ("thumbnail::path-", dirs[i], NULL); + gchar *valid_attribute = g_strconcat ("thumbnail::is-valid-", dirs[i], NULL); + + path = g_file_info_get_attribute_byte_string (queried, path_attribute); + if (path && g_file_info_has_attribute (queried, valid_attribute) && + !g_file_info_get_attribute_boolean (queried, valid_attribute)) + path = NULL; + g_free (path_attribute); + g_free (valid_attribute); + if (path) + return path; + } + + /* GLib before 2.40 cannot tell whether it is valid: that is checked + * here then, by the text of the PNG, not decoding it */ + path = g_file_info_get_attribute_byte_string (queried, G_FILE_ATTRIBUTE_THUMBNAIL_PATH); + if (path == NULL || + (g_file_info_has_attribute (queried, "thumbnail::is-valid") ? + !g_file_info_get_attribute_boolean (queried, "thumbnail::is-valid") : + !_gtk_file_thumbnail_valid (path, file, info)) || + strstr (path, G_DIR_SEPARATOR_S "x-large" G_DIR_SEPARATOR_S) || + strstr (path, G_DIR_SEPARATOR_S "xx-large" G_DIR_SEPARATOR_S)) + return NULL; + + return path; +} + static void icon_query_done (GObject *object, GAsyncResult *res, @@ -9574,12 +9617,15 @@ icon_query_done (GObject *object, { GFileInfo *info = g_file_info_dup (_gtk_file_system_model_get_info (query->model, &iter)); - /* a thumbnail older than its file is not shown (GLib 2.40 and - * later can tell) */ - if (impl->show_thumbnails && - (!g_file_info_has_attribute (queried, "thumbnail::is-valid") || - g_file_info_get_attribute_boolean (queried, "thumbnail::is-valid"))) - copy_attribute (info, queried, G_FILE_ATTRIBUTE_THUMBNAIL_PATH); + /* a thumbnail older than its file is not shown */ + if (impl->show_thumbnails) + { + const gchar *thumbnail = thumbnail_for_icon (queried, impl->icon_view_icon_size, + file, info); + + if (thumbnail) + g_file_info_set_attribute_byte_string (info, G_FILE_ATTRIBUTE_THUMBNAIL_PATH, thumbnail); + } copy_attribute (info, queried, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED); copy_attribute (info, queried, G_FILE_ATTRIBUTE_STANDARD_ICON); @@ -9610,6 +9656,8 @@ icon_queries_start (GtkFileChooserDefault *impl) g_file_query_info_async (query->file, G_FILE_ATTRIBUTE_THUMBNAIL_PATH "," "thumbnail::is-valid," + "thumbnail::path-normal,thumbnail::is-valid-normal," + "thumbnail::path-large,thumbnail::is-valid-large," G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "," G_FILE_ATTRIBUTE_STANDARD_ICON, G_FILE_QUERY_INFO_NONE, diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index 4454d1fbb..9b8954ada 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -21,6 +21,7 @@ #include "config.h" +#include #include #include #include @@ -114,27 +115,92 @@ thumbnail_path (const gchar *subdir, return path; } -/* A thumbnail, or failure, recorded for this version of the file */ +/* Whether the thumbnail or failure at @path is one of this version of + * the file, as GLib checks it (thumbnail-verify.c): Thumb::URI and + * Thumb::MTime must be there and match, Thumb::Size if it is there. The + * text chunks come before the picture, which is not decoded. + * @width and @height get the size of the picture it shows, if told. */ static gboolean thumbnail_matches (const gchar *path, - Job *job) + Job *job, + gint *width, + gint *height) { - GdkPixbuf *pixbuf; - const gchar *mtime; - gboolean matches; + static const guchar signature[8] = { 0x89, 'P', 'N', 'G', '\r', '\n', 0x1a, '\n' }; + gboolean uri = FALSE, mtime = FALSE, size = TRUE; + guchar head[8]; + FILE *f; + gint i; - if (!g_file_test (path, G_FILE_TEST_IS_REGULAR)) + f = g_fopen (path, "rb"); + if (f == NULL) return FALSE; - pixbuf = gdk_pixbuf_new_from_file (path, NULL); - if (pixbuf == NULL) + if (fread (head, 1, 8, f) == 8 && memcmp (head, signature, 8) == 0) + for (i = 0; i < 64 && fread (head, 1, 8, f) == 8; i++) + { + guint32 length = ((guint32) head[0] << 24) | (head[1] << 16) | (head[2] << 8) | head[3]; + + if (memcmp (head + 4, "IDAT", 4) == 0 || memcmp (head + 4, "IEND", 4) == 0) + break; + + if (memcmp (head + 4, "tEXt", 4) == 0 && length < 8192) + { + gchar *text = g_malloc (length + 1); + const gchar *value; + + if (fread (text, 1, length, f) != length) + { + g_free (text); + break; + } + text[length] = '\0'; + value = text + strlen (text) + 1; + if (value <= text + length) + { + if (strcmp (text, "Thumb::URI") == 0) + uri = strcmp (value, job->uri) == 0; + else if (strcmp (text, "Thumb::MTime") == 0) + mtime = g_ascii_strtoull (value, NULL, 10) == job->mtime; + else if (strcmp (text, "Thumb::Size") == 0) + size = g_ascii_strtoull (value, NULL, 10) == (guint64) job->size; + else if (width && strcmp (text, "Thumb::Image::Width") == 0) + *width = atoi (value); + else if (height && strcmp (text, "Thumb::Image::Height") == 0) + *height = atoi (value); + } + g_free (text); + length = 0; + } + + if (fseek (f, (long) length + 4, SEEK_CUR) != 0) + break; + } + fclose (f); + + return uri && mtime && size; +} + +/* The same for the chooser, where GLib cannot tell (before 2.40) */ +gboolean +_gtk_file_thumbnail_valid (const gchar *thumbnail, + GFile *file, + GFileInfo *info) +{ + Job job; + gboolean valid; + + if (!g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_TIME_MODIFIED)) return FALSE; - mtime = gdk_pixbuf_get_option (pixbuf, "tEXt::Thumb::MTime"); - matches = mtime && g_ascii_strtoull (mtime, NULL, 10) == job->mtime; - g_object_unref (pixbuf); + memset (&job, 0, sizeof job); + job.uri = g_file_get_uri (file); + job.mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED); + job.size = g_file_info_get_size (info); + valid = thumbnail_matches (thumbnail, &job, NULL, NULL); + g_free (job.uri); - return matches; + return valid; } #ifndef G_OS_WIN32 @@ -333,15 +399,17 @@ save (GdkPixbuf *pixbuf, if (g_mkdir_with_parents (dir, 0700) == 0 && (fd = g_mkstemp_full (tmp, O_RDWR | O_BINARY, 0600)) >= 0) { + gchar *keys[] = { "tEXt::Thumb::URI", "tEXt::Thumb::MTime", "tEXt::Thumb::Size", + "tEXt::Software", "tEXt::Thumb::Image::Width", + "tEXt::Thumb::Image::Height", NULL }; + gchar *values[] = { job->uri, mtime, size, "GTK+ 2", w, h, NULL }; + + /* the size of the picture, where known */ + if (width <= 0 || height <= 0) + keys[4] = values[4] = NULL; + g_close (fd, NULL); - saved = gdk_pixbuf_save (pixbuf, tmp, "png", NULL, - "tEXt::Thumb::URI", job->uri, - "tEXt::Thumb::MTime", mtime, - "tEXt::Thumb::Size", size, - "tEXt::Thumb::Image::Width", w, - "tEXt::Thumb::Image::Height", h, - "tEXt::Software", "GTK+ 2", - NULL) && + saved = gdk_pixbuf_savev (pixbuf, tmp, "png", keys, values, NULL) && g_rename (tmp, path) == 0; if (!saved) g_unlink (tmp); @@ -370,22 +438,55 @@ save_failure (Job *job) g_free (path); } +/* The sizes of the specification; Dolphin and newer GNOME make the + * bigger ones too */ +static const struct { const gchar *dir; gint size; } sizes[] = { + { "normal", 128 }, { "large", 256 }, { "x-large", 512 }, { "xx-large", 1024 } +}; + static gchar * make_thumbnail (Job *job) { - const gchar *subdir = job->thumbnail_size > 128 ? "large" : "normal"; - gchar *path = thumbnail_path (subdir, job->uri); + gint own = job->thumbnail_size > 128 ? 1 : 0; + gchar *path = thumbnail_path (sizes[own].dir, job->uri); gchar *fail = thumbnail_path ("fail" G_DIR_SEPARATOR_S FAIL_DIR, job->uri); GdkPixbufFormat *format; GdkPixbuf *pixbuf = NULL; - gint width, height; + gint width, height, i; /* made meanwhile, by us or another program */ - if (thumbnail_matches (path, job)) + if (thumbnail_matches (path, job, NULL, NULL)) goto done; - if (g_cancellable_is_cancelled (job->cancellable) || - thumbnail_matches (fail, job) || on_remote_filesystem (job)) + if (g_cancellable_is_cancelled (job->cancellable)) + goto none; + + /* a bigger one of another program, made smaller: no need to read the + * picture, which may be on a network share too */ + for (i = own + 1; i < (gint) G_N_ELEMENTS (sizes); i++) + { + gchar *bigger = thumbnail_path (sizes[i].dir, job->uri); + gint w, h; + + width = height = 0; + /* smaller than wanted (of a small picture): as it is */ + if (thumbnail_matches (bigger, job, &width, &height)) + pixbuf = gdk_pixbuf_get_file_info (bigger, &w, &h) && + w <= job->thumbnail_size && h <= job->thumbnail_size ? + gdk_pixbuf_new_from_file (bigger, NULL) : + gdk_pixbuf_new_from_file_at_size (bigger, job->thumbnail_size, + job->thumbnail_size, NULL); + g_free (bigger); + if (pixbuf) + { + if (!save (pixbuf, path, job, width, height)) + goto none; + g_object_unref (pixbuf); + goto done; + } + } + + if (thumbnail_matches (fail, job, NULL, NULL) || on_remote_filesystem (job)) goto none; format = gdk_pixbuf_get_file_info (job->path, &width, &height); diff --git a/gtk/gtkfilethumbnail.h b/gtk/gtkfilethumbnail.h index eead71140..b542c1c6c 100644 --- a/gtk/gtkfilethumbnail.h +++ b/gtk/gtkfilethumbnail.h @@ -30,6 +30,11 @@ void _gtk_file_thumbnail_request (GFile *file, gpointer data, GDestroyNotify destroy); +/* Whether the thumbnail at @thumbnail is one of this version of @file */ +gboolean _gtk_file_thumbnail_valid (const gchar *thumbnail, + GFile *file, + GFileInfo *info); + G_END_DECLS #endif /* __GTK_FILE_THUMBNAIL_H__ */ From c2ff30b474a7e381fed994697ca76bb1d6a0b564 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:12:16 +0200 Subject: [PATCH 050/249] filechooser: use the thumbnails Explorer and Quick Look already have, on Windows and macOS --- gtk/gtkfilethumbnail.c | 261 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index 9b8954ada..a5e3a1911 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -32,6 +32,12 @@ #ifdef G_OS_WIN32 #include +#include +#endif +#ifdef GDK_WINDOWING_QUARTZ +#include +#include +#import /* libgtk is Objective-C there */ #endif #ifdef __linux__ #include @@ -444,6 +450,249 @@ static const struct { const gchar *dir; gint size; } sizes[] = { { "normal", 128 }, { "large", 256 }, { "x-large", 512 }, { "xx-large", 1024 } }; +/* The picture of a thumbnail of the native file manager, at most @size + * big: one Explorer has in its cache (Vista and later), one of Quick Look + * (10.5 and later), which has its own cache */ +#ifdef G_OS_WIN32 + +/* IShellItemImageFactory, declared here, as not all headers have it */ +typedef struct _ImageFactory ImageFactory; +typedef struct +{ + HRESULT (STDMETHODCALLTYPE *QueryInterface) (ImageFactory *, REFIID, void **); + ULONG (STDMETHODCALLTYPE *AddRef) (ImageFactory *); + ULONG (STDMETHODCALLTYPE *Release) (ImageFactory *); + HRESULT (STDMETHODCALLTYPE *GetImage) (ImageFactory *, SIZE, int, HBITMAP *); +} ImageFactoryVtbl; +struct _ImageFactory { const ImageFactoryVtbl *lpVtbl; }; + +#define THUMBNAIL_ONLY 0x08 /* SIIGBF_THUMBNAILONLY */ +#define IN_CACHE_ONLY 0x10 /* SIIGBF_INCACHEONLY */ + +static const GUID iid_image_factory = + { 0xbcc18b79, 0xba16, 0x442f, { 0x80, 0xc4, 0x8a, 0x59, 0xc3, 0x0c, 0x46, 0x3b } }; + +typedef HRESULT (WINAPI *CreateItemFunc) (PCWSTR, void *, REFIID, void **); + +/* A 32-bit DIB, with alpha premultiplied, or none at all */ +static GdkPixbuf * +pixbuf_of_bitmap (HBITMAP bitmap) +{ + BITMAPINFOHEADER header; + GdkPixbuf *pixbuf = NULL; + guchar *bits, *row; + gboolean alpha = FALSE; + gint width, height, x, y; + BITMAP info; + HDC dc; + + if (!GetObjectW (bitmap, sizeof info, &info) || info.bmWidth <= 0 || info.bmHeight == 0) + return NULL; + width = info.bmWidth; + height = ABS (info.bmHeight); + + memset (&header, 0, sizeof header); + header.biSize = sizeof header; + header.biWidth = width; + header.biHeight = -height; /* top row first */ + header.biPlanes = 1; + header.biBitCount = 32; + header.biCompression = BI_RGB; + + bits = g_try_malloc ((gsize) width * height * 4); + if (bits == NULL) + return NULL; + dc = GetDC (NULL); + if (GetDIBits (dc, bitmap, 0, height, bits, (BITMAPINFO *) &header, DIB_RGB_COLORS) == height) + pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, width, height); + ReleaseDC (NULL, dc); + + for (x = 0; pixbuf && x < width * height; x++) + alpha |= bits[x * 4 + 3] != 0; + + for (y = 0; pixbuf && y < height; y++) + { + guchar *src = bits + (gsize) y * width * 4; + + row = gdk_pixbuf_get_pixels (pixbuf) + (gsize) y * gdk_pixbuf_get_rowstride (pixbuf); + for (x = 0; x < width; x++, src += 4, row += 4) + { + guint a = alpha ? src[3] : 255; + + /* B, G, R, A to R, G, B, A, not premultiplied */ + row[0] = a ? MIN (255, src[2] * 255 / a) : 0; + row[1] = a ? MIN (255, src[1] * 255 / a) : 0; + row[2] = a ? MIN (255, src[0] * 255 / a) : 0; + row[3] = a; + } + } + g_free (bits); + + return pixbuf; +} + +static GdkPixbuf * +native_thumbnail (Job *job) +{ + static CreateItemFunc create_item; + static gsize looked_up; + ImageFactory *factory; + GdkPixbuf *pixbuf = NULL; + wchar_t *wpath; + HRESULT init; + + if (g_once_init_enter (&looked_up)) + { + HMODULE shell = LoadLibraryW (L"shell32.dll"); + + if (shell) + create_item = (CreateItemFunc) GetProcAddress (shell, "SHCreateItemFromParsingName"); + g_once_init_leave (&looked_up, 1); + } + if (create_item == NULL) + return NULL; /* Windows XP */ + + wpath = g_utf8_to_utf16 (job->path, -1, NULL, NULL, NULL); + if (wpath == NULL) + return NULL; + + init = CoInitializeEx (NULL, COINIT_MULTITHREADED); + if (SUCCEEDED (create_item (wpath, NULL, &iid_image_factory, (void **) &factory))) + { + SIZE size = { job->thumbnail_size, job->thumbnail_size }; + HBITMAP bitmap; + + if (SUCCEEDED (factory->lpVtbl->GetImage (factory, size, THUMBNAIL_ONLY | IN_CACHE_ONLY, &bitmap))) + { + pixbuf = pixbuf_of_bitmap (bitmap); + DeleteObject (bitmap); + } + factory->lpVtbl->Release (factory); + } + if (SUCCEEDED (init)) + CoUninitialize (); + g_free (wpath); + + return pixbuf; +} + +#elif defined (GDK_WINDOWING_QUARTZ) + +typedef CGImageRef (*ThumbnailCreateFunc) (CFAllocatorRef, CFURLRef, CGSize, CFDictionaryRef); + +static GdkPixbuf * +native_thumbnail (Job *job) +{ + static ThumbnailCreateFunc create_thumbnail; + static gsize looked_up; + CGColorSpaceRef space; + CGContextRef context; + GdkPixbuf *pixbuf; + CGImageRef image; + CFURLRef url; + gint width, height, x, y; + + if (g_once_init_enter (&looked_up)) + { + void *quick_look = dlopen ("/System/Library/Frameworks/QuickLook.framework/QuickLook", + RTLD_LAZY | RTLD_LOCAL); + + if (quick_look) + create_thumbnail = (ThumbnailCreateFunc) dlsym (quick_look, "QLThumbnailImageCreate"); + g_once_init_leave (&looked_up, 1); + } + if (create_thumbnail == NULL) + return NULL; /* before 10.5 */ + + url = CFURLCreateFromFileSystemRepresentation (NULL, (const UInt8 *) job->path, + strlen (job->path), false); + if (url == NULL) + return NULL; + { + /* Quick Look autoreleases; this thread of the pool has no pool of + * its own */ + NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + image = create_thumbnail (kCFAllocatorDefault, url, + CGSizeMake (job->thumbnail_size, job->thumbnail_size), NULL); + [pool release]; + } + CFRelease (url); + if (image == NULL) + return NULL; + + width = CGImageGetWidth (image); + height = CGImageGetHeight (image); + pixbuf = width > 0 && height > 0 ? + gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, width, height) : NULL; + if (pixbuf) + { + /* drawn as R, G, B, A, premultiplied */ + gdk_pixbuf_fill (pixbuf, 0); + space = CGColorSpaceCreateDeviceRGB (); + context = CGBitmapContextCreate (gdk_pixbuf_get_pixels (pixbuf), width, height, 8, + gdk_pixbuf_get_rowstride (pixbuf), space, + kCGImageAlphaPremultipliedLast); + CGColorSpaceRelease (space); + if (context) + { + CGContextDrawImage (context, CGRectMake (0, 0, width, height), image); + CGContextRelease (context); + for (y = 0; y < height; y++) + { + guchar *p = gdk_pixbuf_get_pixels (pixbuf) + (gsize) y * gdk_pixbuf_get_rowstride (pixbuf); + + for (x = 0; x < width; x++, p += 4) + if (p[3] && p[3] < 255) + { + p[0] = MIN (255, p[0] * 255 / p[3]); + p[1] = MIN (255, p[1] * 255 / p[3]); + p[2] = MIN (255, p[2] * 255 / p[3]); + } + } + } + else + { + g_object_unref (pixbuf); + pixbuf = NULL; + } + } + CGImageRelease (image); + + return pixbuf; +} + +#endif + +#if defined (G_OS_WIN32) || defined (GDK_WINDOWING_QUARTZ) +/* Not bigger than @size, keeping the shape */ +static GdkPixbuf * +fit (GdkPixbuf *pixbuf, + gint size) +{ + gint width = gdk_pixbuf_get_width (pixbuf), height = gdk_pixbuf_get_height (pixbuf); + GdkPixbuf *scaled; + + if (width <= size && height <= size) + return pixbuf; + + if (width > height) + { + height = MAX (1, (gint) ((gint64) height * size / width)); + width = size; + } + else + { + width = MAX (1, (gint) ((gint64) width * size / height)); + height = size; + } + scaled = gdk_pixbuf_scale_simple (pixbuf, width, height, GDK_INTERP_BILINEAR); + g_object_unref (pixbuf); + + return scaled; +} +#endif + static gchar * make_thumbnail (Job *job) { @@ -489,6 +738,18 @@ make_thumbnail (Job *job) if (thumbnail_matches (fail, job, NULL, NULL) || on_remote_filesystem (job)) goto none; +#if defined (G_OS_WIN32) || defined (GDK_WINDOWING_QUARTZ) + pixbuf = native_thumbnail (job); + if (pixbuf) + { + pixbuf = fit (pixbuf, job->thumbnail_size); + if (!save (pixbuf, path, job, 0, 0)) + goto none; + g_object_unref (pixbuf); + goto done; + } +#endif + format = gdk_pixbuf_get_file_info (job->path, &width, &height); if (format == NULL || width <= 0 || height <= 0) { From 6f334f801ab2480631fdcfb6ca664a1e4a61d395 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 09:25:00 +0200 Subject: [PATCH 051/249] filechooser: a preferences dialog, with size limits for thumbnails, also for network shares --- gtk/gtkfilechooserdefault.c | 248 ++++++++++++++++++++++++++++++++++- gtk/gtkfilechooserprivate.h | 8 ++ gtk/gtkfilechoosersettings.c | 41 ++++++ gtk/gtkfilechoosersettings.h | 7 + gtk/gtkfilethumbnail.c | 12 +- gtk/gtkfilethumbnail.h | 6 +- 6 files changed, 314 insertions(+), 8 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index ee55d4658..31729ae48 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -63,6 +63,7 @@ #include "gtkscrolledwindow.h" #include "gtkseparatormenuitem.h" #include "gtksizegroup.h" +#include "gtkspinbutton.h" #include "gtkstock.h" #include "gtktable.h" #include "gtktoolbar.h" @@ -791,6 +792,7 @@ _gtk_file_chooser_default_init (GtkFileChooserDefault *impl) impl->show_hidden = FALSE; impl->show_size_column = TRUE; impl->show_thumbnails = TRUE; + impl->thumbnail_max_size = 64; impl->list_view_icon_size = FALLBACK_LIST_VIEW_ICON_SIZE; impl->icon_view_icon_size = FALLBACK_ICON_VIEW_ICON_SIZE; impl->load_state = LOAD_EMPTY; @@ -1208,6 +1210,8 @@ update_preview_widget_visibility (GtkFileChooserDefault *impl) * with the arrow keys reads nothing. Pictures come from thumbnails, * made in the background where there are none yet (gtkfilethumbnail.c). */ +#define MEGABYTES(n) ((goffset) (n) * 1024 * 1024) + #define PREVIEW_PANEL_WIDTH 220 #define PREVIEW_PANEL_IMAGE 200 #define PREVIEW_PANEL_DELAY 120 /* milliseconds */ @@ -1355,10 +1359,12 @@ preview_panel_update (GtkFileChooserDefault *impl) g_object_unref (pixbuf); } - if (small && impl->show_thumbnails && _gtk_file_thumbnail_wanted (impl->preview_file, info)) + if (small && impl->show_thumbnails && + _gtk_file_thumbnail_wanted (impl->preview_file, info, MEGABYTES (impl->thumbnail_max_size))) { impl->preview_panel_cancellable = g_cancellable_new (); _gtk_file_thumbnail_request (impl->preview_file, info, 256, + MEGABYTES (impl->thumbnail_max_size_remote), impl->preview_panel_cancellable, preview_panel_thumbnail_done, g_object_ref (impl), g_object_unref); @@ -4773,6 +4779,218 @@ show_preview_panel_toggled_cb (GtkCheckMenuItem *item, preview_panel_sync (impl); } +/* The preferences of the file chooser, which all GTK+ 2 programs share: + * thumbnails, up to which size of the files, also on network shares, the + * preview, hidden files, and where to start. Changes take effect at + * once and are saved for the other programs. */ + +static void settings_save (GtkFileChooserDefault *impl); + +static void +preferences_thumbnails_toggled_cb (GtkToggleButton *button, + GtkFileChooserDefault *impl) +{ + GtkWidget *sizes = g_object_get_data (G_OBJECT (button), "gtk-sizes"); + + impl->show_thumbnails = gtk_toggle_button_get_active (button); + gtk_widget_set_sensitive (sizes, impl->show_thumbnails); + thumbnails_reload (impl); + preview_panel_queue_update (impl); + settings_save (impl); +} + +static gboolean +preferences_apply_cb (gpointer data) +{ + GtkFileChooserDefault *impl = data; + + impl->preferences_apply_id = 0; + thumbnails_reload (impl); + settings_save (impl); + + return FALSE; +} + +/* Applied when the value rests, not at each step of a held arrow */ +static void +preferences_size_changed_cb (GtkSpinButton *spin, + GtkFileChooserDefault *impl) +{ + gint megabytes = gtk_spin_button_get_value_as_int (spin); + + if (g_object_get_data (G_OBJECT (spin), "gtk-remote")) + impl->thumbnail_max_size_remote = megabytes; + else + impl->thumbnail_max_size = megabytes; + if (impl->preferences_apply_id) + g_source_remove (impl->preferences_apply_id); + impl->preferences_apply_id = gdk_threads_add_timeout (400, preferences_apply_cb, impl); +} + +static void +preferences_preview_toggled_cb (GtkToggleButton *button, + GtkFileChooserDefault *impl) +{ + impl->show_preview_panel = gtk_toggle_button_get_active (button); + preview_panel_sync (impl); + settings_save (impl); +} + +static void +preferences_hidden_toggled_cb (GtkToggleButton *button, + GtkFileChooserDefault *impl) +{ + gtk_file_chooser_set_show_hidden (GTK_FILE_CHOOSER (impl), + gtk_toggle_button_get_active (button)); + settings_save (impl); +} + +static void +preferences_start_toggled_cb (GtkToggleButton *button, + GtkFileChooserDefault *impl) +{ + if (!gtk_toggle_button_get_active (button)) + return; + impl->startup_mode = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (button), "gtk-mode")); + settings_save (impl); +} + +/* A heading in bold and what belongs to it below, indented */ +static GtkWidget * +preferences_section (GtkWidget *box, + const gchar *title) +{ + GtkWidget *label, *alignment, *content; + gchar *markup = g_markup_printf_escaped ("%s", title); + + label = gtk_label_new (NULL); + gtk_label_set_markup (GTK_LABEL (label), markup); + g_free (markup); + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0); + + alignment = gtk_alignment_new (0.0, 0.0, 1.0, 1.0); + gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0); + content = gtk_vbox_new (FALSE, 6); + gtk_container_add (GTK_CONTAINER (alignment), content); + gtk_box_pack_start (GTK_BOX (box), alignment, FALSE, FALSE, 0); + + return content; +} + +static GtkWidget * +preferences_size_row (GtkFileChooserDefault *impl, + GtkSizeGroup *group, + const gchar *text, + gint megabytes, + gboolean remote) +{ + GtkWidget *row = gtk_hbox_new (FALSE, 6); + GtkWidget *label = gtk_label_new_with_mnemonic (text); + GtkWidget *spin = gtk_spin_button_new_with_range (0, 4096, 1); + + gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + gtk_size_group_add_widget (group, label); + gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin); + gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), megabytes); + if (remote) + { + g_object_set_data (G_OBJECT (spin), I_("gtk-remote"), GINT_TO_POINTER (TRUE)); + gtk_widget_set_tooltip_text (spin, _("Reading pictures over the network can be slow; 0 makes no thumbnails there")); + } + g_signal_connect (spin, "value-changed", G_CALLBACK (preferences_size_changed_cb), impl); + + gtk_box_pack_start (GTK_BOX (row), label, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (row), spin, FALSE, FALSE, 0); + /* Translators: the unit of the file sizes above, megabytes */ + gtk_box_pack_start (GTK_BOX (row), gtk_label_new (_("MB")), FALSE, FALSE, 0); + + return row; +} + +static void +preferences_cb (GtkMenuItem *item, + GtkFileChooserDefault *impl) +{ + GtkWidget *dialog, *box, *section, *button, *sizes, *radio; + GtkWindow *toplevel; + GtkSizeGroup *group; + + if (impl->preferences_dialog) + { + gtk_window_present (GTK_WINDOW (impl->preferences_dialog)); + return; + } + + toplevel = get_toplevel (GTK_WIDGET (impl)); + dialog = gtk_dialog_new_with_buttons (_("File Chooser Preferences"), + toplevel, + GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT | + GTK_DIALOG_NO_SEPARATOR, + GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, + NULL); + impl->preferences_dialog = dialog; + g_signal_connect (dialog, "destroy", G_CALLBACK (gtk_widget_destroyed), &impl->preferences_dialog); + g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); + gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + + box = gtk_vbox_new (FALSE, 6); + gtk_container_set_border_width (GTK_CONTAINER (box), 12); + gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), box, TRUE, TRUE, 0); + + /* Thumbnails */ + section = preferences_section (box, _("Thumbnails")); + button = gtk_check_button_new_with_mnemonic (_("Show _thumbnails of pictures")); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), impl->show_thumbnails); + gtk_box_pack_start (GTK_BOX (section), button, FALSE, FALSE, 0); + + group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL); + sizes = gtk_vbox_new (FALSE, 6); + gtk_box_pack_start (GTK_BOX (sizes), + preferences_size_row (impl, group, _("Of _local files up to"), + impl->thumbnail_max_size, FALSE), + FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (sizes), + preferences_size_row (impl, group, _("Of files on _network shares up to"), + impl->thumbnail_max_size_remote, TRUE), + FALSE, FALSE, 0); + g_object_unref (group); + gtk_widget_set_sensitive (sizes, impl->show_thumbnails); + gtk_box_pack_start (GTK_BOX (section), sizes, FALSE, FALSE, 0); + g_object_set_data (G_OBJECT (button), I_("gtk-sizes"), sizes); + g_signal_connect (button, "toggled", G_CALLBACK (preferences_thumbnails_toggled_cb), impl); + + /* The list */ + section = preferences_section (box, _("Files")); + button = gtk_check_button_new_with_mnemonic (_("Show the _preview beside the files")); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), impl->show_preview_panel); + /* not beside the preview of the program */ + gtk_widget_set_sensitive (button, impl->preview_widget == NULL); + g_signal_connect (button, "toggled", G_CALLBACK (preferences_preview_toggled_cb), impl); + gtk_box_pack_start (GTK_BOX (section), button, FALSE, FALSE, 0); + + button = gtk_check_button_new_with_mnemonic (_("Show _hidden files")); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), impl->show_hidden); + g_signal_connect (button, "toggled", G_CALLBACK (preferences_hidden_toggled_cb), impl); + gtk_box_pack_start (GTK_BOX (section), button, FALSE, FALSE, 0); + + /* Where to start, unless the program says */ + section = preferences_section (box, _("Start With")); + radio = gtk_radio_button_new_with_mnemonic (NULL, _("_Recently used files")); + g_object_set_data (G_OBJECT (radio), I_("gtk-mode"), GINT_TO_POINTER (STARTUP_MODE_RECENT)); + gtk_box_pack_start (GTK_BOX (section), radio, FALSE, FALSE, 0); + button = gtk_radio_button_new_with_mnemonic_from_widget (GTK_RADIO_BUTTON (radio), + _("The _folder the program runs in")); + g_object_set_data (G_OBJECT (button), I_("gtk-mode"), GINT_TO_POINTER (STARTUP_MODE_CWD)); + gtk_box_pack_start (GTK_BOX (section), button, FALSE, FALSE, 0); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (impl->startup_mode == STARTUP_MODE_CWD ? button : radio), + TRUE); + g_signal_connect (radio, "toggled", G_CALLBACK (preferences_start_toggled_cb), impl); + g_signal_connect (button, "toggled", G_CALLBACK (preferences_start_toggled_cb), impl); + + gtk_widget_show_all (dialog); +} + /* Callback used when the "Show Size Column" menu item is toggled */ static void show_size_column_toggled_cb (GtkCheckMenuItem *item, @@ -5170,6 +5388,11 @@ file_list_build_popup_menu (GtkFileChooserDefault *impl) gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + item = gtk_image_menu_item_new_from_stock (GTK_STOCK_PREFERENCES, NULL); + g_signal_connect (item, "activate", G_CALLBACK (preferences_cb), impl); + gtk_widget_show (item); + gtk_menu_shell_append (GTK_MENU_SHELL (impl->browse_files_popup_menu), item); + if (impl->view_mode == VIEW_MODE_LIST) { item = gtk_check_menu_item_new_with_mnemonic (_("Show _Size Column")); @@ -8375,6 +8598,15 @@ gtk_file_chooser_default_dispose (GObject *object) cancel_all_operations (impl); + /* it belongs to the toplevel, not to us, but speaks to us */ + if (impl->preferences_dialog) + gtk_widget_destroy (impl->preferences_dialog); + if (impl->preferences_apply_id) + { + g_source_remove (impl->preferences_apply_id); + impl->preferences_apply_id = 0; + } + if (impl->extra_widget) { g_object_unref (impl->extra_widget); @@ -8629,6 +8861,7 @@ settings_load (GtkFileChooserDefault *impl) ViewMode view_mode; gboolean show_hidden; gboolean show_size_column, show_thumbnails, show_preview_panel; + gint thumbnail_max_size, thumbnail_max_size_remote; gint sort_column, icon_view_scale; GtkSortType sort_order; StartupMode startup_mode; @@ -8642,6 +8875,8 @@ settings_load (GtkFileChooserDefault *impl) show_size_column = _gtk_file_chooser_settings_get_show_size_column (settings); show_thumbnails = _gtk_file_chooser_settings_get_show_thumbnails (settings); show_preview_panel = _gtk_file_chooser_settings_get_show_preview_panel (settings); + thumbnail_max_size = _gtk_file_chooser_settings_get_thumbnail_max_size (settings, FALSE); + thumbnail_max_size_remote = _gtk_file_chooser_settings_get_thumbnail_max_size (settings, TRUE); sort_column = _gtk_file_chooser_settings_get_sort_column (settings); sort_order = _gtk_file_chooser_settings_get_sort_order (settings); startup_mode = _gtk_file_chooser_settings_get_startup_mode (settings); @@ -8674,9 +8909,13 @@ settings_load (GtkFileChooserDefault *impl) gtk_file_chooser_set_show_hidden (GTK_FILE_CHOOSER (impl), show_hidden); impl->show_size_column = show_size_column; - if (impl->show_thumbnails != show_thumbnails) + if (impl->show_thumbnails != show_thumbnails || + impl->thumbnail_max_size != thumbnail_max_size || + impl->thumbnail_max_size_remote != thumbnail_max_size_remote) { impl->show_thumbnails = show_thumbnails; + impl->thumbnail_max_size = thumbnail_max_size; + impl->thumbnail_max_size_remote = thumbnail_max_size_remote; thumbnails_reload (impl); } impl->show_preview_panel = show_preview_panel; @@ -8729,6 +8968,8 @@ settings_save (GtkFileChooserDefault *impl) _gtk_file_chooser_settings_set_show_size_column (settings, impl->show_size_column); _gtk_file_chooser_settings_set_show_thumbnails (settings, impl->show_thumbnails); _gtk_file_chooser_settings_set_show_preview_panel (settings, impl->show_preview_panel); + _gtk_file_chooser_settings_set_thumbnail_max_size (settings, FALSE, impl->thumbnail_max_size); + _gtk_file_chooser_settings_set_thumbnail_max_size (settings, TRUE, impl->thumbnail_max_size_remote); _gtk_file_chooser_settings_set_sort_column (settings, impl->sort_column); _gtk_file_chooser_settings_set_sort_order (settings, impl->sort_order); _gtk_file_chooser_settings_set_startup_mode (settings, impl->startup_mode); @@ -9528,7 +9769,7 @@ thumbnail_maybe_request (GtkFileChooserDefault *impl, return; file = _gtk_file_system_model_get_file (model, iter); - if (!_gtk_file_thumbnail_wanted (file, info)) + if (!_gtk_file_thumbnail_wanted (file, info, MEGABYTES (impl->thumbnail_max_size))) return; g_file_info_set_attribute_boolean (info, THUMBNAIL_TRIED_ATTRIBUTE, TRUE); @@ -9547,6 +9788,7 @@ thumbnail_maybe_request (GtkFileChooserDefault *impl, g_hash_table_insert (impl->thumbnail_requests, request->file, request); _gtk_file_thumbnail_request (file, info, impl->icon_view_icon_size, + MEGABYTES (impl->thumbnail_max_size_remote), request->cancellable, thumbnail_done, request, thumbnail_request_free); } diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h index 0a5d7708c..3b3983d58 100644 --- a/gtk/gtkfilechooserprivate.h +++ b/gtk/gtkfilechooserprivate.h @@ -304,6 +304,14 @@ struct _GtkFileChooserDefault GtkWidget *preview_panel_image; GtkWidget *preview_panel_name; GtkWidget *preview_panel_info; + + /* thumbnails of files up to these sizes, in MB; of none on network + * shares if 0 */ + gint thumbnail_max_size; + gint thumbnail_max_size_remote; + + GtkWidget *preferences_dialog; + guint preferences_apply_id; guint preview_panel_update_id; GCancellable *preview_panel_cancellable; diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index 24d9ac684..c147ee074 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -45,6 +45,8 @@ #define SHOW_SIZE_COLUMN_KEY "ShowSizeColumn" #define SHOW_THUMBNAILS_KEY "ShowThumbnails" #define SHOW_PREVIEW_PANEL_KEY "ShowPreviewPanel" +#define THUMBNAIL_MAX_SIZE_KEY "ThumbnailMaxSize" +#define THUMBNAIL_MAX_SIZE_REMOTE_KEY "ThumbnailMaxSizeRemote" #define GEOMETRY_X_KEY "GeometryX" #define GEOMETRY_Y_KEY "GeometryY" #define GEOMETRY_WIDTH_KEY "GeometryWidth" @@ -190,6 +192,12 @@ ensure_settings_read (GtkFileChooserSettings *settings) get_int_key (key_file, SETTINGS_GROUP, ICON_VIEW_SCALE_KEY, &settings->icon_view_scale); + /* Thumbnails of files up to these sizes */ + + get_int_key (key_file, SETTINGS_GROUP, THUMBNAIL_MAX_SIZE_KEY, &settings->thumbnail_max_size); + get_int_key (key_file, SETTINGS_GROUP, THUMBNAIL_MAX_SIZE_REMOTE_KEY, + &settings->thumbnail_max_size_remote); + /* Show hidden */ value = g_key_file_get_boolean (key_file, SETTINGS_GROUP, @@ -312,6 +320,8 @@ _gtk_file_chooser_settings_init (GtkFileChooserSettings *settings) settings->show_hidden = FALSE; settings->show_size_column = TRUE; settings->show_thumbnails = TRUE; + settings->thumbnail_max_size = 64; + settings->thumbnail_max_size_remote = 0; settings->geometry_x = -1; settings->geometry_y = -1; settings->geometry_width = -1; @@ -409,6 +419,33 @@ _gtk_file_chooser_settings_set_show_preview_panel (GtkFileChooserSettings *setti settings->show_preview_panel = show_preview_panel != FALSE; } +gint +_gtk_file_chooser_settings_get_thumbnail_max_size (GtkFileChooserSettings *settings, + gboolean remote) +{ + gint megabytes; + + ensure_settings_read (settings); + megabytes = remote ? settings->thumbnail_max_size_remote : settings->thumbnail_max_size; + + /* not in the file (-1): the default */ + if (megabytes < 0) + megabytes = remote ? 0 : 64; + + return megabytes; +} + +void +_gtk_file_chooser_settings_set_thumbnail_max_size (GtkFileChooserSettings *settings, + gboolean remote, + gint megabytes) +{ + if (remote) + settings->thumbnail_max_size_remote = megabytes; + else + settings->thumbnail_max_size = megabytes; +} + gboolean _gtk_file_chooser_settings_get_show_preview_panel (GtkFileChooserSettings *settings) { @@ -605,6 +642,10 @@ _gtk_file_chooser_settings_save (GtkFileChooserSettings *settings, SHOW_THUMBNAILS_KEY, settings->show_thumbnails); g_key_file_set_boolean (key_file, SETTINGS_GROUP, SHOW_PREVIEW_PANEL_KEY, settings->show_preview_panel); + g_key_file_set_integer (key_file, SETTINGS_GROUP, + THUMBNAIL_MAX_SIZE_KEY, settings->thumbnail_max_size); + g_key_file_set_integer (key_file, SETTINGS_GROUP, + THUMBNAIL_MAX_SIZE_REMOTE_KEY, settings->thumbnail_max_size_remote); g_key_file_set_integer (key_file, SETTINGS_GROUP, GEOMETRY_X_KEY, settings->geometry_x); g_key_file_set_integer (key_file, SETTINGS_GROUP, diff --git a/gtk/gtkfilechoosersettings.h b/gtk/gtkfilechoosersettings.h index 2348ff8f5..9f2039c83 100644 --- a/gtk/gtkfilechoosersettings.h +++ b/gtk/gtkfilechoosersettings.h @@ -49,6 +49,7 @@ struct _GtkFileChooserSettings GtkSortType sort_order; gint sort_column, icon_view_scale; + gint thumbnail_max_size, thumbnail_max_size_remote; /* MB */ StartupMode startup_mode; int geometry_x; @@ -92,6 +93,12 @@ gboolean _gtk_file_chooser_settings_get_show_preview_panel (GtkFileChooserSettin void _gtk_file_chooser_settings_set_show_preview_panel (GtkFileChooserSettings *settings, gboolean show_preview_panel); +gint _gtk_file_chooser_settings_get_thumbnail_max_size (GtkFileChooserSettings *settings, + gboolean remote); +void _gtk_file_chooser_settings_set_thumbnail_max_size (GtkFileChooserSettings *settings, + gboolean remote, + gint megabytes); + gboolean _gtk_file_chooser_settings_get_show_thumbnails (GtkFileChooserSettings *settings); void _gtk_file_chooser_settings_set_show_thumbnails (GtkFileChooserSettings *settings, gboolean show_thumbnails); diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index a5e3a1911..a817c1c75 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -47,7 +47,6 @@ #define O_BINARY 0 #endif -#define MAX_FILE_SIZE (64 * 1024 * 1024) #define MAX_PIXELS (3840 * 2400) /* decoded whole: a 4K screenshot, 37 MB */ #define MAX_JPEG_PIXELS (128 * 1024 * 1024) /* decoded at 1/8, a few rows at a time */ #define MAX_GIF_SIZE (4 * 1024 * 1024) /* older loaders keep every frame */ @@ -61,6 +60,7 @@ typedef struct gchar *uri; guint64 mtime; goffset size; + goffset max_remote_size; /* 0: none of network shares */ gint thumbnail_size; /* 128 or 256 */ GCancellable *cancellable; GtkFileThumbnailDone done; @@ -735,7 +735,8 @@ make_thumbnail (Job *job) } } - if (thumbnail_matches (fail, job, NULL, NULL) || on_remote_filesystem (job)) + if (thumbnail_matches (fail, job, NULL, NULL) || + (job->size > job->max_remote_size && on_remote_filesystem (job))) goto none; #if defined (G_OS_WIN32) || defined (GDK_WINDOWING_QUARTZ) @@ -827,7 +828,8 @@ job_run (gpointer data, * fast content type, size and modification time */ gboolean _gtk_file_thumbnail_wanted (GFile *file, - GFileInfo *info) + GFileInfo *info, + goffset max_size) { const gchar *type = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE); gchar *mime, *path; @@ -838,7 +840,7 @@ _gtk_file_thumbnail_wanted (GFile *file, if (type == NULL || !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_STANDARD_SIZE) || !g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_TIME_MODIFIED) || - g_file_info_get_size (info) > MAX_FILE_SIZE) + g_file_info_get_size (info) > max_size) return FALSE; mime = g_content_type_get_mime_type (type); @@ -869,6 +871,7 @@ void _gtk_file_thumbnail_request (GFile *file, GFileInfo *info, gint size, + goffset max_remote_size, GCancellable *cancellable, GtkFileThumbnailDone done, gpointer data, @@ -881,6 +884,7 @@ _gtk_file_thumbnail_request (GFile *file, job->uri = g_file_get_uri (file); job->mtime = g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED); job->size = g_file_info_get_size (info); + job->max_remote_size = max_remote_size; job->thumbnail_size = size > 128 ? 256 : 128; job->cancellable = cancellable ? g_object_ref (cancellable) : NULL; job->done = done; diff --git a/gtk/gtkfilethumbnail.h b/gtk/gtkfilethumbnail.h index b542c1c6c..2345ba3f6 100644 --- a/gtk/gtkfilethumbnail.h +++ b/gtk/gtkfilethumbnail.h @@ -20,11 +20,15 @@ typedef void (*GtkFileThumbnailDone) (GFile *file, const gchar *thumbnail, gpointer data); +/* @max_size and @max_remote_size in bytes: no thumbnails of bigger + * files, and of none on network shares if 0 */ gboolean _gtk_file_thumbnail_wanted (GFile *file, - GFileInfo *info); + GFileInfo *info, + goffset max_size); void _gtk_file_thumbnail_request (GFile *file, GFileInfo *info, gint size, + goffset max_remote_size, GCancellable *cancellable, GtkFileThumbnailDone done, gpointer data, From 3d0d8c6fad0e9db4ab0aeabd7463e904882c1636 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:07:31 +0200 Subject: [PATCH 052/249] gtkfontsel: list thousands of fonts quickly --- gtk/gtkfontsel.c | 140 +++++++++++++++++++++++++++++++---------------- 1 file changed, 93 insertions(+), 47 deletions(-) diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 28ede4eb4..2fd4e6a38 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -179,6 +179,14 @@ static const guint16 font_sizes[] = { 32, 36, 40, 48, 56, 64, 72 }; +typedef struct +{ + PangoFontMap *font_map; /* the fonts listed are from this map... */ + guint font_map_serial;/* ...in this state */ +} GtkFontSelectionPrivate; + +#define GET_PRIV(fontsel) ((GtkFontSelectionPrivate *) gtk_font_selection_get_instance_private (fontsel)) + enum { PROP_0, PROP_FONT_NAME, @@ -261,7 +269,7 @@ static void gtk_font_selection_ref_family (GtkFontSelection *font static void gtk_font_selection_ref_face (GtkFontSelection *fontsel, PangoFontFace *face); -G_DEFINE_TYPE (GtkFontSelection, gtk_font_selection, GTK_TYPE_VBOX) +G_DEFINE_TYPE_WITH_PRIVATE (GtkFontSelection, gtk_font_selection, GTK_TYPE_VBOX) static void gtk_font_selection_class_init (GtkFontSelectionClass *klass) @@ -382,6 +390,7 @@ gtk_font_selection_init (GtkFontSelection *fontsel) GtkWidget *vbox; GtkListStore *model; GtkTreeViewColumn *column; + GtkCellRenderer *renderer; GList *focus_chain = NULL; AtkObject *atk_obj; @@ -457,12 +466,18 @@ gtk_font_selection_init (GtkFontSelection *fontsel) g_signal_connect (fontsel->family_list, "row-activated", G_CALLBACK (list_row_activated), fontsel); - column = gtk_tree_view_column_new_with_attributes ("Family", - gtk_cell_renderer_text_new (), + /* All rows have the same height and the column a fixed width, so the + * list does not measure every family when there are thousands. */ + renderer = gtk_cell_renderer_text_new (); + g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); + column = gtk_tree_view_column_new_with_attributes ("Family", renderer, "text", FAMILY_NAME_COLUMN, NULL); - gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE); + gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED); + gtk_tree_view_column_set_fixed_width (column, 1); + gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (fontsel->family_list), column); + gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (fontsel->family_list), TRUE); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (fontsel->family_list), FALSE); gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (fontsel->family_list)), @@ -698,7 +713,21 @@ gtk_font_selection_reload_fonts (GtkFontSelection *fontsel) { if (gtk_widget_has_screen (GTK_WIDGET (fontsel))) { + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + PangoFontMap *font_map; PangoFontDescription *desc; + + /* Both the screen and the style change when the widget is put into a + * window; listing thousands of fonts once is enough. */ + font_map = pango_context_get_font_map (gtk_widget_get_pango_context (GTK_WIDGET (fontsel))); +#if PANGO_VERSION_CHECK (1, 34, 0) + if (font_map == priv->font_map && + pango_font_map_get_serial (font_map) == priv->font_map_serial) + return; + priv->font_map_serial = pango_font_map_get_serial (font_map); +#endif + priv->font_map = font_map; + desc = gtk_font_selection_get_font_description (fontsel); gtk_font_selection_show_available_fonts (fontsel); @@ -819,50 +848,69 @@ gtk_font_selection_select_font (GtkTreeSelection *selection, } } +typedef struct +{ + PangoFontFamily *family; + gchar *key; +} FamilyEntry; + static int cmp_families (const void *a, const void *b) { - const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a); - const char *b_name = pango_font_family_get_name (*(PangoFontFamily **)b); - - return g_utf8_collate (a_name, b_name); + return strcmp (((const FamilyEntry *) a)->key, ((const FamilyEntry *) b)->key); } static void gtk_font_selection_show_available_fonts (GtkFontSelection *fontsel) { + GtkTreeView *view = GTK_TREE_VIEW (fontsel->family_list); GtkListStore *model; PangoFontFamily **families; PangoFontFamily *match_family = NULL; + FamilyEntry *entries; gint n_families, i; GtkTreeIter match_row; - model = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->family_list))); + model = GTK_LIST_STORE (gtk_tree_view_get_model (view)); + /* Collation keys are made once per family instead of in every comparison. */ pango_context_list_families (gtk_widget_get_pango_context (GTK_WIDGET (fontsel)), &families, &n_families); - qsort (families, n_families, sizeof (PangoFontFamily *), cmp_families); + entries = g_new (FamilyEntry, n_families); + for (i = 0; i < n_families; i++) + { + entries[i].family = families[i]; + entries[i].key = g_utf8_collate_key (pango_font_family_get_name (families[i]), -1); + } + qsort (entries, n_families, sizeof (FamilyEntry), cmp_families); + /* The view would follow every row otherwise. */ + g_object_ref (model); + gtk_tree_view_set_model (view, NULL); gtk_list_store_clear (model); - for (i=0; idesc, + ((const FaceEntry *) b)->desc); } static gboolean @@ -929,6 +976,7 @@ gtk_font_selection_show_available_styles (GtkFontSelection *fontsel) { gint n_faces, i; PangoFontFace **faces; + FaceEntry *entries; PangoFontDescription *old_desc; GtkListStore *model; GtkTreeIter match_row; @@ -942,39 +990,36 @@ gtk_font_selection_show_available_styles (GtkFontSelection *fontsel) old_desc= NULL; pango_font_family_list_faces (fontsel->family, &faces, &n_faces); - qsort (faces, n_faces, sizeof (PangoFontFace *), faces_sort_func); + entries = g_new (FaceEntry, n_faces); + for (i = 0; i < n_faces; i++) + { + entries[i].face = faces[i]; + entries[i].desc = pango_font_face_describe (faces[i]); + } + qsort (entries, n_faces, sizeof (FaceEntry), faces_sort_func); gtk_list_store_clear (model); for (i=0; i < n_faces; i++) { GtkTreeIter iter; - const gchar *str = pango_font_face_get_face_name (faces[i]); + const gchar *str = pango_font_face_get_face_name (entries[i].face); - gtk_list_store_append (model, &iter); - gtk_list_store_set (model, &iter, - FACE_COLUMN, faces[i], - FACE_NAME_COLUMN, _gtk_font_style_name_translate (str), - -1); + gtk_list_store_insert_with_values (model, &iter, i, + FACE_COLUMN, entries[i].face, + FACE_NAME_COLUMN, _gtk_font_style_name_translate (str), + -1); - if (i == 0) + if (i == 0 || + (old_desc && font_description_style_equal (entries[i].desc, old_desc))) { match_row = iter; - match_face = faces[i]; + match_face = entries[i].face; } - else if (old_desc) - { - PangoFontDescription *tmp_desc = pango_font_face_describe (faces[i]); - if (font_description_style_equal (tmp_desc, old_desc)) - { - match_row = iter; - match_face = faces[i]; - } - - pango_font_description_free (tmp_desc); - } + pango_font_description_free (entries[i].desc); } + g_free (entries); if (old_desc) pango_font_description_free (old_desc); @@ -1018,6 +1063,7 @@ gtk_font_selection_select_best_style (GtkFontSelection *fontsel, } + /* This is called when a style is selected in the list. */ static void gtk_font_selection_select_style (GtkTreeSelection *selection, From b57c271808c86e4716d7cd95864fae6f18f63a34 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:07:46 +0200 Subject: [PATCH 053/249] gtkfontsel: update the preview after the lists are redrawn --- gtk/gtkfontsel.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 2fd4e6a38..25ac8262a 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -183,6 +183,9 @@ typedef struct { PangoFontMap *font_map; /* the fonts listed are from this map... */ guint font_map_serial;/* ...in this state */ + guint preview_idle; + gint64 preview_done; /* when the last preview was made... */ + gint64 preview_time; /* ...and how long that took */ } GtkFontSelectionPrivate; #define GET_PRIV(fontsel) ((GtkFontSelectionPrivate *) gtk_font_selection_get_instance_private (fontsel)) @@ -218,6 +221,7 @@ static void gtk_font_selection_get_property (GObject *object, GValue *value, GParamSpec *pspec); static void gtk_font_selection_finalize (GObject *object); +static void gtk_font_selection_destroy (GtkObject *object); static void gtk_font_selection_screen_changed (GtkWidget *widget, GdkScreen *previous_screen); static void gtk_font_selection_style_set (GtkWidget *widget, @@ -277,6 +281,7 @@ gtk_font_selection_class_init (GtkFontSelectionClass *klass) GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GTK_OBJECT_CLASS (klass)->destroy = gtk_font_selection_destroy; gobject_class->set_property = gtk_font_selection_set_property; gobject_class->get_property = gtk_font_selection_get_property; @@ -687,6 +692,20 @@ gtk_font_selection_finalize (GObject *object) G_OBJECT_CLASS (gtk_font_selection_parent_class)->finalize (object); } +static void +gtk_font_selection_destroy (GtkObject *object) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (GTK_FONT_SELECTION (object)); + + if (priv->preview_idle) + { + g_source_remove (priv->preview_idle); + priv->preview_idle = 0; + } + + GTK_OBJECT_CLASS (gtk_font_selection_parent_class)->destroy (object); +} + static void gtk_font_selection_ref_family (GtkFontSelection *fontsel, PangoFontFamily *family) @@ -1063,7 +1082,6 @@ gtk_font_selection_select_best_style (GtkFontSelection *fontsel, } - /* This is called when a style is selected in the list. */ static void gtk_font_selection_select_style (GtkTreeSelection *selection, @@ -1234,14 +1252,44 @@ gtk_font_selection_select_size (GtkTreeSelection *selection, } } +static gboolean +gtk_font_selection_preview_timeout (gpointer data) +{ + GtkFontSelection *fontsel = data; + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + gint64 start = g_get_monotonic_time (); + + priv->preview_idle = 0; + gtk_font_selection_update_preview (fontsel); + + priv->preview_done = g_get_monotonic_time (); + priv->preview_time = priv->preview_done - start; + + return FALSE; +} + static void gtk_font_selection_load_font (GtkFontSelection *fontsel) { + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + gint64 wait; + if (fontsel->font) gdk_font_unref (fontsel->font); fontsel->font = NULL; - gtk_font_selection_update_preview (fontsel); + /* With many fonts installed, loading a font for the preview takes long on + * a slow machine. It is done once the lists are redrawn, for the font + * selected by then. While the user goes through the list quickly, at + * least as much time as the last preview took is left for the list. */ + if (priv->preview_idle) + return; + + wait = priv->preview_done + priv->preview_time - g_get_monotonic_time (); + priv->preview_idle = gdk_threads_add_timeout_full (GDK_PRIORITY_REDRAW + 10, + MAX (wait, 0) / 1000, + gtk_font_selection_preview_timeout, + fontsel, NULL); } static PangoFontDescription * From 69d0ff191bb1d57949ec342224877024bde338f8 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:08:00 +0200 Subject: [PATCH 054/249] gtkfontsel: keep the style when choosing another family --- gtk/gtkfontsel.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 25ac8262a..60acecf7d 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -1057,25 +1057,15 @@ gtk_font_selection_show_available_styles (GtkFontSelection *fontsel) g_free (faces); } -/* This selects a style when the user selects a font. It just uses the first - available style at present. I was thinking of trying to maintain the - selected style, e.g. bold italic, when the user selects different fonts. - However, the interface is so easy to use now I'm not sure it's worth it. +/* This is called when the user selects a font. The style stays what it + was if the new family has it (see gtk_font_selection_show_available_styles()), + so bold stays bold while going through the families. Note: This will load a font. */ static void gtk_font_selection_select_best_style (GtkFontSelection *fontsel, gboolean use_first) { - GtkTreeIter iter; - GtkTreeModel *model; - - model = gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->face_list)); - - if (gtk_tree_model_get_iter_first (model, &iter)) - { - set_cursor_to_iter (GTK_TREE_VIEW (fontsel->face_list), &iter); - scroll_to_selection (GTK_TREE_VIEW (fontsel->face_list)); - } + scroll_to_selection (GTK_TREE_VIEW (fontsel->face_list)); gtk_font_selection_show_available_sizes (fontsel, FALSE); gtk_font_selection_select_best_size (fontsel); From 733e59b8719076ca2d17db75ba7d83bf20f65f93 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:14:43 +0200 Subject: [PATCH 055/249] gtkfontsel: list the styles of a family together with its preview --- gtk/gtkfontsel.c | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 60acecf7d..99b39797e 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -184,6 +184,7 @@ typedef struct PangoFontMap *font_map; /* the fonts listed are from this map... */ guint font_map_serial;/* ...in this state */ guint preview_idle; + gboolean styles_pending; /* preview_idle also lists the styles */ gint64 preview_done; /* when the last preview was made... */ gint64 preview_time; /* ...and how long that took */ } GtkFontSelectionPrivate; @@ -859,8 +860,10 @@ gtk_font_selection_select_font (GtkTreeSelection *selection, gtk_entry_set_text (GTK_ENTRY (fontsel->font_entry), family_name); #endif - gtk_font_selection_show_available_styles (fontsel); - gtk_font_selection_select_best_style (fontsel, TRUE); + /* Listing the styles takes long with many fonts; it is done with + * the preview (see gtk_font_selection_load_font()). */ + GET_PRIV (fontsel)->styles_pending = TRUE; + gtk_font_selection_load_font (fontsel); } g_object_unref (family); @@ -1002,6 +1005,7 @@ gtk_font_selection_show_available_styles (GtkFontSelection *fontsel) PangoFontFace *match_face = NULL; model = GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (fontsel->face_list))); + GET_PRIV (fontsel)->styles_pending = FALSE; if (fontsel->face) old_desc = pango_font_face_describe (fontsel->face); @@ -1250,6 +1254,16 @@ gtk_font_selection_preview_timeout (gpointer data) gint64 start = g_get_monotonic_time (); priv->preview_idle = 0; + if (priv->styles_pending) + { + gtk_font_selection_show_available_styles (fontsel); + gtk_font_selection_select_best_style (fontsel, TRUE); + if (priv->preview_idle) + { + g_source_remove (priv->preview_idle); + priv->preview_idle = 0; + } + } gtk_font_selection_update_preview (fontsel); priv->preview_done = g_get_monotonic_time (); @@ -1258,6 +1272,19 @@ gtk_font_selection_preview_timeout (gpointer data) return FALSE; } +/* Brings the styles and the preview up to date now. */ +static void +gtk_font_selection_flush (GtkFontSelection *fontsel) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + + if (priv->preview_idle) + { + g_source_remove (priv->preview_idle); + gtk_font_selection_preview_timeout (fontsel); + } +} + static void gtk_font_selection_load_font (GtkFontSelection *fontsel) { @@ -1287,6 +1314,8 @@ gtk_font_selection_get_font_description (GtkFontSelection *fontsel) { PangoFontDescription *font_desc; + gtk_font_selection_flush (fontsel); + if (fontsel->face) { font_desc = pango_font_face_describe (fontsel->face); @@ -1486,6 +1515,8 @@ gtk_font_selection_get_face (GtkFontSelection *fontsel) { g_return_val_if_fail (GTK_IS_FONT_SELECTION (fontsel), NULL); + gtk_font_selection_flush (fontsel); + return fontsel->face; } From a0716f2213af81e315cfa84769082c6f6f5c4573 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:51:50 +0200 Subject: [PATCH 056/249] cups: do not leak the password the user typed --- .../printbackends/cups/gtkprintbackendcups.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index d07d1bc7a..45aca43d7 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -981,9 +981,9 @@ gtk_print_backend_cups_set_password (GtkPrintBackend *backend, GList *l; char dispatch_hostname[HTTP_MAX_URI]; gchar *key; - gchar *username = NULL; - gchar *hostname = NULL; - gchar *password = NULL; + const gchar *username = NULL; + const gchar *hostname = NULL; + const gchar *password = NULL; gint length; gint i; @@ -993,25 +993,24 @@ gtk_print_backend_cups_set_password (GtkPrintBackend *backend, for (i = 0; i < length; i++) { if (g_strcmp0 (auth_info_required[i], "username") == 0) - username = g_strdup (auth_info[i]); + username = auth_info[i]; else if (g_strcmp0 (auth_info_required[i], "hostname") == 0) - hostname = g_strdup (auth_info[i]); + hostname = auth_info[i]; else if (g_strcmp0 (auth_info_required[i], "password") == 0) - password = g_strdup (auth_info[i]); + password = auth_info[i]; } if (hostname != NULL && username != NULL && password != NULL) { key = g_strconcat (username, "@", hostname, NULL); g_hash_table_insert (cups_backend->auth, key, g_strdup (password)); + GTK_NOTE (PRINTING, + g_print ("CUPS backend: storing password for %s\n", key)); } g_free (cups_backend->username); cups_backend->username = g_strdup (username); - GTK_NOTE (PRINTING, - g_print ("CUPS backend: storing password for %s\n", key)); - for (l = cups_backend->requests; l; l = l->next) { GtkPrintCupsDispatchWatch *dispatch = l->data; @@ -1349,6 +1348,7 @@ request_auth_info (gpointer user_data) g_free (auth_info_default); g_free (auth_info_display); + g_free (auth_info_visible); g_free (printer_name); g_free (prompt); From bf77fb897d0128f946bc7a52228a8affab4526dd Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:53:23 +0200 Subject: [PATCH 057/249] cups: remember job passwords in the keyring, as GTK+ 3 does --- gtk/gtkprintbackend.c | 26 +- .../printbackends/cups/gtkprintbackendcups.c | 445 +++++++++++++++++- 2 files changed, 466 insertions(+), 5 deletions(-) diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c index 66f5b41a9..86921174b 100644 --- a/gtk/gtkprintbackend.c +++ b/gtk/gtkprintbackend.c @@ -48,8 +48,18 @@ struct _GtkPrintBackendPrivate GtkPrintBackendStatus status; char **auth_info_required; char **auth_info; + GtkWidget *remember; /* "Remember password", if offered */ }; +/* A backend that can keep passwords in the user's keyring puts these into + * the first two reserved slots of its class: whether it can do so for the + * password asked for now, and set_password() with the user's choice. */ +typedef gboolean (*CanStorePasswordFunc) (GtkPrintBackend *backend); +typedef void (*SetPasswordFullFunc) (GtkPrintBackend *backend, + gchar **auth_info_required, + gchar **auth_info, + gboolean store_auth_info); + enum { PRINTER_LIST_CHANGED, PRINTER_LIST_DONE, @@ -698,10 +708,15 @@ password_dialog_response (GtkWidget *dialog, GtkPrintBackendPrivate *priv = backend->priv; gint i; - if (response_id == GTK_RESPONSE_OK) + if (response_id == GTK_RESPONSE_OK && priv->remember != NULL && + gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->remember))) + ((SetPasswordFullFunc) GTK_PRINT_BACKEND_GET_CLASS (backend)->_gtk_reserved2) + (backend, priv->auth_info_required, priv->auth_info, TRUE); + else if (response_id == GTK_RESPONSE_OK) gtk_print_backend_set_password (backend, priv->auth_info_required, priv->auth_info); else gtk_print_backend_set_password (backend, priv->auth_info_required, NULL); + priv->remember = NULL; for (i = 0; i < g_strv_length (priv->auth_info_required); i++) if (priv->auth_info[i] != NULL) @@ -810,6 +825,15 @@ request_password (GtkPrintBackend *backend, } } + priv->remember = NULL; + if (GTK_PRINT_BACKEND_GET_CLASS (backend)->_gtk_reserved1 != NULL && + GTK_PRINT_BACKEND_GET_CLASS (backend)->_gtk_reserved2 != NULL && + ((CanStorePasswordFunc) GTK_PRINT_BACKEND_GET_CLASS (backend)->_gtk_reserved1) (backend)) + { + priv->remember = gtk_check_button_new_with_mnemonic (_("_Remember password")); + gtk_box_pack_start (GTK_BOX (vbox), priv->remember, FALSE, FALSE, 6); + } + if (focus != NULL) { gtk_widget_grab_focus (focus); diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 45aca43d7..838a73056 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -144,6 +144,8 @@ struct _GtkPrintBackendCups GHashTable *auth; gchar *username; gboolean authentication_lock; + guint secrets_available : 1; /* a keyring answered */ + guint secrets_unavailable : 1; /* there is none */ #ifdef HAVE_CUPS_API_1_6 GDBusConnection *dbus_connection; gchar *avahi_default_printer; @@ -213,6 +215,14 @@ static cairo_surface_t * cups_printer_create_cairo_surface (GtkPrinter static void gtk_print_backend_cups_set_password (GtkPrintBackend *backend, gchar **auth_info_required, gchar **auth_info); +static void gtk_print_backend_cups_set_password_full (GtkPrintBackend *backend, + gchar **auth_info_required, + gchar **auth_info, + gboolean store_auth_info); +static gboolean gtk_print_backend_cups_can_store_password (GtkPrintBackend *backend); +static void cups_secret_store (gchar **auth_info_required, + gchar **auth_info, + const gchar *printer_uri); void overwrite_and_free (gpointer data); static gboolean is_address_local (const gchar *address); @@ -341,6 +351,9 @@ gtk_print_backend_cups_class_init (GtkPrintBackendCupsClass *class) backend_class->printer_get_hard_margins = cups_printer_get_hard_margins; backend_class->printer_get_capabilities = cups_printer_get_capabilities; backend_class->set_password = gtk_print_backend_cups_set_password; + /* see gtk/gtkprintbackend.c */ + backend_class->_gtk_reserved1 = (void (*) (void)) gtk_print_backend_cups_can_store_password; + backend_class->_gtk_reserved2 = (void (*) (void)) gtk_print_backend_cups_set_password_full; } static cairo_status_t @@ -973,9 +986,10 @@ httpGetHostname(http_t *http, #endif static void -gtk_print_backend_cups_set_password (GtkPrintBackend *backend, - gchar **auth_info_required, - gchar **auth_info) +gtk_print_backend_cups_set_password_full (GtkPrintBackend *backend, + gchar **auth_info_required, + gchar **auth_info, + gboolean store_auth_info) { GtkPrintBackendCups *cups_backend = GTK_PRINT_BACKEND_CUPS (backend); GList *l; @@ -1026,6 +1040,11 @@ gtk_print_backend_cups_set_password (GtkPrintBackend *backend, dispatch->request->auth_info = g_new0 (gchar *, length + 1); for (i = 0; i < length; i++) dispatch->request->auth_info[i] = g_strdup (auth_info[i]); + + if (store_auth_info && password != NULL) + cups_secret_store (auth_info_required, auth_info, + gtk_cups_request_ipp_get_string (dispatch->request, + IPP_TAG_URI, "printer-uri")); } dispatch->backend->authentication_lock = FALSE; dispatch->request->need_auth_info = FALSE; @@ -1042,6 +1061,31 @@ gtk_print_backend_cups_set_password (GtkPrintBackend *backend, } } +static void +gtk_print_backend_cups_set_password (GtkPrintBackend *backend, + gchar **auth_info_required, + gchar **auth_info) +{ + gtk_print_backend_cups_set_password_full (backend, auth_info_required, auth_info, FALSE); +} + +/* Offers to remember the password asked for a job (not for the server). */ +static gboolean +gtk_print_backend_cups_can_store_password (GtkPrintBackend *backend) +{ + GtkPrintBackendCups *cups_backend = GTK_PRINT_BACKEND_CUPS (backend); + GList *l; + + if (!cups_backend->secrets_available) + return FALSE; + + for (l = cups_backend->requests; l; l = l->next) + if (((GtkPrintCupsDispatchWatch *) l->data)->request->need_auth_info) + return TRUE; + + return FALSE; +} + static gboolean request_password (gpointer data) { @@ -1357,6 +1401,399 @@ request_auth_info (gpointer user_data) return FALSE; } +/* Passwords that printers need for each job (auth-info-required, as for + * printers shared by Windows) can be kept in the user's keyring through the + * freedesktop.org Secret Service API. The entries are the same as GTK+ 3 + * makes, so both find each other's: label and "uri" attribute are the + * printer URI, "user", "server" and "domain" attributes hold the other + * fields and the secret is the password as text/plain. + * The session bus is used only when a printer asks for a password. + */ + +#define SECRETS_BUS "org.freedesktop.secrets" +#define SECRETS_PATH "/org/freedesktop/secrets" +#define SECRETS_COLLECTION "/org/freedesktop/secrets/aliases/default" +#define SECRETS_IFACE(x) "org.freedesktop.Secret." x + +typedef enum +{ + SECRET_SEARCH, + SECRET_UNLOCK, + SECRET_PROMPT, + SECRET_ATTRIBUTES, + SECRET_SESSION, + SECRET_GET, + SECRET_CREATE +} SecretStep; + +typedef struct +{ + GtkPrintCupsDispatchWatch *dispatch; /* looking up for it; NULL when storing */ + GDBusConnection *bus; + SecretStep step; + gchar *uri; + gchar **required; /* names of the auth_info fields */ + gchar **auth_info; + gchar *item; + gchar *session; + guint prompt_signal; + guint prompt_returned : 1; /* Prompt() and Completed can come in any order */ + guint prompt_completed : 1; + guint dismissed : 1; +} CupsSecret; + +static void cups_secret_reply (GObject *source, GAsyncResult *res, gpointer data); + +static void +cups_secret_call (CupsSecret *secret, + const gchar *path, + const gchar *interface, + const gchar *method, + GVariant *parameters, + const GVariantType *reply_type, + SecretStep step) +{ + secret->step = step; + g_dbus_connection_call (secret->bus, SECRETS_BUS, path, interface, method, + parameters, reply_type, G_DBUS_CALL_FLAGS_NONE, + -1, NULL, cups_secret_reply, secret); +} + +static void +cups_secret_open_session (CupsSecret *secret) +{ + cups_secret_call (secret, SECRETS_PATH, SECRETS_IFACE ("Service"), "OpenSession", + g_variant_new ("(sv)", "plain", g_variant_new_string ("")), + G_VARIANT_TYPE ("(vo)"), SECRET_SESSION); +} + +static void +cups_secret_finish (CupsSecret *secret, + gboolean found, + GError *error) +{ + GtkPrintCupsDispatchWatch *dispatch = secret->dispatch; + guint i; + + if (error != NULL) + GTK_NOTE (PRINTING, g_print ("CUPS backend: keyring: %s\n", error->message)); + + if (dispatch != NULL) + { + if (error == NULL) + dispatch->backend->secrets_available = TRUE; + else if (secret->bus == NULL || + g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN) || + g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_NAME_HAS_NO_OWNER)) + dispatch->backend->secrets_unavailable = TRUE; + + if (found) + gtk_print_backend_cups_set_password (GTK_PRINT_BACKEND (dispatch->backend), + secret->required, secret->auth_info); + else + dispatch->backend->authentication_lock = FALSE; + } + + g_clear_error (&error); + + if (secret->prompt_signal != 0) + g_dbus_connection_signal_unsubscribe (secret->bus, secret->prompt_signal); + if (secret->session != NULL) + g_dbus_connection_call (secret->bus, SECRETS_BUS, secret->session, + SECRETS_IFACE ("Session"), "Close", NULL, NULL, + G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL); + if (secret->auth_info != NULL) + for (i = 0; secret->required[i] != NULL; i++) + overwrite_and_free (secret->auth_info[i]); + g_free (secret->auth_info); + g_strfreev (secret->required); + g_free (secret->uri); + g_free (secret->item); + g_free (secret->session); + if (secret->bus != NULL) + g_object_unref (secret->bus); + g_free (secret); + + if (dispatch != NULL) + { + if (found) + check_auth_info (dispatch); + else + request_auth_info (dispatch); + } +} + +/* Goes on once the keyring is unlocked. */ +static void +cups_secret_unlocked (CupsSecret *secret) +{ + if (secret->dismissed) + cups_secret_finish (secret, FALSE, NULL); + else if (secret->session != NULL) + cups_secret_finish (secret, TRUE, NULL); /* stored after a prompt */ + else if (secret->dispatch != NULL) + cups_secret_call (secret, secret->item, "org.freedesktop.DBus.Properties", "Get", + g_variant_new ("(ss)", SECRETS_IFACE ("Item"), "Attributes"), + G_VARIANT_TYPE ("(v)"), SECRET_ATTRIBUTES); + else + cups_secret_open_session (secret); +} + +static void +cups_secret_prompt_completed (GDBusConnection *bus, + const gchar *sender, + const gchar *path, + const gchar *interface, + const gchar *signal, + GVariant *parameters, + gpointer data) +{ + CupsSecret *secret = data; + gboolean dismissed = TRUE; + + g_dbus_connection_signal_unsubscribe (bus, secret->prompt_signal); + secret->prompt_signal = 0; + + if (g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(bv)"))) + g_variant_get (parameters, "(bv)", &dismissed, NULL); + secret->dismissed = dismissed; + secret->prompt_completed = TRUE; + + if (secret->prompt_returned) + cups_secret_unlocked (secret); +} + +/* Lets the keyring ask the user, if @prompt is not "/". */ +static void +cups_secret_prompt (CupsSecret *secret, + const gchar *prompt) +{ + if (strcmp (prompt, "/") == 0) + { + cups_secret_unlocked (secret); + return; + } + + secret->prompt_returned = secret->prompt_completed = FALSE; + secret->prompt_signal = + g_dbus_connection_signal_subscribe (secret->bus, SECRETS_BUS, SECRETS_IFACE ("Prompt"), + "Completed", prompt, NULL, G_DBUS_SIGNAL_FLAGS_NONE, + cups_secret_prompt_completed, secret, NULL); + cups_secret_call (secret, prompt, SECRETS_IFACE ("Prompt"), "Prompt", + g_variant_new ("(s)", ""), NULL, SECRET_PROMPT); +} + +static void +cups_secret_reply (GObject *source, + GAsyncResult *res, + gpointer data) +{ + CupsSecret *secret = data; + GError *error = NULL; + GVariant *reply, *value; + const gchar **unlocked, **locked; + const gchar *prompt; + gconstpointer password; + gsize length; + guint i; + + reply = g_dbus_connection_call_finish (secret->bus, res, &error); + if (reply == NULL) + { + cups_secret_finish (secret, FALSE, error); + return; + } + + switch (secret->step) + { + case SECRET_SEARCH: + g_variant_get (reply, "(^a&o^a&o)", &unlocked, &locked); + secret->item = g_strdup (unlocked[0] != NULL ? unlocked[0] : locked[0]); + i = unlocked[0] != NULL; + g_free (unlocked); + g_free (locked); + if (secret->item == NULL) + cups_secret_finish (secret, FALSE, NULL); + else if (i) + cups_secret_unlocked (secret); + else + cups_secret_call (secret, SECRETS_PATH, SECRETS_IFACE ("Service"), "Unlock", + g_variant_new ("(^ao)", (gchar *[]) { secret->item, NULL }), + G_VARIANT_TYPE ("(aoo)"), SECRET_UNLOCK); + break; + + case SECRET_UNLOCK: + case SECRET_CREATE: + g_variant_get (reply, secret->step == SECRET_UNLOCK ? "(@ao&o)" : "(&o&o)", NULL, &prompt); + cups_secret_prompt (secret, prompt); + break; + + case SECRET_PROMPT: + secret->prompt_returned = TRUE; + if (secret->prompt_completed) + cups_secret_unlocked (secret); + break; + + case SECRET_ATTRIBUTES: + g_variant_get (reply, "(v)", &value); + secret->auth_info = g_new0 (gchar *, g_strv_length (secret->required) + 1); + for (i = 0; secret->required[i] != NULL; i++) + { + const gchar *name = secret->required[i]; + const gchar *found = NULL; + + if (!g_variant_is_of_type (value, G_VARIANT_TYPE ("a{ss}"))) + break; + if (strcmp (name, "password") == 0) + continue; + if (strcmp (name, "username") == 0 && + !g_variant_lookup (value, "user", "&s", &found)) + g_variant_lookup (value, "username", "&s", &found); + else if (strcmp (name, "hostname") == 0 && + !g_variant_lookup (value, "server", "&s", &found)) + g_variant_lookup (value, "hostname", "&s", &found); + else if (strcmp (name, "domain") == 0) + g_variant_lookup (value, "domain", "&s", &found); + + if (found == NULL) + break; + secret->auth_info[i] = g_strdup (found); + } + g_variant_unref (value); + if (secret->required[i] != NULL) + cups_secret_finish (secret, FALSE, NULL); + else + cups_secret_open_session (secret); + break; + + case SECRET_SESSION: + g_variant_get (reply, "(vo)", NULL, &secret->session); + if (secret->dispatch != NULL) + cups_secret_call (secret, secret->item, SECRETS_IFACE ("Item"), "GetSecret", + g_variant_new ("(o)", secret->session), + G_VARIANT_TYPE ("((oayays))"), SECRET_GET); + else + { + GVariantBuilder attributes, properties; + const gchar *password = NULL; + + g_variant_builder_init (&attributes, G_VARIANT_TYPE ("a{ss}")); + g_variant_builder_add (&attributes, "{ss}", "uri", secret->uri); + for (i = 0; secret->required[i] != NULL; i++) + { + const gchar *name = secret->required[i]; + + if (strcmp (name, "password") == 0) + password = secret->auth_info[i]; + else if (secret->auth_info[i] != NULL) + g_variant_builder_add (&attributes, "{ss}", + strcmp (name, "username") == 0 ? "user" : + strcmp (name, "hostname") == 0 ? "server" : name, + secret->auth_info[i]); + } + + g_variant_builder_init (&properties, G_VARIANT_TYPE ("a{sv}")); + g_variant_builder_add (&properties, "{sv}", SECRETS_IFACE ("Item.Label"), + g_variant_new_string (secret->uri)); + g_variant_builder_add (&properties, "{sv}", SECRETS_IFACE ("Item.Attributes"), + g_variant_builder_end (&attributes)); + + cups_secret_call (secret, SECRETS_COLLECTION, SECRETS_IFACE ("Collection"), "CreateItem", + g_variant_new ("(a{sv}(o@ay@ays)b)", &properties, secret->session, + g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE, "", 0, 1), + g_variant_new_fixed_array (G_VARIANT_TYPE_BYTE, password, + strlen (password), 1), + "text/plain", TRUE), + G_VARIANT_TYPE ("(oo)"), SECRET_CREATE); + } + break; + + case SECRET_GET: + g_variant_get (reply, "((o@ay@ays))", NULL, NULL, &value, NULL); + password = g_variant_get_fixed_array (value, &length, 1); + for (i = 0; strcmp (secret->required[i], "password") != 0; i++) + ; + secret->auth_info[i] = g_strndup (password, length); + g_variant_unref (value); + cups_secret_finish (secret, TRUE, NULL); + break; + } + + g_variant_unref (reply); +} + +static void +cups_secret_got_bus (GObject *source, + GAsyncResult *res, + gpointer data) +{ + CupsSecret *secret = data; + GError *error = NULL; + + secret->bus = g_bus_get_finish (res, &error); + if (secret->bus == NULL) + cups_secret_finish (secret, FALSE, error); + else if (secret->dispatch != NULL) + cups_secret_call (secret, SECRETS_PATH, SECRETS_IFACE ("Service"), "SearchItems", + g_variant_new_parsed ("({'uri': %s},)", secret->uri), + G_VARIANT_TYPE ("(aoao)"), SECRET_SEARCH); + else + cups_secret_call (secret, SECRETS_PATH, SECRETS_IFACE ("Service"), "Unlock", + g_variant_new ("(^ao)", (gchar *[]) { SECRETS_COLLECTION, NULL }), + G_VARIANT_TYPE ("(aoo)"), SECRET_UNLOCK); +} + +/* Asks for the password in the dialog unless the keyring has it. */ +static void +lookup_auth_info (GtkPrintCupsDispatchWatch *dispatch) +{ + CupsSecret *secret; + const gchar *uri; + guint i; + + if (dispatch->backend->authentication_lock) + return; + + uri = gtk_cups_request_ipp_get_string (dispatch->request, IPP_TAG_URI, "printer-uri"); + for (i = 0; dispatch->request->auth_info_required[i] != NULL; i++) + if (strcmp (dispatch->request->auth_info_required[i], "password") == 0) + break; + if (dispatch->backend->secrets_unavailable || uri == NULL || + dispatch->request->auth_info_required[i] == NULL) + { + request_auth_info (dispatch); + return; + } + + dispatch->backend->authentication_lock = TRUE; + + secret = g_new0 (CupsSecret, 1); + secret->dispatch = dispatch; + secret->uri = g_strdup (uri); + secret->required = g_strdupv (dispatch->request->auth_info_required); + g_bus_get (G_BUS_TYPE_SESSION, NULL, cups_secret_got_bus, secret); +} + +static void +cups_secret_store (gchar **auth_info_required, + gchar **auth_info, + const gchar *printer_uri) +{ + CupsSecret *secret; + guint i, length = g_strv_length (auth_info_required); + + if (printer_uri == NULL) + return; + + secret = g_new0 (CupsSecret, 1); + secret->uri = g_strdup (printer_uri); + secret->required = g_strdupv (auth_info_required); + secret->auth_info = g_new0 (gchar *, length + 1); + for (i = 0; i < length; i++) + secret->auth_info[i] = g_strdup (auth_info[i]); + g_bus_get (G_BUS_TYPE_SESSION, NULL, cups_secret_got_bus, secret); +} + static gboolean cups_dispatch_watch_check (GSource *source) { @@ -1554,7 +1991,7 @@ cups_request_execute (GtkPrintBackendCups *print_backend, { dispatch->callback = callback; dispatch->callback_data = user_data; - request_auth_info (dispatch); + lookup_auth_info (dispatch); } else { From 7970268707a5b0c23a2c6bca090cc856aa67b790 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 09:54:09 +0200 Subject: [PATCH 058/249] po: "Remember password" translations from GTK+ 3 --- po/af.po | 4 ++++ po/ar.po | 4 ++++ po/as.po | 4 ++++ po/be.po | 4 ++++ po/bg.po | 4 ++++ po/br.po | 4 ++++ po/bs.po | 4 ++++ po/ca.po | 4 ++++ po/ca@valencia.po | 4 ++++ po/cs.po | 4 ++++ po/da.po | 4 ++++ po/de.po | 4 ++++ po/el.po | 4 ++++ po/en_GB.po | 4 ++++ po/eo.po | 4 ++++ po/es.po | 4 ++++ po/et.po | 4 ++++ po/eu.po | 4 ++++ po/fa.po | 4 ++++ po/fi.po | 4 ++++ po/fr.po | 4 ++++ po/ga.po | 4 ++++ po/gl.po | 4 ++++ po/gu.po | 4 ++++ po/he.po | 4 ++++ po/hi.po | 4 ++++ po/hr.po | 4 ++++ po/hu.po | 4 ++++ po/id.po | 4 ++++ po/is.po | 4 ++++ po/it.po | 4 ++++ po/ja.po | 4 ++++ po/ka.po | 4 ++++ po/kk.po | 4 ++++ po/kn.po | 4 ++++ po/ko.po | 4 ++++ po/lt.po | 4 ++++ po/lv.po | 4 ++++ po/mr.po | 4 ++++ po/ms.po | 4 ++++ po/nb.po | 4 ++++ po/ne.po | 4 ++++ po/nl.po | 4 ++++ po/pa.po | 4 ++++ po/pl.po | 4 ++++ po/pt.po | 4 ++++ po/pt_BR.po | 4 ++++ po/ro.po | 4 ++++ po/ru.po | 4 ++++ po/sk.po | 4 ++++ po/sl.po | 4 ++++ po/sr.po | 4 ++++ po/sr@latin.po | 4 ++++ po/sv.po | 4 ++++ po/ta.po | 4 ++++ po/te.po | 4 ++++ po/th.po | 4 ++++ po/tr.po | 4 ++++ po/ug.po | 4 ++++ po/uk.po | 4 ++++ po/vi.po | 4 ++++ po/zh_CN.po | 4 ++++ po/zh_HK.po | 4 ++++ po/zh_TW.po | 4 ++++ 64 files changed, 256 insertions(+) diff --git a/po/af.po b/po/af.po index 7908f29ac..4aab9287b 100644 --- a/po/af.po +++ b/po/af.po @@ -2574,6 +2574,10 @@ msgstr "Lêerstelselwortel" msgid "Authentication" msgstr "Toepassing" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "On_thou wagwoord" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Nie beskikbaar nie" diff --git a/po/ar.po b/po/ar.po index dea110fba..fe398ce3e 100644 --- a/po/ar.po +++ b/po/ar.po @@ -1658,6 +1658,10 @@ msgstr "جذر نظام الملفات" msgid "Authentication" msgstr "الاستيثاق" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_تذكر كلمة السر" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "غير متوفر" diff --git a/po/as.po b/po/as.po index dd057477e..ff326907c 100644 --- a/po/as.po +++ b/po/as.po @@ -2559,6 +2559,10 @@ msgstr "নথিপত্ৰপ্ৰণালী ৰূট" msgid "Authentication" msgstr "প্ৰমাণীকৰণ" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "পাছৱৰ্ড মনত ৰাখক (_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "পোৱা নাযাই" diff --git a/po/be.po b/po/be.po index 8fc115657..f51ff1330 100644 --- a/po/be.po +++ b/po/be.po @@ -1656,6 +1656,10 @@ msgstr "Корань файлавай сістэмы" msgid "Authentication" msgstr "Праверка тоеснасці" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Запомніць пароль" + #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" msgstr "Няма" diff --git a/po/bg.po b/po/bg.po index 8a6c9a713..d1a9992e9 100644 --- a/po/bg.po +++ b/po/bg.po @@ -2612,6 +2612,10 @@ msgstr "Корен на файловата система" msgid "Authentication" msgstr "Идентификация" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Запомняне на _паролата" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Не е достъпен" diff --git a/po/br.po b/po/br.po index 9014cddd8..fe556fb33 100644 --- a/po/br.po +++ b/po/br.po @@ -2515,6 +2515,10 @@ msgstr "Gwrizienn ar reizhiad restroù" msgid "Authentication" msgstr "Dilesa" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Derc'hel soñj ar _ger-tremen" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Dihegerz" diff --git a/po/bs.po b/po/bs.po index 8844b6d26..9b967514a 100644 --- a/po/bs.po +++ b/po/bs.po @@ -2715,6 +2715,10 @@ msgstr "Datotečni sistem" msgid "Authentication" msgstr "_Lokacija:" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Zapamti šifru" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/ca.po b/po/ca.po index 14ab34843..ce0cdaffc 100644 --- a/po/ca.po +++ b/po/ca.po @@ -2609,6 +2609,10 @@ msgstr "Arrel del sistema de fitxers" msgid "Authentication" msgstr "Autenticació" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Recorda la contrasenya" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "No està disponible" diff --git a/po/ca@valencia.po b/po/ca@valencia.po index 5128fbcf5..e82ba2ae1 100644 --- a/po/ca@valencia.po +++ b/po/ca@valencia.po @@ -2609,6 +2609,10 @@ msgstr "Arrel del sistema de fitxers" msgid "Authentication" msgstr "Autenticació" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Recorda la contrasenya" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "No està disponible" diff --git a/po/cs.po b/po/cs.po index f7ab5ffe7..c7c6cd183 100644 --- a/po/cs.po +++ b/po/cs.po @@ -1671,6 +1671,10 @@ msgstr "Kořen systému souborů" msgid "Authentication" msgstr "Ověření" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Pamat_ovat si heslo" + #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" msgstr "Nedostupné" diff --git a/po/da.po b/po/da.po index 5aded49d7..1870b853a 100644 --- a/po/da.po +++ b/po/da.po @@ -1694,6 +1694,10 @@ msgstr "Filsystemets rod" msgid "Authentication" msgstr "Godkendelse" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Husk adgangskode" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Ikke tilgængelig" diff --git a/po/de.po b/po/de.po index 49e158bfb..a35d6e0b9 100644 --- a/po/de.po +++ b/po/de.po @@ -1700,6 +1700,10 @@ msgstr "Dateisystem-Wurzel" msgid "Authentication" msgstr "Legitimation" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Passwort _behalten" + #: ../gtk/gtkprinteroptionwidget.c:725 msgid "Not available" msgstr "Nicht verfügbar" diff --git a/po/el.po b/po/el.po index 3b7bb0fda..28a4985de 100644 --- a/po/el.po +++ b/po/el.po @@ -1684,6 +1684,10 @@ msgstr "Ρίζα συστήματος αρχείων" msgid "Authentication" msgstr "Πιστοποίηση" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Απο_μνημόνευση κωδικού" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Μη διαθέσιμο" diff --git a/po/en_GB.po b/po/en_GB.po index 954c675d4..6ae3d47b3 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -1669,6 +1669,10 @@ msgstr "File System Root" msgid "Authentication" msgstr "Authentication" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Remember password" + #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" msgstr "Not available" diff --git a/po/eo.po b/po/eo.po index dada2fd5e..3a8cd0823 100644 --- a/po/eo.po +++ b/po/eo.po @@ -2629,6 +2629,10 @@ msgstr "Dosiersistemo" msgid "Authentication" msgstr "Aplikaĵo" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Memori pasvorton" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Ne atingebla" diff --git a/po/es.po b/po/es.po index bac842aec..de45fd898 100644 --- a/po/es.po +++ b/po/es.po @@ -1699,6 +1699,10 @@ msgstr "Sistema de archivos raíz" msgid "Authentication" msgstr "Autenticación" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Recordar la contraseña" + #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" msgstr "No disponible" diff --git a/po/et.po b/po/et.po index f2a1c6f55..9d51751bb 100644 --- a/po/et.po +++ b/po/et.po @@ -1349,6 +1349,10 @@ msgstr "Failisüsteemi juurkataloog" msgid "Authentication" msgstr "Autentimine" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Jäta parool meelde" + msgid "Not available" msgstr "Pole saadaval" diff --git a/po/eu.po b/po/eu.po index 746623266..4effd3583 100644 --- a/po/eu.po +++ b/po/eu.po @@ -1304,6 +1304,10 @@ msgstr "Erroko fitxategi-sistema" msgid "Authentication" msgstr "Autentifikazioa" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Gogoratu pasahitza" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Ez dago erabilgarri" diff --git a/po/fa.po b/po/fa.po index cebdb0386..311e1028f 100644 --- a/po/fa.po +++ b/po/fa.po @@ -2659,6 +2659,10 @@ msgstr "سیستم پرونده‌ها" msgid "Authentication" msgstr "_مکان:" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_به‌خاطرسپاری گذرواژه" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/fi.po b/po/fi.po index 8398c7b96..5ce038ebb 100644 --- a/po/fi.po +++ b/po/fi.po @@ -2572,6 +2572,10 @@ msgstr "Tiedostojärjestelmän juuri" msgid "Authentication" msgstr "Todennus" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Muista salasana" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Ei saatavilla" diff --git a/po/fr.po b/po/fr.po index b6cf9a904..af21566ff 100644 --- a/po/fr.po +++ b/po/fr.po @@ -1679,6 +1679,10 @@ msgstr "Racine du système de fichiers" msgid "Authentication" msgstr "Authentification" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Se souvenir du mot de passe" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Pas disponible" diff --git a/po/ga.po b/po/ga.po index f73e59e99..f0e06ab40 100644 --- a/po/ga.po +++ b/po/ga.po @@ -2572,6 +2572,10 @@ msgstr "Fréamh Chóras Comhaid" msgid "Authentication" msgstr "Fíordheimhniú" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Meabhraigh focal faire" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Níl ar fáil" diff --git a/po/gl.po b/po/gl.po index 95a4fbd05..7b20e08de 100644 --- a/po/gl.po +++ b/po/gl.po @@ -1682,6 +1682,10 @@ msgstr "Sistema de ficheiros raíz" msgid "Authentication" msgstr "Autenticación" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Lembrar o contrasinal" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Non dispoñíbel" diff --git a/po/gu.po b/po/gu.po index 1560a4a4f..1924be75d 100644 --- a/po/gu.po +++ b/po/gu.po @@ -1688,6 +1688,10 @@ msgstr "ફાઈલ સિસ્ટમ રુટ" msgid "Authentication" msgstr "સત્તાધિકરણ" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "પાસવર્ડ યાદ રાખો (_R)" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "ઉપલબ્ધ નથી" diff --git a/po/he.po b/po/he.po index a39da3d85..9b2010e75 100644 --- a/po/he.po +++ b/po/he.po @@ -1678,6 +1678,10 @@ msgstr "שורש מערכת הקבצים" msgid "Authentication" msgstr "אימות" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_שמירת הססמה" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "לא זמין" diff --git a/po/hi.po b/po/hi.po index da918199e..88adca878 100644 --- a/po/hi.po +++ b/po/hi.po @@ -2582,6 +2582,10 @@ msgstr "फ़ाइल सिस्टम रूट" msgid "Authentication" msgstr "सत्यापन" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "पासवर्ड याद रखें (_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "उपलब्ध नहीं" diff --git a/po/hr.po b/po/hr.po index 0cc868b4f..59d145579 100644 --- a/po/hr.po +++ b/po/hr.po @@ -2668,6 +2668,10 @@ msgstr "Datotečni sustav" msgid "Authentication" msgstr "_Mjesto:" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Zapamti lozinku" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/hu.po b/po/hu.po index 25b7879d8..01f115df0 100644 --- a/po/hu.po +++ b/po/hu.po @@ -1686,6 +1686,10 @@ msgstr "Fájlrendszer gyökere" msgid "Authentication" msgstr "Hitelesítés" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Jelszó megjegyzése" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "Nem érhető el" diff --git a/po/id.po b/po/id.po index e6a4771c8..5f15b308d 100644 --- a/po/id.po +++ b/po/id.po @@ -1615,6 +1615,10 @@ msgstr "Akar Sistem Berkas" msgid "Authentication" msgstr "Otentikasi" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Ingat _sandi" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "Tidak tersedia" diff --git a/po/is.po b/po/is.po index a96baac68..5e8ee5b5f 100644 --- a/po/is.po +++ b/po/is.po @@ -2687,6 +2687,10 @@ msgstr "Skráarkerfi" msgid "Authentication" msgstr "S_taðsetning:" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Muna lykilorð" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/it.po b/po/it.po index c45403430..b2f0e0563 100644 --- a/po/it.po +++ b/po/it.po @@ -1730,6 +1730,10 @@ msgstr "Radice del file system" msgid "Authentication" msgstr "Autenticazione" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Ricorda password" + #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" msgstr "Non disponibile" diff --git a/po/ja.po b/po/ja.po index a0e2797d7..a6108a356 100644 --- a/po/ja.po +++ b/po/ja.po @@ -1680,6 +1680,10 @@ msgstr "ファイル・システムのルート" msgid "Authentication" msgstr "認証" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "パスワードを記憶する(_R)" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "利用できません" diff --git a/po/ka.po b/po/ka.po index 2f08f124e..1cdeb6c47 100644 --- a/po/ka.po +++ b/po/ka.po @@ -2599,6 +2599,10 @@ msgstr "ფაილური სისტემის ფუძე" msgid "Authentication" msgstr "პროგრამა" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "პაროლის დამახსოვრება" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "მიუწვდომელია" diff --git a/po/kk.po b/po/kk.po index 615290ee0..cfd4c6810 100644 --- a/po/kk.po +++ b/po/kk.po @@ -1648,6 +1648,10 @@ msgstr "Файлдық жүйенің түбірі" msgid "Authentication" msgstr "Аутентификация" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Парольді ес_те сақтау" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Қол жетерлік емес" diff --git a/po/kn.po b/po/kn.po index 867091f83..73cbec190 100644 --- a/po/kn.po +++ b/po/kn.po @@ -2572,6 +2572,10 @@ msgstr "ಕಡತ ವ್ಯವಸ್ಥೆ ಮೂಲ" msgid "Authentication" msgstr "ದೃಢೀಕರಣ" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "ಗುಪ್ತಪದವನ್ನು ನೆನಪಿನಲ್ಲಿಡು (_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "ಲಭ್ಯವಿರುವುದಿಲ್ಲ" diff --git a/po/ko.po b/po/ko.po index 730367d6a..e354fca2b 100644 --- a/po/ko.po +++ b/po/ko.po @@ -1682,6 +1682,10 @@ msgstr "파일 시스템 루트" msgid "Authentication" msgstr "인증" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "암호 저장(_R)" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "없음" diff --git a/po/lt.po b/po/lt.po index dd732ef67..4e2ef56c3 100644 --- a/po/lt.po +++ b/po/lt.po @@ -2570,6 +2570,10 @@ msgstr "Failų sistemos šakninis aplankas" msgid "Authentication" msgstr "Tapatybės patvirtinimas" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Į_siminti slaptažodį" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Neprieinama" diff --git a/po/lv.po b/po/lv.po index 6df51f848..2d3980714 100644 --- a/po/lv.po +++ b/po/lv.po @@ -2559,6 +2559,10 @@ msgstr "Failu sistēmas sakne" msgid "Authentication" msgstr "Autentificēšana" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Atce_rēties paroli" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Nav pieejams" diff --git a/po/mr.po b/po/mr.po index 912d09741..6f3e70c43 100644 --- a/po/mr.po +++ b/po/mr.po @@ -2546,6 +2546,10 @@ msgstr "फाइल प्रणाली रूट" msgid "Authentication" msgstr "ऑथेंटीकेशन" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "पासवर्ड लक्षात ठेवा (_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "उपलब्ध नाही" diff --git a/po/ms.po b/po/ms.po index 3404d0cc4..7cb3667e0 100644 --- a/po/ms.po +++ b/po/ms.po @@ -2695,6 +2695,10 @@ msgstr "Sistemfail" msgid "Authentication" msgstr "_Lokasi:" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Ingat kata laluan" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/nb.po b/po/nb.po index 4fda6ad23..8155b64c2 100644 --- a/po/nb.po +++ b/po/nb.po @@ -1671,6 +1671,10 @@ msgstr "Filsystemrot" msgid "Authentication" msgstr "Autentisering" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Husk passo_rd" + #: ../gtk/gtkprinteroptionwidget.c:725 msgid "Not available" msgstr "Ikke tilgjengelig" diff --git a/po/ne.po b/po/ne.po index b6bf25844..d031f43e8 100644 --- a/po/ne.po +++ b/po/ne.po @@ -2632,6 +2632,10 @@ msgstr "फाइल प्रणाली" msgid "Authentication" msgstr "" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "पासवर्ड सम्झनुहोस्" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "" diff --git a/po/nl.po b/po/nl.po index 194f8dadb..5c463cc7d 100644 --- a/po/nl.po +++ b/po/nl.po @@ -1761,6 +1761,10 @@ msgstr "Hoofdmap bestandssysteem" msgid "Authentication" msgstr "Aanmeldingscontrole" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Wachtwoord o_nthouden" + # niet aanwezig/beschikbaar #: ../gtk/gtkprinteroptionwidget.c:694 msgid "Not available" diff --git a/po/pa.po b/po/pa.po index 9aebc6f35..60868d312 100644 --- a/po/pa.po +++ b/po/pa.po @@ -2540,6 +2540,10 @@ msgstr "ਫਾਇਲ ਸਿਸਟਮ ਰੂਟ" msgid "Authentication" msgstr "ਪਰਮਾਣਕਿਤਾ" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "ਪਾਸਵਰਡ ਯਾਦ ਰੱਖੋ(_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "ਉਪਲੱਬਧ ਨਹੀਂ" diff --git a/po/pl.po b/po/pl.po index 4820e0319..69c40d031 100644 --- a/po/pl.po +++ b/po/pl.po @@ -1625,6 +1625,10 @@ msgstr "System plików" msgid "Authentication" msgstr "Uwierzytelnianie" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Zapamiętanie hasła" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "Niedostępne" diff --git a/po/pt.po b/po/pt.po index 4566207e1..2d96e33a1 100644 --- a/po/pt.po +++ b/po/pt.po @@ -1662,6 +1662,10 @@ msgstr "Raiz do Sistema de Ficheiros" msgid "Authentication" msgstr "Autenticação" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Recordar a palavra-passe" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Indisponível" diff --git a/po/pt_BR.po b/po/pt_BR.po index 965dbb3ce..a53a7fdf2 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -1684,6 +1684,10 @@ msgstr "Raiz do sistema de arquivos" msgid "Authentication" msgstr "Autenticação" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Lemb_rar senha" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Não disponível" diff --git a/po/ro.po b/po/ro.po index 47c3204dc..372fce212 100644 --- a/po/ro.po +++ b/po/ro.po @@ -1680,6 +1680,10 @@ msgstr "Rădăcina sistemului de fișiere" msgid "Authentication" msgstr "Autentificare" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Ține minte pa_rola" + #: ../gtk/gtkprinteroptionwidget.c:725 msgid "Not available" msgstr "Indisponibil" diff --git a/po/ru.po b/po/ru.po index 00a57f477..5b937162a 100644 --- a/po/ru.po +++ b/po/ru.po @@ -2597,6 +2597,10 @@ msgstr "Корень файловой системы" msgid "Authentication" msgstr "Проверка доступа" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Запомнить пароль" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Недоступно" diff --git a/po/sk.po b/po/sk.po index 52e9a7b7b..4ba69d9f8 100644 --- a/po/sk.po +++ b/po/sk.po @@ -2566,6 +2566,10 @@ msgstr "Koreň súborového systému" msgid "Authentication" msgstr "Overenie totožnosti" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Zapamätať heslo" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Nie je k dispozícií" diff --git a/po/sl.po b/po/sl.po index 5f95aa91d..c56644594 100644 --- a/po/sl.po +++ b/po/sl.po @@ -1656,6 +1656,10 @@ msgstr "Koren datotečnega sistema" msgid "Authentication" msgstr "Overitev" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Zapomni si _geslo" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Ni na voljo" diff --git a/po/sr.po b/po/sr.po index 9c010f33f..2438d1cfb 100644 --- a/po/sr.po +++ b/po/sr.po @@ -2595,6 +2595,10 @@ msgstr "Корен система датотека" msgid "Authentication" msgstr "Пријава" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Запамти лозинку" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Није доступно" diff --git a/po/sr@latin.po b/po/sr@latin.po index 6230b7f60..3e2f82eb4 100644 --- a/po/sr@latin.po +++ b/po/sr@latin.po @@ -2599,6 +2599,10 @@ msgstr "Koren sistema datoteka" msgid "Authentication" msgstr "Prijava" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Zapamti lozinku" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Nije dostupno" diff --git a/po/sv.po b/po/sv.po index 0ee9f8117..bb899020a 100644 --- a/po/sv.po +++ b/po/sv.po @@ -1653,6 +1653,10 @@ msgstr "Filsystemsrot" msgid "Authentication" msgstr "Autentisering" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Kom ihåg löseno_rdet" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Inte tillgänglig" diff --git a/po/ta.po b/po/ta.po index 3190944e0..2e5e811ae 100644 --- a/po/ta.po +++ b/po/ta.po @@ -2566,6 +2566,10 @@ msgstr "கோப்பு அமைப்பு மூலம்" msgid "Authentication" msgstr "அங்கீகாரம்" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "கடவுச்சொல்லை நினைவில் கொள் (_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "இல்லை" diff --git a/po/te.po b/po/te.po index c5ccd50bf..e3e76f021 100644 --- a/po/te.po +++ b/po/te.po @@ -2551,6 +2551,10 @@ msgstr "దస్త్ర వ్యవస్థ రూట్" msgid "Authentication" msgstr "దృవీకరణము" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "రహస్యపదాన్ని గుర్తించుము(_R)" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "అందుబాటులో లేదు" diff --git a/po/th.po b/po/th.po index 7dbbf2716..c53b539e6 100644 --- a/po/th.po +++ b/po/th.po @@ -1654,6 +1654,10 @@ msgstr "รากของระบบแฟ้ม" msgid "Authentication" msgstr "การยืนยันตัวบุคคล" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_จำรหัสผ่าน" + #: ../gtk/gtkprinteroptionwidget.c:734 msgid "Not available" msgstr "ไม่มี" diff --git a/po/tr.po b/po/tr.po index fe83a4f35..23d6a460e 100644 --- a/po/tr.po +++ b/po/tr.po @@ -2861,6 +2861,10 @@ msgstr "Dosya Sistemi Kökü" msgid "Authentication" msgstr "Uygulama" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "Parolayı _anımsa" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Kullanılamaz" diff --git a/po/ug.po b/po/ug.po index 84736323f..5ea7c54b6 100644 --- a/po/ug.po +++ b/po/ug.po @@ -1653,6 +1653,10 @@ msgstr "ھۆججەت سىستېما غولى" msgid "Authentication" msgstr "سالاھىيەت دەلىللەش" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "ئىمنى ئەستە تۇت(_R)" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "ئىشلەتكىلى بولمايدۇ" diff --git a/po/uk.po b/po/uk.po index 9132f4934..68cfda60a 100644 --- a/po/uk.po +++ b/po/uk.po @@ -2576,6 +2576,10 @@ msgstr "Корінь файлової системи" msgid "Authentication" msgstr "Автентифікація" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Запам'ятати пароль" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Недоступно" diff --git a/po/vi.po b/po/vi.po index 3b1599e83..92c300dc3 100644 --- a/po/vi.po +++ b/po/vi.po @@ -2559,6 +2559,10 @@ msgstr "Gốc hệ tập tin" msgid "Authentication" msgstr "Xác thực" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "_Nhớ mật khẩu" + #: gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "Không sẵn sàng" diff --git a/po/zh_CN.po b/po/zh_CN.po index 89751ee94..d713d4851 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -1664,6 +1664,10 @@ msgstr "根文件系统" msgid "Authentication" msgstr "认证" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "记住密码(_R)" + #: ../gtk/gtkprinteroptionwidget.c:725 msgid "Not available" msgstr "不可用" diff --git a/po/zh_HK.po b/po/zh_HK.po index 57990598b..e0669e0c0 100644 --- a/po/zh_HK.po +++ b/po/zh_HK.po @@ -1638,6 +1638,10 @@ msgstr "檔案系統根" msgid "Authentication" msgstr "驗證" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "記住密碼(_R)" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "不存在" diff --git a/po/zh_TW.po b/po/zh_TW.po index a0dcead1e..b63d80ae9 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -1642,6 +1642,10 @@ msgstr "檔案系統根" msgid "Authentication" msgstr "驗證" +#: ../gtk/gtkprintbackend.c +msgid "_Remember password" +msgstr "記住密碼(_R)" + #: ../gtk/gtkprinteroptionwidget.c:695 msgid "Not available" msgstr "不存在" From 786452b6d6921bbe63d27a880db7bf0ac1df9ad8 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 10:02:18 +0200 Subject: [PATCH 059/249] gdkscreen-x11: room for all eight visual depths --- gdk/x11/gdkscreen-x11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkscreen-x11.h b/gdk/x11/gdkscreen-x11.h index 7df8e0e7f..35d5d6c13 100644 --- a/gdk/x11/gdkscreen-x11.h +++ b/gdk/x11/gdkscreen-x11.h @@ -73,7 +73,7 @@ struct _GdkScreenX11 GdkVisualPrivate *system_visual; GdkVisualPrivate **visuals; gint nvisuals; - gint available_depths[7]; + gint available_depths[8]; gint navailable_depths; GdkVisualType available_types[6]; gint navailable_types; From e097c0a321e6f5ffb8f0e64236f82272ced2e367 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 10:02:18 +0200 Subject: [PATCH 060/249] gtk-update-icon-cache: read directories in name order and stat each file once --- gtk/updateiconcache.c | 58 ++++++++++++++++++++++++++++++++----------- 1 file changed, 43 insertions(+), 15 deletions(-) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 4a3158e12..3054983ba 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -33,6 +33,12 @@ #ifdef _MSC_VER #include #include +#ifndef S_ISDIR +#define S_ISDIR(mode) (((mode) & _S_IFMT) == _S_IFDIR) +#endif +#ifndef S_ISREG +#define S_ISREG(mode) (((mode) & _S_IFMT) == _S_IFREG) +#endif #else #include #endif @@ -608,6 +614,13 @@ replace_backslashes_with_slashes (gchar *path) path[i] = '/'; } +static gint +compare_names (gconstpointer a, + gconstpointer b) +{ + return strcmp (*(const gchar * const *) a, *(const gchar * const *) b); +} + static GList * scan_directory (const gchar *base_path, const gchar *subdir, @@ -617,10 +630,12 @@ scan_directory (const gchar *base_path, { GHashTable *dir_hash; GDir *dir; + GPtrArray *names; const gchar *name; gchar *dir_path; gboolean dir_added = FALSE; guint dir_index = 0xffff; + guint i; dir_path = g_build_path ("/", base_path, subdir, NULL); @@ -628,22 +643,38 @@ scan_directory (const gchar *base_path, dir = g_dir_open (dir_path, 0, NULL); if (!dir) - return directories; + { + g_free (dir_path); + return directories; + } + + /* In name order, so the cache does not depend on the file system */ + names = g_ptr_array_new_with_free_func (g_free); + while ((name = g_dir_read_name (dir))) + g_ptr_array_add (names, g_strdup (name)); + g_dir_close (dir); + g_ptr_array_sort (names, compare_names); dir_hash = g_hash_table_new (g_str_hash, g_str_equal); - while ((name = g_dir_read_name (dir))) + for (i = 0; i < names->len; i++) { gchar *path; - gboolean retval; + GStatBuf st; int flags = 0; Image *image; gchar *basename, *dot; + name = g_ptr_array_index (names, i); path = g_build_filename (dir_path, name, NULL); - retval = g_file_test (path, G_FILE_TEST_IS_DIR); - if (retval) + if (g_stat (path, &st) != 0) + { + g_free (path); + continue; + } + + if (S_ISDIR (st.st_mode)) { gchar *subsubdir; @@ -654,16 +685,9 @@ scan_directory (const gchar *base_path, directories = scan_directory (base_path, subsubdir, files, directories, depth + 1); g_free (subsubdir); - - continue; } - /* ignore images in the toplevel directory */ - if (subdir == NULL) - continue; - - retval = g_file_test (path, G_FILE_TEST_IS_REGULAR); - if (retval) + else if (subdir != NULL && S_ISREG (st.st_mode)) { if (g_str_has_suffix (name, ".png")) flags |= HAS_SUFFIX_PNG; @@ -675,7 +699,10 @@ scan_directory (const gchar *base_path, flags |= HAS_ICON_FILE; if (flags == 0) - continue; + { + g_free (path); + continue; + } basename = g_strdup (name); dot = strrchr (basename, '.'); @@ -712,7 +739,8 @@ scan_directory (const gchar *base_path, g_free (path); } - g_dir_close (dir); + g_ptr_array_free (names, TRUE); + g_free (dir_path); /* Move dir into the big file hash */ g_hash_table_foreach_remove (dir_hash, foreach_remove_func, files); From 91725d307bb06b0c01e1f1c574e520cc4bff25d4 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Thu, 15 Oct 2026 10:02:18 +0200 Subject: [PATCH 061/249] gtkmodules: use module paths as module directories only from GTK_PATH --- gtk/gtkmodules.c | 67 ++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c index a325b3e56..efde1eeb4 100644 --- a/gtk/gtkmodules.c +++ b/gtk/gtkmodules.c @@ -123,49 +123,44 @@ split_file_list (const gchar *str) } static gchar ** -get_module_path (void) +get_module_path (gint *env_dirs) { const gchar *module_path_env; const gchar *exe_prefix; const gchar *home_dir; - gchar *home_gtk_dir = NULL; - gchar *module_path; - gchar *default_dir; + gchar **path; + gint count; static gchar **result = NULL; + static gint n_env_dirs = 0; if (result) - return result; - - home_dir = g_get_home_dir(); - if (home_dir) - home_gtk_dir = g_build_filename (home_dir, ".gtk-2.0", NULL); + { + *env_dirs = n_env_dirs; + return result; + } + home_dir = g_get_home_dir (); module_path_env = g_getenv ("GTK_PATH"); exe_prefix = g_getenv ("GTK_EXE_PREFIX"); + result = split_file_list (module_path_env); + + for (path = result; *path; path++) + n_env_dirs++; + + count = n_env_dirs; + result = g_renew (gchar *, result, count + (home_dir ? 3 : 2)); + + if (home_dir) + result[count++] = g_build_filename (home_dir, ".gtk-2.0", NULL); + if (exe_prefix) - default_dir = g_build_filename (exe_prefix, "lib", "gtk-2.0", NULL); + result[count++] = g_build_filename (exe_prefix, "lib", "gtk-2.0", NULL); else - default_dir = g_build_filename (GTK_LIBDIR, "gtk-2.0", NULL); + result[count++] = g_build_filename (GTK_LIBDIR, "gtk-2.0", NULL); - if (module_path_env && home_gtk_dir) - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - module_path_env, home_gtk_dir, default_dir, NULL); - else if (module_path_env) - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - module_path_env, default_dir, NULL); - else if (home_gtk_dir) - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - home_gtk_dir, default_dir, NULL); - else - module_path = g_build_path (G_SEARCHPATH_SEPARATOR_S, - default_dir, NULL); - - g_free (home_gtk_dir); - g_free (default_dir); - - result = split_file_list (module_path); - g_free (module_path); + result[count] = NULL; + *env_dirs = n_env_dirs; return result; } @@ -181,15 +176,18 @@ get_module_path (void) gchar ** _gtk_get_module_path (const gchar *type) { - gchar **paths = get_module_path(); gchar **path; + gchar **paths; gchar **result; gint count = 0; + gint env_dirs; + + paths = get_module_path (&env_dirs); for (path = paths; *path; path++) count++; - result = g_new (gchar *, count * 5 + 1); + result = g_new (gchar *, count * 4 + env_dirs + 1); count = 0; for (path = paths; *path; path++) @@ -219,10 +217,11 @@ _gtk_get_module_path (const gchar *type) * live directly in .../.libs directories, for example print backends, * theme engines or input modules. * - * Keep this limited to absolute paths so the removed fallback that could - * load modules from the current working directory is not reintroduced. + * Keep this limited to absolute GTK_PATH entries so the removed fallback + * that could load modules from the current working directory is not + * reintroduced for built-in default paths. */ - if (g_path_is_absolute (*path)) + if (path < paths + env_dirs && g_path_is_absolute (*path)) result[count++] = g_strdup (*path); } From 7da50ae1437b59c99a0be673135d95726e8f9da9 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 08:59:14 +0200 Subject: [PATCH 062/249] build: drop fallbacks for versions older than the required ones, and say which those are --- INSTALL.in | 4 ++-- configure.ac | 2 ++ gtk/gtkfilechooserdefault.c | 4 ---- gtk/updateiconcache.c | 4 ---- modules/engines/pixbuf/pixbuf-render.c | 8 -------- 5 files changed, 4 insertions(+), 18 deletions(-) diff --git a/INSTALL.in b/INSTALL.in index 477011318..05eaefa06 100644 --- a/INSTALL.in +++ b/INSTALL.in @@ -4,8 +4,8 @@ Prerequisites GTK+ requires the following packages: - The GLib, Pango, GdkPixbuf, ATK and cairo libraries, available at the same - location as GTK+. GTK+ @GTK_VERSION@ requires at least GLib 2.28.0, - Pango 1.20, GdkPixbuf 2.21.0, ATK 1.29.2 and cairo 1.6.0. + location as GTK+. GTK+ @GTK_VERSION@ requires at least GLib 2.38.0, + Pango 1.22, GdkPixbuf 2.21.0, ATK 1.29.2, cairo 1.6 and FriBidi 0.19.2. - gobject-introspection 0.9.3 or newer. diff --git a/configure.ac b/configure.ac index ddee74a62..4bd798e43 100644 --- a/configure.ac +++ b/configure.ac @@ -32,6 +32,8 @@ m4_define([gtk_api_version], [2.0]) m4_define([gtk_binary_version], [2.10.0]) # required versions of other packages +# What the code needs, no more: newer API is used only where a version +# check allows it (GLib 2.38 for g_file_trash_async) m4_define([glib_required_version], [2.38.0]) m4_define([pango_required_version], [1.22]) m4_define([atk_required_version], [1.29.2]) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 31729ae48..0a5db056a 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -6174,11 +6174,7 @@ static char *my_g_format_time_for_display (gint64 secs); static gchar * file_list_format_size (goffset size) { -#if GLIB_CHECK_VERSION(2,30,0) return g_format_size (size); -#else - return g_format_size_for_display (size); -#endif } /* Widest pixel width of @texts rendered with @widget's font. */ diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 3054983ba..388e1e003 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -1643,11 +1643,7 @@ opentmp: utime_buf.actime = path_stat.st_atime; utime_buf.modtime = cache_stat.st_mtime; -#if GLIB_CHECK_VERSION (2, 17, 1) g_utime (path, &utime_buf); -#else - utime (path, &utime_buf); -#endif if (!quiet) g_printerr (_("Cache file created successfully.\n")); diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index 1ca6c0f03..1e74d67d5 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -549,15 +549,7 @@ theme_pixbuf_destroy (ThemePixbuf *theme_pb) void theme_clear_pixbuf (ThemePixbuf **theme_pb) { -#if GLIB_CHECK_VERSION (2, 34, 0) g_clear_pointer (theme_pb, theme_pixbuf_destroy); -#else - if (*theme_pb) - { - theme_pixbuf_destroy (*theme_pb); - *theme_pb = NULL; - } -#endif } void From 07d46a2c7678b963e97498b28e73bb36ce113569 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:44:12 +0200 Subject: [PATCH 063/249] notebook: a button release on a notebook without pages no longer crashes --- gtk/gtknotebook.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index fcc4bf4ff..ad28f4f43 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3006,17 +3006,16 @@ gtk_notebook_button_release (GtkWidget *widget, { GtkNotebook *notebook; GtkNotebookPrivate *priv; - GtkNotebookPage *page; if (event->type != GDK_BUTTON_RELEASE) return FALSE; notebook = GTK_NOTEBOOK (widget); priv = GTK_NOTEBOOK_GET_PRIVATE (notebook); - page = notebook->cur_page; if (!priv->during_detach && - page->reorderable && + notebook->cur_page && + notebook->cur_page->reorderable && event->button == priv->pressed_button) gtk_notebook_stop_reorder (notebook); From d0f4c65e17882c36739ff9de136622a730e58a0c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:44:26 +0200 Subject: [PATCH 064/249] textbufferserialize: reject sections whose length is negative or runs past the data, instead of hanging or reading beyond it --- gtk/gtktextbufferserialize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c index 96d77bfb2..a81a15939 100644 --- a/gtk/gtktextbufferserialize.c +++ b/gtk/gtktextbufferserialize.c @@ -1746,7 +1746,9 @@ read_headers (const gchar *start, { section_len = read_int ((const guchar *) start + i + 26); - if (i + 30 + section_len > len) + /* a length below zero would go back, and one past the end + * would overflow the sum */ + if (section_len < 0 || section_len > len - i - 30) goto error; header = g_new0 (Header, 1); From c335acc2708565ad3d6dd856ca4411260e21c547 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:44:41 +0200 Subject: [PATCH 065/249] printer: gtk_enumerate_printers stops when its last backend is gone, instead of using the freed list --- gtk/gtkprinter.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c index 8fd4789e2..d976fe033 100644 --- a/gtk/gtkprinter.c +++ b/gtk/gtkprinter.c @@ -1131,7 +1131,8 @@ backend_status_changed (GObject *object, list_done_cb (backend, printer_list); } -static void +/* TRUE when it was the last backend and @printer_list is gone */ +static gboolean list_printers_remove_backend (PrinterList *printer_list, GtkPrintBackend *backend) { @@ -1140,7 +1141,12 @@ list_printers_remove_backend (PrinterList *printer_list, g_object_unref (backend); if (printer_list->backends == NULL) - free_printer_list (printer_list); + { + free_printer_list (printer_list); + return TRUE; + } + + return FALSE; } static void @@ -1178,7 +1184,10 @@ list_printers_init (PrinterList *printer_list, if (status == GTK_PRINT_BACKEND_STATUS_UNAVAILABLE || gtk_print_backend_printer_list_is_done (backend)) - list_printers_remove_backend(printer_list, backend); + { + if (list_printers_remove_backend (printer_list, backend)) + return TRUE; + } else { g_signal_connect (backend, "printer-added", From c110a4a5c31d81fd79c091f9e924867e218888cb Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:44:50 +0200 Subject: [PATCH 066/249] recentchooser: dragging recent files no longer asserts, as the list is not a filter model --- gtk/gtkrecentchooserdefault.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index d4e1eb3e3..cb29e4498 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -1535,22 +1535,17 @@ append_uri_to_urilist (GtkTreeModel *model, gpointer user_data) { DragData *drag_data = (DragData *) user_data; - GtkTreeModel *child_model; - GtkTreeIter child_iter; gchar *uri = NULL; gsize pos; - child_model = gtk_tree_model_filter_get_model (GTK_TREE_MODEL_FILTER (model)); - gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (model), - &child_iter, - iter); - gtk_tree_model_get (child_model, &child_iter, + /* the view's model is the store itself, not a filter on it */ + gtk_tree_model_get (model, iter, RECENT_URI_COLUMN, &uri, -1); g_assert (uri != NULL); pos = drag_data->next_pos; - drag_data->uri_list[pos] = g_strdup (uri); + drag_data->uri_list[pos] = uri; drag_data->next_pos = pos + 1; } From f858b2690be57e15ae88d4d39b3dc0fb0f8bedef Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:03 +0200 Subject: [PATCH 067/249] immulticontext: also disconnect the surrounding text handlers from the old input method, which could call into a freed context --- gtk/gtkimmulticontext.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c index 1fccadea2..fefb71594 100644 --- a/gtk/gtkimmulticontext.c +++ b/gtk/gtkimmulticontext.c @@ -173,6 +173,12 @@ gtk_im_multicontext_set_slave (GtkIMMulticontext *multicontext, g_signal_handlers_disconnect_by_func (multicontext->slave, gtk_im_multicontext_commit_cb, multicontext); + g_signal_handlers_disconnect_by_func (multicontext->slave, + gtk_im_multicontext_retrieve_surrounding_cb, + multicontext); + g_signal_handlers_disconnect_by_func (multicontext->slave, + gtk_im_multicontext_delete_surrounding_cb, + multicontext); g_object_unref (multicontext->slave); multicontext->slave = NULL; From c06ca43a1c358c25fd6f2466dec0b296af2b01df Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:11 +0200 Subject: [PATCH 068/249] icontheme: listing the contexts of a theme whose directories have no Context key no longer crashes --- gtk/gtkicontheme.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 38adb38a0..5522aa41f 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2328,8 +2328,12 @@ theme_list_contexts (IconTheme *theme, { dir = l->data; - context = g_quark_to_string (dir->context); - g_hash_table_replace (contexts, (gpointer) context, NULL); + /* the Context key is optional */ + if (dir->context != 0) + { + context = g_quark_to_string (dir->context); + g_hash_table_replace (contexts, (gpointer) context, NULL); + } l = l->next; } From cf96ee2e025fcb9ee1ac002190bc9f9150ac3f25 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:18 +0200 Subject: [PATCH 069/249] treestore: reordering the children of a row that has none warns instead of crashing --- gtk/gtktreestore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index de37cf95d..eb7d00488 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2174,6 +2174,12 @@ gtk_tree_store_reorder (GtkTreeStore *tree_store, else level = G_NODE (parent->user_data)->children; + if (G_UNLIKELY (!level)) + { + g_warning ("%s: Cannot reorder, parent has no children", G_STRLOC); + return; + } + /* count nodes */ node = level; while (node) From 4abf46f2bd3264ddcb480e54a56a7de8ed09b616 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:23 +0200 Subject: [PATCH 070/249] gdkasync: a child window that is already gone is skipped when listing children, as was meant, instead of failing the whole list --- gdk/x11/gdkasync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkasync.c b/gdk/x11/gdkasync.c index e72a96ef6..7d97e667d 100644 --- a/gdk/x11/gdkasync.c +++ b/gdk/x11/gdkasync.c @@ -620,7 +620,7 @@ get_child_info_handler (Display *dpy, if (rep->generic.type == X_Error) { state->child_has_error = TRUE; - if (rep->error.errorCode != BadDrawable || + if (rep->error.errorCode != BadDrawable && rep->error.errorCode != BadWindow) { state->have_error = TRUE; From 862bbb61e95535f6532fc6472b3fa605990aaeb1 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:31 +0200 Subject: [PATCH 071/249] gdkkeys-x11: keep the column of the shift level apart, so later entries of the key type do not read past the key's symbols --- gdk/x11/gdkkeys-x11.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c index 6479aa0ef..9e377a035 100644 --- a/gdk/x11/gdkkeys-x11.c +++ b/gdk/x11/gdkkeys-x11.c @@ -1238,6 +1238,7 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb, int col,nKeyGroups; unsigned preserve,effectiveGroup; KeySym *syms; + int found_col = 0; if (mods_rtrn!=NULL) *mods_rtrn = 0; @@ -1270,7 +1271,7 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb, break; } } - col= effectiveGroup*XkbKeyGroupsWidth(xkb,key); + found_col = col= effectiveGroup*XkbKeyGroupsWidth(xkb,key); type = XkbKeyKeyType(xkb,key,effectiveGroup); preserve= 0; @@ -1308,7 +1309,7 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb, } if (!found && ((mods&type->mods.mask) == entry->mods.mask)) { - col+= entry->level; + found_col= col + entry->level; if (type->preserve) preserve= type->preserve[i].mask; @@ -1322,7 +1323,7 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb, } if (keysym_rtrn!=NULL) - *keysym_rtrn= syms[col]; + *keysym_rtrn= syms[found_col]; if (mods_rtrn) { /* ---- Begin section modified for GDK ---- */ *mods_rtrn &= ~preserve; @@ -1354,7 +1355,7 @@ MyEnhancedXkbTranslateKeyCode(register XkbDescPtr xkb, /* ---- End stuff GDK adds to the original Xlib version ---- */ - return (syms[col] != NoSymbol); + return (syms[found_col] != NoSymbol); } #endif /* HAVE_XKB */ From 376beeae9d3f3b6d75b5c71032d54a7203902f80 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:38 +0200 Subject: [PATCH 072/249] textlayout: moving the cursor visually by zero no longer frees a line display that is not there --- gtk/gtktextlayout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 905a4b73d..f20443e35 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -3639,7 +3639,8 @@ gtk_text_layout_move_iter_visually (GtkTextLayout *layout, gtk_text_iter_backward_char (iter); } - gtk_text_layout_free_line_display (layout, display); + if (display) + gtk_text_layout_free_line_display (layout, display); done: From 16d7aefbde31df60e4b0419a8fcc2682435ecbbc Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:38 +0200 Subject: [PATCH 073/249] textiter: gtk_text_iter_inside_sentence no longer reads before the start of the line's attributes --- gtk/gtktextiter.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index 6e462e3e0..03db76d36 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -3003,9 +3003,12 @@ inside_sentence_func (const PangoLogAttr *attrs, gint len) { /* Find next sentence start or end */ - while (offset >= min_offset && - !(attrs[offset].is_sentence_start || attrs[offset].is_sentence_end)) - --offset; + while (!(attrs[offset].is_sentence_start || attrs[offset].is_sentence_end)) + { + --offset; + if (offset < min_offset) + return FALSE; + } return attrs[offset].is_sentence_start; } From 777e1ecaedac063dd8c9904eb42514076683030c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:45:58 +0200 Subject: [PATCH 074/249] selection: a request whose requesting window is already gone is ignored instead of crashing --- gtk/gtkselection.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 2888b352b..1cbdef66b 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -2295,6 +2295,16 @@ _gtk_selection_request (GtkWidget *widget, info->requestor = NULL; #endif +#if defined GDK_WINDOWING_X11 || defined GDK_WINDOWING_WIN32 + /* the requesting window is already gone: nobody to answer */ + if (info->requestor == NULL) + { + g_object_unref (widget); + g_slice_free (GtkIncrInfo, info); + return FALSE; + } +#endif + /* Determine conversions we need to perform */ if (event->target == gtk_selection_atoms[MULTIPLE]) @@ -2320,6 +2330,7 @@ _gtk_selection_request (GtkWidget *widget, g_free (mult_atoms); g_slice_free (GtkIncrInfo, info); gdk_error_trap_pop (); + g_object_unref (widget); return TRUE; } gdk_error_trap_pop (); From 69c26f8721512d7596c201169ff580f34b396d26 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:04 +0200 Subject: [PATCH 075/249] gdkdnd-x11: looking up a drag context with another display's context in the list no longer loops forever --- gdk/x11/gdkdnd-x11.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c index 8c67c19f7..a7cc6fd95 100644 --- a/gdk/x11/gdkdnd-x11.c +++ b/gdk/x11/gdkdnd-x11.c @@ -263,12 +263,12 @@ gdk_drag_context_find (GdkDisplay *display, Window source_xid, Window dest_xid) { - GList *tmp_list = contexts; + GList *tmp_list; GdkDragContext *context; GdkDragContextPrivateX11 *private; Window context_dest_xid; - while (tmp_list) + for (tmp_list = contexts; tmp_list; tmp_list = tmp_list->next) { context = (GdkDragContext *)tmp_list->data; private = PRIVATE_DATA (context); @@ -288,8 +288,6 @@ gdk_drag_context_find (GdkDisplay *display, (GDK_DRAWABLE_XID (context->source_window) == source_xid))) && ((dest_xid == None) || (context_dest_xid == dest_xid))) return context; - - tmp_list = tmp_list->next; } return NULL; From 86202a71d31922e793007db02bf2e9d5362e3f45 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:11 +0200 Subject: [PATCH 076/249] gdkwindow-x11: a second emulated move or resize while one is going on is ignored instead of hitting an assertion --- gdk/x11/gdkwindow-x11.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 89e86c8f8..c0696d602 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -5340,6 +5340,9 @@ emulate_resize_drag (GdkWindow *window, { MoveResizeData *mv_resize = get_move_resize_data (GDK_WINDOW_DISPLAY (window), TRUE); + if (mv_resize->moveresize_window != NULL) + return; /* a drag is already going on */ + mv_resize->is_resize = TRUE; mv_resize->moveresize_button = button; mv_resize->resize_edge = edge; @@ -5370,6 +5373,9 @@ emulate_move_drag (GdkWindow *window, { MoveResizeData *mv_resize = get_move_resize_data (GDK_WINDOW_DISPLAY (window), TRUE); + if (mv_resize->moveresize_window != NULL) + return; /* a drag is already going on */ + mv_resize->is_resize = FALSE; mv_resize->moveresize_button = button; mv_resize->moveresize_x = root_x; From 7bf40bbc6f86a68012d55630985fb8d62e4063d2 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:18 +0200 Subject: [PATCH 077/249] entrycompletion: a theme that gives the rows no height no longer makes the popup divide by zero --- gtk/gtkentrycompletion.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c index aee364505..b11ef0047 100644 --- a/gtk/gtkentrycompletion.c +++ b/gtk/gtkentrycompletion.c @@ -1416,7 +1416,9 @@ _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion) - if (y > monitor.height / 2) + if (height == 0) + items = 0; + else if (y > monitor.height / 2) items = MIN (matches, (((monitor.y + y) - (actions * action_height)) / height) - 1); else items = MIN (matches, (((monitor.height - y) - (actions * action_height)) / height) - 1); From ca311b18837c1c2883190744fc0094b01284052a Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:18 +0200 Subject: [PATCH 078/249] applaunchcontext-x11: a file without a base name, such as a network root, takes its URI as display name instead of crashing --- gdk/x11/gdkapplaunchcontext-x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c index 51be6ce67..0d171e5aa 100644 --- a/gdk/x11/gdkapplaunchcontext-x11.c +++ b/gdk/x11/gdkapplaunchcontext-x11.c @@ -49,6 +49,9 @@ get_display_name (GFile *file, if (name == NULL) { name = g_file_get_basename (file); + if (name == NULL) + name = g_file_get_uri (file); + if (!g_utf8_validate (name, -1, NULL)) { tmp = name; From a89b3631b59c03f3954f5c8464a8d26060a9f9e6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:39 +0200 Subject: [PATCH 079/249] clipboard: forget the store timeout once it has fired, so it is not removed a second time --- gtk/gtkclipboard.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c index 132d21f62..1f154130f 100644 --- a/gtk/gtkclipboard.c +++ b/gtk/gtkclipboard.c @@ -1923,6 +1923,7 @@ static gboolean gtk_clipboard_store_timeout (GtkClipboard *clipboard) { g_main_loop_quit (clipboard->store_loop); + clipboard->store_timeout = 0; return FALSE; } @@ -2049,8 +2050,11 @@ gtk_clipboard_store (GtkClipboard *clipboard) g_main_loop_unref (clipboard->store_loop); clipboard->store_loop = NULL; - g_source_remove (clipboard->store_timeout); - clipboard->store_timeout = 0; + if (clipboard->store_timeout != 0) + { + g_source_remove (clipboard->store_timeout); + clipboard->store_timeout = 0; + } g_signal_handler_disconnect (clipboard_widget, clipboard->notify_signal_id); clipboard->notify_signal_id = 0; From 60fc01ff4342dd818181e53c5f65dde5e9be46a5 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:48 +0200 Subject: [PATCH 080/249] colorbutton: hold the button while color-set runs, so a handler that destroys it does not leave it freed under the notifications --- gtk/gtkcolorbutton.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index e50f46c1b..d63779705 100644 --- a/gtk/gtkcolorbutton.c +++ b/gtk/gtkcolorbutton.c @@ -361,12 +361,15 @@ gtk_color_button_drag_data_received (GtkWidget *widget, gtk_widget_queue_draw (color_button->priv->draw_area); + /* a handler of color-set may destroy the button */ + g_object_ref (color_button); g_signal_emit (color_button, color_button_signals[COLOR_SET], 0); g_object_freeze_notify (G_OBJECT (color_button)); g_object_notify (G_OBJECT (color_button), "color"); g_object_notify (G_OBJECT (color_button), "alpha"); g_object_thaw_notify (G_OBJECT (color_button)); + g_object_unref (color_button); } static void @@ -550,12 +553,15 @@ dialog_ok_clicked (GtkWidget *widget, gtk_widget_queue_draw (color_button->priv->draw_area); + /* a handler of color-set may destroy the button */ + g_object_ref (color_button); g_signal_emit (color_button, color_button_signals[COLOR_SET], 0); g_object_freeze_notify (G_OBJECT (color_button)); g_object_notify (G_OBJECT (color_button), "color"); g_object_notify (G_OBJECT (color_button), "alpha"); g_object_thaw_notify (G_OBJECT (color_button)); + g_object_unref (color_button); } static gboolean From 0e4684bec18bca31dbbaaa2ce1b07f47b91a16c6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:46:54 +0200 Subject: [PATCH 081/249] printbackends: a failed write to the output ends the job with an error instead of looping forever --- .../printbackends/cups/gtkprintbackendcups.c | 22 ++++++++++++------- .../printbackends/file/gtkprintbackendfile.c | 20 +++++++++++------ .../printbackends/lpr/gtkprintbackendlpr.c | 20 +++++++++++------ .../printbackends/papi/gtkprintbackendpapi.c | 20 +++++++++++------ .../printbackends/test/gtkprintbackendtest.c | 20 +++++++++++------ 5 files changed, 66 insertions(+), 36 deletions(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index 838a73056..beae10b1e 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -362,7 +362,7 @@ _cairo_write_to_cups (void *closure, unsigned int length) { GIOChannel *io = (GIOChannel *)closure; - gsize written; + gsize written = 0; GError *error; error = NULL; @@ -372,15 +372,21 @@ _cairo_write_to_cups (void *closure, while (length > 0) { - g_io_channel_write_chars (io, (gchar *)data, length, &written, &error); + GIOStatus status; - if (error != NULL) - { - GTK_NOTE (PRINTING, - g_print ("CUPS Backend: Error writing to temp file, %s\n", - error->message)); + status = g_io_channel_write_chars (io, (gchar *)data, length, &written, &error); + + if (status == G_IO_STATUS_ERROR) + { + if (error != NULL) + { + GTK_NOTE (PRINTING, + g_print ("CUPS Backend: Error writing to temp file, %s\n", + error->message)); + + g_error_free (error); + } - g_error_free (error); return CAIRO_STATUS_WRITE_ERROR; } diff --git a/modules/printbackends/file/gtkprintbackendfile.c b/modules/printbackends/file/gtkprintbackendfile.c index 90cae3cdb..8158ada91 100644 --- a/modules/printbackends/file/gtkprintbackendfile.c +++ b/modules/printbackends/file/gtkprintbackendfile.c @@ -272,7 +272,7 @@ _cairo_write (void *closure, unsigned int length) { GIOChannel *io = (GIOChannel *)closure; - gsize written; + gsize written = 0; GError *error; error = NULL; @@ -282,14 +282,20 @@ _cairo_write (void *closure, while (length > 0) { - g_io_channel_write_chars (io, (const gchar *) data, length, &written, &error); + GIOStatus status; - if (error != NULL) - { - GTK_NOTE (PRINTING, - g_print ("FILE Backend: Error writting to temp file, %s\n", error->message)); + status = g_io_channel_write_chars (io, (const gchar *) data, length, &written, &error); + + if (status == G_IO_STATUS_ERROR) + { + if (error != NULL) + { + GTK_NOTE (PRINTING, + g_print ("FILE Backend: Error writting to temp file, %s\n", error->message)); + + g_error_free (error); + } - g_error_free (error); return CAIRO_STATUS_WRITE_ERROR; } diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.c b/modules/printbackends/lpr/gtkprintbackendlpr.c index aea3683f9..0d645c471 100644 --- a/modules/printbackends/lpr/gtkprintbackendlpr.c +++ b/modules/printbackends/lpr/gtkprintbackendlpr.c @@ -169,7 +169,7 @@ _cairo_write (void *closure, unsigned int length) { GIOChannel *io = (GIOChannel *)closure; - gsize written; + gsize written = 0; GError *error; error = NULL; @@ -179,14 +179,20 @@ _cairo_write (void *closure, while (length > 0) { - g_io_channel_write_chars (io, (const gchar*)data, length, &written, &error); + GIOStatus status; - if (error != NULL) - { - GTK_NOTE (PRINTING, - g_print ("LPR Backend: Error writting to temp file, %s\n", error->message)); + status = g_io_channel_write_chars (io, (const gchar*)data, length, &written, &error); + + if (status == G_IO_STATUS_ERROR) + { + if (error != NULL) + { + GTK_NOTE (PRINTING, + g_print ("LPR Backend: Error writting to temp file, %s\n", error->message)); + + g_error_free (error); + } - g_error_free (error); return CAIRO_STATUS_WRITE_ERROR; } diff --git a/modules/printbackends/papi/gtkprintbackendpapi.c b/modules/printbackends/papi/gtkprintbackendpapi.c index 694db62a9..934abf0da 100644 --- a/modules/printbackends/papi/gtkprintbackendpapi.c +++ b/modules/printbackends/papi/gtkprintbackendpapi.c @@ -194,7 +194,7 @@ _cairo_write (void *closure, unsigned int length) { GIOChannel *io = (GIOChannel *)closure; - gsize written; + gsize written = 0; GError *error = NULL; GTK_NOTE (PRINTING, @@ -202,14 +202,20 @@ _cairo_write (void *closure, while (length > 0) { - g_io_channel_write_chars (io, (char *)data, length, &written, &error); + GIOStatus status; - if (error != NULL) - { - GTK_NOTE (PRINTING, - g_print ("PAPI Backend: Error writting to temp file, %s\n", error->message)); + status = g_io_channel_write_chars (io, (char *)data, length, &written, &error); + + if (status == G_IO_STATUS_ERROR) + { + if (error != NULL) + { + GTK_NOTE (PRINTING, + g_print ("PAPI Backend: Error writting to temp file, %s\n", error->message)); + + g_error_free (error); + } - g_error_free (error); return CAIRO_STATUS_WRITE_ERROR; } diff --git a/modules/printbackends/test/gtkprintbackendtest.c b/modules/printbackends/test/gtkprintbackendtest.c index e118b78cf..b185cf886 100644 --- a/modules/printbackends/test/gtkprintbackendtest.c +++ b/modules/printbackends/test/gtkprintbackendtest.c @@ -256,7 +256,7 @@ _cairo_write (void *closure, unsigned int length) { GIOChannel *io = (GIOChannel *)closure; - gsize written; + gsize written = 0; GError *error; error = NULL; @@ -266,14 +266,20 @@ _cairo_write (void *closure, while (length > 0) { - g_io_channel_write_chars (io, (const gchar *) data, length, &written, &error); + GIOStatus status; - if (error != NULL) - { - GTK_NOTE (PRINTING, - g_print ("TEST Backend: Error writing to temp test, %s\n", error->message)); + status = g_io_channel_write_chars (io, (const gchar *) data, length, &written, &error); + + if (status == G_IO_STATUS_ERROR) + { + if (error != NULL) + { + GTK_NOTE (PRINTING, + g_print ("TEST Backend: Error writing to temp test, %s\n", error->message)); + + g_error_free (error); + } - g_error_free (error); return CAIRO_STATUS_WRITE_ERROR; } From bbcc68ddd80d46d04a035eace79363bac7227421 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:23 +0200 Subject: [PATCH 082/249] menushell: free the list of matching keys after a mnemonic in a menu was activated --- gtk/gtkmenushell.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 690f82c2a..091586d79 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -1725,8 +1725,11 @@ gtk_menu_shell_activate_mnemonic (GtkMenuShell *menu_shell, event->group); if (entries) - result = _gtk_mnemonic_hash_activate (mnemonic_hash, - GPOINTER_TO_UINT (entries->data)); + { + result = _gtk_mnemonic_hash_activate (mnemonic_hash, + GPOINTER_TO_UINT (entries->data)); + g_slist_free (entries); + } return result; } From 24699973c5af0d22678db75842e6390007001c76 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:28 +0200 Subject: [PATCH 083/249] clipboard: free the old cached targets before storing new ones --- gtk/gtkclipboard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c index 1f154130f..f03ca8bab 100644 --- a/gtk/gtkclipboard.c +++ b/gtk/gtkclipboard.c @@ -1784,6 +1784,7 @@ gtk_clipboard_wait_for_targets (GtkClipboard *clipboard, if (gdk_display_supports_selection_notification (gtk_clipboard_get_display (clipboard))) { + g_free (clipboard->cached_targets); clipboard->n_cached_targets = tmp_n_targets; clipboard->cached_targets = _gtk_memdup2 (tmp_targets, tmp_n_targets * sizeof (GdkAtom)); From 45981559415992aa14ebc8a7e62f0177d2228317 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:28 +0200 Subject: [PATCH 084/249] textbufferserialize: free the list of tags when serializing --- gtk/gtktextbufferserialize.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtktextbufferserialize.c b/gtk/gtktextbufferserialize.c index a81a15939..886d47463 100644 --- a/gtk/gtktextbufferserialize.c +++ b/gtk/gtktextbufferserialize.c @@ -575,6 +575,8 @@ serialize_text (GtkTextBuffer *buffer, } while (!gtk_text_iter_equal (&iter, &context->end)); + g_slist_free (tag_list); + /* Close any open tags */ for (tag_list = active_tags; tag_list; tag_list = tag_list->next) g_string_append (context->text_str, ""); From 649195ae05e9ce273b45db5ec97a6c861906c1ce Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:28 +0200 Subject: [PATCH 085/249] printunixdialog: release the parent folder after asking whether to overwrite a file --- gtk/gtkprintunixdialog.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index af64a5a37..0e27a37f9 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -463,10 +463,14 @@ error_dialogs (GtkPrintUnixDialog *print_dialog, if (file != NULL && g_file_query_exists (file, NULL)) { + GFile *parent; + toplevel = get_toplevel (GTK_WIDGET (print_dialog)); basename = g_file_get_basename (file); - dirname = g_file_get_parse_name (g_file_get_parent (file)); + parent = g_file_get_parent (file); + dirname = g_file_get_parse_name (parent); + g_object_unref (parent); dialog = gtk_message_dialog_new (toplevel, GTK_DIALOG_MODAL | From 3c5749e5c4b94b6e65e0a57c6adc1cac47a2dd66 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:28 +0200 Subject: [PATCH 086/249] linkbutton: free the tooltip texts it looks at --- gtk/gtklinkbutton.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c index fa9bc1178..fedeeaf6b 100644 --- a/gtk/gtklinkbutton.c +++ b/gtk/gtklinkbutton.c @@ -633,18 +633,24 @@ gtk_link_button_query_tooltip_cb (GtkWidget *widget, { GtkLinkButton *link_button = GTK_LINK_BUTTON (widget); const gchar *label, *uri; + gchar *text, *markup; label = gtk_button_get_label (GTK_BUTTON (link_button)); uri = link_button->priv->uri; + text = gtk_widget_get_tooltip_text (widget); + markup = gtk_widget_get_tooltip_markup (widget); - if (!gtk_widget_get_tooltip_text (widget) - && !gtk_widget_get_tooltip_markup (widget) - && label && *label != '\0' && uri && strcmp (label, uri) != 0) + if (text == NULL && + markup == NULL && + label && *label != '\0' && uri && strcmp (label, uri) != 0) { gtk_tooltip_set_text (tooltip, uri); return TRUE; } + g_free (text); + g_free (markup); + return FALSE; } From 28ca11f2d2d1cd109f63b3376f2850ee974cc415 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:42 +0200 Subject: [PATCH 087/249] dnd: keep the vertical hot spot of the drag icon, not the horizontal one twice, while the default icon is made --- gtk/gtkdnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index ba8333d9d..d97445fac 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -2962,7 +2962,7 @@ gtk_drag_get_icon (GtkDragSourceInfo *info, */ save_icon_window = info->icon_window; save_hot_x = info->hot_x; - save_hot_y = info->hot_x; + save_hot_y = info->hot_y; save_destroy_icon = info->destroy_icon; info->icon_window = NULL; From 5edca821dbaa3321e2ad54ee2a6b2183b74e6f56 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:47:56 +0200 Subject: [PATCH 088/249] icontheme: hand out a copy of the load error, so loading a broken icon twice does not free it twice --- gtk/gtkicontheme.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 5522aa41f..b1da58d24 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2696,6 +2696,8 @@ gtk_icon_info_free (GtkIconInfo *icon_info) g_object_unref (icon_info->pixbuf); if (icon_info->cache_pixbuf) g_object_unref (icon_info->cache_pixbuf); + if (icon_info->load_error) + g_error_free (icon_info->load_error); g_slice_free (GtkIconInfo, icon_info); } @@ -3125,8 +3127,9 @@ gtk_icon_info_load_icon (GtkIconInfo *icon_info, if (!icon_info_ensure_scale_and_pixbuf (icon_info, FALSE)) { + /* the info keeps its error for the next call */ if (icon_info->load_error) - g_propagate_error (error, icon_info->load_error); + g_propagate_error (error, g_error_copy (icon_info->load_error)); else g_set_error_literal (error, GTK_ICON_THEME_ERROR, From e239d77f4bea26cb74bed1377684f9af7b96c543 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:48:14 +0200 Subject: [PATCH 089/249] gdk-win32: wait only for the kinds of input GDK handles, so programs built with newer headers neither spin on Windows 8 nor miss events on XP and 7 --- gdk/win32/gdkevents-win32.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 98b3b31c8..bf1f5df45 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -87,6 +87,13 @@ #define SYNAPSIS_ICON_WINDOW_CLASS "SynTrackCursorWindowClass" +/* The input GDK waits for. Headers for Windows 8 and later add touch + * and pointer messages to QS_ALLINPUT: with those GDK keeps waking up + * for messages it does not take from the queue, and Windows 7 and + * earlier refuse the unknown flags and report nothing at all. */ +#define GDK_QS_INPUT (QS_KEY | QS_MOUSEMOVE | QS_MOUSEBUTTON | QS_POSTMESSAGE | \ + QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE | 0x0400 /* QS_RAWINPUT */) + static gboolean gdk_event_translate (MSG *msg, gint *ret_valp); static void handle_wm_paint (MSG *msg, @@ -383,7 +390,7 @@ gdk_events_pending (void) { return (_gdk_event_queue_find_first (_gdk_display) || (modal_win32_dialog == NULL && - GetQueueStatus (QS_ALLINPUT) != 0)); + GetQueueStatus (GDK_QS_INPUT) != 0)); } GdkEvent* @@ -3661,7 +3668,7 @@ gdk_event_prepare (GSource *source, retval = (_gdk_event_queue_find_first (_gdk_display) != NULL || (modal_win32_dialog == NULL && - GetQueueStatus (QS_ALLINPUT) != 0)); + GetQueueStatus (GDK_QS_INPUT) != 0)); GDK_THREADS_LEAVE (); @@ -3679,7 +3686,7 @@ gdk_event_check (GSource *source) { retval = (_gdk_event_queue_find_first (_gdk_display) != NULL || (modal_win32_dialog == NULL && - GetQueueStatus (QS_ALLINPUT) != 0)); + GetQueueStatus (GDK_QS_INPUT) != 0)); } else { From e81412eee29585ed19eacb080f4176357c5269b7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:50:23 +0200 Subject: [PATCH 090/249] gtk: export again the nine marshallers that GTK+ 2.24.32 exported by accident, for programs built against it --- gtk/gtk.symbols | 17 +++++++++++++++++ gtk/gtkmisc.c | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 0a3b6b71f..dad4106ee 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -2531,6 +2531,23 @@ gtk_marshal_VOID__UINT_STRING #endif #endif +/* in gtkmisc.c, without aliases: for programs built against 2.24.32 */ +#if IN_HEADER(__GTK_MARSHAL_COMPAT_H__) +#if IN_FILE(__GTK_MARSHAL_COMPAT_C__) +#ifndef GTK_DISABLE_DEPRECATED +gtk_marshal_VOID__BOOLEAN +gtk_marshal_VOID__BOXED +gtk_marshal_VOID__ENUM +gtk_marshal_VOID__INT +gtk_marshal_VOID__OBJECT +gtk_marshal_VOID__POINTER +gtk_marshal_VOID__STRING +gtk_marshal_VOID__UINT +gtk_marshal_VOID__VOID +#endif +#endif +#endif + #if IN_HEADER(__GTK_MENU_BAR_H__) #if IN_FILE(__GTK_MENU_BAR_C__) gtk_menu_bar_get_type G_GNUC_CONST diff --git a/gtk/gtkmisc.c b/gtk/gtkmisc.c index 936e8fe70..3676204b2 100644 --- a/gtk/gtkmisc.c +++ b/gtk/gtkmisc.c @@ -339,5 +339,37 @@ gtk_misc_realize (GtkWidget *widget) } } +/* GTK+ 2.24.32 exported these marshallers by accident, through the + * glib-genmarshal it was made with, and programs built against it refer + * to them. Later releases lost them; they stay here for those programs. */ +#define COMPAT_MARSHALLER(name) \ +void gtk_marshal_ ## name (GClosure *closure, \ + GValue *return_value, \ + guint n_param_values, \ + const GValue *param_values, \ + gpointer invocation_hint, \ + gpointer marshal_data); \ +void \ +gtk_marshal_ ## name (GClosure *closure, \ + GValue *return_value, \ + guint n_param_values, \ + const GValue *param_values, \ + gpointer invocation_hint, \ + gpointer marshal_data) \ +{ \ + g_cclosure_marshal_ ## name (closure, return_value, n_param_values, \ + param_values, invocation_hint, marshal_data); \ +} + +COMPAT_MARSHALLER (VOID__BOOLEAN) +COMPAT_MARSHALLER (VOID__BOXED) +COMPAT_MARSHALLER (VOID__ENUM) +COMPAT_MARSHALLER (VOID__INT) +COMPAT_MARSHALLER (VOID__OBJECT) +COMPAT_MARSHALLER (VOID__POINTER) +COMPAT_MARSHALLER (VOID__STRING) +COMPAT_MARSHALLER (VOID__UINT) +COMPAT_MARSHALLER (VOID__VOID) + #define __GTK_MISC_C__ #include "gtkaliasdef.c" From 06b08cf7cb33a4e1efb014f8a63039338398ce15 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:50:35 +0200 Subject: [PATCH 091/249] headers: the _get_type and _quark functions are no longer marked const, as they register types and newer compilers drop calls made only for that --- gdk/gdk.h | 2 +- gdk/gdk.symbols | 144 ++-- gdk/gdkcolor.h | 4 +- gdk/gdkcursor.h | 2 +- gdk/gdkdisplay.h | 2 +- gdk/gdkdisplaymanager.h | 2 +- gdk/gdkdnd.h | 2 +- gdk/gdkdrawable.h | 2 +- gdk/gdkenumtypes.h.template | 2 +- gdk/gdkevents.h | 2 +- gdk/gdkfont.h | 2 +- gdk/gdkgc.h | 2 +- gdk/gdkimage.h | 2 +- gdk/gdkinput.h | 2 +- gdk/gdkinternals.h | 6 +- gdk/gdkkeys.h | 2 +- gdk/gdkpango.h | 2 +- gdk/gdkpixmap.h | 2 +- gdk/gdkproperty.h | 2 +- gdk/gdkrgb.h | 2 +- gdk/gdkscreen.h | 2 +- gdk/gdkvisual.h | 2 +- gdk/gdkwindow.h | 2 +- gdk/gdkwindowimpl.h | 2 +- gtk/gtk.symbols | 680 +++++++++--------- gtk/gtkaboutdialog.h | 2 +- gtk/gtkaccelgroup.h | 2 +- gtk/gtkaccellabel.h | 2 +- gtk/gtkaccelmap.h | 2 +- gtk/gtkaccessible.h | 2 +- gtk/gtkaction.h | 2 +- gtk/gtkactiongroup.h | 2 +- gtk/gtkactivatable.h | 2 +- gtk/gtkadjustment.h | 2 +- gtk/gtkalignment.h | 2 +- gtk/gtkarrow.h | 2 +- gtk/gtkaspectframe.h | 2 +- gtk/gtkassistant.h | 2 +- gtk/gtkbbox.h | 2 +- gtk/gtkbin.h | 2 +- gtk/gtkbox.h | 2 +- gtk/gtkbuildable.h | 2 +- gtk/gtkbuilder.h | 2 +- gtk/gtkbutton.h | 2 +- gtk/gtkcalendar.h | 2 +- gtk/gtkcelleditable.h | 2 +- gtk/gtkcelllayout.h | 2 +- gtk/gtkcellrenderer.h | 2 +- gtk/gtkcellrendereraccel.h | 2 +- gtk/gtkcellrenderercombo.h | 2 +- gtk/gtkcellrendererpixbuf.h | 2 +- gtk/gtkcellrendererprogress.h | 2 +- gtk/gtkcellrendererspinner.h | 2 +- gtk/gtkcellrenderertext.h | 2 +- gtk/gtkcellrenderertoggle.h | 2 +- gtk/gtkcellview.h | 2 +- gtk/gtkcheckbutton.h | 2 +- gtk/gtkcheckmenuitem.h | 2 +- gtk/gtkclipboard.h | 2 +- gtk/gtkclist.h | 2 +- gtk/gtkcolorbutton.h | 2 +- gtk/gtkcolorsel.h | 2 +- gtk/gtkcolorseldialog.h | 2 +- gtk/gtkcombo.h | 2 +- gtk/gtkcombobox.h | 2 +- gtk/gtkcomboboxentry.h | 2 +- gtk/gtkcomboboxtext.h | 2 +- gtk/gtkcontainer.h | 2 +- gtk/gtkctree.h | 4 +- gtk/gtkcurve.h | 2 +- gtk/gtkcustompaperunixdialog.h | 2 +- gtk/gtkdialog.h | 2 +- gtk/gtkdrawingarea.h | 2 +- gtk/gtkeditable.h | 2 +- gtk/gtkentry.h | 2 +- gtk/gtkentrybuffer.h | 2 +- gtk/gtkentrycompletion.h | 2 +- gtk/gtkeventbox.h | 2 +- gtk/gtkexpander.h | 2 +- gtk/gtkfilechooser.h | 2 +- gtk/gtkfilechooserbutton.h | 2 +- gtk/gtkfilechooserdefault.h | 2 +- gtk/gtkfilechooserdialog.h | 2 +- gtk/gtkfilechooserembed.h | 2 +- gtk/gtkfilechooserentry.h | 2 +- gtk/gtkfilechoosersettings.h | 2 +- gtk/gtkfilechooserutils.h | 2 +- gtk/gtkfilechooserwidget.h | 2 +- gtk/gtkfilefilter.h | 2 +- gtk/gtkfilesel.h | 2 +- gtk/gtkfilesystem.h | 2 +- gtk/gtkfilesystemmodel.h | 2 +- gtk/gtkfixed.h | 2 +- gtk/gtkfontbutton.h | 2 +- gtk/gtkfontsel.h | 4 +- gtk/gtkframe.h | 2 +- gtk/gtkgamma.h | 2 +- gtk/gtkhandlebox.h | 2 +- gtk/gtkhbbox.h | 2 +- gtk/gtkhbox.h | 2 +- gtk/gtkhpaned.h | 2 +- gtk/gtkhruler.h | 2 +- gtk/gtkhscale.h | 2 +- gtk/gtkhscrollbar.h | 2 +- gtk/gtkhseparator.h | 2 +- gtk/gtkhsv.h | 2 +- gtk/gtkiconfactory.h | 6 +- gtk/gtkicontheme.h | 4 +- gtk/gtkiconview.h | 2 +- gtk/gtkimage.h | 2 +- gtk/gtkimagemenuitem.h | 2 +- gtk/gtkimcontext.h | 2 +- gtk/gtkimcontextsimple.h | 2 +- gtk/gtkimmulticontext.h | 2 +- gtk/gtkinfobar.h | 2 +- gtk/gtkinputdialog.h | 2 +- gtk/gtkinvisible.h | 2 +- gtk/gtkitem.h | 2 +- gtk/gtkitemfactory.h | 2 +- gtk/gtklabel.h | 2 +- gtk/gtklayout.h | 2 +- gtk/gtklinkbutton.h | 2 +- gtk/gtklist.h | 2 +- gtk/gtklistitem.h | 2 +- gtk/gtkliststore.h | 2 +- gtk/gtkmenu.h | 2 +- gtk/gtkmenubar.h | 2 +- gtk/gtkmenuitem.h | 2 +- gtk/gtkmenushell.h | 2 +- gtk/gtkmenutoolbutton.h | 2 +- gtk/gtkmessagedialog.h | 2 +- gtk/gtkmisc.h | 2 +- gtk/gtknotebook.h | 2 +- gtk/gtkobject.h | 2 +- gtk/gtkoffscreenwindow.h | 2 +- gtk/gtkoldeditable.h | 2 +- gtk/gtkoptionmenu.h | 2 +- gtk/gtkorientable.h | 2 +- gtk/gtkpagesetup.h | 2 +- gtk/gtkpagesetupunixdialog.h | 2 +- gtk/gtkpaned.h | 2 +- gtk/gtkpapersize.h | 2 +- gtk/gtkpathbar.h | 2 +- gtk/gtkpixmap.h | 2 +- gtk/gtkplug.h | 2 +- gtk/gtkpreview.h | 2 +- gtk/gtkprintbackend.h | 2 +- gtk/gtkprintcontext.h | 2 +- gtk/gtkprinter.h | 4 +- gtk/gtkprinteroption.h | 2 +- gtk/gtkprinteroptionset.h | 2 +- gtk/gtkprinteroptionwidget.h | 2 +- gtk/gtkprintjob.h | 2 +- gtk/gtkprintoperation.h | 2 +- gtk/gtkprintoperationpreview.h | 2 +- gtk/gtkprintsettings.h | 2 +- gtk/gtkprintunixdialog.h | 2 +- gtk/gtkprogress.h | 2 +- gtk/gtkprogressbar.h | 2 +- gtk/gtkradioaction.h | 2 +- gtk/gtkradiobutton.h | 2 +- gtk/gtkradiomenuitem.h | 2 +- gtk/gtkradiotoolbutton.h | 2 +- gtk/gtkrange.h | 2 +- gtk/gtkrc.h | 2 +- gtk/gtkrecentaction.h | 2 +- gtk/gtkrecentchooser.h | 2 +- gtk/gtkrecentchooserdefault.h | 2 +- gtk/gtkrecentchooserdialog.h | 2 +- gtk/gtkrecentchoosermenu.h | 2 +- gtk/gtkrecentchooserutils.h | 2 +- gtk/gtkrecentchooserwidget.h | 2 +- gtk/gtkrecentfilter.h | 2 +- gtk/gtkrecentmanager.h | 4 +- gtk/gtkruler.h | 2 +- gtk/gtkscale.h | 2 +- gtk/gtkscalebutton.h | 2 +- gtk/gtkscrollbar.h | 2 +- gtk/gtkscrolledwindow.h | 2 +- gtk/gtkselection.h | 4 +- gtk/gtkseparator.h | 2 +- gtk/gtkseparatormenuitem.h | 2 +- gtk/gtkseparatortoolitem.h | 2 +- gtk/gtksettings.h | 2 +- gtk/gtksizegroup.h | 2 +- gtk/gtksocket.h | 2 +- gtk/gtkspinbutton.h | 2 +- gtk/gtkspinner.h | 2 +- gtk/gtkstatusbar.h | 2 +- gtk/gtkstatusicon.h | 2 +- gtk/gtkstock.h | 2 +- gtk/gtkstyle.h | 4 +- gtk/gtktable.h | 2 +- gtk/gtktearoffmenuitem.h | 2 +- gtk/gtktext.h | 2 +- gtk/gtktextbuffer.h | 2 +- gtk/gtktextchild.h | 2 +- gtk/gtktextiter.h | 2 +- gtk/gtktextlayout.h | 2 +- gtk/gtktextmark.h | 2 +- gtk/gtktexttag.h | 4 +- gtk/gtktexttagtable.h | 2 +- gtk/gtktextview.h | 2 +- gtk/gtkthemes.h | 2 +- gtk/gtktipsquery.h | 2 +- gtk/gtktoggleaction.h | 2 +- gtk/gtktogglebutton.h | 2 +- gtk/gtktoggletoolbutton.h | 2 +- gtk/gtktoolbar.h | 2 +- gtk/gtktoolbutton.h | 2 +- gtk/gtktoolitem.h | 2 +- gtk/gtktoolitemgroup.h | 2 +- gtk/gtktoolpalette.h | 2 +- gtk/gtktoolshell.h | 2 +- gtk/gtktooltips.h | 2 +- gtk/gtktrayicon.h | 2 +- gtk/gtktree.h | 2 +- gtk/gtktreednd.h | 4 +- gtk/gtktreeitem.h | 2 +- gtk/gtktreemodel.h | 8 +- gtk/gtktreemodelfilter.h | 2 +- gtk/gtktreemodelsort.h | 2 +- gtk/gtktreeselection.h | 2 +- gtk/gtktreesortable.h | 2 +- gtk/gtktreestore.h | 2 +- gtk/gtktreeview.h | 2 +- gtk/gtktreeviewcolumn.h | 2 +- gtk/gtktypebuiltins.h.template | 2 +- gtk/gtktypeutils.h | 2 +- gtk/gtkuimanager.h | 2 +- gtk/gtkvbbox.h | 2 +- gtk/gtkvbox.h | 2 +- gtk/gtkviewport.h | 2 +- gtk/gtkvolumebutton.h | 2 +- gtk/gtkvpaned.h | 2 +- gtk/gtkvruler.h | 2 +- gtk/gtkvscale.h | 2 +- gtk/gtkvscrollbar.h | 2 +- gtk/gtkvseparator.h | 2 +- gtk/gtkwidget.h | 4 +- gtk/gtkwin32embedwidget.h | 2 +- gtk/gtkwindow.h | 4 +- .../printbackends/cups/gtkprintbackendcups.h | 2 +- modules/printbackends/cups/gtkprintercups.h | 2 +- .../printbackends/file/gtkprintbackendfile.h | 2 +- .../printbackends/lpr/gtkprintbackendlpr.h | 2 +- .../printbackends/papi/gtkprintbackendpapi.h | 2 +- modules/printbackends/papi/gtkprinterpapi.h | 2 +- .../printbackends/test/gtkprintbackendtest.h | 2 +- perf/gtkwidgetprofiler.h | 2 +- perf/typebuiltins.h.template | 2 +- tests/gtkoffscreenbox.h | 2 +- 252 files changed, 681 insertions(+), 681 deletions(-) diff --git a/gdk/gdk.h b/gdk/gdk.h index 9cb88e248..27bd7256a 100644 --- a/gdk/gdk.h +++ b/gdk/gdk.h @@ -155,7 +155,7 @@ void gdk_rectangle_union (const GdkRectangle *src1, const GdkRectangle *src2, GdkRectangle *dest); -GType gdk_rectangle_get_type (void) G_GNUC_CONST; +GType gdk_rectangle_get_type (void); #define GDK_TYPE_RECTANGLE (gdk_rectangle_get_type ()) diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index 6756d4759..042b2ae26 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -50,7 +50,7 @@ gdk_event_get_screen gdk_event_get_scroll_deltas gdk_event_get_state gdk_event_get_time -gdk_event_get_type G_GNUC_CONST +gdk_event_get_type gdk_event_handler_set gdk_event_new gdk_event_peek @@ -188,7 +188,7 @@ gdk_utf8_to_compound_text #if IN_HEADER(__GDK_PROPERTY_H__) #if IN_FILE(__GDK_C__) -gdk_atom_get_type G_GNUC_CONST +gdk_atom_get_type #endif #endif @@ -231,54 +231,54 @@ gdk_x11_free_text_list #if IN_HEADER(__GDK_ENUM_TYPES_H__) #if IN_FILE(__GDK_ENUM_TYPES_C__) -gdk_rgb_dither_get_type G_GNUC_CONST -gdk_drag_protocol_get_type G_GNUC_CONST -gdk_input_source_get_type G_GNUC_CONST -gdk_input_condition_get_type G_GNUC_CONST -gdk_input_mode_get_type G_GNUC_CONST -gdk_axis_use_get_type G_GNUC_CONST -gdk_byte_order_get_type G_GNUC_CONST -gdk_cap_style_get_type G_GNUC_CONST -gdk_crossing_mode_get_type G_GNUC_CONST -gdk_extension_mode_get_type G_GNUC_CONST -gdk_event_mask_get_type G_GNUC_CONST -gdk_event_type_get_type G_GNUC_CONST -gdk_fill_get_type G_GNUC_CONST +gdk_rgb_dither_get_type +gdk_drag_protocol_get_type +gdk_input_source_get_type +gdk_input_condition_get_type +gdk_input_mode_get_type +gdk_axis_use_get_type +gdk_byte_order_get_type +gdk_cap_style_get_type +gdk_crossing_mode_get_type +gdk_extension_mode_get_type +gdk_event_mask_get_type +gdk_event_type_get_type +gdk_fill_get_type #ifndef GDK_DISABLE_DEPRECATED -gdk_fill_rule_get_type G_GNUC_CONST +gdk_fill_rule_get_type #endif -gdk_filter_return_get_type G_GNUC_CONST -gdk_function_get_type G_GNUC_CONST -gdk_grab_status_get_type G_GNUC_CONST -gdk_gravity_get_type G_GNUC_CONST -gdk_join_style_get_type G_GNUC_CONST -gdk_line_style_get_type G_GNUC_CONST -gdk_modifier_type_get_type G_GNUC_CONST -gdk_notify_type_get_type G_GNUC_CONST -gdk_overlap_type_get_type G_GNUC_CONST -gdk_owner_change_get_type G_GNUC_CONST -gdk_property_state_get_type G_GNUC_CONST -gdk_prop_mode_get_type G_GNUC_CONST -gdk_scroll_direction_get_type G_GNUC_CONST -gdk_setting_action_get_type G_GNUC_CONST -gdk_status_get_type G_GNUC_CONST -gdk_subwindow_mode_get_type G_GNUC_CONST -gdk_visibility_state_get_type G_GNUC_CONST -gdk_wm_decoration_get_type G_GNUC_CONST -gdk_wm_function_get_type G_GNUC_CONST -gdk_font_type_get_type G_GNUC_CONST -gdk_cursor_type_get_type G_GNUC_CONST -gdk_drag_action_get_type G_GNUC_CONST -gdk_gc_values_mask_get_type G_GNUC_CONST -gdk_window_attributes_type_get_type G_GNUC_CONST -gdk_window_class_get_type G_GNUC_CONST -gdk_window_edge_get_type G_GNUC_CONST -gdk_window_hints_get_type G_GNUC_CONST -gdk_window_state_get_type G_GNUC_CONST -gdk_window_type_get_type G_GNUC_CONST -gdk_window_type_hint_get_type G_GNUC_CONST -gdk_image_type_get_type G_GNUC_CONST -gdk_visual_type_get_type G_GNUC_CONST +gdk_filter_return_get_type +gdk_function_get_type +gdk_grab_status_get_type +gdk_gravity_get_type +gdk_join_style_get_type +gdk_line_style_get_type +gdk_modifier_type_get_type +gdk_notify_type_get_type +gdk_overlap_type_get_type +gdk_owner_change_get_type +gdk_property_state_get_type +gdk_prop_mode_get_type +gdk_scroll_direction_get_type +gdk_setting_action_get_type +gdk_status_get_type +gdk_subwindow_mode_get_type +gdk_visibility_state_get_type +gdk_wm_decoration_get_type +gdk_wm_function_get_type +gdk_font_type_get_type +gdk_cursor_type_get_type +gdk_drag_action_get_type +gdk_gc_values_mask_get_type +gdk_window_attributes_type_get_type +gdk_window_class_get_type +gdk_window_edge_get_type +gdk_window_hints_get_type +gdk_window_state_get_type +gdk_window_type_get_type +gdk_window_type_hint_get_type +gdk_image_type_get_type +gdk_visual_type_get_type #endif #endif @@ -287,7 +287,7 @@ gdk_visual_type_get_type G_GNUC_CONST #ifndef GDK_DISABLE_DEPRECATED gdk_font_from_description #endif -gdk_font_get_type G_GNUC_CONST +gdk_font_get_type gdk_font_ref gdk_font_unref #ifndef GDK_DISABLE_DEPRECATED @@ -348,7 +348,7 @@ gdk_color_alloc gdk_color_copy gdk_color_equal gdk_color_free -gdk_color_get_type G_GNUC_CONST +gdk_color_get_type gdk_color_hash gdk_colormap_alloc_color gdk_colormap_get_system @@ -365,7 +365,7 @@ gdk_color_to_string #if IN_HEADER(__GDK_COLOR_H__) #if IN_FILE(__GDK_COLOR_X11_C__) gdk_colormap_new -gdk_colormap_get_type G_GNUC_CONST +gdk_colormap_get_type #ifndef GDK_DISABLE_DEPRECATED gdk_colormap_change gdk_colors_alloc @@ -382,7 +382,7 @@ gdk_colormap_get_screen #if IN_HEADER(__GDK_CURSOR_H__) #if IN_FILE(__GDK_CURSOR_C__) -gdk_cursor_get_type G_GNUC_CONST +gdk_cursor_get_type gdk_cursor_get_cursor_type gdk_cursor_new gdk_cursor_ref @@ -414,7 +414,7 @@ gdk_device_get_name gdk_device_get_n_axes gdk_device_get_n_keys gdk_device_get_source -gdk_device_get_type G_GNUC_CONST +gdk_device_get_type gdk_device_set_axis_use gdk_device_set_key gdk_device_set_source @@ -460,7 +460,7 @@ gdk_display_close gdk_display_get_core_pointer gdk_display_get_event gdk_display_get_pointer -gdk_display_get_type G_GNUC_CONST +gdk_display_get_type gdk_display_get_window_at_pointer gdk_display_is_closed gdk_display_peek_event @@ -535,7 +535,7 @@ gdk_display_set_double_click_time #if IN_HEADER(__GDK_DISPLAY_MANAGER_H__) #if IN_FILE(__GDK_DISPLAY_MANAGER_C__) gdk_display_manager_get -gdk_display_manager_get_type G_GNUC_CONST +gdk_display_manager_get_type gdk_display_manager_list_displays gdk_display_manager_set_default_display gdk_display_manager_get_default_display @@ -546,7 +546,7 @@ gdk_display_manager_get_default_display #if IN_FILE(__GDK_DND_X11_C__) gdk_drag_abort gdk_drag_begin -gdk_drag_context_get_type G_GNUC_CONST +gdk_drag_context_get_type #ifndef GDK_DISABLE_DEPRECATED gdk_drag_context_new gdk_drag_context_ref @@ -600,7 +600,7 @@ gdk_drawable_get_visual #endif gdk_drawable_get_depth gdk_drawable_get_image -gdk_drawable_get_type G_GNUC_CONST +gdk_drawable_get_type gdk_drawable_get_visible_region gdk_drawable_set_colormap gdk_draw_arc @@ -632,7 +632,7 @@ gdk_draw_layout_with_colors #if IN_HEADER(__GDK_GC_H__) #if IN_FILE(__GDK_GC_C__) gdk_gc_new -gdk_gc_get_type G_GNUC_CONST +gdk_gc_get_type gdk_gc_new_with_values #ifndef GDK_DISABLE_DEPRECATED gdk_gc_ref @@ -674,7 +674,7 @@ gdk_gc_get_screen #if IN_HEADER(__GDK_PIXMAP_X11_H__) #if IN_FILE(__GDK_PIXMAP_X11_C__) #ifdef GDK_WINDOWING_X11 -gdk_pixmap_impl_x11_get_type G_GNUC_CONST +gdk_pixmap_impl_x11_get_type #endif #endif #endif @@ -682,7 +682,7 @@ gdk_pixmap_impl_x11_get_type G_GNUC_CONST #if IN_HEADER(__GDK_WINDOW_X11_H__) #if IN_FILE(__GDK_WINDOW_X11_C__) #ifdef GDK_WINDOWING_X11 -gdk_window_impl_x11_get_type G_GNUC_CONST +gdk_window_impl_x11_get_type #endif #endif #endif @@ -769,7 +769,7 @@ gdk_window_is_input_only gdk_window_is_shaped gdk_window_is_viewable gdk_window_is_visible -gdk_window_object_get_type G_GNUC_CONST +gdk_window_object_get_type gdk_window_peek_children gdk_window_process_all_updates gdk_window_process_updates @@ -803,7 +803,7 @@ gdk_offscreen_window_get_embedder #if IN_HEADER(__GDK_INTERNALS_H__) #if IN_FILE(__GDK_OFFSCREEN_WINDOW_C__) -gdk_offscreen_window_get_type G_GNUC_CONST +gdk_offscreen_window_get_type #endif #endif @@ -894,14 +894,14 @@ gdk_image_new_bitmap #endif gdk_image_get_pixel gdk_image_put_pixel -gdk_image_get_type G_GNUC_CONST +gdk_image_get_type #endif #endif #if IN_HEADER(__GDK_KEYS_H__) #if IN_FILE(__GDK_KEYS_C__) gdk_keymap_get_default -gdk_keymap_get_type G_GNUC_CONST +gdk_keymap_get_type gdk_keyval_is_lower G_GNUC_CONST gdk_keyval_is_upper G_GNUC_CONST gdk_keyval_to_lower G_GNUC_CONST @@ -976,7 +976,7 @@ gdk_visual_get_best_with_both gdk_visual_get_best_with_depth gdk_visual_get_best_with_type gdk_visual_get_screen -gdk_visual_get_type G_GNUC_CONST +gdk_visual_get_type #endif #endif @@ -1001,7 +1001,7 @@ gdk_pango_context_set_colormap gdk_pango_layout_get_clip_region gdk_pango_layout_line_get_clip_region gdk_pango_renderer_get_default -gdk_pango_renderer_get_type G_GNUC_CONST +gdk_pango_renderer_get_type gdk_pango_renderer_new gdk_pango_renderer_set_drawable gdk_pango_renderer_set_gc @@ -1038,7 +1038,7 @@ gdk_pixmap_create_from_xpm gdk_pixmap_colormap_create_from_xpm_d gdk_pixmap_create_from_xpm_d gdk_pixmap_get_size -gdk_pixmap_get_type G_GNUC_CONST +gdk_pixmap_get_type gdk_pixmap_new #endif #endif @@ -1095,7 +1095,7 @@ gdk_region_polygon #if IN_FILE(__GDK_RGB_C__) gdk_rgb_cmap_free gdk_rgb_cmap_copy -gdk_rgb_cmap_get_type G_GNUC_CONST +gdk_rgb_cmap_get_type gdk_rgb_cmap_new gdk_rgb_colormap_ditherable gdk_rgb_ditherable @@ -1131,7 +1131,7 @@ gdk_draw_rgbx_64_image_dithalign #if IN_HEADER(__GDK_SCREEN_H__) #if IN_FILE(__GDK_SCREEN_C__) -gdk_screen_get_type G_GNUC_CONST +gdk_screen_get_type gdk_screen_get_monitor_at_point gdk_screen_get_monitor_at_window gdk_screen_set_font_options @@ -1304,7 +1304,7 @@ gdk_win32_selection_add_targets #if IN_HEADER(__GDK_WIN32_H__) #if IN_FILE(__GDK_KEYS_WIN32_C__) -gdk_win32_keymap_get_type G_GNUC_CONST +gdk_win32_keymap_get_type gdk_win32_keymap_check_compose #endif #endif @@ -1419,7 +1419,7 @@ gdk_xid_table_lookup_for_display #if IN_HEADER(__GDK_APP_LAUNCH_CONTEXT_H__) #if IN_FILE(__GDK_APP_LAUNCH_CONTEXT_C__) -gdk_app_launch_context_get_type G_GNUC_CONST +gdk_app_launch_context_get_type gdk_app_launch_context_new gdk_app_launch_context_set_display gdk_app_launch_context_set_screen @@ -1432,7 +1432,7 @@ gdk_app_launch_context_set_icon_name #if IN_HEADER(__GDK_WINDOW_IMPL_H__) #if IN_FILE(__GDK_WINDOW_IMPL_C__) -gdk_window_impl_get_type G_GNUC_CONST +gdk_window_impl_get_type #endif #endif diff --git a/gdk/gdkcolor.h b/gdk/gdkcolor.h index f2262bbeb..96ee023aa 100644 --- a/gdk/gdkcolor.h +++ b/gdk/gdkcolor.h @@ -86,7 +86,7 @@ struct _GdkColormapClass }; -GType gdk_colormap_get_type (void) G_GNUC_CONST; +GType gdk_colormap_get_type (void); GdkColormap* gdk_colormap_new (GdkVisual *visual, gboolean allocate); @@ -140,7 +140,7 @@ gboolean gdk_color_equal (const GdkColor *colora, const GdkColor *colorb); gchar * gdk_color_to_string (const GdkColor *color); -GType gdk_color_get_type (void) G_GNUC_CONST; +GType gdk_color_get_type (void); /* The following functions are deprecated */ #ifndef GDK_DISABLE_DEPRECATED diff --git a/gdk/gdkcursor.h b/gdk/gdkcursor.h index 5a9bbcb92..61c8db389 100644 --- a/gdk/gdkcursor.h +++ b/gdk/gdkcursor.h @@ -134,7 +134,7 @@ struct _GdkCursor /* Cursors */ -GType gdk_cursor_get_type (void) G_GNUC_CONST; +GType gdk_cursor_get_type (void); GdkCursor* gdk_cursor_new_for_display (GdkDisplay *display, GdkCursorType cursor_type); diff --git a/gdk/gdkdisplay.h b/gdk/gdkdisplay.h index fcc0ec9c4..1994b2691 100644 --- a/gdk/gdkdisplay.h +++ b/gdk/gdkdisplay.h @@ -138,7 +138,7 @@ struct _GdkDisplayPointerHooks gint *win_y); }; -GType gdk_display_get_type (void) G_GNUC_CONST; +GType gdk_display_get_type (void); GdkDisplay *gdk_display_open (const gchar *display_name); const gchar * gdk_display_get_name (GdkDisplay *display); diff --git a/gdk/gdkdisplaymanager.h b/gdk/gdkdisplaymanager.h index 02d1cf697..2d4cf99ee 100644 --- a/gdk/gdkdisplaymanager.h +++ b/gdk/gdkdisplaymanager.h @@ -54,7 +54,7 @@ struct _GdkDisplayManagerClass GdkDisplay *display); }; -GType gdk_display_manager_get_type (void) G_GNUC_CONST; +GType gdk_display_manager_get_type (void); GdkDisplayManager *gdk_display_manager_get (void); GdkDisplay * gdk_display_manager_get_default_display (GdkDisplayManager *display_manager); diff --git a/gdk/gdkdnd.h b/gdk/gdkdnd.h index 244169e68..f2fd1e3fe 100644 --- a/gdk/gdkdnd.h +++ b/gdk/gdkdnd.h @@ -103,7 +103,7 @@ struct _GdkDragContextClass { /* Drag and Drop */ -GType gdk_drag_context_get_type (void) G_GNUC_CONST; +GType gdk_drag_context_get_type (void); #if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION) GdkDragContext * gdk_drag_context_new (void); #endif diff --git a/gdk/gdkdrawable.h b/gdk/gdkdrawable.h index 33bb95604..e06fd2751 100644 --- a/gdk/gdkdrawable.h +++ b/gdk/gdkdrawable.h @@ -236,7 +236,7 @@ struct _GdkTrapezoid double y1, x11, x21, y2, x12, x22; }; -GType gdk_drawable_get_type (void) G_GNUC_CONST; +GType gdk_drawable_get_type (void); /* Manipulation of drawables */ diff --git a/gdk/gdkenumtypes.h.template b/gdk/gdkenumtypes.h.template index 85487f47f..469b75147 100644 --- a/gdk/gdkenumtypes.h.template +++ b/gdk/gdkenumtypes.h.template @@ -17,7 +17,7 @@ G_BEGIN_DECLS /*** END file-production ***/ /*** BEGIN value-header ***/ -GType @enum_name@_get_type (void) G_GNUC_CONST; +GType @enum_name@_get_type (void); #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) /*** END value-header ***/ diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 1904fe611..0fbb2e340 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -514,7 +514,7 @@ union _GdkEvent GdkEventGrabBroken grab_broken; }; -GType gdk_event_get_type (void) G_GNUC_CONST; +GType gdk_event_get_type (void); gboolean gdk_events_pending (void); GdkEvent* gdk_event_get (void); diff --git a/gdk/gdkfont.h b/gdk/gdkfont.h index 71f1e9c77..26d4235e9 100644 --- a/gdk/gdkfont.h +++ b/gdk/gdkfont.h @@ -53,7 +53,7 @@ struct _GdkFont gint descent; }; -GType gdk_font_get_type (void) G_GNUC_CONST; +GType gdk_font_get_type (void); GdkFont* gdk_font_ref (GdkFont *font); void gdk_font_unref (GdkFont *font); diff --git a/gdk/gdkgc.h b/gdk/gdkgc.h index 360ae44f6..bb3e9dc6f 100644 --- a/gdk/gdkgc.h +++ b/gdk/gdkgc.h @@ -221,7 +221,7 @@ struct _GdkGCClass #ifndef GDK_DISABLE_DEPRECATED -GType gdk_gc_get_type (void) G_GNUC_CONST; +GType gdk_gc_get_type (void); GdkGC *gdk_gc_new (GdkDrawable *drawable); GdkGC *gdk_gc_new_with_values (GdkDrawable *drawable, GdkGCValues *values, diff --git a/gdk/gdkimage.h b/gdk/gdkimage.h index cd9631090..a6d2e7c72 100644 --- a/gdk/gdkimage.h +++ b/gdk/gdkimage.h @@ -90,7 +90,7 @@ struct _GdkImageClass GObjectClass parent_class; }; -GType gdk_image_get_type (void) G_GNUC_CONST; +GType gdk_image_get_type (void); #ifndef GDK_DISABLE_DEPRECATED GdkImage* gdk_image_new (GdkImageType type, diff --git a/gdk/gdkinput.h b/gdk/gdkinput.h index 41e348eac..3d2032cde 100644 --- a/gdk/gdkinput.h +++ b/gdk/gdkinput.h @@ -123,7 +123,7 @@ struct _GdkTimeCoord gdouble axes[GDK_MAX_TIMECOORD_AXES]; }; -GType gdk_device_get_type (void) G_GNUC_CONST; +GType gdk_device_get_type (void); #ifndef GDK_MULTIHEAD_SAFE /* Returns a list of GdkDevice * */ diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index ff3b538bb..6460e1319 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -581,11 +581,11 @@ struct _GdkPaintableIface void (* end_paint) (GdkPaintable *paintable); }; -GType _gdk_paintable_get_type (void) G_GNUC_CONST; +GType _gdk_paintable_get_type (void); /* Implementation types */ -GType _gdk_window_impl_get_type (void) G_GNUC_CONST; -GType _gdk_pixmap_impl_get_type (void) G_GNUC_CONST; +GType _gdk_window_impl_get_type (void); +GType _gdk_pixmap_impl_get_type (void); /** diff --git a/gdk/gdkkeys.h b/gdk/gdkkeys.h index 4a7528fe1..0738a78e5 100644 --- a/gdk/gdkkeys.h +++ b/gdk/gdkkeys.h @@ -78,7 +78,7 @@ struct _GdkKeymapClass void (*state_changed) (GdkKeymap *keymap); }; -GType gdk_keymap_get_type (void) G_GNUC_CONST; +GType gdk_keymap_get_type (void); #ifndef GDK_MULTIHEAD_SAFE GdkKeymap* gdk_keymap_get_default (void); diff --git a/gdk/gdkpango.h b/gdk/gdkpango.h index 1b73a4b90..6dbed215a 100644 --- a/gdk/gdkpango.h +++ b/gdk/gdkpango.h @@ -86,7 +86,7 @@ struct _GdkPangoRendererClass PangoRendererClass parent_class; }; -GType gdk_pango_renderer_get_type (void) G_GNUC_CONST; +GType gdk_pango_renderer_get_type (void); PangoRenderer *gdk_pango_renderer_new (GdkScreen *screen); PangoRenderer *gdk_pango_renderer_get_default (GdkScreen *screen); diff --git a/gdk/gdkpixmap.h b/gdk/gdkpixmap.h index 230329e8c..c844987e4 100644 --- a/gdk/gdkpixmap.h +++ b/gdk/gdkpixmap.h @@ -62,7 +62,7 @@ struct _GdkPixmapObjectClass }; -GType gdk_pixmap_get_type (void) G_GNUC_CONST; +GType gdk_pixmap_get_type (void); /* Pixmaps */ diff --git a/gdk/gdkproperty.h b/gdk/gdkproperty.h index 6f2a68970..5ef52ac62 100644 --- a/gdk/gdkproperty.h +++ b/gdk/gdkproperty.h @@ -42,7 +42,7 @@ typedef enum GDK_PROP_MODE_APPEND } GdkPropMode; -GType gdk_atom_get_type (void) G_GNUC_CONST; +GType gdk_atom_get_type (void); GdkAtom gdk_atom_intern (const gchar *atom_name, gboolean only_if_exists); GdkAtom gdk_atom_intern_static_string (const gchar *atom_name); diff --git a/gdk/gdkrgb.h b/gdk/gdkrgb.h index 44c576fb5..3fe82df92 100644 --- a/gdk/gdkrgb.h +++ b/gdk/gdkrgb.h @@ -127,7 +127,7 @@ void gdk_draw_indexed_image (GdkDrawable *drawable, const guchar *buf, gint rowstride, GdkRgbCmap *cmap); -GType gdk_rgb_cmap_get_type (void) G_GNUC_CONST; +GType gdk_rgb_cmap_get_type (void); GdkRgbCmap *gdk_rgb_cmap_copy (const GdkRgbCmap *cmap); GdkRgbCmap *gdk_rgb_cmap_new (guint32 *colors, gint n_colors); diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h index 954431629..233703edb 100644 --- a/gdk/gdkscreen.h +++ b/gdk/gdkscreen.h @@ -66,7 +66,7 @@ struct _GdkScreenClass void (*monitors_changed) (GdkScreen *screen); }; -GType gdk_screen_get_type (void) G_GNUC_CONST; +GType gdk_screen_get_type (void); GdkColormap *gdk_screen_get_default_colormap (GdkScreen *screen); void gdk_screen_set_default_colormap (GdkScreen *screen, GdkColormap *colormap); diff --git a/gdk/gdkvisual.h b/gdk/gdkvisual.h index 1131b552f..be806fbf7 100644 --- a/gdk/gdkvisual.h +++ b/gdk/gdkvisual.h @@ -97,7 +97,7 @@ struct _GdkVisual gint GSEAL (blue_prec); }; -GType gdk_visual_get_type (void) G_GNUC_CONST; +GType gdk_visual_get_type (void); #ifndef GDK_MULTIHEAD_SAFE gint gdk_visual_get_best_depth (void); diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h index ca6d0bdf6..3558b0ffe 100644 --- a/gdk/gdkwindow.h +++ b/gdk/gdkwindow.h @@ -328,7 +328,7 @@ struct _GdkWindowObjectClass /* Windows */ -GType gdk_window_object_get_type (void) G_GNUC_CONST; +GType gdk_window_object_get_type (void); GdkWindow* gdk_window_new (GdkWindow *parent, GdkWindowAttr *attributes, gint attributes_mask); diff --git a/gdk/gdkwindowimpl.h b/gdk/gdkwindowimpl.h index ee84e0408..2fb304fc7 100644 --- a/gdk/gdkwindowimpl.h +++ b/gdk/gdkwindowimpl.h @@ -150,7 +150,7 @@ struct _GdkWindowImplIface }; /* Interface Functions */ -GType gdk_window_impl_get_type (void) G_GNUC_CONST; +GType gdk_window_impl_get_type (void); /* private definitions from gdkwindow.h */ diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index dad4106ee..e69fe5b79 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -40,7 +40,7 @@ gtk_about_dialog_set_name gtk_about_dialog_get_program_name gtk_about_dialog_set_program_name gtk_about_dialog_get_translator_credits -gtk_about_dialog_get_type G_GNUC_CONST +gtk_about_dialog_get_type gtk_about_dialog_get_version gtk_about_dialog_get_website gtk_about_dialog_get_website_label @@ -82,7 +82,7 @@ gtk_accel_group_disconnect gtk_accel_group_disconnect_key gtk_accel_group_find gtk_accel_group_from_accel_closure -gtk_accel_group_get_type G_GNUC_CONST +gtk_accel_group_get_type gtk_accel_group_get_is_locked gtk_accel_group_get_modifier_mask gtk_accel_group_lock @@ -98,7 +98,7 @@ gtk_accel_group_unlock #if IN_FILE(__GTK_ACCEL_LABEL_C__) gtk_accel_label_get_accel_widget gtk_accel_label_get_accel_width -gtk_accel_label_get_type G_GNUC_CONST +gtk_accel_label_get_type gtk_accel_label_new gtk_accel_label_refetch gtk_accel_label_set_accel_closure @@ -114,7 +114,7 @@ gtk_accel_map_change_entry gtk_accel_map_foreach gtk_accel_map_foreach_unfiltered gtk_accel_map_get -gtk_accel_map_get_type G_GNUC_CONST +gtk_accel_map_get_type #ifndef _WIN64 gtk_accel_map_load PRIVATE #endif @@ -139,7 +139,7 @@ gtk_accel_map_unlock_path #if IN_HEADER(__GTK_ACCESSIBLE_H__) #if IN_FILE(__GTK_ACCESSIBLE_C__) gtk_accessible_connect_widget_destroyed -gtk_accessible_get_type G_GNUC_CONST +gtk_accessible_get_type gtk_accessible_get_widget gtk_accessible_set_widget #endif @@ -180,7 +180,7 @@ gtk_action_get_sensitive gtk_action_get_short_label gtk_action_get_stock_id gtk_action_get_tooltip -gtk_action_get_type G_GNUC_CONST +gtk_action_get_type gtk_action_get_visible gtk_action_get_visible_horizontal gtk_action_get_visible_vertical @@ -221,7 +221,7 @@ gtk_action_group_add_toggle_actions_full gtk_action_group_get_action gtk_action_group_get_name gtk_action_group_get_sensitive -gtk_action_group_get_type G_GNUC_CONST +gtk_action_group_get_type gtk_action_group_get_visible gtk_action_group_list_actions gtk_action_group_new @@ -238,7 +238,7 @@ gtk_action_group_translate_string #if IN_FILE(__GTK_ACTIVATABLE_C__) gtk_activatable_do_set_related_action gtk_activatable_get_related_action -gtk_activatable_get_type G_GNUC_CONST +gtk_activatable_get_type gtk_activatable_get_use_action_appearance gtk_activatable_sync_action_properties gtk_activatable_set_related_action @@ -251,7 +251,7 @@ gtk_activatable_set_use_action_appearance gtk_adjustment_changed gtk_adjustment_clamp_page gtk_adjustment_configure -gtk_adjustment_get_type G_GNUC_CONST +gtk_adjustment_get_type gtk_adjustment_get_value gtk_adjustment_get_lower gtk_adjustment_get_upper @@ -272,7 +272,7 @@ gtk_adjustment_value_changed #if IN_HEADER(__GTK_ALIGNMENT_H__) #if IN_FILE(__GTK_ALIGNMENT_C__) gtk_alignment_get_padding -gtk_alignment_get_type G_GNUC_CONST +gtk_alignment_get_type gtk_alignment_new gtk_alignment_set gtk_alignment_set_padding @@ -282,7 +282,7 @@ gtk_alignment_set_padding #if IN_HEADER(__GTK_ASSISTANT_H__) #if IN_FILE(__GTK_ASSISTANT_C__) -gtk_assistant_get_type G_GNUC_CONST +gtk_assistant_get_type gtk_assistant_new gtk_assistant_get_current_page gtk_assistant_set_current_page @@ -311,129 +311,129 @@ gtk_assistant_commit #if IN_HEADER(__GTK_TYPE_BUILTINS_H__) #if IN_FILE(__GTK_TYPE_BUILTINS_C__) -gtk_pack_direction_get_type G_GNUC_CONST -gtk_ui_manager_item_type_get_type G_GNUC_CONST -gtk_spin_button_update_policy_get_type G_GNUC_CONST -gtk_notebook_tab_get_type G_GNUC_CONST -gtk_number_up_layout_get_type G_GNUC_CONST -gtk_anchor_type_get_type G_GNUC_CONST -gtk_arg_flags_get_type G_GNUC_CONST -gtk_arrow_type_get_type G_GNUC_CONST -gtk_arrow_placement_get_type G_GNUC_CONST -gtk_assistant_page_type_get_type G_GNUC_CONST -gtk_attach_options_get_type G_GNUC_CONST -gtk_builder_error_get_type G_GNUC_CONST -gtk_button_action_get_type G_GNUC_CONST -gtk_buttons_type_get_type G_GNUC_CONST -gtk_calendar_display_options_get_type G_GNUC_CONST -gtk_cell_renderer_mode_get_type G_GNUC_CONST -gtk_cell_renderer_state_get_type G_GNUC_CONST +gtk_pack_direction_get_type +gtk_ui_manager_item_type_get_type +gtk_spin_button_update_policy_get_type +gtk_notebook_tab_get_type +gtk_number_up_layout_get_type +gtk_anchor_type_get_type +gtk_arg_flags_get_type +gtk_arrow_type_get_type +gtk_arrow_placement_get_type +gtk_assistant_page_type_get_type +gtk_attach_options_get_type +gtk_builder_error_get_type +gtk_button_action_get_type +gtk_buttons_type_get_type +gtk_calendar_display_options_get_type +gtk_cell_renderer_mode_get_type +gtk_cell_renderer_state_get_type gtk_cell_renderer_accel_mode_get_type -gtk_corner_type_get_type G_GNUC_CONST -gtk_debug_flag_get_type G_GNUC_CONST -gtk_delete_type_get_type G_GNUC_CONST -gtk_dest_defaults_get_type G_GNUC_CONST -gtk_drag_result_get_type G_GNUC_CONST -gtk_clist_drag_pos_get_type G_GNUC_CONST -gtk_dialog_flags_get_type G_GNUC_CONST -gtk_direction_type_get_type G_GNUC_CONST -gtk_entry_icon_position_get_type G_GNUC_CONST -gtk_expander_style_get_type G_GNUC_CONST -gtk_file_chooser_action_get_type G_GNUC_CONST -gtk_file_chooser_confirmation_get_type G_GNUC_CONST -gtk_file_filter_flags_get_type G_GNUC_CONST -gtk_icon_view_drop_position_get_type G_GNUC_CONST -gtk_sensitivity_type_get_type G_GNUC_CONST -gtk_window_type_get_type G_GNUC_CONST -gtk_wrap_mode_get_type G_GNUC_CONST -gtk_widget_flags_get_type G_GNUC_CONST -gtk_widget_help_type_get_type G_GNUC_CONST -gtk_window_position_get_type G_GNUC_CONST -gtk_tree_view_column_sizing_get_type G_GNUC_CONST -gtk_tree_view_drop_position_get_type G_GNUC_CONST -gtk_button_box_style_get_type G_GNUC_CONST -gtk_cell_type_get_type G_GNUC_CONST -gtk_ctree_expander_style_get_type G_GNUC_CONST -gtk_ctree_expansion_type_get_type G_GNUC_CONST -gtk_ctree_line_style_get_type G_GNUC_CONST -gtk_ctree_pos_get_type G_GNUC_CONST -gtk_curve_type_get_type G_GNUC_CONST -gtk_icon_lookup_flags_get_type G_GNUC_CONST -gtk_image_type_get_type G_GNUC_CONST -gtk_im_preedit_style_get_type G_GNUC_CONST -gtk_im_status_style_get_type G_GNUC_CONST -gtk_justification_get_type G_GNUC_CONST -gtk_match_type_get_type G_GNUC_CONST -gtk_menu_direction_type_get_type G_GNUC_CONST -gtk_message_type_get_type G_GNUC_CONST -gtk_metric_type_get_type G_GNUC_CONST -gtk_movement_step_get_type G_GNUC_CONST -gtk_orientation_get_type G_GNUC_CONST -gtk_pack_type_get_type G_GNUC_CONST -gtk_page_orientation_get_type G_GNUC_CONST -gtk_print_operation_result_get_type G_GNUC_CONST -gtk_print_pages_get_type G_GNUC_CONST -gtk_print_quality_get_type G_GNUC_CONST -gtk_print_status_get_type G_GNUC_CONST -gtk_page_set_get_type G_GNUC_CONST -gtk_path_priority_type_get_type G_GNUC_CONST -gtk_path_type_get_type G_GNUC_CONST -gtk_policy_type_get_type G_GNUC_CONST -gtk_position_type_get_type G_GNUC_CONST -gtk_preview_type_get_type G_GNUC_CONST -gtk_print_duplex_get_type G_GNUC_CONST -gtk_print_error_get_type G_GNUC_CONST -gtk_recent_filter_flags_get_type G_GNUC_CONST -gtk_print_operation_action_get_type G_GNUC_CONST -gtk_private_flags_get_type G_GNUC_CONST -gtk_progress_bar_orientation_get_type G_GNUC_CONST -gtk_progress_bar_style_get_type G_GNUC_CONST -gtk_rc_flags_get_type G_GNUC_CONST -gtk_rc_token_type_get_type G_GNUC_CONST -gtk_recent_chooser_error_get_type G_GNUC_CONST -gtk_recent_manager_error_get_type G_GNUC_CONST -gtk_recent_sort_type_get_type G_GNUC_CONST -gtk_unit_get_type G_GNUC_CONST -gtk_relief_style_get_type G_GNUC_CONST -gtk_resize_mode_get_type G_GNUC_CONST -gtk_response_type_get_type G_GNUC_CONST -gtk_scroll_step_get_type G_GNUC_CONST -gtk_scroll_type_get_type G_GNUC_CONST -gtk_selection_mode_get_type G_GNUC_CONST -gtk_shadow_type_get_type G_GNUC_CONST -gtk_side_type_get_type G_GNUC_CONST -gtk_signal_run_type_get_type G_GNUC_CONST -gtk_size_group_mode_get_type G_GNUC_CONST -gtk_sort_type_get_type G_GNUC_CONST -gtk_spin_type_get_type G_GNUC_CONST -gtk_state_type_get_type G_GNUC_CONST -gtk_submenu_direction_get_type G_GNUC_CONST -gtk_submenu_placement_get_type G_GNUC_CONST -gtk_target_flags_get_type G_GNUC_CONST -gtk_text_direction_get_type G_GNUC_CONST -gtk_text_buffer_target_info_get_type G_GNUC_CONST -gtk_text_search_flags_get_type G_GNUC_CONST -gtk_text_window_type_get_type G_GNUC_CONST -gtk_tool_palette_drag_targets_get_type G_GNUC_CONST -gtk_tree_model_flags_get_type G_GNUC_CONST -gtk_tree_view_mode_get_type G_GNUC_CONST -gtk_tree_view_grid_lines_get_type G_GNUC_CONST -gtk_update_type_get_type G_GNUC_CONST -gtk_visibility_get_type G_GNUC_CONST -gtk_object_flags_get_type G_GNUC_CONST -gtk_accel_flags_get_type G_GNUC_CONST -gtk_icon_size_get_type G_GNUC_CONST -gtk_file_chooser_error_get_type G_GNUC_CONST -gtk_icon_theme_error_get_type G_GNUC_CONST -gtk_toolbar_child_type_get_type G_GNUC_CONST -gtk_toolbar_space_style_get_type G_GNUC_CONST -gtk_toolbar_style_get_type G_GNUC_CONST +gtk_corner_type_get_type +gtk_debug_flag_get_type +gtk_delete_type_get_type +gtk_dest_defaults_get_type +gtk_drag_result_get_type +gtk_clist_drag_pos_get_type +gtk_dialog_flags_get_type +gtk_direction_type_get_type +gtk_entry_icon_position_get_type +gtk_expander_style_get_type +gtk_file_chooser_action_get_type +gtk_file_chooser_confirmation_get_type +gtk_file_filter_flags_get_type +gtk_icon_view_drop_position_get_type +gtk_sensitivity_type_get_type +gtk_window_type_get_type +gtk_wrap_mode_get_type +gtk_widget_flags_get_type +gtk_widget_help_type_get_type +gtk_window_position_get_type +gtk_tree_view_column_sizing_get_type +gtk_tree_view_drop_position_get_type +gtk_button_box_style_get_type +gtk_cell_type_get_type +gtk_ctree_expander_style_get_type +gtk_ctree_expansion_type_get_type +gtk_ctree_line_style_get_type +gtk_ctree_pos_get_type +gtk_curve_type_get_type +gtk_icon_lookup_flags_get_type +gtk_image_type_get_type +gtk_im_preedit_style_get_type +gtk_im_status_style_get_type +gtk_justification_get_type +gtk_match_type_get_type +gtk_menu_direction_type_get_type +gtk_message_type_get_type +gtk_metric_type_get_type +gtk_movement_step_get_type +gtk_orientation_get_type +gtk_pack_type_get_type +gtk_page_orientation_get_type +gtk_print_operation_result_get_type +gtk_print_pages_get_type +gtk_print_quality_get_type +gtk_print_status_get_type +gtk_page_set_get_type +gtk_path_priority_type_get_type +gtk_path_type_get_type +gtk_policy_type_get_type +gtk_position_type_get_type +gtk_preview_type_get_type +gtk_print_duplex_get_type +gtk_print_error_get_type +gtk_recent_filter_flags_get_type +gtk_print_operation_action_get_type +gtk_private_flags_get_type +gtk_progress_bar_orientation_get_type +gtk_progress_bar_style_get_type +gtk_rc_flags_get_type +gtk_rc_token_type_get_type +gtk_recent_chooser_error_get_type +gtk_recent_manager_error_get_type +gtk_recent_sort_type_get_type +gtk_unit_get_type +gtk_relief_style_get_type +gtk_resize_mode_get_type +gtk_response_type_get_type +gtk_scroll_step_get_type +gtk_scroll_type_get_type +gtk_selection_mode_get_type +gtk_shadow_type_get_type +gtk_side_type_get_type +gtk_signal_run_type_get_type +gtk_size_group_mode_get_type +gtk_sort_type_get_type +gtk_spin_type_get_type +gtk_state_type_get_type +gtk_submenu_direction_get_type +gtk_submenu_placement_get_type +gtk_target_flags_get_type +gtk_text_direction_get_type +gtk_text_buffer_target_info_get_type +gtk_text_search_flags_get_type +gtk_text_window_type_get_type +gtk_tool_palette_drag_targets_get_type +gtk_tree_model_flags_get_type +gtk_tree_view_mode_get_type +gtk_tree_view_grid_lines_get_type +gtk_update_type_get_type +gtk_visibility_get_type +gtk_object_flags_get_type +gtk_accel_flags_get_type +gtk_icon_size_get_type +gtk_file_chooser_error_get_type +gtk_icon_theme_error_get_type +gtk_toolbar_child_type_get_type +gtk_toolbar_space_style_get_type +gtk_toolbar_style_get_type #endif #endif #if IN_HEADER(__GTK_ARROW_H__) #if IN_FILE(__GTK_ARROW_C__) -gtk_arrow_get_type G_GNUC_CONST +gtk_arrow_get_type gtk_arrow_new gtk_arrow_set #endif @@ -441,7 +441,7 @@ gtk_arrow_set #if IN_HEADER(__GTK_ASPECT_FRAME_H__) #if IN_FILE(__GTK_ASPECT_FRAME_C__) -gtk_aspect_frame_get_type G_GNUC_CONST +gtk_aspect_frame_get_type gtk_aspect_frame_new gtk_aspect_frame_set #endif @@ -470,7 +470,7 @@ gtk_binding_set_new #if IN_HEADER(__GTK_BIN_H__) #if IN_FILE(__GTK_BIN_C__) gtk_bin_get_child -gtk_bin_get_type G_GNUC_CONST +gtk_bin_get_type #endif #endif @@ -478,7 +478,7 @@ gtk_bin_get_type G_GNUC_CONST #if IN_FILE(__GTK_BOX_C__) gtk_box_get_homogeneous gtk_box_get_spacing -gtk_box_get_type G_GNUC_CONST +gtk_box_get_type gtk_box_pack_end gtk_box_pack_start #ifndef GTK_DISABLE_DEPRECATED @@ -502,7 +502,7 @@ gtk_buildable_custom_tag_end gtk_buildable_custom_finished gtk_buildable_get_internal_child gtk_buildable_get_name -gtk_buildable_get_type G_GNUC_CONST +gtk_buildable_get_type gtk_buildable_parser_finished gtk_buildable_set_name gtk_buildable_set_buildable_property @@ -519,7 +519,7 @@ gtk_builder_error_quark gtk_builder_get_object gtk_builder_get_objects gtk_builder_get_translation_domain -gtk_builder_get_type G_GNUC_CONST +gtk_builder_get_type gtk_builder_get_type_from_name gtk_builder_new gtk_builder_set_translation_domain @@ -540,7 +540,7 @@ gtk_button_box_get_child_size #endif gtk_button_box_get_child_secondary gtk_button_box_get_layout -gtk_button_box_get_type G_GNUC_CONST +gtk_button_box_get_type gtk_button_box_set_child_secondary gtk_button_box_set_layout #endif @@ -559,7 +559,7 @@ gtk_button_get_image gtk_button_get_image_position gtk_button_get_label gtk_button_get_relief -gtk_button_get_type G_GNUC_CONST +gtk_button_get_type gtk_button_get_use_stock gtk_button_get_use_underline #ifndef GTK_DISABLE_DEPRECATED @@ -596,7 +596,7 @@ gtk_calendar_get_date gtk_calendar_get_detail_height_rows gtk_calendar_get_detail_width_chars gtk_calendar_get_display_options -gtk_calendar_get_type G_GNUC_CONST +gtk_calendar_get_type gtk_calendar_mark_day gtk_calendar_new gtk_calendar_select_day @@ -612,7 +612,7 @@ gtk_calendar_unmark_day #if IN_HEADER(__GTK_CELL_EDITABLE_H__) #if IN_FILE(__GTK_CELL_EDITABLE_C__) gtk_cell_editable_editing_done -gtk_cell_editable_get_type G_GNUC_CONST +gtk_cell_editable_get_type gtk_cell_editable_remove_widget gtk_cell_editable_start_editing #endif @@ -623,7 +623,7 @@ gtk_cell_editable_start_editing gtk_cell_layout_add_attribute gtk_cell_layout_clear gtk_cell_layout_clear_attributes -gtk_cell_layout_get_type G_GNUC_CONST +gtk_cell_layout_get_type gtk_cell_layout_pack_end gtk_cell_layout_pack_start gtk_cell_layout_get_cells @@ -644,7 +644,7 @@ gtk_cell_renderer_get_fixed_size gtk_cell_renderer_get_padding gtk_cell_renderer_get_sensitive gtk_cell_renderer_get_size -gtk_cell_renderer_get_type G_GNUC_CONST +gtk_cell_renderer_get_type gtk_cell_renderer_get_visible gtk_cell_renderer_render gtk_cell_renderer_set_alignment @@ -659,49 +659,49 @@ gtk_cell_renderer_stop_editing #if IN_HEADER(__GTK_CELL_RENDERER_ACCEL_H__) #if IN_FILE(__GTK_CELL_RENDERER_ACCEL_C__) -gtk_cell_renderer_accel_get_type G_GNUC_CONST +gtk_cell_renderer_accel_get_type gtk_cell_renderer_accel_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_COMBO_H__) #if IN_FILE(__GTK_CELL_RENDERER_COMBO_C__) -gtk_cell_renderer_combo_get_type G_GNUC_CONST +gtk_cell_renderer_combo_get_type gtk_cell_renderer_combo_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_PIXBUF_H__) #if IN_FILE(__GTK_CELL_RENDERER_PIXBUF_C__) -gtk_cell_renderer_pixbuf_get_type G_GNUC_CONST +gtk_cell_renderer_pixbuf_get_type gtk_cell_renderer_pixbuf_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_SPIN_H__) #if IN_FILE(__GTK_CELL_RENDERER_SPIN_C__) -gtk_cell_renderer_spin_get_type G_GNUC_CONST +gtk_cell_renderer_spin_get_type gtk_cell_renderer_spin_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_SPINNER_H__) #if IN_FILE(__GTK_CELL_RENDERER_SPINNER_C__) -gtk_cell_renderer_spinner_get_type G_GNUC_CONST +gtk_cell_renderer_spinner_get_type gtk_cell_renderer_spinner_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_PROGRESS_H__) #if IN_FILE(__GTK_CELL_RENDERER_PROGRESS_C__) -gtk_cell_renderer_progress_get_type G_GNUC_CONST +gtk_cell_renderer_progress_get_type gtk_cell_renderer_progress_new #endif #endif #if IN_HEADER(__GTK_CELL_RENDERER_TEXT_H__) #if IN_FILE(__GTK_CELL_RENDERER_TEXT_C__) -gtk_cell_renderer_text_get_type G_GNUC_CONST +gtk_cell_renderer_text_get_type gtk_cell_renderer_text_new gtk_cell_renderer_text_set_fixed_height_from_font #endif @@ -712,7 +712,7 @@ gtk_cell_renderer_text_set_fixed_height_from_font gtk_cell_renderer_toggle_get_activatable gtk_cell_renderer_toggle_get_active gtk_cell_renderer_toggle_get_radio -gtk_cell_renderer_toggle_get_type G_GNUC_CONST +gtk_cell_renderer_toggle_get_type gtk_cell_renderer_toggle_new gtk_cell_renderer_toggle_set_activatable gtk_cell_renderer_toggle_set_active @@ -728,7 +728,7 @@ gtk_cell_view_get_cell_renderers gtk_cell_view_get_displayed_row gtk_cell_view_get_model gtk_cell_view_get_size_of_row -gtk_cell_view_get_type G_GNUC_CONST +gtk_cell_view_get_type gtk_cell_view_new gtk_cell_view_new_with_markup gtk_cell_view_new_with_pixbuf @@ -741,7 +741,7 @@ gtk_cell_view_set_model #if IN_HEADER(__GTK_CHECK_BUTTON_H__) #if IN_FILE(__GTK_CHECK_BUTTON_C__) -gtk_check_button_get_type G_GNUC_CONST +gtk_check_button_get_type gtk_check_button_new gtk_check_button_new_with_label gtk_check_button_new_with_mnemonic @@ -753,7 +753,7 @@ gtk_check_button_new_with_mnemonic gtk_check_menu_item_get_active gtk_check_menu_item_get_draw_as_radio gtk_check_menu_item_get_inconsistent -gtk_check_menu_item_get_type G_GNUC_CONST +gtk_check_menu_item_get_type gtk_check_menu_item_new gtk_check_menu_item_new_with_label gtk_check_menu_item_new_with_mnemonic @@ -774,7 +774,7 @@ gtk_clipboard_get gtk_clipboard_get_display gtk_clipboard_get_for_display gtk_clipboard_get_owner -gtk_clipboard_get_type G_GNUC_CONST +gtk_clipboard_get_type gtk_clipboard_request_contents gtk_clipboard_request_image gtk_clipboard_request_rich_text @@ -827,7 +827,7 @@ gtk_clist_get_row_style gtk_clist_get_selectable gtk_clist_get_selection_info gtk_clist_get_text -gtk_clist_get_type G_GNUC_CONST +gtk_clist_get_type gtk_clist_get_vadjustment gtk_clist_insert gtk_clist_moveto @@ -887,7 +887,7 @@ gtk_clist_unselect_row gtk_color_button_get_alpha gtk_color_button_get_color gtk_color_button_get_title -gtk_color_button_get_type G_GNUC_CONST +gtk_color_button_get_type gtk_color_button_get_use_alpha gtk_color_button_new gtk_color_button_new_with_color @@ -906,7 +906,7 @@ gtk_color_selection_get_has_opacity_control gtk_color_selection_get_has_palette gtk_color_selection_get_previous_alpha gtk_color_selection_get_previous_color -gtk_color_selection_get_type G_GNUC_CONST +gtk_color_selection_get_type gtk_color_selection_is_adjusting gtk_color_selection_new gtk_color_selection_palette_from_string @@ -929,7 +929,7 @@ gtk_color_selection_set_previous_color #if IN_HEADER(__GTK_COLOR_SELECTION_DIALOG_H__) #if IN_FILE(__GTK_COLOR_SELECTION_DIALOG_C__) -gtk_color_selection_dialog_get_type G_GNUC_CONST +gtk_color_selection_dialog_get_type gtk_color_selection_dialog_new gtk_color_selection_dialog_get_color_selection #endif @@ -952,7 +952,7 @@ gtk_combo_box_get_row_separator_func gtk_combo_box_get_row_span_column gtk_combo_box_get_button_sensitivity gtk_combo_box_get_title -gtk_combo_box_get_type G_GNUC_CONST +gtk_combo_box_get_type gtk_combo_box_get_wrap_width gtk_combo_box_insert_text gtk_combo_box_new @@ -983,7 +983,7 @@ gtk_combo_box_set_wrap_width #if IN_FILE(__GTK_COMBO_BOX_TEXT_C__) gtk_combo_box_text_append_text gtk_combo_box_text_get_active_text -gtk_combo_box_text_get_type G_GNUC_CONST +gtk_combo_box_text_get_type gtk_combo_box_text_insert_text gtk_combo_box_text_new gtk_combo_box_text_new_with_entry @@ -996,7 +996,7 @@ gtk_combo_box_text_remove #if IN_FILE(__GTK_COMBO_BOX_ENTRY_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_combo_box_entry_get_text_column -gtk_combo_box_entry_get_type G_GNUC_CONST +gtk_combo_box_entry_get_type gtk_combo_box_entry_new gtk_combo_box_entry_new_text gtk_combo_box_entry_new_with_model @@ -1009,7 +1009,7 @@ gtk_combo_box_entry_set_text_column #if IN_FILE(__GTK_SMART_COMBO_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_combo_disable_activate -gtk_combo_get_type G_GNUC_CONST +gtk_combo_get_type gtk_combo_new gtk_combo_set_case_sensitive gtk_combo_set_item_string @@ -1048,7 +1048,7 @@ gtk_container_get_focus_child gtk_container_get_focus_hadjustment gtk_container_get_focus_vadjustment gtk_container_get_resize_mode -gtk_container_get_type G_GNUC_CONST +gtk_container_get_type gtk_container_propagate_expose gtk_container_remove gtk_container_resize_children @@ -1080,7 +1080,7 @@ gtk_ctree_find_by_row_data gtk_ctree_find_by_row_data_custom gtk_ctree_find_node_ptr gtk_ctree_get_node_info -gtk_ctree_get_type G_GNUC_CONST +gtk_ctree_get_type gtk_ctree_insert_gnode gtk_ctree_insert_node gtk_ctree_is_ancestor @@ -1098,7 +1098,7 @@ gtk_ctree_node_get_row_data gtk_ctree_node_get_row_style gtk_ctree_node_get_selectable gtk_ctree_node_get_text -gtk_ctree_node_get_type G_GNUC_CONST +gtk_ctree_node_get_type gtk_ctree_node_is_visible gtk_ctree_node_moveto gtk_ctree_node_nth @@ -1141,7 +1141,7 @@ gtk_ctree_unselect_recursive #if IN_HEADER(__GTK_CURVE_H__) #if IN_FILE(__GTK_CURVE_C__) #ifndef GTK_DISABLE_DEPRECATED -gtk_curve_get_type G_GNUC_CONST +gtk_curve_get_type gtk_curve_get_vector gtk_curve_new gtk_curve_reset @@ -1171,7 +1171,7 @@ gtk_dialog_get_action_area gtk_dialog_get_content_area gtk_dialog_get_widget_for_response gtk_dialog_get_response_for_widget -gtk_dialog_get_type G_GNUC_CONST +gtk_dialog_get_type gtk_dialog_new gtk_dialog_new_with_buttons gtk_dialog_response @@ -1233,7 +1233,7 @@ gtk_drag_unhighlight #if IN_HEADER(__GTK_STATUS_ICON_H__) #if IN_FILE(__GTK_STATUS_ICON_C__) -gtk_status_icon_get_type G_GNUC_CONST +gtk_status_icon_get_type gtk_status_icon_new gtk_status_icon_new_from_pixbuf gtk_status_icon_new_from_file @@ -1332,12 +1332,12 @@ gtk_paint_vline gtk_border_new G_GNUC_MALLOC gtk_border_copy gtk_border_free -gtk_border_get_type G_GNUC_CONST +gtk_border_get_type gtk_style_apply_default_background gtk_style_attach gtk_style_copy gtk_style_detach -gtk_style_get_type G_GNUC_CONST +gtk_style_get_type gtk_style_lookup_icon_set gtk_style_lookup_color gtk_style_new @@ -1352,7 +1352,7 @@ gtk_style_get #if IN_HEADER(__GTK_DRAWING_AREA_H__) #if IN_FILE(__GTK_DRAWING_AREA_C__) -gtk_drawing_area_get_type G_GNUC_CONST +gtk_drawing_area_get_type gtk_drawing_area_new #ifndef GTK_DISABLE_DEPRECATED gtk_drawing_area_size @@ -1370,7 +1370,7 @@ gtk_editable_get_chars gtk_editable_get_editable gtk_editable_get_position gtk_editable_get_selection_bounds -gtk_editable_get_type G_GNUC_CONST +gtk_editable_get_type gtk_editable_insert_text gtk_editable_paste_clipboard gtk_editable_select_region @@ -1409,7 +1409,7 @@ gtk_entry_get_progress_fraction gtk_entry_get_progress_pulse_step gtk_entry_get_text gtk_entry_get_text_length -gtk_entry_get_type G_GNUC_CONST +gtk_entry_get_type gtk_entry_get_visibility gtk_entry_get_width_chars gtk_entry_get_text_window @@ -1470,7 +1470,7 @@ gtk_entry_completion_get_popup_completion gtk_entry_completion_get_popup_set_width gtk_entry_completion_get_popup_single_match gtk_entry_completion_get_text_column -gtk_entry_completion_get_type G_GNUC_CONST +gtk_entry_completion_get_type gtk_entry_completion_insert_action_markup gtk_entry_completion_insert_action_text gtk_entry_completion_insert_prefix @@ -1489,7 +1489,7 @@ gtk_entry_completion_set_text_column #if IN_HEADER(__GTK_ENTRY_BUFFER_H__) #if IN_FILE(__GTK_ENTRY_BUFFER_C__) -gtk_entry_buffer_get_type G_GNUC_CONST +gtk_entry_buffer_get_type gtk_entry_buffer_new gtk_entry_buffer_get_bytes gtk_entry_buffer_get_length @@ -1507,7 +1507,7 @@ gtk_entry_buffer_emit_deleted_text #if IN_HEADER(__GTK_EVENT_BOX_H__) #if IN_FILE(__GTK_EVENT_BOX_C__) gtk_event_box_get_above_child -gtk_event_box_get_type G_GNUC_CONST +gtk_event_box_get_type gtk_event_box_get_visible_window gtk_event_box_new gtk_event_box_set_above_child @@ -1522,7 +1522,7 @@ gtk_expander_get_label gtk_expander_get_label_fill gtk_expander_get_label_widget gtk_expander_get_spacing -gtk_expander_get_type G_GNUC_CONST +gtk_expander_get_type gtk_expander_get_use_markup gtk_expander_get_use_underline gtk_expander_new @@ -1590,7 +1590,7 @@ gtk_file_chooser_set_do_overwrite_confirmation gtk_file_chooser_get_do_overwrite_confirmation gtk_file_chooser_set_create_folders gtk_file_chooser_get_create_folders -gtk_file_chooser_get_type G_GNUC_CONST +gtk_file_chooser_get_type gtk_file_chooser_get_uri gtk_file_chooser_get_uris gtk_file_chooser_get_use_preview_label @@ -1659,7 +1659,7 @@ gtk_file_chooser_unselect_uri #if IN_HEADER(__GTK_FILE_CHOOSER_DIALOG_H__) #if IN_FILE(__GTK_FILE_CHOOSER_DIALOG_C__) -gtk_file_chooser_dialog_get_type G_GNUC_CONST +gtk_file_chooser_dialog_get_type gtk_file_chooser_dialog_new #ifndef GTK_DISABLE_DEPRECATED gtk_file_chooser_dialog_new_with_backend @@ -1669,7 +1669,7 @@ gtk_file_chooser_dialog_new_with_backend #if IN_HEADER(__GTK_FILE_CHOOSER_WIDGET_H__) #if IN_FILE(__GTK_FILE_CHOOSER_WIDGET_C__) -gtk_file_chooser_widget_get_type G_GNUC_CONST +gtk_file_chooser_widget_get_type gtk_file_chooser_widget_new #ifndef GTK_DISABLE_DEPRECATED gtk_file_chooser_widget_new_with_backend @@ -1680,7 +1680,7 @@ gtk_file_chooser_widget_new_with_backend #if IN_HEADER(__GTK_FILE_CHOOSER_BUTTON_H__) #if IN_FILE(__GTK_FILE_CHOOSER_BUTTON_C__) gtk_file_chooser_button_get_title -gtk_file_chooser_button_get_type G_GNUC_CONST +gtk_file_chooser_button_get_type gtk_file_chooser_button_get_width_chars gtk_file_chooser_button_new #ifndef GTK_DISABLE_DEPRECATED @@ -1703,7 +1703,7 @@ gtk_file_filter_add_pixbuf_formats gtk_file_filter_filter gtk_file_filter_get_name gtk_file_filter_get_needed -gtk_file_filter_get_type G_GNUC_CONST +gtk_file_filter_get_type gtk_file_filter_new gtk_file_filter_set_name #endif @@ -1726,7 +1726,7 @@ gtk_file_selection_get_selections PRIVATE gtk_file_selection_get_selections_utf8 #endif gtk_file_selection_get_select_multiple -gtk_file_selection_get_type G_GNUC_CONST +gtk_file_selection_get_type gtk_file_selection_hide_fileop_buttons gtk_file_selection_new #ifndef _WIN64 @@ -1743,7 +1743,7 @@ gtk_file_selection_show_fileop_buttons #if IN_HEADER(__GTK_FIXED_H__) #if IN_FILE(__GTK_FIXED_C__) -gtk_fixed_get_type G_GNUC_CONST +gtk_fixed_get_type gtk_fixed_move gtk_fixed_new gtk_fixed_put @@ -1760,7 +1760,7 @@ gtk_font_button_get_font_name gtk_font_button_get_show_size gtk_font_button_get_show_style gtk_font_button_get_title -gtk_font_button_get_type G_GNUC_CONST +gtk_font_button_get_type gtk_font_button_get_use_font gtk_font_button_get_use_size gtk_font_button_new @@ -1781,7 +1781,7 @@ gtk_font_selection_dialog_get_font_name gtk_font_selection_dialog_get_font_selection gtk_font_selection_dialog_get_ok_button gtk_font_selection_dialog_get_preview_text -gtk_font_selection_dialog_get_type G_GNUC_CONST +gtk_font_selection_dialog_get_type gtk_font_selection_dialog_new gtk_font_selection_dialog_set_font_name gtk_font_selection_dialog_set_preview_text @@ -1800,7 +1800,7 @@ gtk_font_selection_get_preview_text gtk_font_selection_get_size gtk_font_selection_get_size_entry gtk_font_selection_get_size_list -gtk_font_selection_get_type G_GNUC_CONST +gtk_font_selection_get_type gtk_font_selection_new gtk_font_selection_set_font_name gtk_font_selection_set_preview_text @@ -1813,7 +1813,7 @@ gtk_frame_get_label gtk_frame_get_label_align gtk_frame_get_label_widget gtk_frame_get_shadow_type -gtk_frame_get_type G_GNUC_CONST +gtk_frame_get_type gtk_frame_new gtk_frame_set_label gtk_frame_set_label_align @@ -1825,7 +1825,7 @@ gtk_frame_set_shadow_type #if IN_HEADER(__GTK_GAMMA_CURVE_H__) #if IN_FILE(__GTK_GAMMA_CURVE_C__) #ifndef GTK_DISABLE_DEPRECATED -gtk_gamma_curve_get_type G_GNUC_CONST +gtk_gamma_curve_get_type gtk_gamma_curve_new #endif #endif @@ -1844,7 +1844,7 @@ gtk_handle_box_get_handle_position gtk_handle_box_get_shadow_type gtk_handle_box_get_snap_edge gtk_handle_box_get_child_detached -gtk_handle_box_get_type G_GNUC_CONST +gtk_handle_box_get_type gtk_handle_box_new gtk_handle_box_set_handle_position gtk_handle_box_set_shadow_type @@ -1854,7 +1854,7 @@ gtk_handle_box_set_snap_edge #if IN_HEADER(__GTK_HBOX_H__) #if IN_FILE(__GTK_HBOX_C__) -gtk_hbox_get_type G_GNUC_CONST +gtk_hbox_get_type gtk_hbox_new #endif #endif @@ -1862,7 +1862,7 @@ gtk_hbox_new #if IN_HEADER(__GTK_HBUTTON_BOX_H__) #if IN_FILE(__GTK_HBUTTON_BOX_C__) gtk_hbutton_box_new -gtk_hbutton_box_get_type G_GNUC_CONST +gtk_hbutton_box_get_type #ifndef GTK_DISABLE_DEPRECATED gtk_hbutton_box_get_layout_default gtk_hbutton_box_get_spacing_default @@ -1874,7 +1874,7 @@ gtk_hbutton_box_set_spacing_default #if IN_HEADER(__GTK_HPANED_H__) #if IN_FILE(__GTK_HPANED_C__) -gtk_hpaned_get_type G_GNUC_CONST +gtk_hpaned_get_type gtk_hpaned_new #endif #endif @@ -1882,7 +1882,7 @@ gtk_hpaned_new #if IN_HEADER(__GTK_HRULER_H__) #if IN_FILE(__GTK_HRULER_C__) #ifndef GTK_DISABLE_DEPRECATED -gtk_hruler_get_type G_GNUC_CONST +gtk_hruler_get_type gtk_hruler_new #endif #endif @@ -1890,7 +1890,7 @@ gtk_hruler_new #if IN_HEADER(__GTK_HSCALE_H__) #if IN_FILE(__GTK_HSCALE_C__) -gtk_hscale_get_type G_GNUC_CONST +gtk_hscale_get_type gtk_hscale_new gtk_hscale_new_with_range #endif @@ -1898,14 +1898,14 @@ gtk_hscale_new_with_range #if IN_HEADER(__GTK_HSCROLLBAR_H__) #if IN_FILE(__GTK_HSCROLLBAR_C__) -gtk_hscrollbar_get_type G_GNUC_CONST +gtk_hscrollbar_get_type gtk_hscrollbar_new #endif #endif #if IN_HEADER(__GTK_HSEPARATOR_H__) #if IN_FILE(__GTK_HSEPARATOR_C__) -gtk_hseparator_get_type G_GNUC_CONST +gtk_hseparator_get_type gtk_hseparator_new #endif #endif @@ -1914,7 +1914,7 @@ gtk_hseparator_new #if IN_FILE(__GTK_HSV_C__) gtk_hsv_get_color gtk_hsv_get_metrics -gtk_hsv_get_type G_GNUC_CONST +gtk_hsv_get_type gtk_hsv_is_adjusting gtk_hsv_new gtk_hsv_set_color @@ -1928,7 +1928,7 @@ gtk_rgb_to_hsv #if IN_FILE(__GTK_ICON_FACTORY_C__) gtk_icon_factory_add gtk_icon_factory_add_default -gtk_icon_factory_get_type G_GNUC_CONST +gtk_icon_factory_get_type gtk_icon_factory_lookup gtk_icon_factory_lookup_default gtk_icon_factory_new @@ -1942,7 +1942,7 @@ gtk_icon_size_register_alias gtk_icon_set_add_source gtk_icon_set_copy gtk_icon_set_get_sizes -gtk_icon_set_get_type G_GNUC_CONST +gtk_icon_set_get_type gtk_icon_set_new gtk_icon_set_new_from_pixbuf gtk_icon_set_ref @@ -1964,7 +1964,7 @@ gtk_icon_source_get_size gtk_icon_source_get_size_wildcarded gtk_icon_source_get_state gtk_icon_source_get_state_wildcarded -gtk_icon_source_get_type G_GNUC_CONST +gtk_icon_source_get_type gtk_icon_source_new gtk_icon_source_set_direction gtk_icon_source_set_direction_wildcarded @@ -1999,7 +1999,7 @@ gtk_icon_info_get_filename PRIVATE #ifdef G_OS_WIN32 gtk_icon_info_get_filename_utf8 #endif -gtk_icon_info_get_type G_GNUC_CONST +gtk_icon_info_get_type gtk_icon_info_load_icon gtk_icon_info_set_raw_coordinates gtk_icon_theme_add_builtin_icon @@ -2020,7 +2020,7 @@ gtk_icon_theme_get_search_path PRIVATE #ifdef G_OS_WIN32 gtk_icon_theme_get_search_path_utf8 #endif -gtk_icon_theme_get_type G_GNUC_CONST +gtk_icon_theme_get_type gtk_icon_theme_has_icon gtk_icon_theme_list_contexts gtk_icon_theme_list_icons @@ -2068,7 +2068,7 @@ gtk_icon_view_get_selected_items gtk_icon_view_get_selection_mode gtk_icon_view_get_spacing gtk_icon_view_get_text_column -gtk_icon_view_get_type G_GNUC_CONST +gtk_icon_view_get_type gtk_icon_view_get_visible_range gtk_icon_view_item_activated gtk_icon_view_new @@ -2132,7 +2132,7 @@ gtk_image_get_pixmap gtk_image_get_stock gtk_image_get_gicon gtk_image_get_storage_type -gtk_image_get_type G_GNUC_CONST +gtk_image_get_type gtk_image_new gtk_image_new_from_animation #ifndef _WIN64 @@ -2170,7 +2170,7 @@ gtk_image_set_pixel_size #if IN_FILE(__GTK_IMAGE_MENU_ITEM_C__) gtk_image_menu_item_get_always_show_image gtk_image_menu_item_get_image -gtk_image_menu_item_get_type G_GNUC_CONST +gtk_image_menu_item_get_type gtk_image_menu_item_get_use_stock gtk_image_menu_item_new gtk_image_menu_item_new_from_stock @@ -2191,7 +2191,7 @@ gtk_im_context_focus_in gtk_im_context_focus_out gtk_im_context_get_preedit_string gtk_im_context_get_surrounding -gtk_im_context_get_type G_GNUC_CONST +gtk_im_context_get_type gtk_im_context_reset gtk_im_context_set_client_window gtk_im_context_set_cursor_location @@ -2203,7 +2203,7 @@ gtk_im_context_set_use_preedit #if IN_HEADER(__GTK_IM_CONTEXT_SIMPLE_H__) #if IN_FILE(__GTK_IM_CONTEXT_SIMPLE_C__) gtk_im_context_simple_add_table -gtk_im_context_simple_get_type G_GNUC_CONST +gtk_im_context_simple_get_type gtk_im_context_simple_new #endif #endif @@ -2213,7 +2213,7 @@ gtk_im_context_simple_new gtk_im_multicontext_append_menuitems gtk_im_multicontext_get_context_id gtk_im_multicontext_set_context_id -gtk_im_multicontext_get_type G_GNUC_CONST +gtk_im_multicontext_get_type gtk_im_multicontext_new #endif #endif @@ -2221,7 +2221,7 @@ gtk_im_multicontext_new #if IN_HEADER(__GTK_INVISIBLE_H__) #if IN_FILE(__GTK_INVISIBLE_C__) gtk_invisible_get_screen -gtk_invisible_get_type G_GNUC_CONST +gtk_invisible_get_type gtk_invisible_new gtk_invisible_new_for_screen gtk_invisible_set_screen @@ -2230,7 +2230,7 @@ gtk_invisible_set_screen #if IN_HEADER(__GTK_ITEM_H__) #if IN_FILE(__GTK_ITEM_C__) -gtk_item_get_type G_GNUC_CONST +gtk_item_get_type #ifndef GTK_DISABLE_DEPRECATED gtk_item_deselect gtk_item_select @@ -2256,7 +2256,7 @@ gtk_item_factory_from_path gtk_item_factory_from_widget gtk_item_factory_get_item gtk_item_factory_get_item_by_action -gtk_item_factory_get_type G_GNUC_CONST +gtk_item_factory_get_type gtk_item_factory_get_widget gtk_item_factory_get_widget_by_action gtk_item_factory_new @@ -2292,7 +2292,7 @@ gtk_label_get_selectable gtk_label_get_selection_bounds gtk_label_get_single_line_mode gtk_label_get_text -gtk_label_get_type G_GNUC_CONST +gtk_label_get_type gtk_label_get_use_markup gtk_label_get_use_underline gtk_label_get_width_chars @@ -2329,7 +2329,7 @@ gtk_label_get_track_visited_links gtk_layout_get_bin_window gtk_layout_get_hadjustment gtk_layout_get_size -gtk_layout_get_type G_GNUC_CONST +gtk_layout_get_type gtk_layout_get_vadjustment gtk_layout_move gtk_layout_new @@ -2346,7 +2346,7 @@ gtk_layout_thaw #if IN_HEADER(__GTK_LINK_BUTTON_H__) #if IN_FILE(__GTK_LINK_BUTTON_C__) -gtk_link_button_get_type G_GNUC_CONST +gtk_link_button_get_type gtk_link_button_new gtk_link_button_new_with_label gtk_link_button_get_uri @@ -2368,7 +2368,7 @@ gtk_list_clear_items gtk_list_end_drag_selection gtk_list_end_selection gtk_list_extend_selection -gtk_list_get_type G_GNUC_CONST +gtk_list_get_type gtk_list_insert_items gtk_list_new gtk_list_prepend_items @@ -2396,7 +2396,7 @@ gtk_list_unselect_item #if IN_FILE(__GTK_LIST_ITEM_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_list_item_deselect -gtk_list_item_get_type G_GNUC_CONST +gtk_list_item_get_type gtk_list_item_new gtk_list_item_new_with_label gtk_list_item_select @@ -2408,7 +2408,7 @@ gtk_list_item_select #if IN_FILE(__GTK_LIST_STORE_C__) gtk_list_store_append gtk_list_store_clear -gtk_list_store_get_type G_GNUC_CONST +gtk_list_store_get_type gtk_list_store_insert gtk_list_store_insert_after gtk_list_store_insert_before @@ -2492,7 +2492,7 @@ gtk_main_quit #if IN_HEADER(__GTK_INPUTDIALOG_H__) #if IN_FILE(__GTK_INPUTDIALOG_C__) #ifndef GTK_DISABLE_DEPRECATED -gtk_input_dialog_get_type G_GNUC_CONST +gtk_input_dialog_get_type gtk_input_dialog_new #endif #endif @@ -2550,7 +2550,7 @@ gtk_marshal_VOID__VOID #if IN_HEADER(__GTK_MENU_BAR_H__) #if IN_FILE(__GTK_MENU_BAR_C__) -gtk_menu_bar_get_type G_GNUC_CONST +gtk_menu_bar_get_type gtk_menu_bar_new gtk_menu_bar_get_child_pack_direction gtk_menu_bar_set_child_pack_direction @@ -2573,7 +2573,7 @@ gtk_menu_get_for_attach_widget gtk_menu_get_reserve_toggle_size gtk_menu_get_tearoff_state gtk_menu_get_title -gtk_menu_get_type G_GNUC_CONST +gtk_menu_get_type gtk_menu_new gtk_menu_popdown gtk_menu_popup @@ -2598,7 +2598,7 @@ gtk_menu_item_get_accel_path gtk_menu_item_get_label gtk_menu_item_get_right_justified gtk_menu_item_get_submenu -gtk_menu_item_get_type G_GNUC_CONST +gtk_menu_item_get_type gtk_menu_item_get_use_underline gtk_menu_item_new gtk_menu_item_new_with_label @@ -2624,7 +2624,7 @@ gtk_menu_shell_append gtk_menu_shell_cancel gtk_menu_shell_deactivate gtk_menu_shell_deselect -gtk_menu_shell_get_type G_GNUC_CONST +gtk_menu_shell_get_type gtk_menu_shell_insert gtk_menu_shell_prepend gtk_menu_shell_select_first @@ -2637,7 +2637,7 @@ gtk_menu_shell_get_take_focus #if IN_HEADER(__GTK_MENU_TOOL_BUTTON_H__) #if IN_FILE(__GTK_MENU_TOOL_BUTTON_C__) gtk_menu_tool_button_get_menu -gtk_menu_tool_button_get_type G_GNUC_CONST +gtk_menu_tool_button_get_type gtk_menu_tool_button_new gtk_menu_tool_button_new_from_stock #ifndef GTK_DISABLE_DEPRECATED @@ -2654,7 +2654,7 @@ gtk_menu_tool_button_set_menu gtk_message_dialog_format_secondary_markup G_GNUC_PRINTF(2,3) gtk_message_dialog_format_secondary_text G_GNUC_PRINTF(2,3) gtk_message_dialog_get_message_area -gtk_message_dialog_get_type G_GNUC_CONST +gtk_message_dialog_get_type gtk_message_dialog_new G_GNUC_PRINTF(5,6) gtk_message_dialog_new_with_markup G_GNUC_PRINTF(5,6) gtk_message_dialog_set_markup @@ -2667,7 +2667,7 @@ gtk_message_dialog_get_image #if IN_FILE(__GTK_MISC_C__) gtk_misc_get_alignment gtk_misc_get_padding -gtk_misc_get_type G_GNUC_CONST +gtk_misc_get_type gtk_misc_set_alignment gtk_misc_set_padding #endif @@ -2675,7 +2675,7 @@ gtk_misc_set_padding #if IN_HEADER(__GTK_MOUNT_OPERATION_H__) #if IN_FILE(__GTK_MOUNT_OPERATION_C__) -gtk_mount_operation_get_type G_GNUC_CONST +gtk_mount_operation_get_type gtk_mount_operation_new gtk_mount_operation_is_showing gtk_mount_operation_set_parent @@ -2700,7 +2700,7 @@ gtk_notebook_get_show_tabs gtk_notebook_get_tab_label gtk_notebook_get_tab_label_text gtk_notebook_get_tab_pos -gtk_notebook_get_type G_GNUC_CONST +gtk_notebook_get_type gtk_notebook_insert_page gtk_notebook_insert_page_menu gtk_notebook_new @@ -2780,13 +2780,13 @@ gtk_object_set_user_data gtk_object_sink #endif gtk_object_destroy -gtk_object_get_type G_GNUC_CONST +gtk_object_get_type #endif #endif #if IN_HEADER(__GTK_OFFSCREEN_WINDOW_H__) #if IN_FILE(__GTK_OFFSCREEN_WINDOW_C__) -gtk_offscreen_window_get_type G_GNUC_CONST +gtk_offscreen_window_get_type gtk_offscreen_window_new gtk_offscreen_window_get_pixmap gtk_offscreen_window_get_pixbuf @@ -2796,7 +2796,7 @@ gtk_offscreen_window_get_pixbuf #if IN_HEADER(__GTK_ORIENTABLE_H__) #if IN_FILE(__GTK_ORIENTABLE_C__) gtk_orientable_get_orientation -gtk_orientable_get_type G_GNUC_CONST +gtk_orientable_get_type gtk_orientable_set_orientation #endif #endif @@ -2805,7 +2805,7 @@ gtk_orientable_set_orientation #if IN_FILE(__GTK_OLD_EDITABLE_C__) gtk_old_editable_changed gtk_old_editable_claim_selection -gtk_old_editable_get_type G_GNUC_CONST +gtk_old_editable_get_type #endif #endif @@ -2813,7 +2813,7 @@ gtk_old_editable_get_type G_GNUC_CONST #if IN_FILE(__GTK_OPTION_MENU_C__) gtk_option_menu_get_history gtk_option_menu_get_menu -gtk_option_menu_get_type G_GNUC_CONST +gtk_option_menu_get_type gtk_option_menu_new gtk_option_menu_remove_menu gtk_option_menu_set_history @@ -2829,7 +2829,7 @@ gtk_paned_get_child1 gtk_paned_get_child2 gtk_paned_get_handle_window gtk_paned_get_position -gtk_paned_get_type G_GNUC_CONST +gtk_paned_get_type gtk_paned_pack1 gtk_paned_pack2 gtk_paned_set_position @@ -2841,7 +2841,7 @@ gtk_paned_compute_position #if IN_HEADER(__GTK_PATH_BAR_H__) #if IN_FILE(__GTK_PATH_BAR_C__) -gtk_path_bar_get_type G_GNUC_CONST +gtk_path_bar_get_type #endif #endif @@ -2849,7 +2849,7 @@ gtk_path_bar_get_type G_GNUC_CONST #if IN_FILE(__GTK_PIXMAP_C__) #ifndef GTK_DISABLE_DEPRECATED gtk_pixmap_get -gtk_pixmap_get_type G_GNUC_CONST +gtk_pixmap_get_type gtk_pixmap_new gtk_pixmap_set gtk_pixmap_set_build_insensitive @@ -2864,7 +2864,7 @@ gtk_plug_construct_for_display gtk_plug_get_id gtk_plug_get_embedded gtk_plug_get_socket_window -gtk_plug_get_type G_GNUC_CONST +gtk_plug_get_type gtk_plug_new gtk_plug_new_for_display #endif @@ -2876,7 +2876,7 @@ gtk_plug_new_for_display gtk_preview_draw_row gtk_preview_get_cmap gtk_preview_get_info -gtk_preview_get_type G_GNUC_CONST +gtk_preview_get_type gtk_preview_get_visual gtk_preview_new gtk_preview_put @@ -2895,7 +2895,7 @@ gtk_preview_uninit #if IN_HEADER(__GTK_PAGE_SETUP_H__) #if IN_FILE(__GTK_PAGE_SETUP_C__) -gtk_page_setup_get_type G_GNUC_CONST +gtk_page_setup_get_type gtk_page_setup_new gtk_page_setup_new_from_file gtk_page_setup_new_from_key_file @@ -2927,7 +2927,7 @@ gtk_page_setup_get_page_height #if IN_HEADER(__GTK_PAGE_SETUP_UNIX_DIALOG_H__) #if IN_FILE(__GTK_PAGE_SETUP_UNIX_DIALOG_C__) #ifdef G_OS_UNIX -gtk_page_setup_unix_dialog_get_type G_GNUC_CONST +gtk_page_setup_unix_dialog_get_type gtk_page_setup_unix_dialog_new gtk_page_setup_unix_dialog_set_page_setup gtk_page_setup_unix_dialog_get_page_setup @@ -2939,7 +2939,7 @@ gtk_page_setup_unix_dialog_get_print_settings #if IN_HEADER(__GTK_PAPER_SIZE_H__) #if IN_FILE(__GTK_PAPER_SIZE_C__) -gtk_paper_size_get_type G_GNUC_CONST +gtk_paper_size_get_type gtk_paper_size_new gtk_paper_size_new_from_ppd gtk_paper_size_new_custom @@ -2967,7 +2967,7 @@ gtk_paper_size_get_default #if IN_HEADER(__GTK_CUSTOM_PAPER_UNIX_DIALOG_H__) #if IN_FILE(__GTK_CUSTOM_PAPER_UNIX_DIALOG_C__) #ifdef G_OS_UNIX -gtk_custom_paper_unix_dialog_get_type G_GNUC_CONST +gtk_custom_paper_unix_dialog_get_type #endif #endif #endif @@ -2976,7 +2976,7 @@ gtk_custom_paper_unix_dialog_get_type G_GNUC_CONST #if IN_FILE(__GTK_PRINT_BACKEND_C__) #ifdef G_OS_UNIX gtk_print_backend_error_quark -gtk_print_backend_get_type G_GNUC_CONST +gtk_print_backend_get_type gtk_print_backend_add_printer gtk_print_backend_remove_printer gtk_print_backend_set_list_done @@ -2993,7 +2993,7 @@ gtk_print_backend_set_password #if IN_HEADER(__GTK_PRINT_CONTEXT_H__) #if IN_FILE(__GTK_PRINT_CONTEXT_C__) -gtk_print_context_get_type G_GNUC_CONST +gtk_print_context_get_type gtk_print_context_get_cairo_context gtk_print_context_get_page_setup gtk_print_context_get_width @@ -3011,7 +3011,7 @@ gtk_print_context_set_cairo_context #if IN_HEADER(__GTK_PRINTER_H__) #if IN_FILE(__GTK_PRINTER_C__) #ifdef G_OS_UNIX -gtk_printer_get_type G_GNUC_CONST +gtk_printer_get_type gtk_printer_get_backend gtk_printer_get_name gtk_printer_get_description @@ -3030,7 +3030,7 @@ gtk_printer_request_details gtk_printer_get_capabilities gtk_printer_get_hard_margins gtk_enumerate_printers -gtk_print_capabilities_get_type G_GNUC_CONST +gtk_print_capabilities_get_type #endif #endif #endif @@ -3082,7 +3082,7 @@ gtk_printer_option_get_activates_default #if IN_HEADER(__GTK_PRINTER_OPTION_SET_H__) #if IN_FILE(__GTK_PRINTER_OPTION_SET_C__) #ifdef G_OS_UNIX -gtk_printer_option_set_get_type G_GNUC_CONST +gtk_printer_option_set_get_type gtk_printer_option_set_new gtk_printer_option_set_add gtk_printer_option_set_lookup @@ -3098,7 +3098,7 @@ gtk_printer_option_set_foreach_in_group #if IN_HEADER(__GTK_PRINTER_OPTION_WIDGET_H__) #if IN_FILE(__GTK_PRINTER_OPTION_WIDGET_C__) #ifdef G_OS_UNIX -gtk_printer_option_widget_get_type G_GNUC_CONST +gtk_printer_option_widget_get_type gtk_printer_option_widget_new gtk_printer_option_widget_set_source gtk_printer_option_widget_has_external_label @@ -3111,7 +3111,7 @@ gtk_printer_option_widget_get_value #if IN_HEADER(__GTK_PRINT_JOB_H__) #if IN_FILE(__GTK_PRINT_JOB_C__) #ifdef G_OS_UNIX -gtk_print_job_get_type G_GNUC_CONST +gtk_print_job_get_type gtk_print_job_new gtk_print_job_get_settings gtk_print_job_get_printer @@ -3137,7 +3137,7 @@ gtk_print_job_set_status #if IN_HEADER(__GTK_PRINT_OPERATION_H__) #if IN_FILE(__GTK_PRINT_OPERATION_C__) gtk_print_error_quark -gtk_print_operation_get_type G_GNUC_CONST +gtk_print_operation_get_type gtk_print_operation_new gtk_print_operation_set_allow_async gtk_print_operation_set_default_page_setup @@ -3200,7 +3200,7 @@ gtk_print_run_page_setup_dialog_async #if IN_HEADER(__GTK_PRINT_SETTINGS_H__) #if IN_FILE(__GTK_PRINT_SETTINGS_C__) -gtk_print_settings_get_type G_GNUC_CONST +gtk_print_settings_get_type gtk_print_settings_new gtk_print_settings_new_from_file gtk_print_settings_new_from_key_file @@ -3281,7 +3281,7 @@ gtk_print_settings_set_output_bin #if IN_HEADER(__GTK_PRINT_UNIX_DIALOG_H__) #if IN_FILE(__GTK_PRINT_UNIX_DIALOG_C__) #ifdef G_OS_UNIX -gtk_print_unix_dialog_get_type G_GNUC_CONST +gtk_print_unix_dialog_get_type gtk_print_unix_dialog_new gtk_print_unix_dialog_set_page_setup gtk_print_unix_dialog_get_page_setup @@ -3322,7 +3322,7 @@ gtk_progress_bar_get_orientation gtk_progress_bar_get_pulse_step gtk_progress_bar_get_text gtk_progress_bar_get_ellipsize -gtk_progress_bar_get_type G_GNUC_CONST +gtk_progress_bar_get_type gtk_progress_bar_new #ifndef GTK_DISABLE_DEPRECATED gtk_progress_bar_new_with_adjustment @@ -3349,7 +3349,7 @@ gtk_progress_get_current_percentage gtk_progress_get_current_text gtk_progress_get_percentage_from_value gtk_progress_get_text_from_value -gtk_progress_get_type G_GNUC_CONST +gtk_progress_get_type gtk_progress_get_value gtk_progress_set_activity_mode gtk_progress_set_adjustment @@ -3366,7 +3366,7 @@ gtk_progress_set_value #if IN_FILE(__GTK_RADIO_ACTION_C__) gtk_radio_action_get_current_value gtk_radio_action_get_group -gtk_radio_action_get_type G_GNUC_CONST +gtk_radio_action_get_type gtk_radio_action_new gtk_radio_action_set_current_value gtk_radio_action_set_group @@ -3376,7 +3376,7 @@ gtk_radio_action_set_group #if IN_HEADER(__GTK_RADIO_BUTTON_H__) #if IN_FILE(__GTK_RADIO_BUTTON_C__) gtk_radio_button_get_group -gtk_radio_button_get_type G_GNUC_CONST +gtk_radio_button_get_type gtk_radio_button_new gtk_radio_button_new_from_widget gtk_radio_button_new_with_label @@ -3390,7 +3390,7 @@ gtk_radio_button_set_group #if IN_HEADER(__GTK_RADIO_MENU_ITEM_H__) #if IN_FILE(__GTK_RADIO_MENU_ITEM_C__) gtk_radio_menu_item_get_group -gtk_radio_menu_item_get_type G_GNUC_CONST +gtk_radio_menu_item_get_type gtk_radio_menu_item_new gtk_radio_menu_item_new_from_widget gtk_radio_menu_item_new_with_label @@ -3404,7 +3404,7 @@ gtk_radio_menu_item_set_group #if IN_HEADER(__GTK_RADIO_TOOL_BUTTON_H__) #if IN_FILE(__GTK_RADIO_TOOL_BUTTON_C__) gtk_radio_tool_button_get_group -gtk_radio_tool_button_get_type G_GNUC_CONST +gtk_radio_tool_button_get_type gtk_radio_tool_button_new gtk_radio_tool_button_new_from_stock gtk_radio_tool_button_new_from_widget @@ -3426,7 +3426,7 @@ gtk_range_get_restrict_to_fill_level gtk_range_get_show_fill_level gtk_range_get_slider_range gtk_range_get_slider_size_fixed -gtk_range_get_type G_GNUC_CONST +gtk_range_get_type #ifndef GTK_DISABLE_DEPRECATED gtk_range_get_update_policy #endif @@ -3497,7 +3497,7 @@ gtk_rc_set_default_files PRIVATE gtk_rc_set_default_files_utf8 #endif gtk_rc_style_copy -gtk_rc_style_get_type G_GNUC_CONST +gtk_rc_style_get_type gtk_rc_style_new #ifndef GTK_DISABLE_DEPRECATED gtk_rc_style_ref @@ -3508,7 +3508,7 @@ gtk_rc_style_unref #if IN_HEADER(__GTK_RECENT_ACTION_H__) #if IN_FILE(__GTK_RECENT_ACTION_C__) -gtk_recent_action_get_type G_GNUC_CONST +gtk_recent_action_get_type gtk_recent_action_new gtk_recent_action_new_for_manager gtk_recent_action_set_show_numbers @@ -3553,14 +3553,14 @@ gtk_recent_chooser_remove_filter gtk_recent_chooser_list_filters gtk_recent_chooser_set_filter gtk_recent_chooser_get_filter -gtk_recent_chooser_get_type G_GNUC_CONST +gtk_recent_chooser_get_type gtk_recent_chooser_error_quark #endif #endif #if IN_HEADER(__GTK_RECENT_CHOOSER_DIALOG_H__) #if IN_FILE(__GTK_RECENT_CHOOSER_DIALOG_C__) -gtk_recent_chooser_dialog_get_type G_GNUC_CONST +gtk_recent_chooser_dialog_get_type gtk_recent_chooser_dialog_new G_GNUC_NULL_TERMINATED gtk_recent_chooser_dialog_new_for_manager G_GNUC_NULL_TERMINATED #endif @@ -3568,7 +3568,7 @@ gtk_recent_chooser_dialog_new_for_manager G_GNUC_NULL_TERMINATED #if IN_HEADER(__GTK_RECENT_CHOOSER_MENU_H__) #if IN_FILE(__GTK_RECENT_CHOOSER_MENU_C__) -gtk_recent_chooser_menu_get_type G_GNUC_CONST +gtk_recent_chooser_menu_get_type gtk_recent_chooser_menu_new gtk_recent_chooser_menu_new_for_manager gtk_recent_chooser_menu_get_show_numbers @@ -3578,7 +3578,7 @@ gtk_recent_chooser_menu_set_show_numbers #if IN_HEADER(__GTK_RECENT_CHOOSER_WIDGET_H__) #if IN_FILE(__GTK_RECENT_CHOOSER_WIDGET_C__) -gtk_recent_chooser_widget_get_type G_GNUC_CONST +gtk_recent_chooser_widget_get_type gtk_recent_chooser_widget_new gtk_recent_chooser_widget_new_for_manager #endif @@ -3586,7 +3586,7 @@ gtk_recent_chooser_widget_new_for_manager #if IN_HEADER(__GTK_RECENT_FILTER_H__) #if IN_FILE(__GTK_RECENT_FILTER_C__) -gtk_recent_filter_get_type G_GNUC_CONST +gtk_recent_filter_get_type gtk_recent_filter_new gtk_recent_filter_set_name gtk_recent_filter_get_name @@ -3605,7 +3605,7 @@ gtk_recent_filter_filter #if IN_HEADER(__GTK_RECENT_MANAGER_H__) #if IN_FILE(__GTK_RECENT_MANAGER_C__) gtk_recent_manager_error_quark -gtk_recent_manager_get_type G_GNUC_CONST +gtk_recent_manager_get_type gtk_recent_manager_new gtk_recent_manager_get_items gtk_recent_manager_get_default @@ -3622,7 +3622,7 @@ gtk_recent_manager_move_item gtk_recent_manager_set_limit gtk_recent_manager_get_limit gtk_recent_manager_purge_items -gtk_recent_info_get_type G_GNUC_CONST +gtk_recent_info_get_type gtk_recent_info_ref gtk_recent_info_unref gtk_recent_info_get_uri @@ -3694,7 +3694,7 @@ gtk_ruler_draw_pos gtk_ruler_draw_ticks gtk_ruler_get_metric gtk_ruler_get_range -gtk_ruler_get_type G_GNUC_CONST +gtk_ruler_get_type gtk_ruler_set_metric gtk_ruler_set_range #endif @@ -3707,7 +3707,7 @@ gtk_scale_get_digits gtk_scale_get_draw_value gtk_scale_get_layout gtk_scale_get_layout_offsets -gtk_scale_get_type G_GNUC_CONST +gtk_scale_get_type gtk_scale_get_value_pos gtk_scale_set_digits gtk_scale_set_draw_value @@ -3719,7 +3719,7 @@ gtk_scale_clear_marks #if IN_HEADER(__GTK_SCALE_BUTTON_H__) #if IN_FILE(__GTK_SCALE_BUTTON_C__) -gtk_scale_button_get_type G_GNUC_CONST +gtk_scale_button_get_type gtk_scale_button_get_value gtk_scale_button_new gtk_scale_button_set_icons @@ -3738,7 +3738,7 @@ gtk_scale_button_get_popup #if IN_HEADER(__GTK_SCROLLBAR_H__) #if IN_FILE(__GTK_SCROLLBAR_C__) -gtk_scrollbar_get_type G_GNUC_CONST +gtk_scrollbar_get_type #endif #endif @@ -3750,7 +3750,7 @@ gtk_scrolled_window_get_hscrollbar gtk_scrolled_window_get_placement gtk_scrolled_window_get_policy gtk_scrolled_window_get_shadow_type -gtk_scrolled_window_get_type G_GNUC_CONST +gtk_scrolled_window_get_type gtk_scrolled_window_get_vadjustment gtk_scrolled_window_get_vscrollbar gtk_scrolled_window_new @@ -3782,7 +3782,7 @@ gtk_selection_data_get_length gtk_selection_data_get_pixbuf gtk_selection_data_get_targets gtk_selection_data_get_text -gtk_selection_data_get_type G_GNUC_CONST +gtk_selection_data_get_type gtk_selection_data_get_uris gtk_selection_data_set gtk_selection_data_set_pixbuf @@ -3806,7 +3806,7 @@ gtk_target_list_add_table gtk_target_list_add_text_targets gtk_target_list_add_uri_targets gtk_target_list_find -gtk_target_list_get_type G_GNUC_CONST +gtk_target_list_get_type gtk_target_list_new gtk_target_list_ref gtk_target_list_remove @@ -3818,13 +3818,13 @@ gtk_target_table_free #if IN_HEADER(__GTK_SEPARATOR_H__) #if IN_FILE(__GTK_SEPARATOR_C__) -gtk_separator_get_type G_GNUC_CONST +gtk_separator_get_type #endif #endif #if IN_HEADER(__GTK_SEPARATOR_MENU_ITEM_H__) #if IN_FILE(__GTK_SEPARATOR_MENU_ITEM_C__) -gtk_separator_menu_item_get_type G_GNUC_CONST +gtk_separator_menu_item_get_type gtk_separator_menu_item_new #endif #endif @@ -3832,7 +3832,7 @@ gtk_separator_menu_item_new #if IN_HEADER(__GTK_SEPARATOR_TOOL_ITEM_H__) #if IN_FILE(__GTK_SEPARATOR_TOOL_ITEM_C__) gtk_separator_tool_item_get_draw -gtk_separator_tool_item_get_type G_GNUC_CONST +gtk_separator_tool_item_get_type gtk_separator_tool_item_new gtk_separator_tool_item_set_draw #endif @@ -3842,7 +3842,7 @@ gtk_separator_tool_item_set_draw #if IN_FILE(__GTK_SETTINGS_C__) gtk_settings_get_default gtk_settings_get_for_screen -gtk_settings_get_type G_GNUC_CONST +gtk_settings_get_type gtk_settings_install_property gtk_settings_install_property_parser gtk_settings_set_double_property @@ -3880,7 +3880,7 @@ gtk_signal_newv gtk_size_group_add_widget gtk_size_group_get_ignore_hidden gtk_size_group_get_mode -gtk_size_group_get_type G_GNUC_CONST +gtk_size_group_get_type gtk_size_group_get_widgets gtk_size_group_new gtk_size_group_remove_widget @@ -3900,7 +3900,7 @@ gtk_show_uri gtk_socket_add_id gtk_socket_get_id gtk_socket_get_plug_window -gtk_socket_get_type G_GNUC_CONST +gtk_socket_get_type gtk_socket_new #ifndef GTK_DISABLE_DEPRECATED gtk_socket_steal @@ -3917,7 +3917,7 @@ gtk_spin_button_get_increments gtk_spin_button_get_numeric gtk_spin_button_get_range gtk_spin_button_get_snap_to_ticks -gtk_spin_button_get_type G_GNUC_CONST +gtk_spin_button_get_type gtk_spin_button_get_update_policy gtk_spin_button_get_value gtk_spin_button_get_value_as_int @@ -3940,7 +3940,7 @@ gtk_spin_button_update #if IN_HEADER(__GTK_SPINNER_H__) #if IN_FILE(__GTK_SPINNER_C__) -gtk_spinner_get_type G_GNUC_CONST +gtk_spinner_get_type gtk_spinner_new gtk_spinner_start gtk_spinner_stop @@ -3952,7 +3952,7 @@ gtk_spinner_stop gtk_statusbar_get_context_id gtk_statusbar_get_has_resize_grip gtk_statusbar_get_message_area -gtk_statusbar_get_type G_GNUC_CONST +gtk_statusbar_get_type gtk_statusbar_new gtk_statusbar_pop gtk_statusbar_push @@ -3966,7 +3966,7 @@ gtk_statusbar_set_has_resize_grip #if IN_FILE(__GTK_STOCK_C__) gtk_stock_add gtk_stock_add_static -gtk_stock_item_get_type G_GNUC_CONST +gtk_stock_item_get_type gtk_stock_item_copy gtk_stock_item_free gtk_stock_list_ids @@ -3985,7 +3985,7 @@ gtk_table_get_default_row_spacing gtk_table_get_homogeneous gtk_table_get_row_spacing gtk_table_get_size -gtk_table_get_type G_GNUC_CONST +gtk_table_get_type gtk_table_new gtk_table_resize gtk_table_set_col_spacing @@ -3998,7 +3998,7 @@ gtk_table_set_row_spacings #if IN_HEADER(__GTK_TEAROFF_MENU_ITEM_H__) #if IN_FILE(__GTK_TEAROFF_MENU_ITEM_C__) -gtk_tearoff_menu_item_get_type G_GNUC_CONST +gtk_tearoff_menu_item_get_type gtk_tearoff_menu_item_new #endif #endif @@ -4007,13 +4007,13 @@ gtk_tearoff_menu_item_new #if IN_FILE(__GTK_TEXT_TAG_C__) gtk_text_attributes_copy gtk_text_attributes_copy_values -gtk_text_attributes_get_type G_GNUC_CONST +gtk_text_attributes_get_type gtk_text_attributes_new gtk_text_attributes_ref gtk_text_attributes_unref gtk_text_tag_event gtk_text_tag_get_priority -gtk_text_tag_get_type G_GNUC_CONST +gtk_text_tag_get_type gtk_text_tag_new gtk_text_tag_set_priority #endif @@ -4024,7 +4024,7 @@ gtk_text_tag_set_priority gtk_text_tag_table_add gtk_text_tag_table_foreach gtk_text_tag_table_get_size -gtk_text_tag_table_get_type G_GNUC_CONST +gtk_text_tag_table_get_type gtk_text_tag_table_lookup gtk_text_tag_table_new gtk_text_tag_table_remove @@ -4038,7 +4038,7 @@ gtk_text_forward_delete gtk_text_freeze gtk_text_get_length gtk_text_get_point -gtk_text_get_type G_GNUC_CONST +gtk_text_get_type gtk_text_insert gtk_text_new gtk_text_set_adjustments @@ -4091,7 +4091,7 @@ gtk_text_buffer_get_slice gtk_text_buffer_get_start_iter gtk_text_buffer_get_tag_table gtk_text_buffer_get_text -gtk_text_buffer_get_type G_GNUC_CONST +gtk_text_buffer_get_type gtk_text_buffer_insert gtk_text_buffer_insert_at_cursor gtk_text_buffer_insert_child_anchor @@ -4193,7 +4193,7 @@ gtk_text_iter_get_slice gtk_text_iter_get_tags gtk_text_iter_get_text gtk_text_iter_get_toggled_tags -gtk_text_iter_get_type G_GNUC_CONST +gtk_text_iter_get_type gtk_text_iter_get_visible_line_index gtk_text_iter_get_visible_line_offset gtk_text_iter_get_visible_slice @@ -4239,7 +4239,7 @@ gtk_text_layout_get_line_display gtk_text_layout_get_lines gtk_text_layout_get_line_yrange gtk_text_layout_get_size -gtk_text_layout_get_type G_GNUC_CONST +gtk_text_layout_get_type gtk_text_layout_invalidate gtk_text_layout_invalidate_cursors gtk_text_layout_is_valid @@ -4271,7 +4271,7 @@ gtk_text_layout_wrap_loop_start #if IN_HEADER(__GTK_TEXT_CHILD_H__) #if IN_FILE(__GTK_TEXT_CHILD_C__) gtk_text_child_anchor_get_deleted -gtk_text_child_anchor_get_type G_GNUC_CONST +gtk_text_child_anchor_get_type gtk_text_child_anchor_get_widgets gtk_text_child_anchor_new #endif @@ -4305,7 +4305,7 @@ gtk_text_mark_get_buffer gtk_text_mark_get_deleted gtk_text_mark_get_left_gravity gtk_text_mark_get_name -gtk_text_mark_get_type G_GNUC_CONST +gtk_text_mark_get_type gtk_text_mark_get_visible #endif #endif @@ -4346,7 +4346,7 @@ gtk_text_view_get_pixels_below_lines gtk_text_view_get_pixels_inside_wrap gtk_text_view_get_right_margin gtk_text_view_get_tabs -gtk_text_view_get_type G_GNUC_CONST +gtk_text_view_get_type gtk_text_view_get_vadjustment gtk_text_view_get_visible_rect gtk_text_view_get_window @@ -4387,13 +4387,13 @@ gtk_text_view_window_to_buffer_coords #if IN_FILE(__GTK_THEMES_C__) gtk_theme_engine_create_rc_style gtk_theme_engine_get -gtk_theme_engine_get_type G_GNUC_CONST +gtk_theme_engine_get_type #endif #endif #if IN_HEADER(__GTK_TIPS_QUERY_H__) #if IN_FILE(__GTK_TIPS_QUERY_C__) -gtk_tips_query_get_type G_GNUC_CONST +gtk_tips_query_get_type gtk_tips_query_new gtk_tips_query_set_caller gtk_tips_query_set_labels @@ -4406,7 +4406,7 @@ gtk_tips_query_stop_query #if IN_FILE(__GTK_TOGGLE_ACTION_C__) gtk_toggle_action_get_active gtk_toggle_action_get_draw_as_radio -gtk_toggle_action_get_type G_GNUC_CONST +gtk_toggle_action_get_type gtk_toggle_action_new gtk_toggle_action_set_active gtk_toggle_action_set_draw_as_radio @@ -4419,7 +4419,7 @@ gtk_toggle_action_toggled gtk_toggle_button_get_active gtk_toggle_button_get_inconsistent gtk_toggle_button_get_mode -gtk_toggle_button_get_type G_GNUC_CONST +gtk_toggle_button_get_type gtk_toggle_button_new gtk_toggle_button_new_with_label gtk_toggle_button_new_with_mnemonic @@ -4433,7 +4433,7 @@ gtk_toggle_button_toggled #if IN_HEADER(__GTK_TOGGLE_TOOL_BUTTON_H__) #if IN_FILE(__GTK_TOGGLE_TOOL_BUTTON_C__) gtk_toggle_tool_button_get_active -gtk_toggle_tool_button_get_type G_GNUC_CONST +gtk_toggle_tool_button_get_type gtk_toggle_tool_button_new gtk_toggle_tool_button_new_from_stock gtk_toggle_tool_button_set_active @@ -4474,7 +4474,7 @@ gtk_toolbar_get_style #ifndef GTK_DISABLE_DEPRECATED gtk_toolbar_get_tooltips #endif -gtk_toolbar_get_type G_GNUC_CONST +gtk_toolbar_get_type gtk_toolbar_insert gtk_toolbar_new gtk_toolbar_set_drop_highlight_item @@ -4492,7 +4492,7 @@ gtk_toolbar_unset_style #if IN_HEADER(__GTK_TOOL_SHELL_H__) #if IN_FILE(__GTK_TOOL_SHELL_C__) -gtk_tool_shell_get_type G_GNUC_CONST +gtk_tool_shell_get_type gtk_tool_shell_get_ellipsize_mode gtk_tool_shell_get_icon_size gtk_tool_shell_get_orientation @@ -4512,7 +4512,7 @@ gtk_tool_button_get_icon_widget gtk_tool_button_get_label gtk_tool_button_get_label_widget gtk_tool_button_get_stock_id -gtk_tool_button_get_type G_GNUC_CONST +gtk_tool_button_get_type gtk_tool_button_get_use_underline gtk_tool_button_new gtk_tool_button_new_from_stock @@ -4539,7 +4539,7 @@ gtk_tool_item_get_text_alignment gtk_tool_item_get_text_orientation gtk_tool_item_get_text_size_group gtk_tool_item_get_toolbar_style -gtk_tool_item_get_type G_GNUC_CONST +gtk_tool_item_get_type gtk_tool_item_get_use_drag_window gtk_tool_item_get_visible_horizontal gtk_tool_item_get_visible_vertical @@ -4564,7 +4564,7 @@ gtk_tool_item_toolbar_reconfigured #if IN_HEADER(__GTK_TOOL_ITEM_GROUP_H__) #if IN_FILE(__GTK_TOOL_ITEM_GROUP_C__) -gtk_tool_item_group_get_type G_GNUC_CONST +gtk_tool_item_group_get_type gtk_tool_item_group_new gtk_tool_item_group_set_label gtk_tool_item_group_set_label_widget @@ -4587,7 +4587,7 @@ gtk_tool_item_group_get_collapsed #if IN_HEADER(__GTK_TOOL_PALETTE_H__) #if IN_FILE(__GTK_TOOL_PALETTE_C__) -gtk_tool_palette_get_type G_GNUC_CONST +gtk_tool_palette_get_type gtk_tool_palette_new gtk_tool_palette_set_group_position gtk_tool_palette_set_exclusive @@ -4615,7 +4615,7 @@ gtk_tool_palette_get_drag_target_group G_GNUC_CONST #if IN_HEADER(__GTK_TOOLTIP_H__) #if IN_FILE(__GTK_TOOLTIP_C__) -gtk_tooltip_get_type G_GNUC_CONST +gtk_tooltip_get_type gtk_tooltip_set_custom gtk_tooltip_set_icon gtk_tooltip_set_icon_from_stock @@ -4636,7 +4636,7 @@ gtk_tooltips_disable gtk_tooltips_enable gtk_tooltips_force_window gtk_tooltips_get_info_from_tip_window -gtk_tooltips_get_type G_GNUC_CONST +gtk_tooltips_get_type gtk_tooltips_new gtk_tooltips_set_delay gtk_tooltips_set_tip @@ -4647,7 +4647,7 @@ gtk_tooltips_set_tip #if IN_HEADER(__GTK_TRAY_ICON_H__) #if IN_FILE(__GTK_TRAY_ICON_X11_C__) #ifndef G_OS_WIN32 -gtk_tray_icon_get_type G_GNUC_CONST +gtk_tray_icon_get_type #endif #endif #endif @@ -4657,7 +4657,7 @@ gtk_tray_icon_get_type G_GNUC_CONST gtk_tree_append gtk_tree_child_position gtk_tree_clear_items -gtk_tree_get_type G_GNUC_CONST +gtk_tree_get_type gtk_tree_insert gtk_tree_prepend gtk_tree_remove_item @@ -4676,11 +4676,11 @@ gtk_tree_new #if IN_HEADER(__GTK_TREE_DND_H__) #if IN_FILE(__GTK_TREE_DND_C__) gtk_tree_drag_dest_drag_data_received -gtk_tree_drag_dest_get_type G_GNUC_CONST +gtk_tree_drag_dest_get_type gtk_tree_drag_dest_row_drop_possible gtk_tree_drag_source_drag_data_delete gtk_tree_drag_source_drag_data_get -gtk_tree_drag_source_get_type G_GNUC_CONST +gtk_tree_drag_source_get_type gtk_tree_drag_source_row_draggable gtk_tree_get_row_drag_data gtk_tree_set_row_drag_data @@ -4692,7 +4692,7 @@ gtk_tree_set_row_drag_data gtk_tree_item_collapse gtk_tree_item_deselect gtk_tree_item_expand -gtk_tree_item_get_type G_GNUC_CONST +gtk_tree_item_get_type gtk_tree_item_new gtk_tree_item_new_with_label gtk_tree_item_remove_subtree @@ -4705,7 +4705,7 @@ gtk_tree_item_set_subtree #if IN_FILE(__GTK_TREE_MODEL_C__) gtk_tree_iter_copy gtk_tree_iter_free -gtk_tree_iter_get_type G_GNUC_CONST +gtk_tree_iter_get_type gtk_tree_model_foreach gtk_tree_model_get gtk_tree_model_get_column_type @@ -4716,7 +4716,7 @@ gtk_tree_model_get_iter_from_string gtk_tree_model_get_n_columns gtk_tree_model_get_path gtk_tree_model_get_string_from_iter -gtk_tree_model_get_type G_GNUC_CONST +gtk_tree_model_get_type gtk_tree_model_get_valist gtk_tree_model_get_value gtk_tree_model_iter_children @@ -4740,7 +4740,7 @@ gtk_tree_path_free gtk_tree_path_get_depth gtk_tree_path_get_indices gtk_tree_path_get_indices_with_depth -gtk_tree_path_get_type G_GNUC_CONST +gtk_tree_path_get_type gtk_tree_path_is_ancestor gtk_tree_path_is_descendant gtk_tree_path_new @@ -4757,7 +4757,7 @@ gtk_tree_row_reference_deleted gtk_tree_row_reference_free gtk_tree_row_reference_get_model gtk_tree_row_reference_get_path -gtk_tree_row_reference_get_type G_GNUC_CONST +gtk_tree_row_reference_get_type gtk_tree_row_reference_inserted gtk_tree_row_reference_new gtk_tree_row_reference_new_proxy @@ -4774,7 +4774,7 @@ gtk_tree_model_sort_convert_child_path_to_path gtk_tree_model_sort_convert_iter_to_child_iter gtk_tree_model_sort_convert_path_to_child_path gtk_tree_model_sort_get_model -gtk_tree_model_sort_get_type G_GNUC_CONST +gtk_tree_model_sort_get_type gtk_tree_model_sort_iter_is_valid gtk_tree_model_sort_new_with_model gtk_tree_model_sort_reset_default_sort_func @@ -4789,7 +4789,7 @@ gtk_tree_model_filter_convert_child_path_to_path gtk_tree_model_filter_convert_iter_to_child_iter gtk_tree_model_filter_convert_path_to_child_path gtk_tree_model_filter_get_model -gtk_tree_model_filter_get_type G_GNUC_CONST +gtk_tree_model_filter_get_type gtk_tree_model_filter_new gtk_tree_model_filter_refilter gtk_tree_model_filter_set_modify_func @@ -4806,7 +4806,7 @@ gtk_tree_selection_get_select_function gtk_tree_selection_get_selected gtk_tree_selection_get_selected_rows gtk_tree_selection_get_tree_view -gtk_tree_selection_get_type G_GNUC_CONST +gtk_tree_selection_get_type gtk_tree_selection_get_user_data gtk_tree_selection_iter_is_selected gtk_tree_selection_path_is_selected @@ -4827,7 +4827,7 @@ gtk_tree_selection_unselect_range #if IN_HEADER(__GTK_TREE_SORTABLE_H__) #if IN_FILE(__GTK_TREE_SORTABLE_C__) gtk_tree_sortable_get_sort_column_id -gtk_tree_sortable_get_type G_GNUC_CONST +gtk_tree_sortable_get_type gtk_tree_sortable_has_default_sort_func gtk_tree_sortable_set_default_sort_func gtk_tree_sortable_set_sort_column_id @@ -4840,7 +4840,7 @@ gtk_tree_sortable_sort_column_changed #if IN_FILE(__GTK_TREE_STORE_C__) gtk_tree_store_append gtk_tree_store_clear -gtk_tree_store_get_type G_GNUC_CONST +gtk_tree_store_get_type gtk_tree_store_insert gtk_tree_store_insert_after gtk_tree_store_insert_before @@ -4894,7 +4894,7 @@ gtk_tree_view_column_get_sort_order gtk_tree_view_column_get_spacing gtk_tree_view_column_get_title gtk_tree_view_column_get_tree_view -gtk_tree_view_column_get_type G_GNUC_CONST +gtk_tree_view_column_get_type gtk_tree_view_column_get_visible gtk_tree_view_column_get_widget gtk_tree_view_column_get_width @@ -4974,7 +4974,7 @@ gtk_tree_view_get_selection gtk_tree_view_get_show_expanders gtk_tree_view_get_tooltip_column gtk_tree_view_get_tooltip_context -gtk_tree_view_get_type G_GNUC_CONST +gtk_tree_view_get_type gtk_tree_view_get_vadjustment gtk_tree_view_get_visible_range gtk_tree_view_get_visible_rect @@ -5035,7 +5035,7 @@ gtk_tree_view_columns_autosize #if IN_HEADER(__GTK_TYPE_UTILS_H__) #if IN_FILE(__GTK_TYPE_UTILS_C__) -gtk_identifier_get_type G_GNUC_CONST +gtk_identifier_get_type #ifndef GTK_DISABLE_DEPRECATED gtk_type_enum_find_value gtk_type_enum_get_values @@ -5065,7 +5065,7 @@ gtk_ui_manager_get_action gtk_ui_manager_get_action_groups gtk_ui_manager_get_add_tearoffs gtk_ui_manager_get_toplevels -gtk_ui_manager_get_type G_GNUC_CONST +gtk_ui_manager_get_type gtk_ui_manager_get_ui gtk_ui_manager_get_widget gtk_ui_manager_insert_action_group @@ -5079,7 +5079,7 @@ gtk_ui_manager_set_add_tearoffs #if IN_HEADER(__GTK_VBOX_H__) #if IN_FILE(__GTK_VBOX_C__) -gtk_vbox_get_type G_GNUC_CONST +gtk_vbox_get_type gtk_vbox_new #endif #endif @@ -5092,7 +5092,7 @@ gtk_vbutton_box_get_spacing_default gtk_vbutton_box_set_layout_default gtk_vbutton_box_set_spacing_default #endif -gtk_vbutton_box_get_type G_GNUC_CONST +gtk_vbutton_box_get_type gtk_vbutton_box_new #endif #endif @@ -5101,7 +5101,7 @@ gtk_vbutton_box_new #if IN_FILE(__GTK_VIEWPORT_C__) gtk_viewport_get_hadjustment gtk_viewport_get_shadow_type -gtk_viewport_get_type G_GNUC_CONST +gtk_viewport_get_type gtk_viewport_get_vadjustment gtk_viewport_get_bin_window gtk_viewport_get_view_window @@ -5114,14 +5114,14 @@ gtk_viewport_set_vadjustment #if IN_HEADER(__GTK_VOLUME_BUTTON_H__) #if IN_FILE(__GTK_VOLUME_BUTTON_C__) -gtk_volume_button_get_type G_GNUC_CONST +gtk_volume_button_get_type gtk_volume_button_new #endif #endif #if IN_HEADER(__GTK_VPANED_H__) #if IN_FILE(__GTK_VPANED_C__) -gtk_vpaned_get_type G_GNUC_CONST +gtk_vpaned_get_type gtk_vpaned_new #endif #endif @@ -5129,7 +5129,7 @@ gtk_vpaned_new #if IN_HEADER(__GTK_VRULER_H__) #if IN_FILE(__GTK_VRULER_C__) #ifndef GTK_DISABLE_DEPRECATED -gtk_vruler_get_type G_GNUC_CONST +gtk_vruler_get_type gtk_vruler_new #endif #endif @@ -5137,7 +5137,7 @@ gtk_vruler_new #if IN_HEADER(__GTK_VSCALE_H__) #if IN_FILE(__GTK_VSCALE_C__) -gtk_vscale_get_type G_GNUC_CONST +gtk_vscale_get_type gtk_vscale_new gtk_vscale_new_with_range #endif @@ -5145,14 +5145,14 @@ gtk_vscale_new_with_range #if IN_HEADER(__GTK_VSCROLLBAR_H__) #if IN_FILE(__GTK_VSCROLLBAR_C__) -gtk_vscrollbar_get_type G_GNUC_CONST +gtk_vscrollbar_get_type gtk_vscrollbar_new #endif #endif #if IN_HEADER(__GTK_VSEPARATOR_H__) #if IN_FILE(__GTK_VSEPARATOR_C__) -gtk_vseparator_get_type G_GNUC_CONST +gtk_vseparator_get_type gtk_vseparator_new #endif #endif @@ -5161,7 +5161,7 @@ gtk_vseparator_new #if IN_FILE(__GTK_WIDGET_C__) gtk_requisition_copy gtk_requisition_free -gtk_requisition_get_type G_GNUC_CONST +gtk_requisition_get_type gtk_widget_activate gtk_widget_is_composited gtk_widget_add_accelerator @@ -5223,7 +5223,7 @@ gtk_widget_get_tooltip_markup gtk_widget_get_tooltip_text gtk_widget_get_tooltip_window gtk_widget_get_toplevel -gtk_widget_get_type G_GNUC_CONST +gtk_widget_get_type gtk_widget_get_visible gtk_widget_get_visual gtk_widget_grab_default @@ -5384,11 +5384,11 @@ gtk_window_get_skip_taskbar_hint gtk_window_get_urgency_hint gtk_window_get_title gtk_window_get_transient_for -gtk_window_get_type G_GNUC_CONST +gtk_window_get_type gtk_window_get_type_hint gtk_window_get_window_type gtk_window_group_add_window -gtk_window_group_get_type G_GNUC_CONST +gtk_window_group_get_type gtk_window_group_new gtk_window_group_remove_window gtk_window_group_list_windows @@ -5478,14 +5478,14 @@ gtk_window_unstick #if IN_HEADER(__GTK_WIN32_EMBED_WIDGET_H__) #if IN_FILE(__GTK_WIN32_EMBED_WIDGET_C__) #ifdef G_OS_WIN32 -gtk_win32_embed_widget_get_type G_GNUC_CONST +gtk_win32_embed_widget_get_type #endif #endif #endif #if IN_HEADER(__GTK_INFO_BAR_H__) #if IN_FILE(__GTK_INFO_BAR_C__) -gtk_info_bar_get_type G_GNUC_CONST +gtk_info_bar_get_type gtk_info_bar_new gtk_info_bar_new_with_buttons gtk_info_bar_get_action_area diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h index 3b61866f3..6d6c8cab2 100644 --- a/gtk/gtkaboutdialog.h +++ b/gtk/gtkaboutdialog.h @@ -70,7 +70,7 @@ struct _GtkAboutDialogClass void (*_gtk_reserved3) (void); }; -GType gtk_about_dialog_get_type (void) G_GNUC_CONST; +GType gtk_about_dialog_get_type (void); GtkWidget *gtk_about_dialog_new (void); void gtk_show_about_dialog (GtkWindow *parent, const gchar *first_property_name, diff --git a/gtk/gtkaccelgroup.h b/gtk/gtkaccelgroup.h index 14652f18b..a3b374e2b 100644 --- a/gtk/gtkaccelgroup.h +++ b/gtk/gtkaccelgroup.h @@ -119,7 +119,7 @@ struct _GtkAccelKey /* -- Accelerator Groups --- */ -GType gtk_accel_group_get_type (void) G_GNUC_CONST; +GType gtk_accel_group_get_type (void); GtkAccelGroup* gtk_accel_group_new (void); gboolean gtk_accel_group_get_is_locked (GtkAccelGroup *accel_group); GdkModifierType diff --git a/gtk/gtkaccellabel.h b/gtk/gtkaccellabel.h index ef9f6b6e5..8dfe0e7b1 100644 --- a/gtk/gtkaccellabel.h +++ b/gtk/gtkaccellabel.h @@ -94,7 +94,7 @@ struct _GtkAccelLabelClass #define gtk_accel_label_accelerator_width gtk_accel_label_get_accel_width #endif /* GTK_DISABLE_DEPRECATED */ -GType gtk_accel_label_get_type (void) G_GNUC_CONST; +GType gtk_accel_label_get_type (void); GtkWidget* gtk_accel_label_new (const gchar *string); GtkWidget* gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label); guint gtk_accel_label_get_accel_width (GtkAccelLabel *accel_label); diff --git a/gtk/gtkaccelmap.h b/gtk/gtkaccelmap.h index 19b573da0..663884488 100644 --- a/gtk/gtkaccelmap.h +++ b/gtk/gtkaccelmap.h @@ -82,7 +82,7 @@ void gtk_accel_map_foreach_unfiltered (gpointer data, GtkAccelMapForeach foreach_func); /* --- notification --- */ -GType gtk_accel_map_get_type (void) G_GNUC_CONST; +GType gtk_accel_map_get_type (void); GtkAccelMap *gtk_accel_map_get (void); diff --git a/gtk/gtkaccessible.h b/gtk/gtkaccessible.h index f538af429..1e8ac0a8b 100644 --- a/gtk/gtkaccessible.h +++ b/gtk/gtkaccessible.h @@ -66,7 +66,7 @@ struct _GtkAccessibleClass void (*_gtk_reserved4) (void); }; -GType gtk_accessible_get_type (void) G_GNUC_CONST; +GType gtk_accessible_get_type (void); void gtk_accessible_set_widget (GtkAccessible *accessible, GtkWidget *widget); diff --git a/gtk/gtkaction.h b/gtk/gtkaction.h index 2fe85e635..f13cbe96f 100644 --- a/gtk/gtkaction.h +++ b/gtk/gtkaction.h @@ -85,7 +85,7 @@ struct _GtkActionClass void (*_gtk_reserved4) (void); }; -GType gtk_action_get_type (void) G_GNUC_CONST; +GType gtk_action_get_type (void); GtkAction *gtk_action_new (const gchar *name, const gchar *label, const gchar *tooltip, diff --git a/gtk/gtkactiongroup.h b/gtk/gtkactiongroup.h index 05a90edd6..1e97bf609 100644 --- a/gtk/gtkactiongroup.h +++ b/gtk/gtkactiongroup.h @@ -108,7 +108,7 @@ struct _GtkRadioActionEntry gint value; }; -GType gtk_action_group_get_type (void) G_GNUC_CONST; +GType gtk_action_group_get_type (void); GtkActionGroup *gtk_action_group_new (const gchar *name); const gchar *gtk_action_group_get_name (GtkActionGroup *action_group); gboolean gtk_action_group_get_sensitive (GtkActionGroup *action_group); diff --git a/gtk/gtkactivatable.h b/gtk/gtkactivatable.h index 94114923c..6d9279ca9 100644 --- a/gtk/gtkactivatable.h +++ b/gtk/gtkactivatable.h @@ -66,7 +66,7 @@ struct _GtkActivatableIface }; -GType gtk_activatable_get_type (void) G_GNUC_CONST; +GType gtk_activatable_get_type (void); void gtk_activatable_sync_action_properties (GtkActivatable *activatable, GtkAction *action); diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h index f79179bbc..a03741271 100644 --- a/gtk/gtkadjustment.h +++ b/gtk/gtkadjustment.h @@ -75,7 +75,7 @@ struct _GtkAdjustmentClass }; -GType gtk_adjustment_get_type (void) G_GNUC_CONST; +GType gtk_adjustment_get_type (void); GtkObject* gtk_adjustment_new (gdouble value, gdouble lower, gdouble upper, diff --git a/gtk/gtkalignment.h b/gtk/gtkalignment.h index 086a2f4bc..c1e5067c1 100644 --- a/gtk/gtkalignment.h +++ b/gtk/gtkalignment.h @@ -65,7 +65,7 @@ struct _GtkAlignmentClass }; -GType gtk_alignment_get_type (void) G_GNUC_CONST; +GType gtk_alignment_get_type (void); GtkWidget* gtk_alignment_new (gfloat xalign, gfloat yalign, gfloat xscale, diff --git a/gtk/gtkarrow.h b/gtk/gtkarrow.h index a0ef78a72..a451400b9 100644 --- a/gtk/gtkarrow.h +++ b/gtk/gtkarrow.h @@ -63,7 +63,7 @@ struct _GtkArrowClass }; -GType gtk_arrow_get_type (void) G_GNUC_CONST; +GType gtk_arrow_get_type (void); GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, GtkShadowType shadow_type); void gtk_arrow_set (GtkArrow *arrow, diff --git a/gtk/gtkaspectframe.h b/gtk/gtkaspectframe.h index c149477f0..af820d166 100644 --- a/gtk/gtkaspectframe.h +++ b/gtk/gtkaspectframe.h @@ -66,7 +66,7 @@ struct _GtkAspectFrameClass }; -GType gtk_aspect_frame_get_type (void) G_GNUC_CONST; +GType gtk_aspect_frame_get_type (void); GtkWidget* gtk_aspect_frame_new (const gchar *label, gfloat xalign, gfloat yalign, diff --git a/gtk/gtkassistant.h b/gtk/gtkassistant.h index 0de0856b0..59f1b69bd 100644 --- a/gtk/gtkassistant.h +++ b/gtk/gtkassistant.h @@ -119,7 +119,7 @@ struct _GtkAssistantClass */ typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data); -GType gtk_assistant_get_type (void) G_GNUC_CONST; +GType gtk_assistant_get_type (void); GtkWidget *gtk_assistant_new (void); gint gtk_assistant_get_current_page (GtkAssistant *assistant); void gtk_assistant_set_current_page (GtkAssistant *assistant, diff --git a/gtk/gtkbbox.h b/gtk/gtkbbox.h index 32799ca1e..92e59789f 100644 --- a/gtk/gtkbbox.h +++ b/gtk/gtkbbox.h @@ -65,7 +65,7 @@ struct _GtkButtonBoxClass }; -GType gtk_button_box_get_type (void) G_GNUC_CONST; +GType gtk_button_box_get_type (void); GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget); void gtk_button_box_set_layout (GtkButtonBox *widget, diff --git a/gtk/gtkbin.h b/gtk/gtkbin.h index 1366f7bed..72fe30a8b 100644 --- a/gtk/gtkbin.h +++ b/gtk/gtkbin.h @@ -61,7 +61,7 @@ struct _GtkBinClass }; -GType gtk_bin_get_type (void) G_GNUC_CONST; +GType gtk_bin_get_type (void); GtkWidget *gtk_bin_get_child (GtkBin *bin); diff --git a/gtk/gtkbox.h b/gtk/gtkbox.h index 6967687cd..ead2ba7dc 100644 --- a/gtk/gtkbox.h +++ b/gtk/gtkbox.h @@ -101,7 +101,7 @@ struct _GtkBoxChild }; #endif -GType gtk_box_get_type (void) G_GNUC_CONST; +GType gtk_box_get_type (void); GtkWidget* _gtk_box_new (GtkOrientation orientation, gboolean homogeneous, gint spacing); diff --git a/gtk/gtkbuildable.h b/gtk/gtkbuildable.h index 78a46173d..67fd41c66 100644 --- a/gtk/gtkbuildable.h +++ b/gtk/gtkbuildable.h @@ -133,7 +133,7 @@ struct _GtkBuildableIface }; -GType gtk_buildable_get_type (void) G_GNUC_CONST; +GType gtk_buildable_get_type (void); void gtk_buildable_set_name (GtkBuildable *buildable, const gchar *name); diff --git a/gtk/gtkbuilder.h b/gtk/gtkbuilder.h index 513d98756..6a60f0e9a 100644 --- a/gtk/gtkbuilder.h +++ b/gtk/gtkbuilder.h @@ -91,7 +91,7 @@ typedef void (*GtkBuilderConnectFunc) (GtkBuilder *builder, GConnectFlags flags, gpointer user_data); -GType gtk_builder_get_type (void) G_GNUC_CONST; +GType gtk_builder_get_type (void); GtkBuilder* gtk_builder_new (void); guint gtk_builder_add_from_file (GtkBuilder *builder, diff --git a/gtk/gtkbutton.h b/gtk/gtkbutton.h index 7ffb0c745..2c8a207ba 100644 --- a/gtk/gtkbutton.h +++ b/gtk/gtkbutton.h @@ -88,7 +88,7 @@ struct _GtkButtonClass }; -GType gtk_button_get_type (void) G_GNUC_CONST; +GType gtk_button_get_type (void); GtkWidget* gtk_button_new (void); GtkWidget* gtk_button_new_with_label (const gchar *label); GtkWidget* gtk_button_new_from_stock (const gchar *stock_id); diff --git a/gtk/gtkcalendar.h b/gtk/gtkcalendar.h index 722e0b8b8..3fccdff57 100644 --- a/gtk/gtkcalendar.h +++ b/gtk/gtkcalendar.h @@ -156,7 +156,7 @@ struct _GtkCalendarClass }; -GType gtk_calendar_get_type (void) G_GNUC_CONST; +GType gtk_calendar_get_type (void); GtkWidget* gtk_calendar_new (void); gboolean gtk_calendar_select_month (GtkCalendar *calendar, diff --git a/gtk/gtkcelleditable.h b/gtk/gtkcelleditable.h index 9d5a6332e..39bd5a0b2 100644 --- a/gtk/gtkcelleditable.h +++ b/gtk/gtkcelleditable.h @@ -51,7 +51,7 @@ struct _GtkCellEditableIface }; -GType gtk_cell_editable_get_type (void) G_GNUC_CONST; +GType gtk_cell_editable_get_type (void); void gtk_cell_editable_start_editing (GtkCellEditable *cell_editable, GdkEvent *event); diff --git a/gtk/gtkcelllayout.h b/gtk/gtkcelllayout.h index 828105c9e..e1f257ef4 100644 --- a/gtk/gtkcelllayout.h +++ b/gtk/gtkcelllayout.h @@ -75,7 +75,7 @@ struct _GtkCellLayoutIface GList* (* get_cells) (GtkCellLayout *cell_layout); }; -GType gtk_cell_layout_get_type (void) G_GNUC_CONST; +GType gtk_cell_layout_get_type (void); void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand); diff --git a/gtk/gtkcellrenderer.h b/gtk/gtkcellrenderer.h index c4831f960..bc70c0844 100644 --- a/gtk/gtkcellrenderer.h +++ b/gtk/gtkcellrenderer.h @@ -122,7 +122,7 @@ struct _GtkCellRendererClass void (*_gtk_reserved2) (void); }; -GType gtk_cell_renderer_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_get_type (void); void gtk_cell_renderer_get_size (GtkCellRenderer *cell, GtkWidget *widget, diff --git a/gtk/gtkcellrendereraccel.h b/gtk/gtkcellrendereraccel.h index 905882a94..7353b1d0c 100644 --- a/gtk/gtkcellrendereraccel.h +++ b/gtk/gtkcellrendereraccel.h @@ -82,7 +82,7 @@ struct _GtkCellRendererAccelClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_accel_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_accel_get_type (void); GtkCellRenderer *gtk_cell_renderer_accel_new (void); diff --git a/gtk/gtkcellrenderercombo.h b/gtk/gtkcellrenderercombo.h index acd2109ff..2975cb9c0 100644 --- a/gtk/gtkcellrenderercombo.h +++ b/gtk/gtkcellrenderercombo.h @@ -56,7 +56,7 @@ struct _GtkCellRendererComboClass GtkCellRendererTextClass parent; }; -GType gtk_cell_renderer_combo_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_combo_get_type (void); GtkCellRenderer *gtk_cell_renderer_combo_new (void); G_END_DECLS diff --git a/gtk/gtkcellrendererpixbuf.h b/gtk/gtkcellrendererpixbuf.h index 581d6a692..05d390ea6 100644 --- a/gtk/gtkcellrendererpixbuf.h +++ b/gtk/gtkcellrendererpixbuf.h @@ -61,7 +61,7 @@ struct _GtkCellRendererPixbufClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_pixbuf_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_pixbuf_get_type (void); GtkCellRenderer *gtk_cell_renderer_pixbuf_new (void); diff --git a/gtk/gtkcellrendererprogress.h b/gtk/gtkcellrendererprogress.h index b9043cfa8..d95362ad0 100644 --- a/gtk/gtkcellrendererprogress.h +++ b/gtk/gtkcellrendererprogress.h @@ -66,7 +66,7 @@ struct _GtkCellRendererProgressClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_progress_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_progress_get_type (void); GtkCellRenderer* gtk_cell_renderer_progress_new (void); G_END_DECLS diff --git a/gtk/gtkcellrendererspinner.h b/gtk/gtkcellrendererspinner.h index 7a9dc276b..17c0febb7 100644 --- a/gtk/gtkcellrendererspinner.h +++ b/gtk/gtkcellrendererspinner.h @@ -59,7 +59,7 @@ struct _GtkCellRendererSpinnerClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_spinner_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_spinner_get_type (void); GtkCellRenderer *gtk_cell_renderer_spinner_new (void); G_END_DECLS diff --git a/gtk/gtkcellrenderertext.h b/gtk/gtkcellrenderertext.h index 1156bf382..21ad88f49 100644 --- a/gtk/gtkcellrenderertext.h +++ b/gtk/gtkcellrenderertext.h @@ -93,7 +93,7 @@ struct _GtkCellRendererTextClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_text_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_text_get_type (void); GtkCellRenderer *gtk_cell_renderer_text_new (void); void gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer, diff --git a/gtk/gtkcellrenderertoggle.h b/gtk/gtkcellrenderertoggle.h index d6145e6a5..60989f75c 100644 --- a/gtk/gtkcellrenderertoggle.h +++ b/gtk/gtkcellrenderertoggle.h @@ -64,7 +64,7 @@ struct _GtkCellRendererToggleClass void (*_gtk_reserved4) (void); }; -GType gtk_cell_renderer_toggle_get_type (void) G_GNUC_CONST; +GType gtk_cell_renderer_toggle_get_type (void); GtkCellRenderer *gtk_cell_renderer_toggle_new (void); gboolean gtk_cell_renderer_toggle_get_radio (GtkCellRendererToggle *toggle); diff --git a/gtk/gtkcellview.h b/gtk/gtkcellview.h index 1835c7a1c..5e943f373 100644 --- a/gtk/gtkcellview.h +++ b/gtk/gtkcellview.h @@ -54,7 +54,7 @@ struct _GtkCellViewClass GtkWidgetClass parent_class; }; -GType gtk_cell_view_get_type (void) G_GNUC_CONST; +GType gtk_cell_view_get_type (void); GtkWidget *gtk_cell_view_new (void); GtkWidget *gtk_cell_view_new_with_text (const gchar *text); GtkWidget *gtk_cell_view_new_with_markup (const gchar *markup); diff --git a/gtk/gtkcheckbutton.h b/gtk/gtkcheckbutton.h index 8b1a9aa0d..3ff627f2b 100644 --- a/gtk/gtkcheckbutton.h +++ b/gtk/gtkcheckbutton.h @@ -68,7 +68,7 @@ struct _GtkCheckButtonClass }; -GType gtk_check_button_get_type (void) G_GNUC_CONST; +GType gtk_check_button_get_type (void); GtkWidget* gtk_check_button_new (void); GtkWidget* gtk_check_button_new_with_label (const gchar *label); GtkWidget* gtk_check_button_new_with_mnemonic (const gchar *label); diff --git a/gtk/gtkcheckmenuitem.h b/gtk/gtkcheckmenuitem.h index 5e0ecba8a..651f235a4 100644 --- a/gtk/gtkcheckmenuitem.h +++ b/gtk/gtkcheckmenuitem.h @@ -74,7 +74,7 @@ struct _GtkCheckMenuItemClass }; -GType gtk_check_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_check_menu_item_get_type (void); GtkWidget* gtk_check_menu_item_new (void); GtkWidget* gtk_check_menu_item_new_with_label (const gchar *label); diff --git a/gtk/gtkclipboard.h b/gtk/gtkclipboard.h index bead067f3..ff399c496 100644 --- a/gtk/gtkclipboard.h +++ b/gtk/gtkclipboard.h @@ -67,7 +67,7 @@ typedef void (* GtkClipboardGetFunc) (GtkClipboard *clipboard, typedef void (* GtkClipboardClearFunc) (GtkClipboard *clipboard, gpointer user_data_or_owner); -GType gtk_clipboard_get_type (void) G_GNUC_CONST; +GType gtk_clipboard_get_type (void); GtkClipboard *gtk_clipboard_get_for_display (GdkDisplay *display, GdkAtom selection); diff --git a/gtk/gtkclist.h b/gtk/gtkclist.h index 7409ac35a..cc66d5c0f 100644 --- a/gtk/gtkclist.h +++ b/gtk/gtkclist.h @@ -440,7 +440,7 @@ struct _GtkCell } u; }; -GType gtk_clist_get_type (void) G_GNUC_CONST; +GType gtk_clist_get_type (void); /* create a new GtkCList */ GtkWidget* gtk_clist_new (gint columns); diff --git a/gtk/gtkcolorbutton.h b/gtk/gtkcolorbutton.h index c16220734..b5117058c 100644 --- a/gtk/gtkcolorbutton.h +++ b/gtk/gtkcolorbutton.h @@ -80,7 +80,7 @@ struct _GtkColorButtonClass { }; -GType gtk_color_button_get_type (void) G_GNUC_CONST; +GType gtk_color_button_get_type (void); GtkWidget *gtk_color_button_new (void); GtkWidget *gtk_color_button_new_with_color (const GdkColor *color); void gtk_color_button_set_color (GtkColorButton *color_button, diff --git a/gtk/gtkcolorsel.h b/gtk/gtkcolorsel.h index 4d71f19f6..b5e0e2d74 100644 --- a/gtk/gtkcolorsel.h +++ b/gtk/gtkcolorsel.h @@ -79,7 +79,7 @@ struct _GtkColorSelectionClass /* ColorSelection */ -GType gtk_color_selection_get_type (void) G_GNUC_CONST; +GType gtk_color_selection_get_type (void); GtkWidget *gtk_color_selection_new (void); gboolean gtk_color_selection_get_has_opacity_control (GtkColorSelection *colorsel); void gtk_color_selection_set_has_opacity_control (GtkColorSelection *colorsel, diff --git a/gtk/gtkcolorseldialog.h b/gtk/gtkcolorseldialog.h index 9cc70b897..edb667607 100644 --- a/gtk/gtkcolorseldialog.h +++ b/gtk/gtkcolorseldialog.h @@ -72,7 +72,7 @@ struct _GtkColorSelectionDialogClass /* ColorSelectionDialog */ -GType gtk_color_selection_dialog_get_type (void) G_GNUC_CONST; +GType gtk_color_selection_dialog_get_type (void); GtkWidget* gtk_color_selection_dialog_new (const gchar *title); GtkWidget* gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel); diff --git a/gtk/gtkcombo.h b/gtk/gtkcombo.h index d8680a645..615cd8b9c 100644 --- a/gtk/gtkcombo.h +++ b/gtk/gtkcombo.h @@ -84,7 +84,7 @@ struct _GtkComboClass { void (*_gtk_reserved4) (void); }; -GType gtk_combo_get_type (void) G_GNUC_CONST; +GType gtk_combo_get_type (void); GtkWidget* gtk_combo_new (void); /* the text in the entry must be or not be in the list */ diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h index 56dd9e6de..55b6aa2df 100644 --- a/gtk/gtkcombobox.h +++ b/gtk/gtkcombobox.h @@ -67,7 +67,7 @@ struct _GtkComboBoxClass /* construction */ -GType gtk_combo_box_get_type (void) G_GNUC_CONST; +GType gtk_combo_box_get_type (void); GtkWidget *gtk_combo_box_new (void); GtkWidget *gtk_combo_box_new_with_entry (void); GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model); diff --git a/gtk/gtkcomboboxentry.h b/gtk/gtkcomboboxentry.h index c4099445d..00b589d58 100644 --- a/gtk/gtkcomboboxentry.h +++ b/gtk/gtkcomboboxentry.h @@ -62,7 +62,7 @@ struct _GtkComboBoxEntryClass }; -GType gtk_combo_box_entry_get_type (void) G_GNUC_CONST; +GType gtk_combo_box_entry_get_type (void); GtkWidget *gtk_combo_box_entry_new (void); GtkWidget *gtk_combo_box_entry_new_with_model (GtkTreeModel *model, gint text_column); diff --git a/gtk/gtkcomboboxtext.h b/gtk/gtkcomboboxtext.h index 4158a2b73..957e26691 100644 --- a/gtk/gtkcomboboxtext.h +++ b/gtk/gtkcomboboxtext.h @@ -57,7 +57,7 @@ struct _GtkComboBoxTextClass void (*_gtk_reserved4) (void); }; -GType gtk_combo_box_text_get_type (void) G_GNUC_CONST; +GType gtk_combo_box_text_get_type (void); GtkWidget* gtk_combo_box_text_new (void); GtkWidget* gtk_combo_box_text_new_with_entry (void); void gtk_combo_box_text_append_text (GtkComboBoxText *combo_box, diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h index 7c845e724..19242940e 100644 --- a/gtk/gtkcontainer.h +++ b/gtk/gtkcontainer.h @@ -104,7 +104,7 @@ struct _GtkContainerClass /* Application-level methods */ -GType gtk_container_get_type (void) G_GNUC_CONST; +GType gtk_container_get_type (void); void gtk_container_set_border_width (GtkContainer *container, guint border_width); guint gtk_container_get_border_width (GtkContainer *container); diff --git a/gtk/gtkctree.h b/gtk/gtkctree.h index 167c9fe02..634d886b4 100644 --- a/gtk/gtkctree.h +++ b/gtk/gtkctree.h @@ -172,7 +172,7 @@ struct _GtkCTreeNode { * Creation, insertion, deletion * ***********************************************************/ -GType gtk_ctree_get_type (void) G_GNUC_CONST; +GType gtk_ctree_get_type (void); GtkWidget * gtk_ctree_new_with_titles (gint columns, gint tree_column, gchar *titles[]); @@ -436,7 +436,7 @@ void gtk_ctree_sort_recursive (GtkCTree *ctree, * no-op's for the copy and free routines. It is defined in order to * provide type information for the signal arguments */ -GType gtk_ctree_node_get_type (void) G_GNUC_CONST; +GType gtk_ctree_node_get_type (void); G_END_DECLS diff --git a/gtk/gtkcurve.h b/gtk/gtkcurve.h index 68ee716ed..29426dcd5 100644 --- a/gtk/gtkcurve.h +++ b/gtk/gtkcurve.h @@ -85,7 +85,7 @@ struct _GtkCurveClass }; -GType gtk_curve_get_type (void) G_GNUC_CONST; +GType gtk_curve_get_type (void); GtkWidget* gtk_curve_new (void); void gtk_curve_reset (GtkCurve *curve); void gtk_curve_set_gamma (GtkCurve *curve, gfloat gamma_); diff --git a/gtk/gtkcustompaperunixdialog.h b/gtk/gtkcustompaperunixdialog.h index 0ff3af165..f1c5aa735 100644 --- a/gtk/gtkcustompaperunixdialog.h +++ b/gtk/gtkcustompaperunixdialog.h @@ -57,7 +57,7 @@ struct _GtkCustomPaperUnixDialogClass void (*_gtk_reserved7) (void); }; -GType gtk_custom_paper_unix_dialog_get_type (void) G_GNUC_CONST; +GType gtk_custom_paper_unix_dialog_get_type (void); GtkWidget * _gtk_custom_paper_unix_dialog_new (GtkWindow *parent, const gchar *title); GtkUnit _gtk_print_get_default_user_units (void); diff --git a/gtk/gtkdialog.h b/gtk/gtkdialog.h index 389c52473..74c43f8db 100644 --- a/gtk/gtkdialog.h +++ b/gtk/gtkdialog.h @@ -124,7 +124,7 @@ struct _GtkDialogClass }; -GType gtk_dialog_get_type (void) G_GNUC_CONST; +GType gtk_dialog_get_type (void); GtkWidget* gtk_dialog_new (void); GtkWidget* gtk_dialog_new_with_buttons (const gchar *title, diff --git a/gtk/gtkdrawingarea.h b/gtk/gtkdrawingarea.h index e667c65df..6c5b2da9a 100644 --- a/gtk/gtkdrawingarea.h +++ b/gtk/gtkdrawingarea.h @@ -67,7 +67,7 @@ struct _GtkDrawingAreaClass }; -GType gtk_drawing_area_get_type (void) G_GNUC_CONST; +GType gtk_drawing_area_get_type (void); GtkWidget* gtk_drawing_area_new (void); #ifndef GTK_DISABLE_DEPRECATED diff --git a/gtk/gtkeditable.h b/gtk/gtkeditable.h index 1f5ed3f8e..e1ff68b1b 100644 --- a/gtk/gtkeditable.h +++ b/gtk/gtkeditable.h @@ -84,7 +84,7 @@ struct _GtkEditableClass gint (* get_position) (GtkEditable *editable); }; -GType gtk_editable_get_type (void) G_GNUC_CONST; +GType gtk_editable_get_type (void); void gtk_editable_select_region (GtkEditable *editable, gint start_pos, gint end_pos); diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index 0fc2483c8..b410a175c 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -163,7 +163,7 @@ struct _GtkEntryClass void (*_gtk_reserved2) (void); }; -GType gtk_entry_get_type (void) G_GNUC_CONST; +GType gtk_entry_get_type (void); GtkWidget* gtk_entry_new (void); GtkWidget* gtk_entry_new_with_buffer (GtkEntryBuffer *buffer); diff --git a/gtk/gtkentrybuffer.h b/gtk/gtkentrybuffer.h index 5f78b8018..c28c706f7 100644 --- a/gtk/gtkentrybuffer.h +++ b/gtk/gtkentrybuffer.h @@ -90,7 +90,7 @@ struct _GtkEntryBufferClass void (*_gtk_reserved5) (void); }; -GType gtk_entry_buffer_get_type (void) G_GNUC_CONST; +GType gtk_entry_buffer_get_type (void); GtkEntryBuffer* gtk_entry_buffer_new (const gchar *initial_chars, gint n_initial_chars); diff --git a/gtk/gtkentrycompletion.h b/gtk/gtkentrycompletion.h index 7a99f787c..efd3fd985 100644 --- a/gtk/gtkentrycompletion.h +++ b/gtk/gtkentrycompletion.h @@ -77,7 +77,7 @@ struct _GtkEntryCompletionClass }; /* core */ -GType gtk_entry_completion_get_type (void) G_GNUC_CONST; +GType gtk_entry_completion_get_type (void); GtkEntryCompletion *gtk_entry_completion_new (void); GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion); diff --git a/gtk/gtkeventbox.h b/gtk/gtkeventbox.h index 15675cb37..46c220d3f 100644 --- a/gtk/gtkeventbox.h +++ b/gtk/gtkeventbox.h @@ -57,7 +57,7 @@ struct _GtkEventBoxClass GtkBinClass parent_class; }; -GType gtk_event_box_get_type (void) G_GNUC_CONST; +GType gtk_event_box_get_type (void); GtkWidget* gtk_event_box_new (void); gboolean gtk_event_box_get_visible_window (GtkEventBox *event_box); void gtk_event_box_set_visible_window (GtkEventBox *event_box, diff --git a/gtk/gtkexpander.h b/gtk/gtkexpander.h index 0cfa0e12a..257c0d6f6 100644 --- a/gtk/gtkexpander.h +++ b/gtk/gtkexpander.h @@ -60,7 +60,7 @@ struct _GtkExpanderClass void (* activate) (GtkExpander *expander); }; -GType gtk_expander_get_type (void) G_GNUC_CONST; +GType gtk_expander_get_type (void); GtkWidget *gtk_expander_new (const gchar *label); GtkWidget *gtk_expander_new_with_mnemonic (const gchar *label); diff --git a/gtk/gtkfilechooser.h b/gtk/gtkfilechooser.h index aa27be435..74cb9d3f1 100644 --- a/gtk/gtkfilechooser.h +++ b/gtk/gtkfilechooser.h @@ -85,7 +85,7 @@ typedef enum GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN } GtkFileChooserConfirmation; -GType gtk_file_chooser_get_type (void) G_GNUC_CONST; +GType gtk_file_chooser_get_type (void); /* GError enumeration for GtkFileChooser */ /** diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h index fdacc4b6e..5de7d9546 100644 --- a/gtk/gtkfilechooserbutton.h +++ b/gtk/gtkfilechooserbutton.h @@ -66,7 +66,7 @@ struct _GtkFileChooserButtonClass }; -GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST; +GType gtk_file_chooser_button_get_type (void); GtkWidget * gtk_file_chooser_button_new (const gchar *title, GtkFileChooserAction action); diff --git a/gtk/gtkfilechooserdefault.h b/gtk/gtkfilechooserdefault.h index e6eabefef..c7602d7ed 100644 --- a/gtk/gtkfilechooserdefault.h +++ b/gtk/gtkfilechooserdefault.h @@ -32,7 +32,7 @@ G_BEGIN_DECLS typedef struct _GtkFileChooserDefault GtkFileChooserDefault; -GType _gtk_file_chooser_default_get_type (void) G_GNUC_CONST; +GType _gtk_file_chooser_default_get_type (void); GtkWidget *_gtk_file_chooser_default_new (void); G_END_DECLS diff --git a/gtk/gtkfilechooserdialog.h b/gtk/gtkfilechooserdialog.h index 78c02d2a4..0d861309d 100644 --- a/gtk/gtkfilechooserdialog.h +++ b/gtk/gtkfilechooserdialog.h @@ -53,7 +53,7 @@ struct _GtkFileChooserDialogClass GtkDialogClass parent_class; }; -GType gtk_file_chooser_dialog_get_type (void) G_GNUC_CONST; +GType gtk_file_chooser_dialog_get_type (void); GtkWidget *gtk_file_chooser_dialog_new (const gchar *title, GtkWindow *parent, GtkFileChooserAction action, diff --git a/gtk/gtkfilechooserembed.h b/gtk/gtkfilechooserembed.h index 65888981e..49061f57f 100644 --- a/gtk/gtkfilechooserembed.h +++ b/gtk/gtkfilechooserembed.h @@ -53,7 +53,7 @@ struct _GtkFileChooserEmbedIface void (*response_requested) (GtkFileChooserEmbed *chooser_embed); }; -GType _gtk_file_chooser_embed_get_type (void) G_GNUC_CONST; +GType _gtk_file_chooser_embed_get_type (void); void _gtk_file_chooser_embed_get_default_size (GtkFileChooserEmbed *chooser_embed, gint *default_width, diff --git a/gtk/gtkfilechooserentry.h b/gtk/gtkfilechooserentry.h index 216b8ae72..e46ea89e1 100644 --- a/gtk/gtkfilechooserentry.h +++ b/gtk/gtkfilechooserentry.h @@ -32,7 +32,7 @@ G_BEGIN_DECLS typedef struct _GtkFileChooserEntry GtkFileChooserEntry; -GType _gtk_file_chooser_entry_get_type (void) G_GNUC_CONST; +GType _gtk_file_chooser_entry_get_type (void); GtkWidget * _gtk_file_chooser_entry_new (gboolean eat_tab); void _gtk_file_chooser_entry_set_action (GtkFileChooserEntry *chooser_entry, GtkFileChooserAction action); diff --git a/gtk/gtkfilechoosersettings.h b/gtk/gtkfilechoosersettings.h index 9f2039c83..4373e1471 100644 --- a/gtk/gtkfilechoosersettings.h +++ b/gtk/gtkfilechoosersettings.h @@ -69,7 +69,7 @@ struct _GtkFileChooserSettingsClass GObjectClass parent_class; }; -GType _gtk_file_chooser_settings_get_type (void) G_GNUC_CONST; +GType _gtk_file_chooser_settings_get_type (void); GtkFileChooserSettings *_gtk_file_chooser_settings_new (void); diff --git a/gtk/gtkfilechooserutils.h b/gtk/gtkfilechooserutils.h index 2f5526207..d780f6061 100644 --- a/gtk/gtkfilechooserutils.h +++ b/gtk/gtkfilechooserutils.h @@ -51,7 +51,7 @@ void _gtk_file_chooser_delegate_iface_init (GtkFileChooserIface *iface); void _gtk_file_chooser_set_delegate (GtkFileChooser *receiver, GtkFileChooser *delegate); -GQuark _gtk_file_chooser_delegate_get_quark (void) G_GNUC_CONST; +GQuark _gtk_file_chooser_delegate_get_quark (void); GList *_gtk_file_chooser_extract_recent_folders (GList *infos); diff --git a/gtk/gtkfilechooserwidget.h b/gtk/gtkfilechooserwidget.h index 4d3fa3bcb..2e8cf3ef2 100644 --- a/gtk/gtkfilechooserwidget.h +++ b/gtk/gtkfilechooserwidget.h @@ -53,7 +53,7 @@ struct _GtkFileChooserWidgetClass GtkVBoxClass parent_class; }; -GType gtk_file_chooser_widget_get_type (void) G_GNUC_CONST; +GType gtk_file_chooser_widget_get_type (void); GtkWidget *gtk_file_chooser_widget_new (GtkFileChooserAction action); diff --git a/gtk/gtkfilefilter.h b/gtk/gtkfilefilter.h index 491143d4b..696c7b510 100644 --- a/gtk/gtkfilefilter.h +++ b/gtk/gtkfilefilter.h @@ -56,7 +56,7 @@ struct _GtkFileFilterInfo const gchar *mime_type; }; -GType gtk_file_filter_get_type (void) G_GNUC_CONST; +GType gtk_file_filter_get_type (void); GtkFileFilter * gtk_file_filter_new (void); void gtk_file_filter_set_name (GtkFileFilter *filter, diff --git a/gtk/gtkfilesel.h b/gtk/gtkfilesel.h index 1e5c98e67..03bc35406 100644 --- a/gtk/gtkfilesel.h +++ b/gtk/gtkfilesel.h @@ -99,7 +99,7 @@ struct _GtkFileSelectionClass #define gtk_file_selection_get_selections gtk_file_selection_get_selections_utf8 #endif -GType gtk_file_selection_get_type (void) G_GNUC_CONST; +GType gtk_file_selection_get_type (void); GtkWidget* gtk_file_selection_new (const gchar *title); void gtk_file_selection_set_filename (GtkFileSelection *filesel, const gchar *filename); diff --git a/gtk/gtkfilesystem.h b/gtk/gtkfilesystem.h index 75f1c97e8..7036a32d2 100644 --- a/gtk/gtkfilesystem.h +++ b/gtk/gtkfilesystem.h @@ -93,7 +93,7 @@ typedef void (* GtkFileSystemVolumeMountCallback) (GCancellable *cancell gpointer data); /* GtkFileSystem methods */ -GType _gtk_file_system_get_type (void) G_GNUC_CONST; +GType _gtk_file_system_get_type (void); GtkFileSystem * _gtk_file_system_new (void); diff --git a/gtk/gtkfilesystemmodel.h b/gtk/gtkfilesystemmodel.h index 1f00d1f14..01cc70426 100644 --- a/gtk/gtkfilesystemmodel.h +++ b/gtk/gtkfilesystemmodel.h @@ -33,7 +33,7 @@ G_BEGIN_DECLS typedef struct _GtkFileSystemModel GtkFileSystemModel; -GType _gtk_file_system_model_get_type (void) G_GNUC_CONST; +GType _gtk_file_system_model_get_type (void); typedef gboolean (*GtkFileSystemModelGetValue) (GtkFileSystemModel *model, GFile *file, diff --git a/gtk/gtkfixed.h b/gtk/gtkfixed.h index 14aad5d02..8297e4fab 100644 --- a/gtk/gtkfixed.h +++ b/gtk/gtkfixed.h @@ -69,7 +69,7 @@ struct _GtkFixedChild }; -GType gtk_fixed_get_type (void) G_GNUC_CONST; +GType gtk_fixed_get_type (void); GtkWidget* gtk_fixed_new (void); void gtk_fixed_put (GtkFixed *fixed, GtkWidget *widget, diff --git a/gtk/gtkfontbutton.h b/gtk/gtkfontbutton.h index e5d97431f..7e273c8b5 100644 --- a/gtk/gtkfontbutton.h +++ b/gtk/gtkfontbutton.h @@ -71,7 +71,7 @@ struct _GtkFontButtonClass { }; -GType gtk_font_button_get_type (void) G_GNUC_CONST; +GType gtk_font_button_get_type (void); GtkWidget *gtk_font_button_new (void); GtkWidget *gtk_font_button_new_with_font (const gchar *fontname); diff --git a/gtk/gtkfontsel.h b/gtk/gtkfontsel.h index c6cd788c0..054fcabf8 100644 --- a/gtk/gtkfontsel.h +++ b/gtk/gtkfontsel.h @@ -142,7 +142,7 @@ struct _GtkFontSelectionDialogClass * see the comments in the GtkFontSelectionDialog functions. *****************************************************************************/ -GType gtk_font_selection_get_type (void) G_GNUC_CONST; +GType gtk_font_selection_get_type (void); GtkWidget * gtk_font_selection_new (void); GtkWidget * gtk_font_selection_get_family_list (GtkFontSelection *fontsel); GtkWidget * gtk_font_selection_get_face_list (GtkFontSelection *fontsel); @@ -172,7 +172,7 @@ void gtk_font_selection_set_preview_text (GtkFontSelection *fontsel, * GtkFontSelection. *****************************************************************************/ -GType gtk_font_selection_dialog_get_type (void) G_GNUC_CONST; +GType gtk_font_selection_dialog_get_type (void); GtkWidget *gtk_font_selection_dialog_new (const gchar *title); GtkWidget *gtk_font_selection_dialog_get_ok_button (GtkFontSelectionDialog *fsd); diff --git a/gtk/gtkframe.h b/gtk/gtkframe.h index 7164f6736..5e76e8d73 100644 --- a/gtk/gtkframe.h +++ b/gtk/gtkframe.h @@ -69,7 +69,7 @@ struct _GtkFrameClass }; -GType gtk_frame_get_type (void) G_GNUC_CONST; +GType gtk_frame_get_type (void); GtkWidget* gtk_frame_new (const gchar *label); void gtk_frame_set_label (GtkFrame *frame, diff --git a/gtk/gtkgamma.h b/gtk/gtkgamma.h index 0173f960a..90e181e1e 100644 --- a/gtk/gtkgamma.h +++ b/gtk/gtkgamma.h @@ -71,7 +71,7 @@ struct _GtkGammaCurveClass }; -GType gtk_gamma_curve_get_type (void) G_GNUC_CONST; +GType gtk_gamma_curve_get_type (void); GtkWidget* gtk_gamma_curve_new (void); diff --git a/gtk/gtkhandlebox.h b/gtk/gtkhandlebox.h index 2dd96b286..fcd416afd 100644 --- a/gtk/gtkhandlebox.h +++ b/gtk/gtkhandlebox.h @@ -94,7 +94,7 @@ struct _GtkHandleBoxClass }; -GType gtk_handle_box_get_type (void) G_GNUC_CONST; +GType gtk_handle_box_get_type (void); GtkWidget* gtk_handle_box_new (void); void gtk_handle_box_set_shadow_type (GtkHandleBox *handle_box, GtkShadowType type); diff --git a/gtk/gtkhbbox.h b/gtk/gtkhbbox.h index bbd05bcac..5bc651f94 100644 --- a/gtk/gtkhbbox.h +++ b/gtk/gtkhbbox.h @@ -59,7 +59,7 @@ struct _GtkHButtonBoxClass }; -GType gtk_hbutton_box_get_type (void) G_GNUC_CONST; +GType gtk_hbutton_box_get_type (void); GtkWidget* gtk_hbutton_box_new (void); /* buttons can be added by gtk_container_add() */ diff --git a/gtk/gtkhbox.h b/gtk/gtkhbox.h index e547aa359..9a026dec3 100644 --- a/gtk/gtkhbox.h +++ b/gtk/gtkhbox.h @@ -59,7 +59,7 @@ struct _GtkHBoxClass }; -GType gtk_hbox_get_type (void) G_GNUC_CONST; +GType gtk_hbox_get_type (void); GtkWidget * gtk_hbox_new (gboolean homogeneous, gint spacing); diff --git a/gtk/gtkhpaned.h b/gtk/gtkhpaned.h index 2f10427b2..38e5edb41 100644 --- a/gtk/gtkhpaned.h +++ b/gtk/gtkhpaned.h @@ -57,7 +57,7 @@ struct _GtkHPanedClass }; -GType gtk_hpaned_get_type (void) G_GNUC_CONST; +GType gtk_hpaned_get_type (void); GtkWidget * gtk_hpaned_new (void); G_END_DECLS diff --git a/gtk/gtkhruler.h b/gtk/gtkhruler.h index c0e2118b7..9fae3c559 100644 --- a/gtk/gtkhruler.h +++ b/gtk/gtkhruler.h @@ -72,7 +72,7 @@ struct _GtkHRulerClass }; -GType gtk_hruler_get_type (void) G_GNUC_CONST; +GType gtk_hruler_get_type (void); GtkWidget* gtk_hruler_new (void); diff --git a/gtk/gtkhscale.h b/gtk/gtkhscale.h index a90fd4517..7c8e4b712 100644 --- a/gtk/gtkhscale.h +++ b/gtk/gtkhscale.h @@ -59,7 +59,7 @@ struct _GtkHScaleClass }; -GType gtk_hscale_get_type (void) G_GNUC_CONST; +GType gtk_hscale_get_type (void); GtkWidget* gtk_hscale_new (GtkAdjustment *adjustment); GtkWidget* gtk_hscale_new_with_range (gdouble min, gdouble max, diff --git a/gtk/gtkhscrollbar.h b/gtk/gtkhscrollbar.h index e12941ad5..373f1b01e 100644 --- a/gtk/gtkhscrollbar.h +++ b/gtk/gtkhscrollbar.h @@ -60,7 +60,7 @@ struct _GtkHScrollbarClass }; -GType gtk_hscrollbar_get_type (void) G_GNUC_CONST; +GType gtk_hscrollbar_get_type (void); GtkWidget* gtk_hscrollbar_new (GtkAdjustment *adjustment); diff --git a/gtk/gtkhseparator.h b/gtk/gtkhseparator.h index 464f6bcd1..82951c999 100644 --- a/gtk/gtkhseparator.h +++ b/gtk/gtkhseparator.h @@ -59,7 +59,7 @@ struct _GtkHSeparatorClass }; -GType gtk_hseparator_get_type (void) G_GNUC_CONST; +GType gtk_hseparator_get_type (void); GtkWidget* gtk_hseparator_new (void); diff --git a/gtk/gtkhsv.h b/gtk/gtkhsv.h index c352b9922..ad035fafc 100644 --- a/gtk/gtkhsv.h +++ b/gtk/gtkhsv.h @@ -78,7 +78,7 @@ struct _GtkHSVClass }; -GType gtk_hsv_get_type (void) G_GNUC_CONST; +GType gtk_hsv_get_type (void); GtkWidget* gtk_hsv_new (void); void gtk_hsv_set_color (GtkHSV *hsv, double h, diff --git a/gtk/gtkiconfactory.h b/gtk/gtkiconfactory.h index 492d93ec0..a27962172 100644 --- a/gtk/gtkiconfactory.h +++ b/gtk/gtkiconfactory.h @@ -71,7 +71,7 @@ struct _GtkIconFactoryClass #define gtk_icon_source_get_filename gtk_icon_source_get_filename_utf8 #endif -GType gtk_icon_factory_get_type (void) G_GNUC_CONST; +GType gtk_icon_factory_get_type (void); GtkIconFactory* gtk_icon_factory_new (void); void gtk_icon_factory_add (GtkIconFactory *factory, const gchar *stock_id, @@ -116,7 +116,7 @@ const gchar * gtk_icon_size_get_name (GtkIconSize size); /* Icon sets */ -GType gtk_icon_set_get_type (void) G_GNUC_CONST; +GType gtk_icon_set_get_type (void); GtkIconSet* gtk_icon_set_new (void); GtkIconSet* gtk_icon_set_new_from_pixbuf (GdkPixbuf *pixbuf); @@ -143,7 +143,7 @@ void gtk_icon_set_get_sizes (GtkIconSet *icon_set, GtkIconSize **sizes, gint *n_sizes); -GType gtk_icon_source_get_type (void) G_GNUC_CONST; +GType gtk_icon_source_get_type (void); GtkIconSource* gtk_icon_source_new (void); GtkIconSource* gtk_icon_source_copy (const GtkIconSource *source); void gtk_icon_source_free (GtkIconSource *source); diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index e511c205b..ffa92fd5d 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -111,7 +111,7 @@ GQuark gtk_icon_theme_error_quark (void); #define gtk_icon_info_get_filename gtk_icon_info_get_filename_utf8 #endif -GType gtk_icon_theme_get_type (void) G_GNUC_CONST; +GType gtk_icon_theme_get_type (void); GtkIconTheme *gtk_icon_theme_new (void); GtkIconTheme *gtk_icon_theme_get_default (void); @@ -167,7 +167,7 @@ void gtk_icon_theme_add_builtin_icon (const gchar *icon_name, gint size, GdkPixbuf *pixbuf); -GType gtk_icon_info_get_type (void) G_GNUC_CONST; +GType gtk_icon_info_get_type (void); GtkIconInfo * gtk_icon_info_copy (GtkIconInfo *icon_info); void gtk_icon_info_free (GtkIconInfo *icon_info); diff --git a/gtk/gtkiconview.h b/gtk/gtkiconview.h index bc12c8f72..b5e39c756 100644 --- a/gtk/gtkiconview.h +++ b/gtk/gtkiconview.h @@ -87,7 +87,7 @@ struct _GtkIconViewClass gboolean (* activate_cursor_item) (GtkIconView *icon_view); }; -GType gtk_icon_view_get_type (void) G_GNUC_CONST; +GType gtk_icon_view_get_type (void); GtkWidget * gtk_icon_view_new (void); GtkWidget * gtk_icon_view_new_with_model (GtkTreeModel *model); diff --git a/gtk/gtkimage.h b/gtk/gtkimage.h index 2a3d2306f..163356c5c 100644 --- a/gtk/gtkimage.h +++ b/gtk/gtkimage.h @@ -187,7 +187,7 @@ struct _GtkImageClass #define gtk_image_set_from_file gtk_image_set_from_file_utf8 #endif -GType gtk_image_get_type (void) G_GNUC_CONST; +GType gtk_image_get_type (void); GtkWidget* gtk_image_new (void); GtkWidget* gtk_image_new_from_pixmap (GdkPixmap *pixmap, diff --git a/gtk/gtkimagemenuitem.h b/gtk/gtkimagemenuitem.h index b915712c9..83bac58b3 100644 --- a/gtk/gtkimagemenuitem.h +++ b/gtk/gtkimagemenuitem.h @@ -63,7 +63,7 @@ struct _GtkImageMenuItemClass }; -GType gtk_image_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_image_menu_item_get_type (void); GtkWidget* gtk_image_menu_item_new (void); GtkWidget* gtk_image_menu_item_new_with_label (const gchar *label); GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar *label); diff --git a/gtk/gtkimcontext.h b/gtk/gtkimcontext.h index 4ee0a1456..23dfde993 100644 --- a/gtk/gtkimcontext.h +++ b/gtk/gtkimcontext.h @@ -99,7 +99,7 @@ struct _GtkIMContextClass void (*_gtk_reserved6) (void); }; -GType gtk_im_context_get_type (void) G_GNUC_CONST; +GType gtk_im_context_get_type (void); void gtk_im_context_set_client_window (GtkIMContext *context, GdkWindow *window); diff --git a/gtk/gtkimcontextsimple.h b/gtk/gtkimcontextsimple.h index a8db87646..07fddb8bb 100644 --- a/gtk/gtkimcontextsimple.h +++ b/gtk/gtkimcontextsimple.h @@ -62,7 +62,7 @@ struct _GtkIMContextSimpleClass GtkIMContextClass parent_class; }; -GType gtk_im_context_simple_get_type (void) G_GNUC_CONST; +GType gtk_im_context_simple_get_type (void); GtkIMContext *gtk_im_context_simple_new (void); void gtk_im_context_simple_add_table (GtkIMContextSimple *context_simple, diff --git a/gtk/gtkimmulticontext.h b/gtk/gtkimmulticontext.h index 80adff825..71a2c8d1e 100644 --- a/gtk/gtkimmulticontext.h +++ b/gtk/gtkimmulticontext.h @@ -63,7 +63,7 @@ struct _GtkIMMulticontextClass void (*_gtk_reserved4) (void); }; -GType gtk_im_multicontext_get_type (void) G_GNUC_CONST; +GType gtk_im_multicontext_get_type (void); GtkIMContext *gtk_im_multicontext_new (void); void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, diff --git a/gtk/gtkinfobar.h b/gtk/gtkinfobar.h index becbc3337..edb95eba5 100644 --- a/gtk/gtkinfobar.h +++ b/gtk/gtkinfobar.h @@ -84,7 +84,7 @@ struct _GtkInfoBarClass void (*_gtk_reserved6) (void); }; -GType gtk_info_bar_get_type (void) G_GNUC_CONST; +GType gtk_info_bar_get_type (void); GtkWidget *gtk_info_bar_new (void); GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button_text, diff --git a/gtk/gtkinputdialog.h b/gtk/gtkinputdialog.h index 6e95356be..dbb579a40 100644 --- a/gtk/gtkinputdialog.h +++ b/gtk/gtkinputdialog.h @@ -90,7 +90,7 @@ struct _GtkInputDialogClass void (*_gtk_reserved4) (void); }; -GType gtk_input_dialog_get_type (void) G_GNUC_CONST; +GType gtk_input_dialog_get_type (void); GtkWidget* gtk_input_dialog_new (void); G_END_DECLS diff --git a/gtk/gtkinvisible.h b/gtk/gtkinvisible.h index 6cc193d60..2549a4493 100644 --- a/gtk/gtkinvisible.h +++ b/gtk/gtkinvisible.h @@ -65,7 +65,7 @@ struct _GtkInvisibleClass void (*_gtk_reserved4) (void); }; -GType gtk_invisible_get_type (void) G_GNUC_CONST; +GType gtk_invisible_get_type (void); GtkWidget* gtk_invisible_new (void); GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen); diff --git a/gtk/gtkitem.h b/gtk/gtkitem.h index 486aa1f26..0bdb04bc9 100644 --- a/gtk/gtkitem.h +++ b/gtk/gtkitem.h @@ -69,7 +69,7 @@ struct _GtkItemClass }; -GType gtk_item_get_type (void) G_GNUC_CONST; +GType gtk_item_get_type (void); #if !defined(GTK_DISABLE_DEPRECATED) || defined(GTK_COMPILATION) void gtk_item_select (GtkItem *item); void gtk_item_deselect (GtkItem *item); diff --git a/gtk/gtkitemfactory.h b/gtk/gtkitemfactory.h index 988450aa5..e276ec62d 100644 --- a/gtk/gtkitemfactory.h +++ b/gtk/gtkitemfactory.h @@ -135,7 +135,7 @@ struct _GtkItemFactoryItem }; -GType gtk_item_factory_get_type (void) G_GNUC_CONST; +GType gtk_item_factory_get_type (void); /* `container_type' must be of GTK_TYPE_MENU_BAR, GTK_TYPE_MENU, * or GTK_TYPE_OPTION_MENU. diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h index 015108e63..30fe67609 100644 --- a/gtk/gtklabel.h +++ b/gtk/gtklabel.h @@ -106,7 +106,7 @@ struct _GtkLabelClass void (*_gtk_reserved3) (void); }; -GType gtk_label_get_type (void) G_GNUC_CONST; +GType gtk_label_get_type (void); GtkWidget* gtk_label_new (const gchar *str); GtkWidget* gtk_label_new_with_mnemonic (const gchar *str); void gtk_label_set_text (GtkLabel *label, diff --git a/gtk/gtklayout.h b/gtk/gtklayout.h index c1e404bb1..9c24d3ede 100644 --- a/gtk/gtklayout.h +++ b/gtk/gtklayout.h @@ -91,7 +91,7 @@ struct _GtkLayoutClass void (*_gtk_reserved4) (void); }; -GType gtk_layout_get_type (void) G_GNUC_CONST; +GType gtk_layout_get_type (void); GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); GdkWindow* gtk_layout_get_bin_window (GtkLayout *layout); diff --git a/gtk/gtklinkbutton.h b/gtk/gtklinkbutton.h index 9a2e7a5c6..dac56283c 100644 --- a/gtk/gtklinkbutton.h +++ b/gtk/gtklinkbutton.h @@ -65,7 +65,7 @@ struct _GtkLinkButtonClass void (*_gtk_padding4) (void); }; -GType gtk_link_button_get_type (void) G_GNUC_CONST; +GType gtk_link_button_get_type (void); GtkWidget * gtk_link_button_new (const gchar *uri); GtkWidget * gtk_link_button_new_with_label (const gchar *uri, diff --git a/gtk/gtklist.h b/gtk/gtklist.h index 3a2f13f13..032151099 100644 --- a/gtk/gtklist.h +++ b/gtk/gtklist.h @@ -81,7 +81,7 @@ struct _GtkListClass }; -GType gtk_list_get_type (void) G_GNUC_CONST; +GType gtk_list_get_type (void); GtkWidget* gtk_list_new (void); void gtk_list_insert_items (GtkList *list, GList *items, diff --git a/gtk/gtklistitem.h b/gtk/gtklistitem.h index 1d9a0c8f2..e14a9f237 100644 --- a/gtk/gtklistitem.h +++ b/gtk/gtklistitem.h @@ -75,7 +75,7 @@ struct _GtkListItemClass }; -GType gtk_list_item_get_type (void) G_GNUC_CONST; +GType gtk_list_item_get_type (void); GtkWidget* gtk_list_item_new (void); GtkWidget* gtk_list_item_new_with_label (const gchar *label); void gtk_list_item_select (GtkListItem *list_item); diff --git a/gtk/gtkliststore.h b/gtk/gtkliststore.h index 89514016b..2d5247ab8 100644 --- a/gtk/gtkliststore.h +++ b/gtk/gtkliststore.h @@ -74,7 +74,7 @@ struct _GtkListStoreClass }; -GType gtk_list_store_get_type (void) G_GNUC_CONST; +GType gtk_list_store_get_type (void); GtkListStore *gtk_list_store_new (gint n_columns, ...); GtkListStore *gtk_list_store_newv (gint n_columns, diff --git a/gtk/gtkmenu.h b/gtk/gtkmenu.h index edd375a3b..786485505 100644 --- a/gtk/gtkmenu.h +++ b/gtk/gtkmenu.h @@ -122,7 +122,7 @@ struct _GtkMenuClass }; -GType gtk_menu_get_type (void) G_GNUC_CONST; +GType gtk_menu_get_type (void); GtkWidget* gtk_menu_new (void); /* Display the menu onscreen */ diff --git a/gtk/gtkmenubar.h b/gtk/gtkmenubar.h index 95479010a..11a759cc2 100644 --- a/gtk/gtkmenubar.h +++ b/gtk/gtkmenubar.h @@ -65,7 +65,7 @@ struct _GtkMenuBarClass }; -GType gtk_menu_bar_get_type (void) G_GNUC_CONST; +GType gtk_menu_bar_get_type (void); GtkWidget* gtk_menu_bar_new (void); GtkPackDirection gtk_menu_bar_get_pack_direction (GtkMenuBar *menubar); diff --git a/gtk/gtkmenuitem.h b/gtk/gtkmenuitem.h index 5487cd539..9e2b2bff1 100644 --- a/gtk/gtkmenuitem.h +++ b/gtk/gtkmenuitem.h @@ -96,7 +96,7 @@ struct _GtkMenuItemClass }; -GType gtk_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_menu_item_get_type (void); GtkWidget* gtk_menu_item_new (void); GtkWidget* gtk_menu_item_new_with_label (const gchar *label); GtkWidget* gtk_menu_item_new_with_mnemonic (const gchar *label); diff --git a/gtk/gtkmenushell.h b/gtk/gtkmenushell.h index 53370f12c..3e5391061 100644 --- a/gtk/gtkmenushell.h +++ b/gtk/gtkmenushell.h @@ -97,7 +97,7 @@ struct _GtkMenuShellClass }; -GType gtk_menu_shell_get_type (void) G_GNUC_CONST; +GType gtk_menu_shell_get_type (void); void gtk_menu_shell_append (GtkMenuShell *menu_shell, GtkWidget *child); void gtk_menu_shell_prepend (GtkMenuShell *menu_shell, diff --git a/gtk/gtkmenutoolbutton.h b/gtk/gtkmenutoolbutton.h index 43ff84525..e83fb73ab 100644 --- a/gtk/gtkmenutoolbutton.h +++ b/gtk/gtkmenutoolbutton.h @@ -63,7 +63,7 @@ struct _GtkMenuToolButtonClass void (*_gtk_reserved4) (void); }; -GType gtk_menu_tool_button_get_type (void) G_GNUC_CONST; +GType gtk_menu_tool_button_get_type (void); GtkToolItem *gtk_menu_tool_button_new (GtkWidget *icon_widget, const gchar *label); GtkToolItem *gtk_menu_tool_button_new_from_stock (const gchar *stock_id); diff --git a/gtk/gtkmessagedialog.h b/gtk/gtkmessagedialog.h index b94f28cf5..99d76e5df 100644 --- a/gtk/gtkmessagedialog.h +++ b/gtk/gtkmessagedialog.h @@ -96,7 +96,7 @@ typedef enum GTK_BUTTONS_OK_CANCEL } GtkButtonsType; -GType gtk_message_dialog_get_type (void) G_GNUC_CONST; +GType gtk_message_dialog_get_type (void); GtkWidget* gtk_message_dialog_new (GtkWindow *parent, GtkDialogFlags flags, diff --git a/gtk/gtkmisc.h b/gtk/gtkmisc.h index 4246f5388..6fa565413 100644 --- a/gtk/gtkmisc.h +++ b/gtk/gtkmisc.h @@ -65,7 +65,7 @@ struct _GtkMiscClass }; -GType gtk_misc_get_type (void) G_GNUC_CONST; +GType gtk_misc_get_type (void); void gtk_misc_set_alignment (GtkMisc *misc, gfloat xalign, gfloat yalign); diff --git a/gtk/gtknotebook.h b/gtk/gtknotebook.h index e2e6e01e3..b9b6cd582 100644 --- a/gtk/gtknotebook.h +++ b/gtk/gtknotebook.h @@ -148,7 +148,7 @@ typedef GtkNotebook* (*GtkNotebookWindowCreationFunc) (GtkNotebook *source, * Creation, insertion, deletion * ***********************************************************/ -GType gtk_notebook_get_type (void) G_GNUC_CONST; +GType gtk_notebook_get_type (void); GtkWidget * gtk_notebook_new (void); gint gtk_notebook_append_page (GtkNotebook *notebook, GtkWidget *child, diff --git a/gtk/gtkobject.h b/gtk/gtkobject.h index 97f1efaa5..dbddd20c3 100644 --- a/gtk/gtkobject.h +++ b/gtk/gtkobject.h @@ -143,7 +143,7 @@ struct _GtkObjectClass /* Application-level methods */ -GType gtk_object_get_type (void) G_GNUC_CONST; +GType gtk_object_get_type (void); #ifndef GTK_DISABLE_DEPRECATED void gtk_object_sink (GtkObject *object); diff --git a/gtk/gtkoffscreenwindow.h b/gtk/gtkoffscreenwindow.h index cb1c56e4d..3cab8fd4a 100644 --- a/gtk/gtkoffscreenwindow.h +++ b/gtk/gtkoffscreenwindow.h @@ -49,7 +49,7 @@ struct _GtkOffscreenWindowClass GtkWindowClass parent_class; }; -GType gtk_offscreen_window_get_type (void) G_GNUC_CONST; +GType gtk_offscreen_window_get_type (void); GtkWidget *gtk_offscreen_window_new (void); GdkPixmap *gtk_offscreen_window_get_pixmap (GtkOffscreenWindow *offscreen); diff --git a/gtk/gtkoldeditable.h b/gtk/gtkoldeditable.h index 4b4dccdc3..107bc7e34 100644 --- a/gtk/gtkoldeditable.h +++ b/gtk/gtkoldeditable.h @@ -113,7 +113,7 @@ struct _GtkOldEditableClass gint position); }; -GType gtk_old_editable_get_type (void) G_GNUC_CONST; +GType gtk_old_editable_get_type (void); void gtk_old_editable_claim_selection (GtkOldEditable *old_editable, gboolean claim, guint32 time_); diff --git a/gtk/gtkoptionmenu.h b/gtk/gtkoptionmenu.h index 352774163..bd521da87 100644 --- a/gtk/gtkoptionmenu.h +++ b/gtk/gtkoptionmenu.h @@ -70,7 +70,7 @@ struct _GtkOptionMenuClass }; -GType gtk_option_menu_get_type (void) G_GNUC_CONST; +GType gtk_option_menu_get_type (void); GtkWidget* gtk_option_menu_new (void); GtkWidget* gtk_option_menu_get_menu (GtkOptionMenu *option_menu); void gtk_option_menu_set_menu (GtkOptionMenu *option_menu, diff --git a/gtk/gtkorientable.h b/gtk/gtkorientable.h index f9014e72c..41aa8ff72 100644 --- a/gtk/gtkorientable.h +++ b/gtk/gtkorientable.h @@ -49,7 +49,7 @@ struct _GtkOrientableIface }; -GType gtk_orientable_get_type (void) G_GNUC_CONST; +GType gtk_orientable_get_type (void); void gtk_orientable_set_orientation (GtkOrientable *orientable, GtkOrientation orientation); diff --git a/gtk/gtkpagesetup.h b/gtk/gtkpagesetup.h index 34e2e256c..c1fb5028e 100644 --- a/gtk/gtkpagesetup.h +++ b/gtk/gtkpagesetup.h @@ -37,7 +37,7 @@ typedef struct _GtkPageSetup GtkPageSetup; #define GTK_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP, GtkPageSetup)) #define GTK_IS_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP)) -GType gtk_page_setup_get_type (void) G_GNUC_CONST; +GType gtk_page_setup_get_type (void); GtkPageSetup * gtk_page_setup_new (void); GtkPageSetup * gtk_page_setup_copy (GtkPageSetup *other); GtkPageOrientation gtk_page_setup_get_orientation (GtkPageSetup *setup); diff --git a/gtk/gtkpagesetupunixdialog.h b/gtk/gtkpagesetupunixdialog.h index 4d889fe56..f77e4ccf1 100644 --- a/gtk/gtkpagesetupunixdialog.h +++ b/gtk/gtkpagesetupunixdialog.h @@ -61,7 +61,7 @@ struct _GtkPageSetupUnixDialogClass void (*_gtk_reserved7) (void); }; -GType gtk_page_setup_unix_dialog_get_type (void) G_GNUC_CONST; +GType gtk_page_setup_unix_dialog_get_type (void); GtkWidget * gtk_page_setup_unix_dialog_new (const gchar *title, GtkWindow *parent); void gtk_page_setup_unix_dialog_set_page_setup (GtkPageSetupUnixDialog *dialog, diff --git a/gtk/gtkpaned.h b/gtk/gtkpaned.h index 7d361efa6..eb13f7b37 100644 --- a/gtk/gtkpaned.h +++ b/gtk/gtkpaned.h @@ -106,7 +106,7 @@ struct _GtkPanedClass }; -GType gtk_paned_get_type (void) G_GNUC_CONST; +GType gtk_paned_get_type (void); void gtk_paned_add1 (GtkPaned *paned, GtkWidget *child); void gtk_paned_add2 (GtkPaned *paned, diff --git a/gtk/gtkpapersize.h b/gtk/gtkpapersize.h index 6e7a02a85..77a7aa326 100644 --- a/gtk/gtkpapersize.h +++ b/gtk/gtkpapersize.h @@ -44,7 +44,7 @@ typedef struct _GtkPaperSize GtkPaperSize; #define GTK_PAPER_NAME_EXECUTIVE "na_executive" #define GTK_PAPER_NAME_LEGAL "na_legal" -GType gtk_paper_size_get_type (void) G_GNUC_CONST; +GType gtk_paper_size_get_type (void); GtkPaperSize *gtk_paper_size_new (const gchar *name); GtkPaperSize *gtk_paper_size_new_from_ppd (const gchar *ppd_name, diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h index 2006411a0..4058794dc 100644 --- a/gtk/gtkpathbar.h +++ b/gtk/gtkpathbar.h @@ -81,7 +81,7 @@ struct _GtkPathBarClass gboolean child_is_hidden); }; -GType gtk_path_bar_get_type (void) G_GNUC_CONST; +GType gtk_path_bar_get_type (void); void _gtk_path_bar_set_file_system (GtkPathBar *path_bar, GtkFileSystem *file_system); gboolean _gtk_path_bar_set_file (GtkPathBar *path_bar, diff --git a/gtk/gtkpixmap.h b/gtk/gtkpixmap.h index 21fa34993..4002033b7 100644 --- a/gtk/gtkpixmap.h +++ b/gtk/gtkpixmap.h @@ -62,7 +62,7 @@ struct _GtkPixmapClass }; -GType gtk_pixmap_get_type (void) G_GNUC_CONST; +GType gtk_pixmap_get_type (void); GtkWidget* gtk_pixmap_new (GdkPixmap *pixmap, GdkBitmap *mask); void gtk_pixmap_set (GtkPixmap *pixmap, diff --git a/gtk/gtkplug.h b/gtk/gtkplug.h index 69f90ba75..d9ff02c1b 100644 --- a/gtk/gtkplug.h +++ b/gtk/gtkplug.h @@ -75,7 +75,7 @@ struct _GtkPlugClass }; -GType gtk_plug_get_type (void) G_GNUC_CONST; +GType gtk_plug_get_type (void); #ifndef GDK_MULTIHEAD_SAFE void gtk_plug_construct (GtkPlug *plug, diff --git a/gtk/gtkpreview.h b/gtk/gtkpreview.h index 5e87c94aa..c4098023d 100644 --- a/gtk/gtkpreview.h +++ b/gtk/gtkpreview.h @@ -86,7 +86,7 @@ struct _GtkPreviewClass }; -GType gtk_preview_get_type (void) G_GNUC_CONST; +GType gtk_preview_get_type (void); void gtk_preview_uninit (void); GtkWidget* gtk_preview_new (GtkPreviewType type); void gtk_preview_size (GtkPreview *preview, diff --git a/gtk/gtkprintbackend.h b/gtk/gtkprintbackend.h index 6847c1f23..ab49b80e8 100644 --- a/gtk/gtkprintbackend.h +++ b/gtk/gtkprintbackend.h @@ -139,7 +139,7 @@ struct _GtkPrintBackendClass void (*_gtk_reserved4) (void); }; -GType gtk_print_backend_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_get_type (void); GList *gtk_print_backend_get_printer_list (GtkPrintBackend *print_backend); gboolean gtk_print_backend_printer_list_is_done (GtkPrintBackend *print_backend); diff --git a/gtk/gtkprintcontext.h b/gtk/gtkprintcontext.h index 7501d05e1..dfc4b40ab 100644 --- a/gtk/gtkprintcontext.h +++ b/gtk/gtkprintcontext.h @@ -38,7 +38,7 @@ typedef struct _GtkPrintContext GtkPrintContext; #define GTK_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_CONTEXT, GtkPrintContext)) #define GTK_IS_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_CONTEXT)) -GType gtk_print_context_get_type (void) G_GNUC_CONST; +GType gtk_print_context_get_type (void); /* Rendering */ diff --git a/gtk/gtkprinter.h b/gtk/gtkprinter.h index 0ef09f82d..f292c17ad 100644 --- a/gtk/gtkprinter.h +++ b/gtk/gtkprinter.h @@ -48,7 +48,7 @@ typedef enum GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT = 1 << 9 } GtkPrintCapabilities; -GType gtk_print_capabilities_get_type (void) G_GNUC_CONST; +GType gtk_print_capabilities_get_type (void); #define GTK_TYPE_PRINTER (gtk_printer_get_type ()) #define GTK_PRINTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER, GtkPrinter)) @@ -88,7 +88,7 @@ struct _GtkPrinterClass void (*_gtk_reserved7) (void); }; -GType gtk_printer_get_type (void) G_GNUC_CONST; +GType gtk_printer_get_type (void); GtkPrinter *gtk_printer_new (const gchar *name, GtkPrintBackend *backend, gboolean virtual_); diff --git a/gtk/gtkprinteroption.h b/gtk/gtkprinteroption.h index 7b0763c45..bb9a56a88 100644 --- a/gtk/gtkprinteroption.h +++ b/gtk/gtkprinteroption.h @@ -92,7 +92,7 @@ struct _GtkPrinterOptionClass void (*_gtk_reserved7) (void); }; -GType gtk_printer_option_get_type (void) G_GNUC_CONST; +GType gtk_printer_option_get_type (void); GtkPrinterOption *gtk_printer_option_new (const char *name, const char *display_text, diff --git a/gtk/gtkprinteroptionset.h b/gtk/gtkprinteroptionset.h index 1a2cfca8e..dc3345a88 100644 --- a/gtk/gtkprinteroptionset.h +++ b/gtk/gtkprinteroptionset.h @@ -71,7 +71,7 @@ typedef void (*GtkPrinterOptionSetFunc) (GtkPrinterOption *option, gpointer user_data); -GType gtk_printer_option_set_get_type (void) G_GNUC_CONST; +GType gtk_printer_option_set_get_type (void); GtkPrinterOptionSet *gtk_printer_option_set_new (void); void gtk_printer_option_set_add (GtkPrinterOptionSet *set, diff --git a/gtk/gtkprinteroptionwidget.h b/gtk/gtkprinteroptionwidget.h index 5037959d4..a9f9ff931 100644 --- a/gtk/gtkprinteroptionwidget.h +++ b/gtk/gtkprinteroptionwidget.h @@ -50,7 +50,7 @@ struct _GtkPrinterOptionWidgetClass void (*changed) (GtkPrinterOptionWidget *widget); }; -GType gtk_printer_option_widget_get_type (void) G_GNUC_CONST; +GType gtk_printer_option_widget_get_type (void); GtkWidget *gtk_printer_option_widget_new (GtkPrinterOption *source); void gtk_printer_option_widget_set_source (GtkPrinterOptionWidget *setting, diff --git a/gtk/gtkprintjob.h b/gtk/gtkprintjob.h index e5505d767..d48eab3b9 100644 --- a/gtk/gtkprintjob.h +++ b/gtk/gtkprintjob.h @@ -86,7 +86,7 @@ struct _GtkPrintJobClass void (*_gtk_reserved7) (void); }; -GType gtk_print_job_get_type (void) G_GNUC_CONST; +GType gtk_print_job_get_type (void); GtkPrintJob *gtk_print_job_new (const gchar *title, GtkPrinter *printer, GtkPrintSettings *settings, diff --git a/gtk/gtkprintoperation.h b/gtk/gtkprintoperation.h index 579335ee2..29dd3906a 100644 --- a/gtk/gtkprintoperation.h +++ b/gtk/gtkprintoperation.h @@ -138,7 +138,7 @@ typedef enum GQuark gtk_print_error_quark (void); -GType gtk_print_operation_get_type (void) G_GNUC_CONST; +GType gtk_print_operation_get_type (void); GtkPrintOperation * gtk_print_operation_new (void); void gtk_print_operation_set_default_page_setup (GtkPrintOperation *op, GtkPageSetup *default_page_setup); diff --git a/gtk/gtkprintoperationpreview.h b/gtk/gtkprintoperationpreview.h index 32b2eadcc..61de3f7c7 100644 --- a/gtk/gtkprintoperationpreview.h +++ b/gtk/gtkprintoperationpreview.h @@ -67,7 +67,7 @@ struct _GtkPrintOperationPreviewIface void (*_gtk_reserved7) (void); }; -GType gtk_print_operation_preview_get_type (void) G_GNUC_CONST; +GType gtk_print_operation_preview_get_type (void); void gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview, gint page_nr); diff --git a/gtk/gtkprintsettings.h b/gtk/gtkprintsettings.h index 89bdb2ae1..f2de68c04 100644 --- a/gtk/gtkprintsettings.h +++ b/gtk/gtkprintsettings.h @@ -46,7 +46,7 @@ struct _GtkPageRange gint end; }; -GType gtk_print_settings_get_type (void) G_GNUC_CONST; +GType gtk_print_settings_get_type (void); GtkPrintSettings *gtk_print_settings_new (void); GtkPrintSettings *gtk_print_settings_copy (GtkPrintSettings *other); diff --git a/gtk/gtkprintunixdialog.h b/gtk/gtkprintunixdialog.h index dcf6bbf85..e38a58553 100644 --- a/gtk/gtkprintunixdialog.h +++ b/gtk/gtkprintunixdialog.h @@ -64,7 +64,7 @@ struct _GtkPrintUnixDialogClass void (*_gtk_reserved7) (void); }; -GType gtk_print_unix_dialog_get_type (void) G_GNUC_CONST; +GType gtk_print_unix_dialog_get_type (void); GtkWidget * gtk_print_unix_dialog_new (const gchar *title, GtkWindow *parent); diff --git a/gtk/gtkprogress.h b/gtk/gtkprogress.h index b5f42e851..1f60db69a 100644 --- a/gtk/gtkprogress.h +++ b/gtk/gtkprogress.h @@ -85,7 +85,7 @@ struct _GtkProgressClass #if !defined (GTK_DISABLE_DEPRECATED) || defined (__GTK_PROGRESS_C__) || defined (__GTK_PROGRESS_BAR_C__) -GType gtk_progress_get_type (void) G_GNUC_CONST; +GType gtk_progress_get_type (void); void gtk_progress_set_show_text (GtkProgress *progress, gboolean show_text); void gtk_progress_set_text_alignment (GtkProgress *progress, diff --git a/gtk/gtkprogressbar.h b/gtk/gtkprogressbar.h index 0086aa3f6..c38e1df29 100644 --- a/gtk/gtkprogressbar.h +++ b/gtk/gtkprogressbar.h @@ -95,7 +95,7 @@ struct _GtkProgressBarClass }; -GType gtk_progress_bar_get_type (void) G_GNUC_CONST; +GType gtk_progress_bar_get_type (void); GtkWidget* gtk_progress_bar_new (void); /* diff --git a/gtk/gtkradioaction.h b/gtk/gtkradioaction.h index 03b04a8ad..ffdbdbd69 100644 --- a/gtk/gtkradioaction.h +++ b/gtk/gtkradioaction.h @@ -72,7 +72,7 @@ struct _GtkRadioActionClass void (*_gtk_reserved4) (void); }; -GType gtk_radio_action_get_type (void) G_GNUC_CONST; +GType gtk_radio_action_get_type (void); GtkRadioAction *gtk_radio_action_new (const gchar *name, const gchar *label, const gchar *tooltip, diff --git a/gtk/gtkradiobutton.h b/gtk/gtkradiobutton.h index 8f91d40f3..08c61a63b 100644 --- a/gtk/gtkradiobutton.h +++ b/gtk/gtkradiobutton.h @@ -69,7 +69,7 @@ struct _GtkRadioButtonClass }; -GType gtk_radio_button_get_type (void) G_GNUC_CONST; +GType gtk_radio_button_get_type (void); GtkWidget* gtk_radio_button_new (GSList *group); GtkWidget* gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member); diff --git a/gtk/gtkradiomenuitem.h b/gtk/gtkradiomenuitem.h index d08a97c93..8df4bf024 100644 --- a/gtk/gtkradiomenuitem.h +++ b/gtk/gtkradiomenuitem.h @@ -69,7 +69,7 @@ struct _GtkRadioMenuItemClass }; -GType gtk_radio_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_radio_menu_item_get_type (void); GtkWidget* gtk_radio_menu_item_new (GSList *group); GtkWidget* gtk_radio_menu_item_new_with_label (GSList *group, diff --git a/gtk/gtkradiotoolbutton.h b/gtk/gtkradiotoolbutton.h index 6ea4caba5..22720ede9 100644 --- a/gtk/gtkradiotoolbutton.h +++ b/gtk/gtkradiotoolbutton.h @@ -57,7 +57,7 @@ struct _GtkRadioToolButtonClass void (* _gtk_reserved4) (void); }; -GType gtk_radio_tool_button_get_type (void) G_GNUC_CONST; +GType gtk_radio_tool_button_get_type (void); GtkToolItem *gtk_radio_tool_button_new (GSList *group); GtkToolItem *gtk_radio_tool_button_new_from_stock (GSList *group, diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h index 7a51ffe08..8a9d6d17d 100644 --- a/gtk/gtkrange.h +++ b/gtk/gtkrange.h @@ -133,7 +133,7 @@ struct _GtkRangeClass }; -GType gtk_range_get_type (void) G_GNUC_CONST; +GType gtk_range_get_type (void); #ifndef GTK_DISABLE_DEPRECATED void gtk_range_set_update_policy (GtkRange *range, diff --git a/gtk/gtkrc.h b/gtk/gtkrc.h index 5a9419912..f3619cb88 100644 --- a/gtk/gtkrc.h +++ b/gtk/gtkrc.h @@ -169,7 +169,7 @@ void gtk_rc_add_class_style (GtkRcStyle *rc_style, #endif /* GTK_DISABLE_DEPRECATED */ -GType gtk_rc_style_get_type (void) G_GNUC_CONST; +GType gtk_rc_style_get_type (void); GtkRcStyle* gtk_rc_style_new (void); GtkRcStyle* gtk_rc_style_copy (GtkRcStyle *orig); diff --git a/gtk/gtkrecentaction.h b/gtk/gtkrecentaction.h index c180e7b3e..f9e9d166a 100644 --- a/gtk/gtkrecentaction.h +++ b/gtk/gtkrecentaction.h @@ -55,7 +55,7 @@ struct _GtkRecentActionClass GtkActionClass parent_class; }; -GType gtk_recent_action_get_type (void) G_GNUC_CONST; +GType gtk_recent_action_get_type (void); GtkAction *gtk_recent_action_new (const gchar *name, const gchar *label, const gchar *tooltip, diff --git a/gtk/gtkrecentchooser.h b/gtk/gtkrecentchooser.h index 77f01aa79..926701d83 100644 --- a/gtk/gtkrecentchooser.h +++ b/gtk/gtkrecentchooser.h @@ -115,7 +115,7 @@ struct _GtkRecentChooserIface void (* selection_changed) (GtkRecentChooser *chooser); }; -GType gtk_recent_chooser_get_type (void) G_GNUC_CONST; +GType gtk_recent_chooser_get_type (void); /* * Configuration diff --git a/gtk/gtkrecentchooserdefault.h b/gtk/gtkrecentchooserdefault.h index 7edc1de38..5bd2487ed 100644 --- a/gtk/gtkrecentchooserdefault.h +++ b/gtk/gtkrecentchooserdefault.h @@ -33,7 +33,7 @@ G_BEGIN_DECLS typedef struct _GtkRecentChooserDefault GtkRecentChooserDefault; -GType _gtk_recent_chooser_default_get_type (void) G_GNUC_CONST; +GType _gtk_recent_chooser_default_get_type (void); GtkWidget *_gtk_recent_chooser_default_new (GtkRecentManager *recent_manager); diff --git a/gtk/gtkrecentchooserdialog.h b/gtk/gtkrecentchooserdialog.h index c48e6b100..e81e3181e 100644 --- a/gtk/gtkrecentchooserdialog.h +++ b/gtk/gtkrecentchooserdialog.h @@ -57,7 +57,7 @@ struct _GtkRecentChooserDialogClass }; -GType gtk_recent_chooser_dialog_get_type (void) G_GNUC_CONST; +GType gtk_recent_chooser_dialog_get_type (void); GtkWidget *gtk_recent_chooser_dialog_new (const gchar *title, GtkWindow *parent, diff --git a/gtk/gtkrecentchoosermenu.h b/gtk/gtkrecentchoosermenu.h index 9fb99cd93..c630e2764 100644 --- a/gtk/gtkrecentchoosermenu.h +++ b/gtk/gtkrecentchoosermenu.h @@ -60,7 +60,7 @@ struct _GtkRecentChooserMenuClass void (* gtk_recent4) (void); }; -GType gtk_recent_chooser_menu_get_type (void) G_GNUC_CONST; +GType gtk_recent_chooser_menu_get_type (void); GtkWidget *gtk_recent_chooser_menu_new (void); GtkWidget *gtk_recent_chooser_menu_new_for_manager (GtkRecentManager *manager); diff --git a/gtk/gtkrecentchooserutils.h b/gtk/gtkrecentchooserutils.h index 833d9a9c9..916c22091 100644 --- a/gtk/gtkrecentchooserutils.h +++ b/gtk/gtkrecentchooserutils.h @@ -55,7 +55,7 @@ void _gtk_recent_chooser_delegate_iface_init (GtkRecentChooserIface *iface); void _gtk_recent_chooser_set_delegate (GtkRecentChooser *receiver, GtkRecentChooser *delegate); -GQuark _gtk_recent_chooser_delegate_get_quark (void) G_GNUC_CONST; +GQuark _gtk_recent_chooser_delegate_get_quark (void); G_END_DECLS diff --git a/gtk/gtkrecentchooserwidget.h b/gtk/gtkrecentchooserwidget.h index 557f134c0..7c3f068e3 100644 --- a/gtk/gtkrecentchooserwidget.h +++ b/gtk/gtkrecentchooserwidget.h @@ -55,7 +55,7 @@ struct _GtkRecentChooserWidgetClass GtkVBoxClass parent_class; }; -GType gtk_recent_chooser_widget_get_type (void) G_GNUC_CONST; +GType gtk_recent_chooser_widget_get_type (void); GtkWidget *gtk_recent_chooser_widget_new (void); GtkWidget *gtk_recent_chooser_widget_new_for_manager (GtkRecentManager *manager); diff --git a/gtk/gtkrecentfilter.h b/gtk/gtkrecentfilter.h index 83cad90bc..2afe44516 100644 --- a/gtk/gtkrecentfilter.h +++ b/gtk/gtkrecentfilter.h @@ -61,7 +61,7 @@ struct _GtkRecentFilterInfo gint age; }; -GType gtk_recent_filter_get_type (void) G_GNUC_CONST; +GType gtk_recent_filter_get_type (void); GtkRecentFilter * gtk_recent_filter_new (void); void gtk_recent_filter_set_name (GtkRecentFilter *filter, diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h index 10dd2eebb..1a4c75935 100644 --- a/gtk/gtkrecentmanager.h +++ b/gtk/gtkrecentmanager.h @@ -135,7 +135,7 @@ typedef enum GQuark gtk_recent_manager_error_quark (void); -GType gtk_recent_manager_get_type (void) G_GNUC_CONST; +GType gtk_recent_manager_get_type (void); GtkRecentManager *gtk_recent_manager_new (void); GtkRecentManager *gtk_recent_manager_get_default (void); @@ -171,7 +171,7 @@ gint gtk_recent_manager_purge_items (GtkRecentManager *manag GError **error); -GType gtk_recent_info_get_type (void) G_GNUC_CONST; +GType gtk_recent_info_get_type (void); GtkRecentInfo * gtk_recent_info_ref (GtkRecentInfo *info); void gtk_recent_info_unref (GtkRecentInfo *info); diff --git a/gtk/gtkruler.h b/gtk/gtkruler.h index b2260524d..a2ae204e9 100644 --- a/gtk/gtkruler.h +++ b/gtk/gtkruler.h @@ -111,7 +111,7 @@ struct _GtkRulerMetric }; -GType gtk_ruler_get_type (void) G_GNUC_CONST; +GType gtk_ruler_get_type (void); void gtk_ruler_set_metric (GtkRuler *ruler, GtkMetricType metric); GtkMetricType gtk_ruler_get_metric (GtkRuler *ruler); diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h index 01b70e0c9..7c19cfd3a 100644 --- a/gtk/gtkscale.h +++ b/gtk/gtkscale.h @@ -76,7 +76,7 @@ struct _GtkScaleClass void (*_gtk_reserved3) (void); }; -GType gtk_scale_get_type (void) G_GNUC_CONST; +GType gtk_scale_get_type (void); void gtk_scale_set_digits (GtkScale *scale, gint digits); gint gtk_scale_get_digits (GtkScale *scale); diff --git a/gtk/gtkscalebutton.h b/gtk/gtkscalebutton.h index 29ab8a875..ede1865f7 100644 --- a/gtk/gtkscalebutton.h +++ b/gtk/gtkscalebutton.h @@ -81,7 +81,7 @@ struct _GtkScaleButtonClass void (*_gtk_reserved4) (void); }; -GType gtk_scale_button_get_type (void) G_GNUC_CONST; +GType gtk_scale_button_get_type (void); GtkWidget * gtk_scale_button_new (GtkIconSize size, gdouble min, gdouble max, diff --git a/gtk/gtkscrollbar.h b/gtk/gtkscrollbar.h index 8ce77d3ba..d3155818f 100644 --- a/gtk/gtkscrollbar.h +++ b/gtk/gtkscrollbar.h @@ -65,7 +65,7 @@ struct _GtkScrollbarClass }; -GType gtk_scrollbar_get_type (void) G_GNUC_CONST; +GType gtk_scrollbar_get_type (void); G_END_DECLS diff --git a/gtk/gtkscrolledwindow.h b/gtk/gtkscrolledwindow.h index 5407547c1..9f51bfac7 100644 --- a/gtk/gtkscrolledwindow.h +++ b/gtk/gtkscrolledwindow.h @@ -99,7 +99,7 @@ struct _GtkScrolledWindowClass }; -GType gtk_scrolled_window_get_type (void) G_GNUC_CONST; +GType gtk_scrolled_window_get_type (void); GtkWidget* gtk_scrolled_window_new (GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); void gtk_scrolled_window_set_hadjustment (GtkScrolledWindow *scrolled_window, diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index 012e7d4b4..7db23e754 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -210,11 +210,11 @@ gboolean _gtk_selection_notify (GtkWidget *widget, gboolean _gtk_selection_property_notify (GtkWidget *widget, GdkEventProperty *event); -GType gtk_selection_data_get_type (void) G_GNUC_CONST; +GType gtk_selection_data_get_type (void); GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data); void gtk_selection_data_free (GtkSelectionData *data); -GType gtk_target_list_get_type (void) G_GNUC_CONST; +GType gtk_target_list_get_type (void); G_END_DECLS diff --git a/gtk/gtkseparator.h b/gtk/gtkseparator.h index 98441b667..eea41a039 100644 --- a/gtk/gtkseparator.h +++ b/gtk/gtkseparator.h @@ -59,7 +59,7 @@ struct _GtkSeparatorClass }; -GType gtk_separator_get_type (void) G_GNUC_CONST; +GType gtk_separator_get_type (void); G_END_DECLS diff --git a/gtk/gtkseparatormenuitem.h b/gtk/gtkseparatormenuitem.h index 2c99572d1..c6196481f 100644 --- a/gtk/gtkseparatormenuitem.h +++ b/gtk/gtkseparatormenuitem.h @@ -59,7 +59,7 @@ struct _GtkSeparatorMenuItemClass }; -GType gtk_separator_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_separator_menu_item_get_type (void); GtkWidget* gtk_separator_menu_item_new (void); diff --git a/gtk/gtkseparatortoolitem.h b/gtk/gtkseparatortoolitem.h index 58b04bfde..3d904dcf7 100644 --- a/gtk/gtkseparatortoolitem.h +++ b/gtk/gtkseparatortoolitem.h @@ -60,7 +60,7 @@ struct _GtkSeparatorToolItemClass void (* _gtk_reserved4) (void); }; -GType gtk_separator_tool_item_get_type (void) G_GNUC_CONST; +GType gtk_separator_tool_item_get_type (void); GtkToolItem *gtk_separator_tool_item_new (void); gboolean gtk_separator_tool_item_get_draw (GtkSeparatorToolItem *item); diff --git a/gtk/gtksettings.h b/gtk/gtksettings.h index 91d2be610..ab481efc7 100644 --- a/gtk/gtksettings.h +++ b/gtk/gtksettings.h @@ -75,7 +75,7 @@ struct _GtkSettingsValue /* --- functions --- */ -GType gtk_settings_get_type (void) G_GNUC_CONST; +GType gtk_settings_get_type (void); #ifndef GDK_MULTIHEAD_SAFE GtkSettings* gtk_settings_get_default (void); #endif diff --git a/gtk/gtksizegroup.h b/gtk/gtksizegroup.h index f1ff8b1f9..f4b580ac8 100644 --- a/gtk/gtksizegroup.h +++ b/gtk/gtksizegroup.h @@ -84,7 +84,7 @@ typedef enum { GTK_SIZE_GROUP_BOTH } GtkSizeGroupMode; -GType gtk_size_group_get_type (void) G_GNUC_CONST; +GType gtk_size_group_get_type (void); GtkSizeGroup * gtk_size_group_new (GtkSizeGroupMode mode); void gtk_size_group_set_mode (GtkSizeGroup *size_group, diff --git a/gtk/gtksocket.h b/gtk/gtksocket.h index c7bf32ddb..ff284e385 100644 --- a/gtk/gtksocket.h +++ b/gtk/gtksocket.h @@ -84,7 +84,7 @@ struct _GtkSocketClass }; -GType gtk_socket_get_type (void) G_GNUC_CONST; +GType gtk_socket_get_type (void); GtkWidget* gtk_socket_new (void); void gtk_socket_add_id (GtkSocket *socket_, diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h index 3fc70d7a2..680512b18 100644 --- a/gtk/gtkspinbutton.h +++ b/gtk/gtkspinbutton.h @@ -120,7 +120,7 @@ struct _GtkSpinButtonClass }; -GType gtk_spin_button_get_type (void) G_GNUC_CONST; +GType gtk_spin_button_get_type (void); void gtk_spin_button_configure (GtkSpinButton *spin_button, GtkAdjustment *adjustment, diff --git a/gtk/gtkspinner.h b/gtk/gtkspinner.h index c0715be51..944f75898 100644 --- a/gtk/gtkspinner.h +++ b/gtk/gtkspinner.h @@ -55,7 +55,7 @@ struct _GtkSpinnerClass GtkDrawingAreaClass parent_class; }; -GType gtk_spinner_get_type (void) G_GNUC_CONST; +GType gtk_spinner_get_type (void); GtkWidget *gtk_spinner_new (void); void gtk_spinner_start (GtkSpinner *spinner); void gtk_spinner_stop (GtkSpinner *spinner); diff --git a/gtk/gtkstatusbar.h b/gtk/gtkstatusbar.h index 6a0a2ebf6..ea45832eb 100644 --- a/gtk/gtkstatusbar.h +++ b/gtk/gtkstatusbar.h @@ -86,7 +86,7 @@ struct _GtkStatusbarClass }; -GType gtk_statusbar_get_type (void) G_GNUC_CONST; +GType gtk_statusbar_get_type (void); GtkWidget* gtk_statusbar_new (void); /* If you don't want to use contexts, 0 is a predefined global * context_id you can pass to push/pop/remove diff --git a/gtk/gtkstatusicon.h b/gtk/gtkstatusicon.h index c45caca5a..c581d8722 100644 --- a/gtk/gtkstatusicon.h +++ b/gtk/gtkstatusicon.h @@ -77,7 +77,7 @@ struct _GtkStatusIconClass void *__gtk_reserved2; }; -GType gtk_status_icon_get_type (void) G_GNUC_CONST; +GType gtk_status_icon_get_type (void); GtkStatusIcon *gtk_status_icon_new (void); GtkStatusIcon *gtk_status_icon_new_from_pixbuf (GdkPixbuf *pixbuf); diff --git a/gtk/gtkstock.h b/gtk/gtkstock.h index c67e97538..33af590ef 100644 --- a/gtk/gtkstock.h +++ b/gtk/gtkstock.h @@ -62,7 +62,7 @@ gboolean gtk_stock_lookup (const gchar *stock_id, */ GSList* gtk_stock_list_ids (void); -GType gtk_stock_item_get_type (void) G_GNUC_CONST; +GType gtk_stock_item_get_type (void); GtkStockItem *gtk_stock_item_copy (const GtkStockItem *item); void gtk_stock_item_free (GtkStockItem *item); diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h index 77d3ae1af..43d3b53a0 100644 --- a/gtk/gtkstyle.h +++ b/gtk/gtkstyle.h @@ -437,7 +437,7 @@ struct _GtkBorder gint bottom; }; -GType gtk_style_get_type (void) G_GNUC_CONST; +GType gtk_style_get_type (void); GtkStyle* gtk_style_new (void); GtkStyle* gtk_style_copy (GtkStyle *style); GtkStyle* gtk_style_attach (GtkStyle *style, @@ -878,7 +878,7 @@ void gtk_paint_spinner (GtkStyle *style, gint width, gint height); -GType gtk_border_get_type (void) G_GNUC_CONST; +GType gtk_border_get_type (void); GtkBorder *gtk_border_new (void) G_GNUC_MALLOC; GtkBorder *gtk_border_copy (const GtkBorder *border_); void gtk_border_free (GtkBorder *border_); diff --git a/gtk/gtktable.h b/gtk/gtktable.h index 0e2bb874f..5a098be5f 100644 --- a/gtk/gtktable.h +++ b/gtk/gtktable.h @@ -99,7 +99,7 @@ struct _GtkTableRowCol }; -GType gtk_table_get_type (void) G_GNUC_CONST; +GType gtk_table_get_type (void); GtkWidget* gtk_table_new (guint rows, guint columns, gboolean homogeneous); diff --git a/gtk/gtktearoffmenuitem.h b/gtk/gtktearoffmenuitem.h index 3900fd081..8dc03ecd6 100644 --- a/gtk/gtktearoffmenuitem.h +++ b/gtk/gtktearoffmenuitem.h @@ -67,7 +67,7 @@ struct _GtkTearoffMenuItemClass }; -GType gtk_tearoff_menu_item_get_type (void) G_GNUC_CONST; +GType gtk_tearoff_menu_item_get_type (void); GtkWidget* gtk_tearoff_menu_item_new (void); G_END_DECLS diff --git a/gtk/gtktext.h b/gtk/gtktext.h index 42da9bc53..2a795ab8d 100644 --- a/gtk/gtktext.h +++ b/gtk/gtktext.h @@ -175,7 +175,7 @@ struct _GtkTextClass }; -GType gtk_text_get_type (void) G_GNUC_CONST; +GType gtk_text_get_type (void); GtkWidget* gtk_text_new (GtkAdjustment *hadj, GtkAdjustment *vadj); void gtk_text_set_editable (GtkText *text, diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h index 3d80c3ef7..d989f9fdd 100644 --- a/gtk/gtktextbuffer.h +++ b/gtk/gtktextbuffer.h @@ -154,7 +154,7 @@ struct _GtkTextBufferClass void (*_gtk_reserved5) (void); }; -GType gtk_text_buffer_get_type (void) G_GNUC_CONST; +GType gtk_text_buffer_get_type (void); diff --git a/gtk/gtktextchild.h b/gtk/gtktextchild.h index 7a814cec3..91bc9ca7b 100644 --- a/gtk/gtktextchild.h +++ b/gtk/gtktextchild.h @@ -70,7 +70,7 @@ struct _GtkTextChildAnchorClass void (*_gtk_reserved4) (void); }; -GType gtk_text_child_anchor_get_type (void) G_GNUC_CONST; +GType gtk_text_child_anchor_get_type (void); GtkTextChildAnchor* gtk_text_child_anchor_new (void); diff --git a/gtk/gtktextiter.h b/gtk/gtktextiter.h index 4b0d2e46e..a58c39246 100644 --- a/gtk/gtktextiter.h +++ b/gtk/gtktextiter.h @@ -87,7 +87,7 @@ GtkTextBuffer *gtk_text_iter_get_buffer (const GtkTextIter *iter); GtkTextIter *gtk_text_iter_copy (const GtkTextIter *iter); void gtk_text_iter_free (GtkTextIter *iter); -GType gtk_text_iter_get_type (void) G_GNUC_CONST; +GType gtk_text_iter_get_type (void); /* * Convert to different kinds of index diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index 2ab3c7e76..7f3a30391 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -267,7 +267,7 @@ struct _GtkTextLineDisplay extern PangoAttrType gtk_text_attr_appearance_type; -GType gtk_text_layout_get_type (void) G_GNUC_CONST; +GType gtk_text_layout_get_type (void); GtkTextLayout* gtk_text_layout_new (void); void gtk_text_layout_set_buffer (GtkTextLayout *layout, diff --git a/gtk/gtktextmark.h b/gtk/gtktextmark.h index 4eab44519..5d29405c7 100644 --- a/gtk/gtktextmark.h +++ b/gtk/gtktextmark.h @@ -86,7 +86,7 @@ struct _GtkTextMarkClass void (*_gtk_reserved4) (void); }; -GType gtk_text_mark_get_type (void) G_GNUC_CONST; +GType gtk_text_mark_get_type (void); void gtk_text_mark_set_visible (GtkTextMark *mark, gboolean setting); diff --git a/gtk/gtktexttag.h b/gtk/gtktexttag.h index ea7c20f09..3714ad122 100644 --- a/gtk/gtktexttag.h +++ b/gtk/gtktexttag.h @@ -153,7 +153,7 @@ struct _GtkTextTagClass void (*_gtk_reserved4) (void); }; -GType gtk_text_tag_get_type (void) G_GNUC_CONST; +GType gtk_text_tag_get_type (void); GtkTextTag *gtk_text_tag_new (const gchar *name); gint gtk_text_tag_get_priority (GtkTextTag *tag); void gtk_text_tag_set_priority (GtkTextTag *tag, @@ -280,7 +280,7 @@ void gtk_text_attributes_copy_values (GtkTextAttributes *src, void gtk_text_attributes_unref (GtkTextAttributes *values); GtkTextAttributes *gtk_text_attributes_ref (GtkTextAttributes *values); -GType gtk_text_attributes_get_type (void) G_GNUC_CONST; +GType gtk_text_attributes_get_type (void); G_END_DECLS diff --git a/gtk/gtktexttagtable.h b/gtk/gtktexttagtable.h index aa7d985d9..c1292b033 100644 --- a/gtk/gtktexttagtable.h +++ b/gtk/gtktexttagtable.h @@ -72,7 +72,7 @@ struct _GtkTextTagTableClass void (*_gtk_reserved4) (void); }; -GType gtk_text_tag_table_get_type (void) G_GNUC_CONST; +GType gtk_text_tag_table_get_type (void); GtkTextTagTable *gtk_text_tag_table_new (void); void gtk_text_tag_table_add (GtkTextTagTable *table, diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index bdd47579f..8c9a43568 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -214,7 +214,7 @@ struct _GtkTextViewClass void (*_gtk_reserved7) (void); }; -GType gtk_text_view_get_type (void) G_GNUC_CONST; +GType gtk_text_view_get_type (void); GtkWidget * gtk_text_view_new (void); GtkWidget * gtk_text_view_new_with_buffer (GtkTextBuffer *buffer); void gtk_text_view_set_buffer (GtkTextView *text_view, diff --git a/gtk/gtkthemes.h b/gtk/gtkthemes.h index 49d3e511d..ec89f7353 100644 --- a/gtk/gtkthemes.h +++ b/gtk/gtkthemes.h @@ -39,7 +39,7 @@ G_BEGIN_DECLS #define GTK_THEME_ENGINE(theme_engine) (G_TYPE_CHECK_INSTANCE_CAST ((theme_engine), GTK_TYPE_THEME_ENGINE, GtkThemeEngine)) #define GTK_IS_THEME_ENGINE(theme_engine) (G_TYPE_CHECK_INSTANCE_TYPE ((theme_engine), GTK_TYPE_THEME_ENGINE)) -GType gtk_theme_engine_get_type (void) G_GNUC_CONST; +GType gtk_theme_engine_get_type (void); GtkThemeEngine *gtk_theme_engine_get (const gchar *name); GtkRcStyle *gtk_theme_engine_create_rc_style (GtkThemeEngine *engine); diff --git a/gtk/gtktipsquery.h b/gtk/gtktipsquery.h index b792d8121..8e9d8739b 100644 --- a/gtk/gtktipsquery.h +++ b/gtk/gtktipsquery.h @@ -93,7 +93,7 @@ struct _GtkTipsQueryClass /* --- prototypes --- */ -GType gtk_tips_query_get_type (void) G_GNUC_CONST; +GType gtk_tips_query_get_type (void); GtkWidget* gtk_tips_query_new (void); void gtk_tips_query_start_query (GtkTipsQuery *tips_query); void gtk_tips_query_stop_query (GtkTipsQuery *tips_query); diff --git a/gtk/gtktoggleaction.h b/gtk/gtktoggleaction.h index 34210f588..db448039f 100644 --- a/gtk/gtktoggleaction.h +++ b/gtk/gtktoggleaction.h @@ -72,7 +72,7 @@ struct _GtkToggleActionClass void (*_gtk_reserved4) (void); }; -GType gtk_toggle_action_get_type (void) G_GNUC_CONST; +GType gtk_toggle_action_get_type (void); GtkToggleAction *gtk_toggle_action_new (const gchar *name, const gchar *label, const gchar *tooltip, diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h index 931b013d0..e523b486a 100644 --- a/gtk/gtktogglebutton.h +++ b/gtk/gtktogglebutton.h @@ -71,7 +71,7 @@ struct _GtkToggleButtonClass }; -GType gtk_toggle_button_get_type (void) G_GNUC_CONST; +GType gtk_toggle_button_get_type (void); GtkWidget* gtk_toggle_button_new (void); GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); diff --git a/gtk/gtktoggletoolbutton.h b/gtk/gtktoggletoolbutton.h index d90f6428f..5dbdeb856 100644 --- a/gtk/gtktoggletoolbutton.h +++ b/gtk/gtktoggletoolbutton.h @@ -64,7 +64,7 @@ struct _GtkToggleToolButtonClass void (* _gtk_reserved4) (void); }; -GType gtk_toggle_tool_button_get_type (void) G_GNUC_CONST; +GType gtk_toggle_tool_button_get_type (void); GtkToolItem *gtk_toggle_tool_button_new (void); GtkToolItem *gtk_toggle_tool_button_new_from_stock (const gchar *stock_id); diff --git a/gtk/gtktoolbar.h b/gtk/gtktoolbar.h index 931c20d98..37fd0285e 100644 --- a/gtk/gtktoolbar.h +++ b/gtk/gtktoolbar.h @@ -138,7 +138,7 @@ struct _GtkToolbarClass void (*_gtk_reserved3) (void); }; -GType gtk_toolbar_get_type (void) G_GNUC_CONST; +GType gtk_toolbar_get_type (void); GtkWidget * gtk_toolbar_new (void); void gtk_toolbar_insert (GtkToolbar *toolbar, diff --git a/gtk/gtktoolbutton.h b/gtk/gtktoolbutton.h index fdb8273db..de582e783 100644 --- a/gtk/gtktoolbutton.h +++ b/gtk/gtktoolbutton.h @@ -66,7 +66,7 @@ struct _GtkToolButtonClass void (* _gtk_reserved4) (void); }; -GType gtk_tool_button_get_type (void) G_GNUC_CONST; +GType gtk_tool_button_get_type (void); GtkToolItem *gtk_tool_button_new (GtkWidget *icon_widget, const gchar *label); GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id); diff --git a/gtk/gtktoolitem.h b/gtk/gtktoolitem.h index 0455ae58a..1febca0b7 100644 --- a/gtk/gtktoolitem.h +++ b/gtk/gtktoolitem.h @@ -76,7 +76,7 @@ struct _GtkToolItemClass void (* _gtk_reserved4) (void); }; -GType gtk_tool_item_get_type (void) G_GNUC_CONST; +GType gtk_tool_item_get_type (void); GtkToolItem *gtk_tool_item_new (void); void gtk_tool_item_set_homogeneous (GtkToolItem *tool_item, diff --git a/gtk/gtktoolitemgroup.h b/gtk/gtktoolitemgroup.h index 6b1c936ec..8bdd15127 100644 --- a/gtk/gtktoolitemgroup.h +++ b/gtk/gtktoolitemgroup.h @@ -58,7 +58,7 @@ struct _GtkToolItemGroupClass GtkContainerClass parent_class; }; -GType gtk_tool_item_group_get_type (void) G_GNUC_CONST; +GType gtk_tool_item_group_get_type (void); GtkWidget* gtk_tool_item_group_new (const gchar *label); void gtk_tool_item_group_set_label (GtkToolItemGroup *group, diff --git a/gtk/gtktoolpalette.h b/gtk/gtktoolpalette.h index 90aa701e4..2a643d421 100644 --- a/gtk/gtktoolpalette.h +++ b/gtk/gtktoolpalette.h @@ -85,7 +85,7 @@ struct _GtkToolPaletteClass void (*_gtk_reserved6) (void); }; -GType gtk_tool_palette_get_type (void) G_GNUC_CONST; +GType gtk_tool_palette_get_type (void); GtkWidget* gtk_tool_palette_new (void); void gtk_tool_palette_set_group_position (GtkToolPalette *palette, diff --git a/gtk/gtktoolshell.h b/gtk/gtktoolshell.h index 6cf3db5ae..a4dc1699d 100644 --- a/gtk/gtktoolshell.h +++ b/gtk/gtktoolshell.h @@ -74,7 +74,7 @@ struct _GtkToolShellIface GtkSizeGroup * (*get_text_size_group) (GtkToolShell *shell); }; -GType gtk_tool_shell_get_type (void) G_GNUC_CONST; +GType gtk_tool_shell_get_type (void); GtkIconSize gtk_tool_shell_get_icon_size (GtkToolShell *shell); GtkOrientation gtk_tool_shell_get_orientation (GtkToolShell *shell); diff --git a/gtk/gtktooltips.h b/gtk/gtktooltips.h index fbafd9939..1b038597d 100644 --- a/gtk/gtktooltips.h +++ b/gtk/gtktooltips.h @@ -92,7 +92,7 @@ struct _GtkTooltipsClass void (*_gtk_reserved4) (void); }; -GType gtk_tooltips_get_type (void) G_GNUC_CONST; +GType gtk_tooltips_get_type (void); GtkTooltips* gtk_tooltips_new (void); void gtk_tooltips_enable (GtkTooltips *tooltips); diff --git a/gtk/gtktrayicon.h b/gtk/gtktrayicon.h index ab4eda2f5..4dd03ea51 100644 --- a/gtk/gtktrayicon.h +++ b/gtk/gtktrayicon.h @@ -54,7 +54,7 @@ struct _GtkTrayIconClass void (*__gtk_reserved6) (void); }; -GType gtk_tray_icon_get_type (void) G_GNUC_CONST; +GType gtk_tray_icon_get_type (void); GtkTrayIcon *_gtk_tray_icon_new_for_screen (GdkScreen *screen, const gchar *name); diff --git a/gtk/gtktree.h b/gtk/gtktree.h index e2fc187a2..2e0ddb811 100644 --- a/gtk/gtktree.h +++ b/gtk/gtktree.h @@ -88,7 +88,7 @@ struct _GtkTreeClass }; -GType gtk_tree_get_type (void) G_GNUC_CONST; +GType gtk_tree_get_type (void); GtkWidget* gtk_tree_new (void); void gtk_tree_append (GtkTree *tree, GtkWidget *tree_item); diff --git a/gtk/gtktreednd.h b/gtk/gtktreednd.h index aa0684f0b..94fcfd254 100644 --- a/gtk/gtktreednd.h +++ b/gtk/gtktreednd.h @@ -54,7 +54,7 @@ struct _GtkTreeDragSourceIface GtkTreePath *path); }; -GType gtk_tree_drag_source_get_type (void) G_GNUC_CONST; +GType gtk_tree_drag_source_get_type (void); /* Returns whether the given row can be dragged */ gboolean gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source, @@ -94,7 +94,7 @@ struct _GtkTreeDragDestIface GtkSelectionData *selection_data); }; -GType gtk_tree_drag_dest_get_type (void) G_GNUC_CONST; +GType gtk_tree_drag_dest_get_type (void); /* Inserts a row before dest which contains data in selection_data, * or returns FALSE if it can't diff --git a/gtk/gtktreeitem.h b/gtk/gtktreeitem.h index 0e8dbaf1d..c60236136 100644 --- a/gtk/gtktreeitem.h +++ b/gtk/gtktreeitem.h @@ -71,7 +71,7 @@ struct _GtkTreeItemClass }; -GType gtk_tree_item_get_type (void) G_GNUC_CONST; +GType gtk_tree_item_get_type (void); GtkWidget* gtk_tree_item_new (void); GtkWidget* gtk_tree_item_new_with_label (const gchar *label); void gtk_tree_item_set_subtree (GtkTreeItem *tree_item, diff --git a/gtk/gtktreemodel.h b/gtk/gtktreemodel.h index 1faff6468..ba318a9ff 100644 --- a/gtk/gtktreemodel.h +++ b/gtk/gtktreemodel.h @@ -138,7 +138,7 @@ gint *gtk_tree_path_get_indices_with_depth (GtkTreePath *path, gint *depth); void gtk_tree_path_free (GtkTreePath *path); GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path); -GType gtk_tree_path_get_type (void) G_GNUC_CONST; +GType gtk_tree_path_get_type (void); gint gtk_tree_path_compare (const GtkTreePath *a, const GtkTreePath *b); void gtk_tree_path_next (GtkTreePath *path); @@ -160,7 +160,7 @@ gboolean gtk_tree_path_is_descendant (GtkTreePath *path, * want to call gtk_tree_row_reference_new. */ -GType gtk_tree_row_reference_get_type (void) G_GNUC_CONST; +GType gtk_tree_row_reference_get_type (void); GtkTreeRowReference *gtk_tree_row_reference_new (GtkTreeModel *model, GtkTreePath *path); GtkTreeRowReference *gtk_tree_row_reference_new_proxy (GObject *proxy, @@ -185,9 +185,9 @@ void gtk_tree_row_reference_reordered (GObject *proxy, /* GtkTreeIter operations */ GtkTreeIter * gtk_tree_iter_copy (GtkTreeIter *iter); void gtk_tree_iter_free (GtkTreeIter *iter); -GType gtk_tree_iter_get_type (void) G_GNUC_CONST; +GType gtk_tree_iter_get_type (void); -GType gtk_tree_model_get_type (void) G_GNUC_CONST; +GType gtk_tree_model_get_type (void); GtkTreeModelFlags gtk_tree_model_get_flags (GtkTreeModel *tree_model); gint gtk_tree_model_get_n_columns (GtkTreeModel *tree_model); GType gtk_tree_model_get_column_type (GtkTreeModel *tree_model, diff --git a/gtk/gtktreemodelfilter.h b/gtk/gtktreemodelfilter.h index d8887584f..f511b1d67 100644 --- a/gtk/gtktreemodelfilter.h +++ b/gtk/gtktreemodelfilter.h @@ -70,7 +70,7 @@ struct _GtkTreeModelFilterClass }; /* base */ -GType gtk_tree_model_filter_get_type (void) G_GNUC_CONST; +GType gtk_tree_model_filter_get_type (void); GtkTreeModel *gtk_tree_model_filter_new (GtkTreeModel *child_model, GtkTreePath *root); void gtk_tree_model_filter_set_visible_func (GtkTreeModelFilter *filter, diff --git a/gtk/gtktreemodelsort.h b/gtk/gtktreemodelsort.h index ca3dcc94f..942f4c170 100644 --- a/gtk/gtktreemodelsort.h +++ b/gtk/gtktreemodelsort.h @@ -81,7 +81,7 @@ struct _GtkTreeModelSortClass }; -GType gtk_tree_model_sort_get_type (void) G_GNUC_CONST; +GType gtk_tree_model_sort_get_type (void); GtkTreeModel *gtk_tree_model_sort_new_with_model (GtkTreeModel *child_model); GtkTreeModel *gtk_tree_model_sort_get_model (GtkTreeModelSort *tree_model); diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h index 32038dcaf..ecf2cc274 100644 --- a/gtk/gtktreeselection.h +++ b/gtk/gtktreeselection.h @@ -73,7 +73,7 @@ struct _GtkTreeSelectionClass }; -GType gtk_tree_selection_get_type (void) G_GNUC_CONST; +GType gtk_tree_selection_get_type (void); void gtk_tree_selection_set_mode (GtkTreeSelection *selection, GtkSelectionMode type); diff --git a/gtk/gtktreesortable.h b/gtk/gtktreesortable.h index b090f4c0b..39798ace4 100644 --- a/gtk/gtktreesortable.h +++ b/gtk/gtktreesortable.h @@ -78,7 +78,7 @@ struct _GtkTreeSortableIface }; -GType gtk_tree_sortable_get_type (void) G_GNUC_CONST; +GType gtk_tree_sortable_get_type (void); void gtk_tree_sortable_sort_column_changed (GtkTreeSortable *sortable); gboolean gtk_tree_sortable_get_sort_column_id (GtkTreeSortable *sortable, diff --git a/gtk/gtktreestore.h b/gtk/gtktreestore.h index 9e4f13dbc..fe4778661 100644 --- a/gtk/gtktreestore.h +++ b/gtk/gtktreestore.h @@ -73,7 +73,7 @@ struct _GtkTreeStoreClass }; -GType gtk_tree_store_get_type (void) G_GNUC_CONST; +GType gtk_tree_store_get_type (void); GtkTreeStore *gtk_tree_store_new (gint n_columns, ...); GtkTreeStore *gtk_tree_store_newv (gint n_columns, diff --git a/gtk/gtktreeview.h b/gtk/gtktreeview.h index 23d8055f4..838f01796 100644 --- a/gtk/gtktreeview.h +++ b/gtk/gtktreeview.h @@ -137,7 +137,7 @@ typedef void (*GtkTreeViewSearchPositionFunc) (GtkTreeView *tree_view, /* Creators */ -GType gtk_tree_view_get_type (void) G_GNUC_CONST; +GType gtk_tree_view_get_type (void); GtkWidget *gtk_tree_view_new (void); GtkWidget *gtk_tree_view_new_with_model (GtkTreeModel *model); diff --git a/gtk/gtktreeviewcolumn.h b/gtk/gtktreeviewcolumn.h index d36f6077f..3ce3dd92b 100644 --- a/gtk/gtktreeviewcolumn.h +++ b/gtk/gtktreeviewcolumn.h @@ -123,7 +123,7 @@ struct _GtkTreeViewColumnClass void (*_gtk_reserved4) (void); }; -GType gtk_tree_view_column_get_type (void) G_GNUC_CONST; +GType gtk_tree_view_column_get_type (void); GtkTreeViewColumn *gtk_tree_view_column_new (void); GtkTreeViewColumn *gtk_tree_view_column_new_with_attributes (const gchar *title, GtkCellRenderer *cell, diff --git a/gtk/gtktypebuiltins.h.template b/gtk/gtktypebuiltins.h.template index 9b2538dc1..f4a0f15ff 100644 --- a/gtk/gtktypebuiltins.h.template +++ b/gtk/gtktypebuiltins.h.template @@ -17,7 +17,7 @@ G_BEGIN_DECLS /*** END file-production ***/ /*** BEGIN value-header ***/ -GType @enum_name@_get_type (void) G_GNUC_CONST; +GType @enum_name@_get_type (void); #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) /*** END value-header ***/ diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h index bd790e424..30d7e5001 100644 --- a/gtk/gtktypeutils.h +++ b/gtk/gtktypeutils.h @@ -39,7 +39,7 @@ G_BEGIN_DECLS /* urg */ #define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ()) -GType gtk_identifier_get_type (void) G_GNUC_CONST; +GType gtk_identifier_get_type (void); /* --- typedefs --- */ /* here we come with some necessary forward declarations for structures and diff --git a/gtk/gtkuimanager.h b/gtk/gtkuimanager.h index c626ebc38..c298bcd5d 100644 --- a/gtk/gtkuimanager.h +++ b/gtk/gtkuimanager.h @@ -110,7 +110,7 @@ typedef enum { #define gtk_ui_manager_add_ui_from_file gtk_ui_manager_add_ui_from_file_utf8 #endif -GType gtk_ui_manager_get_type (void) G_GNUC_CONST; +GType gtk_ui_manager_get_type (void); GtkUIManager *gtk_ui_manager_new (void); void gtk_ui_manager_set_add_tearoffs (GtkUIManager *self, gboolean add_tearoffs); diff --git a/gtk/gtkvbbox.h b/gtk/gtkvbbox.h index 26f699093..0c6a3e195 100644 --- a/gtk/gtkvbbox.h +++ b/gtk/gtkvbbox.h @@ -60,7 +60,7 @@ struct _GtkVButtonBoxClass }; -GType gtk_vbutton_box_get_type (void) G_GNUC_CONST; +GType gtk_vbutton_box_get_type (void); GtkWidget *gtk_vbutton_box_new (void); /* buttons can be added by gtk_container_add() */ diff --git a/gtk/gtkvbox.h b/gtk/gtkvbox.h index 7b6af6dbc..4ccf03fca 100644 --- a/gtk/gtkvbox.h +++ b/gtk/gtkvbox.h @@ -59,7 +59,7 @@ struct _GtkVBoxClass }; -GType gtk_vbox_get_type (void) G_GNUC_CONST; +GType gtk_vbox_get_type (void); GtkWidget * gtk_vbox_new (gboolean homogeneous, gint spacing); diff --git a/gtk/gtkviewport.h b/gtk/gtkviewport.h index ee74e34a9..8a7c93dc4 100644 --- a/gtk/gtkviewport.h +++ b/gtk/gtkviewport.h @@ -71,7 +71,7 @@ struct _GtkViewportClass }; -GType gtk_viewport_get_type (void) G_GNUC_CONST; +GType gtk_viewport_get_type (void); GtkWidget* gtk_viewport_new (GtkAdjustment *hadjustment, GtkAdjustment *vadjustment); GtkAdjustment* gtk_viewport_get_hadjustment (GtkViewport *viewport); diff --git a/gtk/gtkvolumebutton.h b/gtk/gtkvolumebutton.h index d8a3c72cb..40e3d4448 100644 --- a/gtk/gtkvolumebutton.h +++ b/gtk/gtkvolumebutton.h @@ -64,7 +64,7 @@ struct _GtkVolumeButtonClass void (*_gtk_reserved4) (void); }; -GType gtk_volume_button_get_type (void) G_GNUC_CONST; +GType gtk_volume_button_get_type (void); GtkWidget* gtk_volume_button_new (void); G_END_DECLS diff --git a/gtk/gtkvpaned.h b/gtk/gtkvpaned.h index 9f210f714..b8ce3bf72 100644 --- a/gtk/gtkvpaned.h +++ b/gtk/gtkvpaned.h @@ -57,7 +57,7 @@ struct _GtkVPanedClass }; -GType gtk_vpaned_get_type (void) G_GNUC_CONST; +GType gtk_vpaned_get_type (void); GtkWidget * gtk_vpaned_new (void); G_END_DECLS diff --git a/gtk/gtkvruler.h b/gtk/gtkvruler.h index 9bff47c15..667944f7e 100644 --- a/gtk/gtkvruler.h +++ b/gtk/gtkvruler.h @@ -72,7 +72,7 @@ struct _GtkVRulerClass }; -GType gtk_vruler_get_type (void) G_GNUC_CONST; +GType gtk_vruler_get_type (void); GtkWidget* gtk_vruler_new (void); diff --git a/gtk/gtkvscale.h b/gtk/gtkvscale.h index b5d5d85d6..1a1659450 100644 --- a/gtk/gtkvscale.h +++ b/gtk/gtkvscale.h @@ -66,7 +66,7 @@ struct _GtkVScaleClass }; -GType gtk_vscale_get_type (void) G_GNUC_CONST; +GType gtk_vscale_get_type (void); GtkWidget* gtk_vscale_new (GtkAdjustment *adjustment); GtkWidget* gtk_vscale_new_with_range (gdouble min, gdouble max, diff --git a/gtk/gtkvscrollbar.h b/gtk/gtkvscrollbar.h index e7692af09..5df16a129 100644 --- a/gtk/gtkvscrollbar.h +++ b/gtk/gtkvscrollbar.h @@ -66,7 +66,7 @@ struct _GtkVScrollbarClass }; -GType gtk_vscrollbar_get_type (void) G_GNUC_CONST; +GType gtk_vscrollbar_get_type (void); GtkWidget* gtk_vscrollbar_new (GtkAdjustment *adjustment); diff --git a/gtk/gtkvseparator.h b/gtk/gtkvseparator.h index f41d491cc..2a0e5d033 100644 --- a/gtk/gtkvseparator.h +++ b/gtk/gtkvseparator.h @@ -66,7 +66,7 @@ struct _GtkVSeparatorClass }; -GType gtk_vseparator_get_type (void) G_GNUC_CONST; +GType gtk_vseparator_get_type (void); GtkWidget* gtk_vseparator_new (void); diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 5d0543db1..ae5666bfb 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -830,7 +830,7 @@ struct _GtkWidgetShapeInfo GdkBitmap *shape_mask; }; -GType gtk_widget_get_type (void) G_GNUC_CONST; +GType gtk_widget_get_type (void); GtkWidget* gtk_widget_new (GType type, const gchar *first_property_name, ...); @@ -1305,7 +1305,7 @@ void gtk_widget_set_has_tooltip (GtkWidget *widget, gboolean has_tooltip); gboolean gtk_widget_get_has_tooltip (GtkWidget *widget); -GType gtk_requisition_get_type (void) G_GNUC_CONST; +GType gtk_requisition_get_type (void); GtkRequisition *gtk_requisition_copy (const GtkRequisition *requisition); void gtk_requisition_free (GtkRequisition *requisition); diff --git a/gtk/gtkwin32embedwidget.h b/gtk/gtkwin32embedwidget.h index 92515cfb8..21fdb54aa 100644 --- a/gtk/gtkwin32embedwidget.h +++ b/gtk/gtkwin32embedwidget.h @@ -65,7 +65,7 @@ struct _GtkWin32EmbedWidgetClass }; -GType gtk_win32_embed_widget_get_type (void) G_GNUC_CONST; +GType gtk_win32_embed_widget_get_type (void); GtkWidget* _gtk_win32_embed_widget_new (GdkNativeWindow parent_id); BOOL _gtk_win32_embed_widget_dialog_procedure (GtkWin32EmbedWidget *embed_widget, HWND wnd, UINT message, WPARAM wparam, LPARAM lparam); diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h index 39202dc2a..30e83cc57 100644 --- a/gtk/gtkwindow.h +++ b/gtk/gtkwindow.h @@ -175,7 +175,7 @@ struct _GtkWindowGroupClass #define gtk_window_set_default_icon_from_file gtk_window_set_default_icon_from_file_utf8 #endif -GType gtk_window_get_type (void) G_GNUC_CONST; +GType gtk_window_get_type (void); GtkWidget* gtk_window_new (GtkWindowType type); void gtk_window_set_title (GtkWindow *window, const gchar *title); @@ -394,7 +394,7 @@ GtkWindowType gtk_window_get_window_type (GtkWindow *window); /* Window groups */ -GType gtk_window_group_get_type (void) G_GNUC_CONST; +GType gtk_window_group_get_type (void); GtkWindowGroup * gtk_window_group_new (void); void gtk_window_group_add_window (GtkWindowGroup *window_group, diff --git a/modules/printbackends/cups/gtkprintbackendcups.h b/modules/printbackends/cups/gtkprintbackendcups.h index 81c1d987a..3f9476a3f 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.h +++ b/modules/printbackends/cups/gtkprintbackendcups.h @@ -33,7 +33,7 @@ G_BEGIN_DECLS typedef struct _GtkPrintBackendCups GtkPrintBackendCups; GtkPrintBackend *gtk_print_backend_cups_new (void); -GType gtk_print_backend_cups_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_cups_get_type (void); G_END_DECLS diff --git a/modules/printbackends/cups/gtkprintercups.h b/modules/printbackends/cups/gtkprintercups.h index d10bd7ec3..1e8205897 100644 --- a/modules/printbackends/cups/gtkprintercups.h +++ b/modules/printbackends/cups/gtkprintercups.h @@ -81,7 +81,7 @@ struct _GtkPrinterCupsClass }; -GType gtk_printer_cups_get_type (void) G_GNUC_CONST; +GType gtk_printer_cups_get_type (void); void gtk_printer_cups_register_type (GTypeModule *module); GtkPrinterCups *gtk_printer_cups_new (const char *name, GtkPrintBackend *backend); diff --git a/modules/printbackends/file/gtkprintbackendfile.h b/modules/printbackends/file/gtkprintbackendfile.h index 5492e4ec9..353b6d6fb 100644 --- a/modules/printbackends/file/gtkprintbackendfile.h +++ b/modules/printbackends/file/gtkprintbackendfile.h @@ -34,7 +34,7 @@ G_BEGIN_DECLS typedef struct _GtkPrintBackendFile GtkPrintBackendFile; GtkPrintBackend *gtk_print_backend_file_new (void); -GType gtk_print_backend_file_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_file_get_type (void); G_END_DECLS diff --git a/modules/printbackends/lpr/gtkprintbackendlpr.h b/modules/printbackends/lpr/gtkprintbackendlpr.h index ecceaa928..fa04a7b65 100644 --- a/modules/printbackends/lpr/gtkprintbackendlpr.h +++ b/modules/printbackends/lpr/gtkprintbackendlpr.h @@ -34,7 +34,7 @@ G_BEGIN_DECLS typedef struct _GtkPrintBackendLpr GtkPrintBackendLpr; GtkPrintBackend *gtk_print_backend_lpr_new (void); -GType gtk_print_backend_lpr_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_lpr_get_type (void); G_END_DECLS diff --git a/modules/printbackends/papi/gtkprintbackendpapi.h b/modules/printbackends/papi/gtkprintbackendpapi.h index fdee549fa..5611ad71b 100644 --- a/modules/printbackends/papi/gtkprintbackendpapi.h +++ b/modules/printbackends/papi/gtkprintbackendpapi.h @@ -35,7 +35,7 @@ G_BEGIN_DECLS typedef struct _GtkPrintBackendPapi GtkPrintBackendPapi; GtkPrintBackend *gtk_print_backend_papi_new (void); -GType gtk_print_backend_papi_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_papi_get_type (void); G_END_DECLS diff --git a/modules/printbackends/papi/gtkprinterpapi.h b/modules/printbackends/papi/gtkprinterpapi.h index 300cf1711..73e71a4cb 100644 --- a/modules/printbackends/papi/gtkprinterpapi.h +++ b/modules/printbackends/papi/gtkprinterpapi.h @@ -52,7 +52,7 @@ struct _GtkPrinterPapiClass }; -GType gtk_printer_papi_get_type (void) G_GNUC_CONST; +GType gtk_printer_papi_get_type (void); void gtk_printer_papi_register_type (GTypeModule *module); GtkPrinterPapi *gtk_printer_papi_new (const char *name, GtkPrintBackend *backend); diff --git a/modules/printbackends/test/gtkprintbackendtest.h b/modules/printbackends/test/gtkprintbackendtest.h index 8ee33be74..6ed5818e9 100644 --- a/modules/printbackends/test/gtkprintbackendtest.h +++ b/modules/printbackends/test/gtkprintbackendtest.h @@ -34,7 +34,7 @@ G_BEGIN_DECLS typedef struct _GtkPrintBackendTest GtkPrintBackendTest; GtkPrintBackend *gtk_print_backend_test_new (void); -GType gtk_print_backend_test_get_type (void) G_GNUC_CONST; +GType gtk_print_backend_test_get_type (void); G_END_DECLS diff --git a/perf/gtkwidgetprofiler.h b/perf/gtkwidgetprofiler.h index 59c478894..5f0287fce 100644 --- a/perf/gtkwidgetprofiler.h +++ b/perf/gtkwidgetprofiler.h @@ -43,7 +43,7 @@ struct _GtkWidgetProfilerClass { gdouble elapsed); }; -GType gtk_widget_profiler_get_type (void) G_GNUC_CONST; +GType gtk_widget_profiler_get_type (void); GtkWidgetProfiler *gtk_widget_profiler_new (void); diff --git a/perf/typebuiltins.h.template b/perf/typebuiltins.h.template index ea31ae834..b918b0728 100644 --- a/perf/typebuiltins.h.template +++ b/perf/typebuiltins.h.template @@ -13,7 +13,7 @@ G_BEGIN_DECLS /*** END file-production ***/ /*** BEGIN value-header ***/ -GType @enum_name@_get_type (void) G_GNUC_CONST; +GType @enum_name@_get_type (void); #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) /*** END value-header ***/ diff --git a/tests/gtkoffscreenbox.h b/tests/gtkoffscreenbox.h index aa1d15d77..18c662915 100644 --- a/tests/gtkoffscreenbox.h +++ b/tests/gtkoffscreenbox.h @@ -36,7 +36,7 @@ struct _GtkOffscreenBoxClass GtkBinClass parent_class; }; -GType gtk_offscreen_box_get_type (void) G_GNUC_CONST; +GType gtk_offscreen_box_get_type (void); GtkWidget* gtk_offscreen_box_new (void); void gtk_offscreen_box_add1 (GtkOffscreenBox *offscreen, GtkWidget *child); From 5992de664d59164cba883f4f7d2e4ba50e419613 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 13:51:26 +0200 Subject: [PATCH 092/249] update-icon-cache: stop on options it cannot read, instead of taking an option for the icon folder, and print messages that do not convert to the locale as they are --- gtk/updateiconcache.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 388e1e003..70115e6b6 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -1710,11 +1710,9 @@ printerr_handler (const gchar *string) result = g_convert_with_fallback (string, -1, charset, "UTF-8", "?", NULL, NULL, NULL); - if (result) - { - fputs (result, stderr); - g_free (result); - } + /* a message that does not convert is still better as it is */ + fputs (result ? result : string, stderr); + g_free (result); fflush (stderr); } @@ -1726,6 +1724,7 @@ main (int argc, char **argv) { gchar *path; GOptionContext *context; + GError *error = NULL; if (argc < 2) return 0; @@ -1744,7 +1743,17 @@ main (int argc, char **argv) context = g_option_context_new ("ICONPATH"); g_option_context_add_main_entries (context, args, GETTEXT_PACKAGE); - g_option_context_parse (context, &argc, &argv, NULL); + if (!g_option_context_parse (context, &argc, &argv, &error)) + { + g_printerr ("%s\n", error->message); + exit (1); + } + + if (argc < 2) + { + g_printerr ("%s\n", _("No icon folder given")); + exit (1); + } path = argv[1]; #ifdef G_OS_WIN32 From 25527d924a41ac63378a4e974865074ac6131a3e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 12:34:05 +0200 Subject: [PATCH 093/249] gtksettings: the cursor stops blinking after 10 seconds, as in GTK+ 3, so idle programs stay asleep --- gtk/gtksettings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index ed2eb2287..d18629ec6 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -293,7 +293,7 @@ gtk_settings_class_init (GtkSettingsClass *class) g_param_spec_int ("gtk-cursor-blink-timeout", P_("Cursor Blink Timeout"), P_("Time after which the cursor stops blinking, in seconds"), - 1, G_MAXINT, G_MAXINT, + 1, G_MAXINT, 10, GTK_PARAM_READWRITE), NULL); g_assert (result == PROP_CURSOR_BLINK_TIMEOUT); From e6fcd0eea9933e268ee2b6e8b56fb4dfdb277ca6 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 12:34:05 +0200 Subject: [PATCH 094/249] gail: build ferret, the accessibility explorer, on demand only, and do not install it --- modules/other/gail/tests/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/other/gail/tests/Makefile.am b/modules/other/gail/tests/Makefile.am index 0f0e02317..87a3f9ffe 100644 --- a/modules/other/gail/tests/Makefile.am +++ b/modules/other/gail/tests/Makefile.am @@ -7,8 +7,10 @@ endif moduledir = $(libdir)/gtk-2.0/modules +# ferret, the accessibility explorer, is built on demand only: +# make -C modules/other/gail/tests libferret.la if !OS_WIN32 -module_LTLIBRARIES = \ +EXTRA_LTLIBRARIES = \ libferret.la endif From 029cc403c6e97e9529357df734995153ea64aa73 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 12:38:02 +0200 Subject: [PATCH 095/249] gtkicontheme: leave out the directories of a theme that hold no icons, instead of walking them at every lookup --- gtk/gtkicontheme.c | 51 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index b1da58d24..1da8ae973 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -198,6 +198,7 @@ typedef struct gboolean exists; GtkIconCache *cache; + gboolean cache_tried; /* a theme reads its cache once, not per directory */ } IconThemeDirMtime; static void gtk_icon_theme_finalize (GObject *object); @@ -917,6 +918,7 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name) NULL); dir_mtime = g_slice_new (IconThemeDirMtime); dir_mtime->cache = NULL; + dir_mtime->cache_tried = FALSE; dir_mtime->dir = path; if (g_stat (path, &stat_buf) == 0 && S_ISDIR (stat_buf.st_mode)) { @@ -1078,6 +1080,7 @@ load_themes (GtkIconTheme *icon_theme) dir_mtime->mtime = 0; dir_mtime->exists = FALSE; dir_mtime->cache = NULL; + dir_mtime->cache_tried = TRUE; if (g_stat (dir, &stat_buf) != 0 || !S_ISDIR (stat_buf.st_mode)) continue; @@ -2492,6 +2495,37 @@ theme_subdir_load (GtkIconTheme *icon_theme, GError *error = NULL; IconThemeDirMtime *dir_mtime; + /* Most directories an index.theme names are not there: those cost no + * reading of their keys */ + for (d = icon_theme->priv->dir_mtimes; d; d = d->next) + { + gboolean there; + + dir_mtime = (IconThemeDirMtime *)d->data; + if (!dir_mtime->exists) + continue; + + if (!dir_mtime->cache_tried) + { + /* NULL if there is no cache, or an outdated one */ + dir_mtime->cache = _gtk_icon_cache_new_for_path (dir_mtime->dir); + dir_mtime->cache_tried = TRUE; + } + + if (dir_mtime->cache) + there = _gtk_icon_cache_get_directory_index (dir_mtime->cache, subdir) >= 0; + else + { + full_dir = g_build_filename (dir_mtime->dir, subdir, NULL); + there = g_file_test (full_dir, G_FILE_TEST_IS_DIR); + g_free (full_dir); + } + if (there) + break; + } + if (d == NULL) + return; + size = g_key_file_get_integer (theme_file, subdir, "Size", &error); if (error) { @@ -2559,15 +2593,9 @@ theme_subdir_load (GtkIconTheme *icon_theme, full_dir = g_build_filename (dir_mtime->dir, subdir, NULL); - /* First, see if we have a cache for the directory */ + /* the cache was read above */ if (dir_mtime->cache != NULL || g_file_test (full_dir, G_FILE_TEST_IS_DIR)) { - if (dir_mtime->cache == NULL) - { - /* This will return NULL if the cache doesn't exist or is outdated */ - dir_mtime->cache = _gtk_icon_cache_new_for_path (dir_mtime->dir); - } - dir = g_new (IconThemeDir, 1); dir->type = type; dir->context = context; @@ -2590,7 +2618,14 @@ theme_subdir_load (GtkIconTheme *icon_theme, scan_directory (icon_theme->priv, dir, full_dir); } - theme->dirs = g_list_prepend (theme->dirs, dir); + /* An index.theme names hundreds of directories (hicolor 649), + * of which a theme fills a few; empty ones would only be walked + * at every lookup. With a cache, it has those that exist. */ + if (dir->cache ? dir->subdir_index < 0 : + g_hash_table_size (dir->icons) == 0 && dir->icon_data == NULL) + theme_dir_destroy (dir); + else + theme->dirs = g_list_prepend (theme->dirs, dir); } else g_free (full_dir); From 7caf2e02b151712cf9ba2cb4e22cf8c01b30f33f Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:06:25 +0200 Subject: [PATCH 096/249] treeview: ask the X server for the pointer while drawing only for an expander arrow that is held down, not on every expose with expanders --- gtk/gtktreeview.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index fc4d79780..87dd2b0db 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -4351,7 +4351,7 @@ gtk_tree_view_bin_expose (GtkWidget *widget, gboolean has_special_cell; gboolean rtl; gint n_visible_columns; - gint pointer_x, pointer_y; + gint pointer_x = 0, pointer_y = 0; gint grid_line_width; gboolean got_pointer = FALSE; gboolean row_ending_details; @@ -4722,7 +4722,9 @@ gtk_tree_view_bin_expose (GtkWidget *widget, if (TREE_VIEW_DRAW_EXPANDERS(tree_view) && (node->flags & GTK_RBNODE_IS_PARENT) == GTK_RBNODE_IS_PARENT) { - if (!got_pointer) + /* the pointer only matters for the arrow being pressed; + * asking for it is a round trip to the server */ + if (!got_pointer && node == tree_view->priv->button_pressed_node) { gdk_window_get_pointer (tree_view->priv->bin_window, &pointer_x, &pointer_y, NULL); From e52ee5e8aeabca77528edd40759ca79e6abf8430 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:09:16 +0200 Subject: [PATCH 097/249] textbtree: in a buffer where no applied tag sets invisible, a character is visible at once, without scanning its tags --- gtk/gtktextbtree.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 2cd097800..10b03ae82 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -2467,10 +2467,11 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter) { gboolean invisible = FALSE; /* if nobody says otherwise, it's visible */ - int deftagCnts[LOTSA_TAGS] = { 0, }; + int deftagCnts[LOTSA_TAGS]; int *tagCnts = deftagCnts; GtkTextTag *deftags[LOTSA_TAGS]; GtkTextTag **tags = deftags; + GSList *l; int numTags; GtkTextBTreeNode *node; GtkTextLine *siblingline; @@ -2481,8 +2482,17 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter) GtkTextBTree *tree; gint byte_index; - line = _gtk_text_iter_get_text_line (iter); tree = _gtk_text_iter_get_btree (iter); + + /* Only tags applied somewhere in the buffer have infos; when none + * of them sets the invisible property, everything is visible. */ + for (l = tree->tag_infos; l != NULL; l = l->next) + if (((GtkTextTagInfo *) l->data)->tag->invisible_set) + break; + if (l == NULL) + return FALSE; + + line = _gtk_text_iter_get_text_line (iter); byte_index = gtk_text_iter_get_line_index (iter); numTags = gtk_text_tag_table_get_size (tree->table); @@ -2493,6 +2503,8 @@ _gtk_text_btree_char_is_invisible (const GtkTextIter *iter) tagCnts = g_new0 (int, numTags); tags = g_new (GtkTextTag*, numTags); } + else + memset (tagCnts, 0, numTags * sizeof (int)); /* * Record tag toggles within the line of indexPtr but preceding From 8d89acbc9a743b470681764d8e0fd35eda41bafd Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:10:40 +0200 Subject: [PATCH 098/249] label: setting the same plain text or markup again does not lay out the label anew or resize the window --- gtk/gtklabel.c | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index b23c214c4..3ee1ecf82 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -1905,9 +1905,22 @@ gtk_label_set_text (GtkLabel *label, { g_return_if_fail (GTK_IS_LABEL (label)); + if (str == NULL) + str = ""; + + /* The same plain text again changes nothing: no new layout and no + * resize of the window. Selectable labels go the whole way, as + * setting the text clears the selection. */ + if (!label->use_markup && !label->use_underline && !label->select_info && + g_strcmp0 (label->label, str) == 0 && g_strcmp0 (label->text, str) == 0) + { + g_object_notify (G_OBJECT (label), "label"); + return; + } + g_object_freeze_notify (G_OBJECT (label)); - gtk_label_set_label_internal (label, g_strdup (str ? str : "")); + gtk_label_set_label_internal (label, g_strdup (str)); gtk_label_set_use_markup_internal (label, FALSE); gtk_label_set_use_underline_internal (label, FALSE); @@ -2408,9 +2421,21 @@ gtk_label_set_markup (GtkLabel *label, { g_return_if_fail (GTK_IS_LABEL (label)); + if (str == NULL) + str = ""; + + /* the same markup again gives the same label; labels with links + * or a selection go the whole way, as for gtk_label_set_text() */ + if (label->use_markup && !label->use_underline && !label->select_info && + g_strcmp0 (label->label, str) == 0) + { + g_object_notify (G_OBJECT (label), "label"); + return; + } + g_object_freeze_notify (G_OBJECT (label)); - gtk_label_set_label_internal (label, g_strdup (str ? str : "")); + gtk_label_set_label_internal (label, g_strdup (str)); gtk_label_set_use_markup_internal (label, TRUE); gtk_label_set_use_underline_internal (label, FALSE); From 4369163fd11bb260ea8d92285677bcd8a64071af Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:13:04 +0200 Subject: [PATCH 099/249] gdkwindow: raising a window that is already on top of its siblings skips the work on visible regions --- gdk/gdkwindow.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index a89d48ab7..8830e939a 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -6663,7 +6663,8 @@ get_all_native_children (GdkWindowObject *private, } -static inline void +/* TRUE when @window was not on top of its siblings before */ +static gboolean gdk_window_raise_internal (GdkWindow *window) { GdkWindowObject *private = (GdkWindowObject *)window; @@ -6672,11 +6673,13 @@ gdk_window_raise_internal (GdkWindow *window) GList *native_children; GList *l, listhead; GdkWindowImplIface *impl_iface; + gboolean did_raise = FALSE; - if (parent) + if (parent && parent->children->data != window) { parent->children = g_list_remove (parent->children, window); parent->children = g_list_prepend (parent->children, window); + did_raise = TRUE; } impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl); @@ -6727,6 +6730,8 @@ gdk_window_raise_internal (GdkWindow *window) } } + + return did_raise; } /* Returns TRUE If the native window was mapped or unmapped */ @@ -6823,7 +6828,7 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise) GdkWindowObject *private; GdkWindowImplIface *impl_iface; gboolean was_mapped, was_viewable; - gboolean did_show; + gboolean did_show, did_raise = FALSE; g_return_if_fail (GDK_IS_WINDOW (window)); @@ -6836,7 +6841,7 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise) if (raise) /* Keep children in (reverse) stacking order */ - gdk_window_raise_internal (window); + did_raise = gdk_window_raise_internal (window); if (gdk_window_has_impl (private)) { @@ -6873,7 +6878,7 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise) _gdk_make_event (GDK_WINDOW (private), GDK_MAP, NULL, FALSE); } - if (!was_mapped || raise) + if (!was_mapped || did_raise) { recompute_visible_regions (private, TRUE, FALSE); @@ -6930,6 +6935,14 @@ gdk_window_raise (GdkWindow *window) if (private->destroyed) return; + /* Already on top of its siblings: only the native window is raised + * again, in case others stacked it without GDK; nothing new shows. */ + if (private->parent && private->parent->children->data == private) + { + gdk_window_raise_internal (window); + return; + } + gdk_window_flush_if_exposing (window); old_region = NULL; From 6768dbe3d275852b2a3820feccbc5ee6ef7a3493 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:14:40 +0200 Subject: [PATCH 100/249] =?UTF-8?q?iconview:=20a=20row=20added=20after=20t?= =?UTF-8?q?he=20one=20found=20last=20is=20linked=20in=20at=20once,=20so=20?= =?UTF-8?q?filling=20a=20view=20of=20n=20rows=20no=20longer=20takes=20n?= =?UTF-8?q?=C2=B2=20steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gtk/gtkiconview.c | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 63bedb2bc..3cbbec66c 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -3773,15 +3773,40 @@ gtk_icon_view_row_inserted (GtkTreeModel *model, item->index = index; - /* FIXME: We can be more efficient here, - we can store a tail pointer and use that when - appending (which is a rather common operation) - */ - icon_view->priv->items = g_list_insert (icon_view->priv->items, - item, index); + /* Rows usually come in order, so the row before this one is the one + * found last: with the cached link, appending is O(1), not O(n). */ + if (index == 0) + { + icon_view->priv->items = g_list_prepend (icon_view->priv->items, item); + list = icon_view->priv->items; + } + else + { + GList *prev; - list = g_list_nth (icon_view->priv->items, index + 1); - for (; list; list = list->next) + gtk_icon_view_nth_item (icon_view, index - 1); + prev = icon_view->priv->nth_cache_link; + + list = g_list_alloc (); + list->data = item; + if (prev == NULL) + { + /* past the end; g_list_insert() appended there too */ + icon_view->priv->items = g_list_concat (icon_view->priv->items, list); + } + else + { + list->prev = prev; + list->next = prev->next; + if (prev->next) + prev->next->prev = list; + prev->next = list; + } + } + + icon_view->priv->nth_cache_link = list; + + for (list = list->next; list; list = list->next) { item = list->data; From 184ccc2b174cebafc66cb0d85c87f01e0624c228 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:14:59 +0200 Subject: [PATCH 101/249] spinner: turn only while mapped, so a hidden spinner does not wake the program a dozen times a second --- gtk/gtkspinner.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c index 69de3ad04..a2077f651 100644 --- a/gtk/gtkspinner.c +++ b/gtk/gtkspinner.c @@ -73,8 +73,8 @@ enum { static void gtk_spinner_class_init (GtkSpinnerClass *klass); static void gtk_spinner_init (GtkSpinner *spinner); static void gtk_spinner_dispose (GObject *gobject); -static void gtk_spinner_realize (GtkWidget *widget); -static void gtk_spinner_unrealize (GtkWidget *widget); +static void gtk_spinner_map (GtkWidget *widget); +static void gtk_spinner_unmap (GtkWidget *widget); static gboolean gtk_spinner_expose (GtkWidget *widget, GdkEventExpose *event); static void gtk_spinner_screen_changed (GtkWidget *widget, @@ -107,8 +107,8 @@ gtk_spinner_class_init (GtkSpinnerClass *klass) widget_class = GTK_WIDGET_CLASS(klass); widget_class->expose_event = gtk_spinner_expose; - widget_class->realize = gtk_spinner_realize; - widget_class->unrealize = gtk_spinner_unrealize; + widget_class->map = gtk_spinner_map; + widget_class->unmap = gtk_spinner_unmap; widget_class->screen_changed = gtk_spinner_screen_changed; widget_class->style_set = gtk_spinner_style_set; widget_class->get_accessible = gtk_spinner_get_accessible; @@ -282,21 +282,24 @@ gtk_spinner_remove_timeout (GtkSpinner *spinner) priv->timeout = 0; } +/* The spinner turns only while it can be seen: one that is hidden, + * or on a page of a notebook that is not shown, does not wake the + * program up a dozen times a second. */ static void -gtk_spinner_realize (GtkWidget *widget) +gtk_spinner_map (GtkWidget *widget) { GtkSpinnerPrivate *priv; priv = GTK_SPINNER (widget)->priv; - GTK_WIDGET_CLASS (gtk_spinner_parent_class)->realize (widget); + GTK_WIDGET_CLASS (gtk_spinner_parent_class)->map (widget); - if (priv->active) + if (priv->active && priv->timeout == 0) gtk_spinner_add_timeout (GTK_SPINNER (widget)); } static void -gtk_spinner_unrealize (GtkWidget *widget) +gtk_spinner_unmap (GtkWidget *widget) { GtkSpinnerPrivate *priv; @@ -307,7 +310,7 @@ gtk_spinner_unrealize (GtkWidget *widget) gtk_spinner_remove_timeout (GTK_SPINNER (widget)); } - GTK_WIDGET_CLASS (gtk_spinner_parent_class)->unrealize (widget); + GTK_WIDGET_CLASS (gtk_spinner_parent_class)->unmap (widget); } static void @@ -373,7 +376,7 @@ gtk_spinner_set_active (GtkSpinner *spinner, gboolean active) priv->active = active; g_object_notify (G_OBJECT (spinner), "active"); - if (active && gtk_widget_get_realized (GTK_WIDGET (spinner)) && priv->timeout == 0) + if (active && gtk_widget_get_mapped (GTK_WIDGET (spinner)) && priv->timeout == 0) { gtk_spinner_add_timeout (spinner); } From 78d6c37be9af4437c4d536bdc877c3c9c5496f41 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:16:48 +0200 Subject: [PATCH 102/249] tooltip: the text and icon of a tooltip are cleared only when the query does not set them again, so moving over a widget does not lay out its tooltip text twice per motion --- gtk/gtktooltip.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 2b00ec3d9..1a0e5c2e5 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -74,6 +74,9 @@ struct _GtkTooltip guint keyboard_mode_enabled : 1; guint tip_area_set : 1; guint custom_was_reset : 1; + /* whether the query-tooltip handlers gave text and an icon again */ + guint label_was_set : 1; + guint icon_was_set : 1; }; struct _GtkTooltipClass @@ -268,6 +271,7 @@ gtk_tooltip_set_markup (GtkTooltip *tooltip, g_return_if_fail (GTK_IS_TOOLTIP (tooltip)); gtk_label_set_markup (GTK_LABEL (tooltip->label), markup); + tooltip->label_was_set = TRUE; if (markup) gtk_widget_show (tooltip->label); @@ -292,6 +296,7 @@ gtk_tooltip_set_text (GtkTooltip *tooltip, g_return_if_fail (GTK_IS_TOOLTIP (tooltip)); gtk_label_set_text (GTK_LABEL (tooltip->label), text); + tooltip->label_was_set = TRUE; if (text) gtk_widget_show (tooltip->label); @@ -319,6 +324,8 @@ gtk_tooltip_set_icon (GtkTooltip *tooltip, gtk_image_set_from_pixbuf (GTK_IMAGE (tooltip->image), pixbuf); + tooltip->icon_was_set = TRUE; + if (pixbuf) gtk_widget_show (tooltip->image); else @@ -346,6 +353,8 @@ gtk_tooltip_set_icon_from_stock (GtkTooltip *tooltip, gtk_image_set_from_stock (GTK_IMAGE (tooltip->image), stock_id, size); + tooltip->icon_was_set = TRUE; + if (stock_id) gtk_widget_show (tooltip->image); else @@ -373,6 +382,8 @@ gtk_tooltip_set_icon_from_icon_name (GtkTooltip *tooltip, gtk_image_set_from_icon_name (GTK_IMAGE (tooltip->image), icon_name, size); + tooltip->icon_was_set = TRUE; + if (icon_name) gtk_widget_show (tooltip->image); else @@ -400,6 +411,8 @@ gtk_tooltip_set_icon_from_gicon (GtkTooltip *tooltip, gtk_image_set_from_gicon (GTK_IMAGE (tooltip->image), gicon, size); + tooltip->icon_was_set = TRUE; + if (gicon) gtk_widget_show (tooltip->image); else @@ -531,8 +544,11 @@ gtk_tooltip_trigger_tooltip_query (GdkDisplay *display) static void gtk_tooltip_reset (GtkTooltip *tooltip) { - gtk_tooltip_set_markup (tooltip, NULL); - gtk_tooltip_set_icon (tooltip, NULL); + /* The text and icon stay until the query-tooltip handlers had their + * say: moving over a widget sets the same text again and again, and + * emptying the label first would lay it out twice per motion. */ + tooltip->label_was_set = FALSE; + tooltip->icon_was_set = FALSE; gtk_tooltip_set_tip_area (tooltip, NULL); /* See if the custom widget is again set from the query-tooltip @@ -1051,6 +1067,12 @@ gtk_tooltip_run_requery (GtkWidget **widget, if (!tooltip->custom_was_reset) gtk_tooltip_set_custom (tooltip, NULL); + /* the same for the text and the icon */ + if (!tooltip->label_was_set) + gtk_tooltip_set_markup (tooltip, NULL); + if (!tooltip->icon_was_set) + gtk_tooltip_set_icon (tooltip, NULL); + return return_value; } From 1ea7f262e99384a132d743d399f807a00b253b1e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:19:04 +0200 Subject: [PATCH 103/249] gdkwindow: an expose leaves out the child windows outside the exposed area before any region work --- gdk/gdkwindow.c | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 8830e939a..299c0ed47 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5407,18 +5407,19 @@ _gdk_window_process_updates_recurse (GdkWindow *window, GdkWindowObject *private = (GdkWindowObject *)window; GdkWindowObject *child; GdkRegion *child_region; - GdkRectangle r; + GdkRectangle r, extents; GList *l, *children; if (gdk_region_empty (expose_region)) return; - /* Make this reentrancy safe for expose handlers freeing windows */ - children = g_list_copy (private->children); - g_list_foreach (children, (GFunc)g_object_ref, NULL); + gdk_region_get_clipbox (expose_region, &extents); - /* Iterate over children, starting at topmost */ - for (l = children; l != NULL; l = l->next) + /* Only the children the exposed area reaches: the others take + * neither region work nor references. The list holds references, + * so expose handlers can free windows. */ + children = NULL; + for (l = private->children; l != NULL; l = l->next) { child = l->data; @@ -5435,6 +5436,26 @@ _gdk_window_process_updates_recurse (GdkWindow *window, r.width = child->width; r.height = child->height; + if (!gdk_rectangle_intersect (&extents, &r, NULL)) + continue; + + children = g_list_prepend (children, g_object_ref (child)); + } + children = g_list_reverse (children); + + /* Iterate over children, starting at topmost */ + for (l = children; l != NULL; l = l->next) + { + child = l->data; + + if (child->destroyed || !GDK_WINDOW_IS_MAPPED (child)) + continue; + + r.x = child->x; + r.y = child->y; + r.width = child->width; + r.height = child->height; + child_region = gdk_region_rectangle (&r); if (child->shape) { From 0c8ccbc6e1d1e04cd4912df0685cbe02f182667c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:20:06 +0200 Subject: [PATCH 104/249] container: an expose is not passed on to children outside the exposed area --- gtk/gtkcontainer.c | 9 +++++++++ gtk/gtkwidget.c | 22 ++++++++++++++++++++++ gtk/gtkwidget.h | 2 ++ 3 files changed, 33 insertions(+) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index e4c98c8c2..154da287f 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -2758,6 +2758,15 @@ gtk_container_propagate_expose (GtkContainer *container, !gtk_widget_get_has_window (child) && (child->window == event->window)) { + GdkRectangle extents; + + /* a child away from the exposed area needs no event made; where + * it draws counts, with its draw border (the underlines of the + * mnemonics of labels) and its children */ + gdk_region_get_clipbox (event->region, &extents); + if (!_gtk_widget_draws_in_area (child, &extents)) + return; + child_event = gdk_event_new (GDK_EXPOSE); child_event->expose = *event; g_object_ref (child_event->expose.window); diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index d622758e2..7eea2af0f 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3805,6 +3805,28 @@ gtk_widget_get_draw_rectangle (GtkWidget *widget, } } +/* for gtk_container_propagate_expose(): whether @widget, a widget + * without a window, draws anywhere in @area of its window. The walk + * through its children is only needed where its own allocation with + * draw border misses @area. */ +gboolean +_gtk_widget_draws_in_area (GtkWidget *widget, + const GdkRectangle *area) +{ + GdkRectangle rect; + + gtk_widget_get_own_draw_rectangle (widget, &rect); + if (gdk_rectangle_intersect (area, &rect, NULL)) + return TRUE; + if (!GTK_IS_CONTAINER (widget)) + return FALSE; + + gtk_container_forall (GTK_CONTAINER (widget), + (GtkCallback)widget_add_child_draw_rectangle, + &rect); + return gdk_rectangle_intersect (area, &rect, NULL); +} + /** * gtk_widget_queue_draw: * @widget: a #GtkWidget diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index ae5666bfb..297e08399 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -1314,6 +1314,8 @@ void gtk_requisition_free (GtkRequisition *requisition); # define gtk_widget_unref g_object_unref #endif /* GTK_TRACE_OBJECTS && __GNUC__ */ +gboolean _gtk_widget_draws_in_area (GtkWidget *widget, + const GdkRectangle *area); void _gtk_widget_set_has_default (GtkWidget *widget, gboolean has_default); void _gtk_widget_set_has_grab (GtkWidget *widget, From a25586b88297978127638cbe16066fddb083b84c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:24:53 +0200 Subject: [PATCH 105/249] gdkwindow: processing updates with the children walks client side windows without copying and referencing them, as only windows with an impl of their own have updates left --- gdk/gdkwindow.c | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 299c0ed47..e75aebb07 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -5812,6 +5812,29 @@ gdk_window_process_all_updates (void) * this is useful to produce nicer scrolling behavior, for example. * **/ +/* The descendants of @window with an impl of their own, referenced and + * topmost first; the caller turns the list around to process them from + * the bottom. Client side windows share the impl of their parent and + * were updated with it, so they are only walked through. */ +static GList * +find_native_children_to_update (GList *list, + GdkWindowObject *window) +{ + GList *node; + + for (node = g_list_last (window->children); node; node = node->prev) + { + GdkWindowObject *child = node->data; + + if (child->impl != window->impl) + list = g_list_prepend (list, g_object_ref (child)); + else + list = find_native_children_to_update (list, child); + } + + return list; +} + void gdk_window_process_updates (GdkWindow *window, gboolean update_children) @@ -5848,10 +5871,9 @@ gdk_window_process_updates (GdkWindow *window, */ GList *node, *children; - children = g_list_copy (private->children); - g_list_foreach (children, (GFunc)g_object_ref, NULL); + children = g_list_reverse (find_native_children_to_update (NULL, private)); - for (node = g_list_last (children); node; node = node->prev) + for (node = children; node; node = node->next) { gdk_window_process_updates (node->data, TRUE); g_object_unref (node->data); From 3124dc081b2b46ca418392ee382858faecb8262e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:25:08 +0200 Subject: [PATCH 106/249] gdkevents-x11: look up the atom of a window manager hint once, not once per supported hint --- gdk/x11/gdkevents-x11.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index 3a859da1b..1d427a15b 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -2888,6 +2888,7 @@ gdk_x11_screen_supports_net_wm_hint (GdkScreen *screen, GdkScreenX11 *screen_x11; NetWmSupportedAtoms *supported_atoms; GdkDisplay *display; + Atom atom; g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE); @@ -2939,13 +2940,12 @@ gdk_x11_screen_supports_net_wm_hint (GdkScreen *screen, if (supported_atoms->atoms == NULL) return FALSE; - i = 0; - while (i < supported_atoms->n_atoms) - { - if (supported_atoms->atoms[i] == gdk_x11_atom_to_xatom_for_display (display, property)) - return TRUE; + atom = gdk_x11_atom_to_xatom_for_display (display, property); - ++i; + for (i = 0; i < supported_atoms->n_atoms; i++) + { + if (supported_atoms->atoms[i] == atom) + return TRUE; } return FALSE; From d5aa46be1d5c9665845f0f7484dbeb212a15ceb8 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:26:35 +0200 Subject: [PATCH 107/249] liststore, treestore, container: collect values from the argument list in one step, without initializing them first --- gtk/gtkcontainer.c | 3 +-- gtk/gtkliststore.c | 4 +--- gtk/gtktreestore.c | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 154da287f..f1a2579b6 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -777,8 +777,7 @@ gtk_container_child_set_valist (GtkContainer *container, G_OBJECT_TYPE_NAME (container)); break; } - g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (pspec)); - G_VALUE_COLLECT (&value, var_args, 0, &error); + G_VALUE_COLLECT_INIT (&value, G_PARAM_SPEC_VALUE_TYPE (pspec), var_args, 0, &error); if (error) { g_warning ("%s: %s", G_STRLOC, error); diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 167e330fa..5d135fe10 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -797,9 +797,7 @@ gtk_list_store_set_valist_internal (GtkListStore *list_store, g_warning ("%s: Invalid column number %d added to iter (remember to end your list of columns with a -1)", G_STRLOC, column); break; } - g_value_init (&value, list_store->column_headers[column]); - - G_VALUE_COLLECT (&value, var_args, 0, &error); + G_VALUE_COLLECT_INIT (&value, list_store->column_headers[column], var_args, 0, &error); if (error) { g_warning ("%s: %s", G_STRLOC, error); diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index eb7d00488..fac7bcaab 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -947,9 +947,7 @@ gtk_tree_store_set_valist_internal (GtkTreeStore *tree_store, g_warning ("%s: Invalid column number %d added to iter (remember to end your list of columns with a -1)", G_STRLOC, column); break; } - g_value_init (&value, tree_store->column_headers[column]); - - G_VALUE_COLLECT (&value, var_args, 0, &error); + G_VALUE_COLLECT_INIT (&value, tree_store->column_headers[column], var_args, 0, &error); if (error) { g_warning ("%s: %s", G_STRLOC, error); From e6668b43197e7860364a3384e3d0ccabcd3d7590 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 14:36:20 +0200 Subject: [PATCH 108/249] textbtree: keep the path from the root on the stack when finding the top or character offset of a line, instead of building a list --- gtk/gtktextbtree.c | 56 ++++++++++++++++++++-------------------------- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 10b03ae82..4aa208168 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -1475,30 +1475,28 @@ _gtk_text_btree_find_line_top (GtkTextBTree *tree, { gint y = 0; BTreeView *view; - GSList *nodes; - GSList *iter; + GtkTextBTreeNode *nodes[64]; /* the path from the root, on the stack */ + int tos = 0; GtkTextBTreeNode *node; view = gtk_text_btree_get_view (tree, view_id); g_return_val_if_fail (view != NULL, 0); - nodes = NULL; node = target_line->parent; - while (node != NULL) + while (node != NULL && tos < (int) G_N_ELEMENTS (nodes)) { - nodes = g_slist_prepend (nodes, node); + nodes[tos++] = node; node = node->parent; } - iter = nodes; - while (iter != NULL) + tos--; + while (tos >= 0) { - node = iter->data; + node = nodes[tos]; if (node->level == 0) { - g_slist_free (nodes); return find_line_top_in_line_list (tree, view, node->children.line, target_line, y); @@ -1508,8 +1506,8 @@ _gtk_text_btree_find_line_top (GtkTextBTree *tree, GtkTextBTreeNode *child; GtkTextBTreeNode *target_node; - g_assert (iter->next != NULL); /* not at level 0 */ - target_node = iter->next->data; + g_assert (tos > 0); /* not at level 0 */ + target_node = nodes[tos - 1]; child = node->children.node; @@ -1532,7 +1530,7 @@ _gtk_text_btree_find_line_top (GtkTextBTree *tree, ran out of nodes */ } - iter = g_slist_next (iter); + tos--; } g_assert_not_reached (); /* we return when we find the target line */ @@ -3743,7 +3741,8 @@ _gtk_text_line_byte_count (GtkTextLine *line) gint _gtk_text_line_char_index (GtkTextLine *target_line) { - GSList *node_stack = NULL; + GtkTextBTreeNode *node_stack[64]; /* the path from the root */ + int tos = 0; GtkTextBTreeNode *iter; GtkTextLine *line; gint num_chars; @@ -3753,46 +3752,41 @@ _gtk_text_line_char_index (GtkTextLine *target_line) g_assert (iter != NULL); - while (iter != NULL) + while (iter != NULL && tos < (int) G_N_ELEMENTS (node_stack)) { - node_stack = g_slist_prepend (node_stack, iter); - + node_stack[tos++] = iter; iter = iter->parent; } + tos--; + /* Check that we have the root node on top of the stack. */ - g_assert (node_stack != NULL && - node_stack->data != NULL && - ((GtkTextBTreeNode*)node_stack->data)->parent == NULL); + g_assert (node_stack[tos]->parent == NULL); /* Add up chars in all nodes before the nodes in our stack. */ num_chars = 0; - iter = node_stack->data; - while (iter != NULL) + iter = NULL; + while (tos >= 0) { GtkTextBTreeNode *child_iter; - GtkTextBTreeNode *next_node; - next_node = node_stack->next ? - node_stack->next->data : NULL; - node_stack = g_slist_remove (node_stack, node_stack->data); + iter = node_stack[tos]; if (iter->level == 0) { /* stack should be empty when we're on the last node */ - g_assert (node_stack == NULL); + g_assert (tos == 0); break; /* Our children are now lines */ } - g_assert (next_node != NULL); - g_assert (iter != NULL); - g_assert (next_node->parent == iter); + tos--; + g_assert (node_stack[tos]->parent == iter); /* Add up chars before us in the tree */ child_iter = iter->children.node; - while (child_iter != next_node) + while (child_iter != node_stack[tos]) { g_assert (child_iter != NULL); @@ -3800,8 +3794,6 @@ _gtk_text_line_char_index (GtkTextLine *target_line) child_iter = child_iter->next; } - - iter = next_node; } g_assert (iter != NULL); From bc155671d4eb85070cda9a85de492872fa569f4b Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 15:06:22 +0200 Subject: [PATCH 109/249] textview: a buffer without tags does not look up the character under the pointer on every event, as only tags take those events --- gtk/gtktextview.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 1769094a4..9ca9bbfaa 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4187,6 +4187,11 @@ gtk_text_view_event (GtkWidget *widget, GdkEvent *event) if (event->any.window != text_view->text_window->bin_window) return FALSE; + /* Only tags get these events: without any, a motion of the pointer + * needs no lookup of the character under it. */ + if (gtk_text_tag_table_get_size (gtk_text_buffer_get_tag_table (get_buffer (text_view))) == 0) + return FALSE; + if (get_event_coordinates (event, &x, &y)) { GtkTextIter iter; From 20beff85b82274b467353090e86bc8abacf7c7a0 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 15:07:39 +0200 Subject: [PATCH 110/249] textbtree: asking whether a character has a tag that is applied nowhere answers at once, without scanning the lines before it --- gtk/gtktextbtree.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 4aa208168..4cc2c66d9 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -3277,6 +3277,12 @@ find_toggle_outside_current_line (GtkTextLine *line, int toggles; GtkTextTagInfo *info = NULL; + /* a tag that is applied nowhere has no toggles to look for */ + info = gtk_text_btree_get_existing_tag_info (tree, tag); + + if (info == NULL) + return FALSE; + /* * No toggle in this line. Look for toggles for the tag in lines * that are predecessors of line but under the same @@ -3309,11 +3315,6 @@ find_toggle_outside_current_line (GtkTextLine *line, * siblings that precede that GtkTextBTreeNode. */ - info = gtk_text_btree_get_existing_tag_info (tree, tag); - - if (info == NULL) - return FALSE; - toggles = 0; node = line->parent; while (node->parent != NULL) From be759305733a9cbdbd161adb88aa714310e38b44 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 15:20:58 +0200 Subject: [PATCH 111/249] textlayout: keep the laid out lines that were drawn last, not just one, so redrawing and scrolling a text view does not lay out the same lines again --- gtk/gtktextdisplay.c | 3 + gtk/gtktextlayout.c | 295 +++++++++++++++++++++++++++++++++++-------- gtk/gtktextlayout.h | 4 + 3 files changed, 251 insertions(+), 51 deletions(-) diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 0b55382a9..bfed148a5 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -804,6 +804,9 @@ gtk_text_layout_draw (GtkTextLayout *layout, if (line_list == NULL) return; /* nothing on the screen */ + /* keep the displays of all the lines drawn, for the next time */ + _gtk_text_layout_cache_lines (layout, g_slist_length (line_list)); + clip.x = x; clip.y = y; clip.width = width; diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index f20443e35..23d45c6e7 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -100,8 +100,25 @@ struct _GtkTextLayoutPrivate direction only influences the direction of the cursor line. */ GtkTextLine *cursor_line; + + /* The displays of the lines laid out last, most recently used first, + * so that drawing the same lines again does not lay them out again. + * layout->one_display_cache is the first of them. */ + GtkTextLineDisplay **displays; + guint n_displays; + guint max_displays; + + /* while validating in the background: displays made for that go to + * the end of the cache, so they do not push out the lines on screen */ + guint validating_in_background : 1; + /* while validating the lines on screen: those are drawn next, so they + * are laid out in full at once, not only for their size */ + guint validating_on_screen : 1; }; +#define MIN_CACHED_DISPLAYS 16 +#define MAX_CACHED_DISPLAYS 128 + static GtkTextLineData *gtk_text_layout_real_wrap (GtkTextLayout *layout, GtkTextLine *line, /* may be NULL */ @@ -251,6 +268,129 @@ free_style_cache (GtkTextLayout *text_layout) } } +static void free_line_display_now (GtkTextLineDisplay *display); + +static gint +display_cache_find (GtkTextLayoutPrivate *priv, + GtkTextLine *line) +{ + guint i; + + for (i = 0; i < priv->n_displays; i++) + if (priv->displays[i]->line == line) + return i; + + return -1; +} + +static gboolean +display_cache_contains (GtkTextLayoutPrivate *priv, + GtkTextLineDisplay *display) +{ + guint i; + + for (i = 0; i < priv->n_displays; i++) + if (priv->displays[i] == display) + return TRUE; + + return FALSE; +} + +static void +display_cache_sync (GtkTextLayout *layout) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + + layout->one_display_cache = priv->n_displays ? priv->displays[0] : NULL; +} + +/* Takes the display at @i out of the cache, without freeing it */ +static GtkTextLineDisplay * +display_cache_take (GtkTextLayout *layout, + guint i) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + GtkTextLineDisplay *display = priv->displays[i]; + + memmove (priv->displays + i, priv->displays + i + 1, + (priv->n_displays - i - 1) * sizeof (GtkTextLineDisplay *)); + priv->n_displays--; + display_cache_sync (layout); + + return display; +} + +static void +display_cache_remove (GtkTextLayout *layout, + guint i) +{ + free_line_display_now (display_cache_take (layout, i)); +} + +static void +display_cache_clear (GtkTextLayout *layout) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + + while (priv->n_displays > 0) + display_cache_remove (layout, priv->n_displays - 1); +} + +/* Most recently used first, or last for displays that are only made + * while validating in the background */ +static void +display_cache_add (GtkTextLayout *layout, + GtkTextLineDisplay *display) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + guint max = MAX (priv->max_displays, MIN_CACHED_DISPLAYS); + + if (priv->displays == NULL) + priv->displays = g_new (GtkTextLineDisplay *, MAX_CACHED_DISPLAYS); + + while (priv->n_displays >= max) + display_cache_remove (layout, priv->n_displays - 1); + + if (priv->validating_in_background) + priv->displays[priv->n_displays] = display; + else + { + memmove (priv->displays + 1, priv->displays, + priv->n_displays * sizeof (GtkTextLineDisplay *)); + priv->displays[0] = display; + } + priv->n_displays++; + display_cache_sync (layout); +} + +static void +display_cache_move_to_front (GtkTextLayout *layout, + guint i) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + GtkTextLineDisplay *display; + + if (i == 0 || priv->validating_in_background) + return; + + display = priv->displays[i]; + memmove (priv->displays + 1, priv->displays, i * sizeof (GtkTextLineDisplay *)); + priv->displays[0] = display; + display_cache_sync (layout); +} + +/* Drawing @n_lines lines at once: keep at least that many displays */ +void +_gtk_text_layout_cache_lines (GtkTextLayout *layout, + gint n_lines) +{ + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + guint want = CLAMP (n_lines + 8, MIN_CACHED_DISPLAYS, MAX_CACHED_DISPLAYS); + + if (want > priv->max_displays) + priv->max_displays = want; +} + static void gtk_text_layout_finalize (GObject *object) { @@ -275,12 +415,8 @@ gtk_text_layout_finalize (GObject *object) layout->rtl_context = NULL; } - if (layout->one_display_cache) - { - GtkTextLineDisplay *tmp_display = layout->one_display_cache; - layout->one_display_cache = NULL; - gtk_text_layout_free_line_display (layout, tmp_display); - } + display_cache_clear (layout); + g_free (GTK_TEXT_LAYOUT_GET_PRIVATE (layout)->displays); if (layout->preedit_string) { @@ -313,6 +449,7 @@ gtk_text_layout_set_buffer (GtkTextLayout *layout, return; free_style_cache (layout); + display_cache_clear (layout); if (layout->buffer) { @@ -638,15 +775,18 @@ text_layout_changed (GtkTextLayout *layout, gint new_height, gboolean cursors_only) { - /* Check if the range intersects our cached line display, - * and invalidate the cached line if so. + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + gint i; + + /* Check if the range intersects our cached line displays, + * and invalidate the cached lines if so. */ - if (layout->one_display_cache) + for (i = (gint) priv->n_displays - 1; i >= 0; i--) { - GtkTextLine *line = layout->one_display_cache->line; + GtkTextLine *line = priv->displays[i]->line; gint cache_y = _gtk_text_btree_find_line_top (_gtk_text_buffer_get_btree (layout->buffer), line, layout); - gint cache_height = layout->one_display_cache->height; + gint cache_height = priv->displays[i]->height; if (cache_y + cache_height > y && cache_y < y + old_height) gtk_text_layout_invalidate_cache (layout, line, cursors_only); @@ -821,9 +961,16 @@ gtk_text_layout_invalidate_cache (GtkTextLayout *layout, GtkTextLine *line, gboolean cursors_only) { - if (layout->one_display_cache && line == layout->one_display_cache->line) + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + gint i; + + if (priv->n_displays == 0) + return; + + i = display_cache_find (priv, line); + if (i >= 0) { - GtkTextLineDisplay *display = layout->one_display_cache; + GtkTextLineDisplay *display = priv->displays[i]; if (cursors_only) { @@ -834,10 +981,7 @@ gtk_text_layout_invalidate_cache (GtkTextLayout *layout, display->has_block_cursor = FALSE; } else - { - layout->one_display_cache = NULL; - gtk_text_layout_free_line_display (layout, display); - } + display_cache_remove (layout, i); } } @@ -874,10 +1018,22 @@ gtk_text_layout_update_cursor_line(GtkTextLayout *layout) GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); GtkTextIter iter; + GtkTextLine *old_line = priv->cursor_line; + gtk_text_buffer_get_iter_at_mark (layout->buffer, &iter, gtk_text_buffer_get_insert (layout->buffer)); priv->cursor_line = _gtk_text_iter_get_text_line (&iter); + + /* The cursor line is laid out in the direction of the keyboard + * when it has none of its own, and with the preedit string: the + * kept displays of the line the cursor leaves and of the one it + * comes to are out of date. (Only the pointers are compared.) */ + if (old_line != priv->cursor_line) + { + gtk_text_layout_invalidate_cache (layout, old_line, FALSE); + gtk_text_layout_invalidate_cache (layout, priv->cursor_line, FALSE); + } } static void @@ -906,6 +1062,10 @@ gtk_text_layout_real_invalidate (GtkTextLayout *layout, last_line = _gtk_text_iter_get_text_line (end); line = _gtk_text_iter_get_text_line (start); + /* all of the buffer: no need to look for each line in the cache */ + if (gtk_text_iter_is_start (start) && gtk_text_iter_is_end (end)) + display_cache_clear (layout); + while (TRUE) { GtkTextLineData *line_data = _gtk_text_line_get_data (line, layout); @@ -929,13 +1089,23 @@ gtk_text_layout_real_invalidate_cursors (GtkTextLayout *layout, const GtkTextIter *start, const GtkTextIter *end) { - /* Check if the range intersects our cached line display, - * and invalidate the cached line if so. + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + gint i; + + if (gtk_text_iter_compare (start, end) > 0) + { + const GtkTextIter *tmp = start; + start = end; + end = tmp; + } + + /* Check if the range intersects our cached line displays, + * and invalidate the cursors of the cached lines if so. */ - if (layout->one_display_cache) + for (i = (gint) priv->n_displays - 1; i >= 0; i--) { GtkTextIter line_start, line_end; - GtkTextLine *line = layout->one_display_cache->line; + GtkTextLine *line = priv->displays[i]->line; _gtk_text_btree_get_iter_at_line (_gtk_text_buffer_get_btree (layout->buffer), &line_start, line, 0); @@ -943,13 +1113,6 @@ gtk_text_layout_real_invalidate_cursors (GtkTextLayout *layout, if (!gtk_text_iter_ends_line (&line_end)) gtk_text_iter_forward_to_line_end (&line_end); - if (gtk_text_iter_compare (start, end) > 0) - { - const GtkTextIter *tmp = start; - start = end; - end = tmp; - } - if (gtk_text_iter_compare (&line_start, end) <= 0 && gtk_text_iter_compare (start, &line_end) <= 0) { @@ -1024,8 +1187,13 @@ gtk_text_layout_validate_yrange (GtkTextLayout *layout, gint first_line_y = 0; /* Quiet GCC */ gint last_line_y = 0; /* Quiet GCC */ + GtkTextLayoutPrivate *priv; + g_return_if_fail (GTK_IS_TEXT_LAYOUT (layout)); + priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + priv->validating_on_screen = TRUE; + if (y0 > 0) y0 = 0; if (y1 < 0) @@ -1098,6 +1266,8 @@ gtk_text_layout_validate_yrange (GtkTextLayout *layout, line = _gtk_text_line_next_excluding_last (line); } + priv->validating_on_screen = FALSE; + /* If we found and validated any invalid lines, update size and * emit the changed signal */ @@ -1130,15 +1300,25 @@ void gtk_text_layout_validate (GtkTextLayout *layout, gint max_pixels) { + GtkTextLayoutPrivate *priv; gint y, old_height, new_height; + gboolean validated; g_return_if_fail (GTK_IS_TEXT_LAYOUT (layout)); - while (max_pixels > 0 && - _gtk_text_btree_validate (_gtk_text_buffer_get_btree (layout->buffer), - layout, max_pixels, - &y, &old_height, &new_height)) + priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + + while (max_pixels > 0) { + priv->validating_in_background = TRUE; + validated = _gtk_text_btree_validate (_gtk_text_buffer_get_btree (layout->buffer), + layout, max_pixels, + &y, &old_height, &new_height); + priv->validating_in_background = FALSE; + + if (!validated) + break; + max_pixels -= new_height; update_layout_size (layout); @@ -1163,7 +1343,9 @@ gtk_text_layout_real_wrap (GtkTextLayout *layout, _gtk_text_line_add_data (line, line_data); } - display = gtk_text_layout_get_line_display (layout, line, TRUE); + /* a line validated because it is on screen is drawn next */ + display = gtk_text_layout_get_line_display (layout, line, + !GTK_TEXT_LAYOUT_GET_PRIVATE (layout)->validating_on_screen); line_data->width = display->width; line_data->height = display->height; line_data->valid = TRUE; @@ -2161,22 +2343,26 @@ gtk_text_layout_get_line_display (GtkTextLayout *layout, g_return_val_if_fail (line != NULL, NULL); - if (layout->one_display_cache) - { - if (line == layout->one_display_cache->line && - (size_only || !layout->one_display_cache->size_only)) - { - if (!size_only) - update_text_display_cursors (layout, line, layout->one_display_cache); - return layout->one_display_cache; - } - else - { - GtkTextLineDisplay *tmp_display = layout->one_display_cache; - layout->one_display_cache = NULL; - gtk_text_layout_free_line_display (layout, tmp_display); - } - } + { + GtkTextLayoutPrivate *priv = GTK_TEXT_LAYOUT_GET_PRIVATE (layout); + gint i = display_cache_find (priv, line); + + if (i >= 0) + { + display = priv->displays[i]; + + if (size_only || !display->size_only) + { + display_cache_move_to_front (layout, i); + if (!size_only) + update_text_display_cursors (layout, line, display); + return display; + } + + /* laid out only for its size: lay it out in full */ + display_cache_remove (layout, i); + } + } DV (g_print ("creating one line display cache (%s)\n", G_STRLOC)); @@ -2500,7 +2686,7 @@ gtk_text_layout_get_line_display (GtkTextLayout *layout, if (tags != NULL) g_ptr_array_free (tags, TRUE); - layout->one_display_cache = display; + display_cache_add (layout, display); if (saw_widget) allocate_child_widgets (layout, display); @@ -2512,7 +2698,14 @@ void gtk_text_layout_free_line_display (GtkTextLayout *layout, GtkTextLineDisplay *display) { - if (display != layout->one_display_cache) + /* the displays in the cache stay there */ + if (!display_cache_contains (GTK_TEXT_LAYOUT_GET_PRIVATE (layout), display)) + free_line_display_now (display); +} + +static void +free_line_display_now (GtkTextLineDisplay *display) +{ { if (display->layout) g_object_unref (display->layout); diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index 7f3a30391..aaff2368b 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -322,6 +322,10 @@ GtkTextLineDisplay* gtk_text_layout_get_line_display (GtkTextLayout *layou void gtk_text_layout_free_line_display (GtkTextLayout *layout, GtkTextLineDisplay *display); +/* private: keep the displays of that many lines, drawn at once */ +void _gtk_text_layout_cache_lines (GtkTextLayout *layout, + gint n_lines); + void gtk_text_layout_get_line_at_y (GtkTextLayout *layout, GtkTextIter *target_iter, gint y, From 24dd1ff3d7f51838f4698f8a176435b67e0fc3d1 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 15:28:40 +0200 Subject: [PATCH 112/249] icontheme: gtk_icon_theme_load_icon hands out copies of the small icons it loaded last, instead of reading and scaling the file for every row of a list --- gtk/gtkicontheme.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 1da8ae973..11308083c 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -103,8 +103,22 @@ struct _GtkIconThemePrivate GList *dir_mtimes; gulong reset_styles_idle; + + /* the icons loaded last with gtk_icon_theme_load_icon(), most recent + * first, as tree views and menus load the same few again and again */ + struct { + gchar *name; + gint size; + GtkIconLookupFlags flags; + GdkPixbuf *pixbuf; + } loaded[32]; + guint n_loaded; + guint loaded_builtin_serial; }; +/* icons small enough to be kept: 48 × 48 */ +#define MAX_LOADED_PIXELS (48 * 48) + struct _GtkIconInfo { /* Information about the source @@ -247,6 +261,7 @@ static BuiltinIcon *find_builtin_icon (const gchar *icon_name, static guint signal_changed = 0; static GHashTable *icon_theme_builtin_icons; +static guint icon_theme_builtin_serial; /* changes as builtin icons are added */ /* also used in gtkiconfactory.c */ GtkIconCache *_builtin_cache = NULL; @@ -639,11 +654,24 @@ do_theme_change (GtkIconTheme *icon_theme) reset_styles_idle, icon_theme, NULL); } +static void +forget_loaded_icons (GtkIconThemePrivate *priv) +{ + while (priv->n_loaded > 0) + { + priv->n_loaded--; + g_free (priv->loaded[priv->n_loaded].name); + g_object_unref (priv->loaded[priv->n_loaded].pixbuf); + } +} + static void blow_themes (GtkIconTheme *icon_theme) { GtkIconThemePrivate *priv = icon_theme->priv; + forget_loaded_icons (priv); + if (priv->themes_valid) { g_hash_table_destroy (priv->all_icons); @@ -1536,8 +1564,10 @@ gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, GtkIconLookupFlags flags, GError **error) { + GtkIconThemePrivate *priv; GtkIconInfo *icon_info; GdkPixbuf *pixbuf = NULL; + guint i; g_return_val_if_fail (GTK_IS_ICON_THEME (icon_theme), NULL); g_return_val_if_fail (icon_name != NULL, NULL); @@ -1545,6 +1575,35 @@ gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, (flags & GTK_ICON_LOOKUP_FORCE_SVG) == 0, NULL); g_return_val_if_fail (error == NULL || *error == NULL, NULL); + priv = icon_theme->priv; + + /* notices changed themes, which forget the loaded icons */ + ensure_valid_themes (icon_theme); + + if (priv->loaded_builtin_serial != icon_theme_builtin_serial) + { + forget_loaded_icons (priv); + priv->loaded_builtin_serial = icon_theme_builtin_serial; + } + + /* A copy of the one loaded last time, instead of reading and + * scaling the file again; a copy, as programs may change it, which + * the documentation forbids, but which worked before. */ + for (i = 0; i < priv->n_loaded; i++) + if (priv->loaded[i].size == size && priv->loaded[i].flags == flags && + strcmp (priv->loaded[i].name, icon_name) == 0) + { + if (i > 0) + { + __typeof__ (priv->loaded[0]) hit = priv->loaded[i]; + + memmove (priv->loaded + 1, priv->loaded, i * sizeof (priv->loaded[0])); + priv->loaded[0] = hit; + } + + return gdk_pixbuf_copy (priv->loaded[0].pixbuf); + } + icon_info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, flags | GTK_ICON_LOOKUP_USE_BUILTIN); if (!icon_info) @@ -1557,6 +1616,24 @@ gtk_icon_theme_load_icon (GtkIconTheme *icon_theme, pixbuf = gtk_icon_info_load_icon (icon_info, error); gtk_icon_info_free (icon_info); + if (pixbuf && + gdk_pixbuf_get_width (pixbuf) * gdk_pixbuf_get_height (pixbuf) <= MAX_LOADED_PIXELS) + { + if (priv->n_loaded == G_N_ELEMENTS (priv->loaded)) + { + priv->n_loaded--; + g_free (priv->loaded[priv->n_loaded].name); + g_object_unref (priv->loaded[priv->n_loaded].pixbuf); + } + + memmove (priv->loaded + 1, priv->loaded, priv->n_loaded * sizeof (priv->loaded[0])); + priv->loaded[0].name = g_strdup (icon_name); + priv->loaded[0].size = size; + priv->loaded[0].flags = flags; + priv->loaded[0].pixbuf = gdk_pixbuf_copy (pixbuf); + priv->n_loaded++; + } + return pixbuf; } @@ -3428,6 +3505,7 @@ gtk_icon_theme_add_builtin_icon (const gchar *icon_name, /* Replaces value, leaves key untouched */ g_hash_table_insert (icon_theme_builtin_icons, key, icons); + icon_theme_builtin_serial++; } /* Look up a builtin icon; the min_difference_p and From 8d260c9f501bb8fe019362bd0f807d9753f07f47 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 15:31:37 +0200 Subject: [PATCH 113/249] pixbuf engine: keep the stretched pieces of theme images that were drawn last, ready for cairo, instead of scaling and converting them for every widget --- modules/engines/pixbuf/pixbuf-render.c | 341 +++++++++++++++++++------ 1 file changed, 261 insertions(+), 80 deletions(-) diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index 1e74d67d5..592a443cb 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -364,6 +364,244 @@ replicate_cols (GdkPixbuf *src, * onto the rectangle (dest_x, dest_y, dest_width, dest_height) * of the destination, clip by clip_rect and render */ +/* The part @rect of the component @src_* stretched to @dest_*, as a + * pixbuf whose pixel (0, 0) is at (*x_offset, *y_offset) of @rect */ +static GdkPixbuf * +render_component (GdkPixbuf *src, + guint hints, + GdkRectangle *rect, + gint src_x, + gint src_y, + gint src_width, + gint src_height, + gint dest_x, + gint dest_y, + gint dest_width, + gint dest_height, + gint *x_offset, + gint *y_offset) +{ + GdkPixbuf *tmp_pixbuf = NULL; + gboolean has_alpha = gdk_pixbuf_get_has_alpha (src); + gint src_rowstride = gdk_pixbuf_get_rowstride (src); + gint src_n_channels = gdk_pixbuf_get_n_channels (src); + + if (dest_width == src_width && dest_height == src_height) + { + tmp_pixbuf = g_object_ref (src); + + *x_offset = src_x + rect->x - dest_x; + *y_offset = src_y + rect->y - dest_y; + } + else if (src_width == 0 && src_height == 0) + { + tmp_pixbuf = bilinear_gradient (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if (src_width == 0 && dest_height == src_height) + { + tmp_pixbuf = horizontal_gradient (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if (src_height == 0 && dest_width == src_width) + { + tmp_pixbuf = vertical_gradient (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if ((hints & THEME_CONSTANT_COLS) && (hints & THEME_CONSTANT_ROWS)) + { + tmp_pixbuf = replicate_single (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if (dest_width == src_width && (hints & THEME_CONSTANT_COLS)) + { + tmp_pixbuf = replicate_rows (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if (dest_height == src_height && (hints & THEME_CONSTANT_ROWS)) + { + tmp_pixbuf = replicate_cols (src, src_x, src_y, dest_width, dest_height); + + *x_offset = rect->x - dest_x; + *y_offset = rect->y - dest_y; + } + else if (src_width > 0 && src_height > 0) + { + double x_scale = (double)dest_width / src_width; + double y_scale = (double)dest_height / src_height; + guchar *pixels; + GdkPixbuf *partial_src; + + pixels = (gdk_pixbuf_get_pixels (src) + + src_y * src_rowstride + + src_x * src_n_channels); + + partial_src = gdk_pixbuf_new_from_data (pixels, GDK_COLORSPACE_RGB, + has_alpha, + 8, src_width, src_height, + src_rowstride, + NULL, NULL); + + tmp_pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, + has_alpha, 8, + rect->width, rect->height); + + gdk_pixbuf_scale (partial_src, tmp_pixbuf, + 0, 0, rect->width, rect->height, + dest_x - rect->x, dest_y - rect->y, + x_scale, y_scale, + GDK_INTERP_BILINEAR); + + g_object_unref (partial_src); + + *x_offset = 0; + *y_offset = 0; + } + + return tmp_pixbuf; +} + +/* Stretched components as the cairo surfaces they are drawn from, kept + * for the next widget of the same size: buttons, entries and tabs are + * drawn again and again with the same sizes, and scaling and converting + * the image each time is most of the work of a pixmap theme. Only + * components up to MAX_COMPONENT_PIXELS, and CACHE_BUDGET pixels in + * all, so large backgrounds do not stay in memory. */ +#define MAX_COMPONENT_PIXELS (256 * 256) +#define CACHE_BUDGET (512 * 512) +#define MAX_COMPONENTS 64 + +typedef struct +{ + GdkPixbuf *src; + guint hints; + gint src_x, src_y, src_width, src_height; + gint dest_width, dest_height; + cairo_surface_t *surface; +} Component; + +static Component components[MAX_COMPONENTS]; +static guint n_components; +static gint components_pixels; + +static void +component_drop_last (void) +{ + Component *c = &components[--n_components]; + + components_pixels -= c->dest_width * c->dest_height; + cairo_surface_destroy (c->surface); + g_object_unref (c->src); +} + +static cairo_surface_t * +component_surface (GdkPixbuf *src, + guint hints, + gint src_x, + gint src_y, + gint src_width, + gint src_height, + gint dest_width, + gint dest_height) +{ + GdkRectangle full = { 0, 0, dest_width, dest_height }; + GdkPixbuf *tmp_pixbuf; + cairo_surface_t *surface; + cairo_t *cr; + gint x_offset, y_offset; + guint i; + + for (i = 0; i < n_components; i++) + { + Component *c = &components[i]; + + if (c->src == src && c->hints == hints && + c->src_x == src_x && c->src_y == src_y && + c->src_width == src_width && c->src_height == src_height && + c->dest_width == dest_width && c->dest_height == dest_height) + { + if (i > 0) + { + Component hit = *c; + + memmove (components + 1, components, i * sizeof (Component)); + components[0] = hit; + } + return cairo_surface_reference (components[0].surface); + } + } + + tmp_pixbuf = render_component (src, hints, &full, src_x, src_y, src_width, src_height, + 0, 0, dest_width, dest_height, &x_offset, &y_offset); + if (!tmp_pixbuf) + return NULL; + + surface = cairo_image_surface_create (gdk_pixbuf_get_has_alpha (tmp_pixbuf) ? + CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24, + dest_width, dest_height); + cr = cairo_create (surface); + cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE); + gdk_cairo_set_source_pixbuf (cr, tmp_pixbuf, -x_offset, -y_offset); + cairo_paint (cr); + cairo_destroy (cr); + g_object_unref (tmp_pixbuf); + + if (dest_width * dest_height <= MAX_COMPONENT_PIXELS) + { + while (n_components > 0 && + (n_components == MAX_COMPONENTS || + components_pixels + dest_width * dest_height > CACHE_BUDGET)) + component_drop_last (); + + memmove (components + 1, components, n_components * sizeof (Component)); + components[0].src = g_object_ref (src); + components[0].hints = hints; + components[0].src_x = src_x; + components[0].src_y = src_y; + components[0].src_width = src_width; + components[0].src_height = src_height; + components[0].dest_width = dest_width; + components[0].dest_height = dest_height; + components[0].surface = cairo_surface_reference (surface); + components_pixels += dest_width * dest_height; + n_components++; + } + + return surface; +} + +/* An image of the theme is going away: forget what was made from it */ +static void +components_forget (GdkPixbuf *src) +{ + guint i = 0; + + while (i < n_components) + { + if (components[i].src == src) + { + Component c = components[i]; + + memmove (components + i, components + i + 1, + (n_components - i - 1) * sizeof (Component)); + components[n_components - 1] = c; + component_drop_last (); + } + else + i++; + } +} + static void pixbuf_render (GdkPixbuf *src, guint hints, @@ -382,9 +620,6 @@ pixbuf_render (GdkPixbuf *src, GdkPixbuf *tmp_pixbuf = NULL; GdkRectangle rect; int x_offset, y_offset; - gboolean has_alpha = gdk_pixbuf_get_has_alpha (src); - gint src_rowstride = gdk_pixbuf_get_rowstride (src); - gint src_n_channels = gdk_pixbuf_get_n_channels (src); if (dest_width <= 0 || dest_height <= 0) return; @@ -408,87 +643,32 @@ pixbuf_render (GdkPixbuf *src, return; } - if (dest_width == src_width && dest_height == src_height) + /* Without a mask, the whole component is made once and kept, unless + * it is large and only a little of it is drawn. */ + if (!mask && + (dest_width * dest_height <= MAX_COMPONENT_PIXELS || + (rect.width == dest_width && rect.height == dest_height))) { - tmp_pixbuf = g_object_ref (src); + cairo_surface_t *surface; + cairo_t *cr; - x_offset = src_x + rect.x - dest_x; - y_offset = src_y + rect.y - dest_y; + surface = component_surface (src, hints, src_x, src_y, src_width, src_height, + dest_width, dest_height); + if (!surface) + return; + + cr = gdk_cairo_create (window); + cairo_set_source_surface (cr, surface, dest_x, dest_y); + gdk_cairo_rectangle (cr, &rect); + cairo_fill (cr); + cairo_destroy (cr); + cairo_surface_destroy (surface); + return; } - else if (src_width == 0 && src_height == 0) - { - tmp_pixbuf = bilinear_gradient (src, src_x, src_y, dest_width, dest_height); - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if (src_width == 0 && dest_height == src_height) - { - tmp_pixbuf = horizontal_gradient (src, src_x, src_y, dest_width, dest_height); - - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if (src_height == 0 && dest_width == src_width) - { - tmp_pixbuf = vertical_gradient (src, src_x, src_y, dest_width, dest_height); - - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if ((hints & THEME_CONSTANT_COLS) && (hints & THEME_CONSTANT_ROWS)) - { - tmp_pixbuf = replicate_single (src, src_x, src_y, dest_width, dest_height); - - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if (dest_width == src_width && (hints & THEME_CONSTANT_COLS)) - { - tmp_pixbuf = replicate_rows (src, src_x, src_y, dest_width, dest_height); - - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if (dest_height == src_height && (hints & THEME_CONSTANT_ROWS)) - { - tmp_pixbuf = replicate_cols (src, src_x, src_y, dest_width, dest_height); - - x_offset = rect.x - dest_x; - y_offset = rect.y - dest_y; - } - else if (src_width > 0 && src_height > 0) - { - double x_scale = (double)dest_width / src_width; - double y_scale = (double)dest_height / src_height; - guchar *pixels; - GdkPixbuf *partial_src; - - pixels = (gdk_pixbuf_get_pixels (src) - + src_y * src_rowstride - + src_x * src_n_channels); - - partial_src = gdk_pixbuf_new_from_data (pixels, GDK_COLORSPACE_RGB, - has_alpha, - 8, src_width, src_height, - src_rowstride, - NULL, NULL); - - tmp_pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, - has_alpha, 8, - rect.width, rect.height); - - gdk_pixbuf_scale (partial_src, tmp_pixbuf, - 0, 0, rect.width, rect.height, - dest_x - rect.x, dest_y - rect.y, - x_scale, y_scale, - GDK_INTERP_BILINEAR); - - g_object_unref (partial_src); - - x_offset = 0; - y_offset = 0; - } + tmp_pixbuf = render_component (src, hints, &rect, src_x, src_y, src_width, src_height, + dest_x, dest_y, dest_width, dest_height, + &x_offset, &y_offset); if (tmp_pixbuf) { @@ -567,6 +747,7 @@ theme_pixbuf_set_filename (ThemePixbuf *theme_pb, if (entry->ref_count == 0) { + components_forget (entry->pixbuf); g_hash_table_remove (pixbuf_filename_ht, entry->filename); g_hash_table_remove (pixbuf_pixbuf_ht, entry->pixbuf); From 73357d22fbc982fd06431b80d46bdf240b786607 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 16:00:07 +0200 Subject: [PATCH 114/249] build: no symbol aliases on Windows, where a GLib built with clang reports visibility support although the Windows sources define no aliases --- gdk/makegdkalias.pl | 2 +- gtk/makegtkalias.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/makegdkalias.pl b/gdk/makegdkalias.pl index 27646cc0a..0f608f270 100755 --- a/gdk/makegdkalias.pl +++ b/gdk/makegdkalias.pl @@ -14,7 +14,7 @@ print < -#if defined(G_HAVE_GNUC_VISIBILITY) && !defined(__APPLE__) +#if defined(G_HAVE_GNUC_VISIBILITY) && !defined(__APPLE__) && !defined(G_OS_WIN32) EOF diff --git a/gtk/makegtkalias.pl b/gtk/makegtkalias.pl index 67ec7c973..fb35544fb 100755 --- a/gtk/makegtkalias.pl +++ b/gtk/makegtkalias.pl @@ -14,7 +14,7 @@ print < -#if defined(G_HAVE_GNUC_VISIBILITY) && !defined(__APPLE__) +#if defined(G_HAVE_GNUC_VISIBILITY) && !defined(__APPLE__) && !defined(G_OS_WIN32) EOF From 1bba6211a7dd66bf126f671548a975609b75ea71 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 16:06:17 +0200 Subject: [PATCH 115/249] ms-windows engine: get the size of windows and pixmaps without the deprecated call the engine is built without, which newer compilers refuse --- modules/engines/ms-windows/msw_style.c | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c index 6f1525920..33eed35d0 100755 --- a/modules/engines/ms-windows/msw_style.c +++ b/modules/engines/ms-windows/msw_style.c @@ -878,6 +878,22 @@ setup_system_styles (GtkStyle *style) } } +/* the size of a window or pixmap, without the deprecated + * gdk_drawable_get_size() this engine is built without */ +static void +drawable_get_size (GdkDrawable *drawable, gint *width, gint *height) +{ + if (GDK_IS_WINDOW (drawable)) + { + if (width) + *width = gdk_window_get_width (GDK_WINDOW (drawable)); + if (height) + *height = gdk_window_get_height (GDK_WINDOW (drawable)); + } + else + gdk_pixmap_get_size (GDK_PIXMAP (drawable), width, height); +} + static gboolean sanitize_size (GdkWindow *window, gint *width, gint *height) { @@ -886,15 +902,15 @@ sanitize_size (GdkWindow *window, gint *width, gint *height) if ((*width == -1) && (*height == -1)) { set_bg = GDK_IS_WINDOW (window); - gdk_drawable_get_size (window, width, height); + drawable_get_size (window, width, height); } else if (*width == -1) { - gdk_drawable_get_size (window, width, NULL); + drawable_get_size (window, width, NULL); } else if (*height == -1) { - gdk_drawable_get_size (window, NULL, height); + drawable_get_size (window, NULL, height); } return set_bg; From 5dfb78672473f7acdd6d4ac98b0dd0e3a7b9a0aa Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 16:32:45 +0200 Subject: [PATCH 116/249] filechooser: on Windows, Delete moves files to the Recycle Bin through the shell, without the shell's own confirmation box that GLib's call brings up for each file --- gtk/Makefile.am | 2 +- gtk/gtkfilechooserdefault.c | 89 +++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 0027855ee..21d9d4a50 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -928,7 +928,7 @@ libgtk_quartz_2_0_la_LDFLAGS = $(libtool_opts) libgtk_directfb_2_0_la_LDFLAGS = $(libtool_opts) libgtk_x11_2_0_la_LIBADD = $(libadd) -libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 +libgtk_win32_2_0_la_LIBADD = $(libadd) -lole32 -lgdi32 -lcomdlg32 -lwinspool -lcomctl32 -lshell32 libgtk_quartz_2_0_la_LIBADD = $(libadd) libgtk_directfb_2_0_la_LIBADD = $(libadd) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 0a5db056a..337a27aa2 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -90,6 +90,8 @@ #endif #ifdef G_OS_WIN32 #include +#include +#include #endif /* Profiling stuff */ @@ -2962,6 +2964,77 @@ gboolean _gtk_quartz_trash_file (GFile *file, static void trash_next (TrashData *data); +#ifdef G_OS_WIN32 +#ifndef FOF_WANTNUKEWARNING +#define FOF_WANTNUKEWARNING 0x4000 /* shell32 5.0, Windows 2000 */ +#endif + +/* Into the Recycle Bin, as Delete does in Explorer: GLib asks the shell + * with nothing but FOF_ALLOWUNDO, so Windows asks for confirmation in a + * box of its own, from a thread, for every file. FALSE with @error set + * when the shell refuses; a file that is not local is left to GIO. */ +static gboolean +win32_trash_file (GFile *file, + gboolean *handled, + GError **error) +{ + SHFILEOPSTRUCTW op = { 0 }; + gchar *path = g_file_get_path (file); + gunichar2 *wpath; + glong len; + int result; + + *handled = path != NULL; + if (path == NULL) + return FALSE; + + wpath = g_utf8_to_utf16 (path, -1, NULL, &len, NULL); + g_free (path); + if (wpath == NULL) + { + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_INVALID_FILENAME, + _("Invalid file name")); + return FALSE; + } + + /* a file that is gone is reported here: the shell would offer to + * delete it for good instead */ + if (GetFileAttributesW ((wchar_t *) wpath) == INVALID_FILE_ATTRIBUTES) + { + gchar *message = g_win32_error_message (GetLastError ()); + + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, message); + g_free (message); + g_free (wpath); + return FALSE; + } + + /* the list of files ends with two zeros */ + wpath = g_renew (gunichar2, wpath, len + 2); + wpath[len + 1] = 0; + + op.wFunc = FO_DELETE; + op.pFrom = wpath; + /* without asking, but never deleting for good instead: for a file + * that cannot go into the Recycle Bin (a network share, a drive + * without one, a file too big for it) the shell asks after all */ + op.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION | FOF_WANTNUKEWARNING | + FOF_NOERRORUI | FOF_SILENT; + result = SHFileOperationW (&op); + g_free (wpath); + + if (result != 0 || op.fAnyOperationsAborted) + { + g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, + _("The shell could not move the file to the Recycle Bin (error %d)"), + result); + return FALSE; + } + + return TRUE; +} +#endif + /* On a failure the rest stays, so the user sees what happened */ static void trash_failed (TrashData *data, @@ -3015,6 +3088,22 @@ trash_next (TrashData *data) } #endif +#ifdef G_OS_WIN32 + while (data->files) + { + GError *error = NULL; + gboolean handled; + + file = data->files->data; + if (!win32_trash_file (file, &handled, &error) && !handled) + break; /* not a local file: GIO below */ + data->files = g_list_delete_link (data->files, data->files); + if (error) + trash_failed (data, file, error); + g_object_unref (file); + } +#endif + if (data->files == NULL) { g_object_unref (data->impl); From c0b83eba962d20d59a7cab53fe1ca78507b07506 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 16:44:00 +0200 Subject: [PATCH 117/249] filethumbnail: on Windows, images whose type the registry does not name are known by the extensions gdk-pixbuf reads, and a one-pixel answer of the shell is not taken for a thumbnail --- gtk/gtkfilethumbnail.c | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index a817c1c75..0fefb9d71 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -566,6 +566,14 @@ native_thumbnail (Job *job) { pixbuf = pixbuf_of_bitmap (bitmap); DeleteObject (bitmap); + + /* some shells (Wine, and handlers with nothing cached) answer + * with a dot of a bitmap: then the thumbnail is made here */ + if (pixbuf && gdk_pixbuf_get_width (pixbuf) < 16 && gdk_pixbuf_get_height (pixbuf) < 16) + { + g_object_unref (pixbuf); + pixbuf = NULL; + } } factory->lpVtbl->Release (factory); } @@ -824,6 +832,52 @@ job_run (gpointer data, gdk_threads_add_idle (job_finish, job); } +#ifdef G_OS_WIN32 +/* Whether gdk-pixbuf has a loader for the extension of @file, for when + * the registry has no Content Type for the extension, which GIO takes + * the MIME type from on Windows */ +static gboolean +pixbuf_reads_extension (GFile *file) +{ + static GHashTable *extensions; + gchar *base, *dot, *ext; + gboolean known; + + if (g_once_init_enter (&extensions)) + { + GHashTable *table = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); + GSList *formats = gdk_pixbuf_get_formats (), *l; + + for (l = formats; l; l = l->next) + { + gchar **exts = gdk_pixbuf_format_get_extensions (l->data); + gint i; + + for (i = 0; exts && exts[i]; i++) + g_hash_table_insert (table, g_ascii_strdown (exts[i], -1), GINT_TO_POINTER (1)); + g_strfreev (exts); + } + g_slist_free (formats); + g_once_init_leave (&extensions, table); + } + + base = g_file_get_basename (file); + dot = base ? strrchr (base, '.') : NULL; + if (dot == NULL || dot[1] == 0) + { + g_free (base); + return FALSE; + } + + ext = g_ascii_strdown (dot + 1, -1); + known = g_hash_table_lookup (extensions, ext) != NULL; + g_free (ext); + g_free (base); + + return known; +} +#endif + /* Whether a thumbnail could be made for @file, of which @info knows the * fast content type, size and modification time */ gboolean @@ -846,6 +900,10 @@ _gtk_file_thumbnail_wanted (GFile *file, mime = g_content_type_get_mime_type (type); wanted = mime && g_str_has_prefix (mime, "image/"); g_free (mime); +#ifdef G_OS_WIN32 + if (!wanted) + wanted = pixbuf_reads_extension (file); +#endif if (!wanted) return FALSE; From a66814b91b1c070a0a7491fabe8e8b775415250e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:32 +0200 Subject: [PATCH 118/249] gdk: a new cairo context for drawing with a GC is not clipped to the window a second time --- gdk/gdkdraw.c | 4 ++-- gdk/gdkgc.c | 18 +++++++++++++----- gdk/gdkinternals.h | 3 ++- gdk/gdkpango.c | 5 ++++- 4 files changed, 21 insertions(+), 9 deletions(-) diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index 367e7351a..40141bbd8 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -942,7 +942,7 @@ real_draw_glyphs (GdkDrawable *drawable, cairo_t *cr; cr = gdk_cairo_create (drawable); - _gdk_gc_update_context (gc, cr, NULL, NULL, TRUE, drawable); + _gdk_gc_update_context (gc, cr, NULL, NULL, TRUE, drawable, TRUE); if (matrix) { @@ -1072,7 +1072,7 @@ gdk_draw_trapezoids (GdkDrawable *drawable, g_return_if_fail (n_trapezoids == 0 || trapezoids != NULL); cr = gdk_cairo_create (drawable); - _gdk_gc_update_context (gc, cr, NULL, NULL, TRUE, drawable); + _gdk_gc_update_context (gc, cr, NULL, NULL, TRUE, drawable, TRUE); for (i = 0; i < n_trapezoids; i++) { diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index 3cb2a7b0e..b51369bee 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -1453,6 +1453,8 @@ gc_get_background (GdkGC *gc, * last call to this function * @target_drawable: The drawable you're drawing in. If passed in * this is used for client side window clip emulation. + * @cr_is_new: %TRUE if @cr comes straight from gdk_cairo_create() + * on @target_drawable, which has set the window clip already * * Set the attributes of a cairo context to match those of a #GdkGC * as far as possible. Some aspects of a #GdkGC, such as clip masks @@ -1464,7 +1466,8 @@ _gdk_gc_update_context (GdkGC *gc, const GdkColor *override_foreground, GdkBitmap *override_stipple, gboolean gc_changed, - GdkDrawable *target_drawable) + GdkDrawable *target_drawable, + gboolean cr_is_new) { GdkGCPrivate *priv; GdkFill fill; @@ -1570,10 +1573,15 @@ _gdk_gc_update_context (GdkGC *gc, if (!gc_changed) return; - cairo_reset_clip (cr); - /* The reset above resets the window clip rect, so we want to re-set that */ - if (target_drawable && GDK_DRAWABLE_GET_CLASS (target_drawable)->set_cairo_clip) - GDK_DRAWABLE_GET_CLASS (target_drawable)->set_cairo_clip (target_drawable, cr); + /* a new context has the window clip and no other: building the + * window clip again from its region is work for nothing */ + if (!cr_is_new) + { + cairo_reset_clip (cr); + /* The reset above resets the window clip rect, so we want to re-set that */ + if (target_drawable && GDK_DRAWABLE_GET_CLASS (target_drawable)->set_cairo_clip) + GDK_DRAWABLE_GET_CLASS (target_drawable)->set_cairo_clip (target_drawable, cr); + } if (priv->clip_region) { diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 6460e1319..82ce0d71e 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -411,7 +411,8 @@ void _gdk_gc_update_context (GdkGC *gc, const GdkColor *override_foreground, GdkBitmap *override_stipple, gboolean gc_changed, - GdkDrawable *target_drawable); + GdkDrawable *target_drawable, + gboolean cr_is_new); /************************************* * Interfaces used by windowing code * diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index c00949f1a..756507847 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -161,12 +161,14 @@ get_cairo_context (GdkPangoRenderer *gdk_renderer, { PangoRenderer *renderer = PANGO_RENDERER (gdk_renderer); GdkPangoRendererPrivate *priv = gdk_renderer->priv; + gboolean cr_is_new = FALSE; if (!priv->cr) { const PangoMatrix *matrix; priv->cr = gdk_cairo_create (priv->drawable); + cr_is_new = TRUE; matrix = pango_renderer_get_matrix (renderer); if (matrix) @@ -216,7 +218,8 @@ get_cairo_context (GdkPangoRenderer *gdk_renderer, color, priv->stipple[part], priv->gc_changed, - priv->drawable); + priv->drawable, + cr_is_new); } priv->last_part = part; From 037a75fb54bc67cb86594c74281d9246fc0a5c68 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:36 +0200 Subject: [PATCH 119/249] gdk: text drawn with gdk_draw_layout() is clipped only to the parts of the window clip around it, not to every rectangle of a clip with many --- gdk/gdkcairo.c | 27 +++++++++++++++-- gdk/gdkinternals.h | 7 +++++ gdk/gdkpango.c | 75 ++++++++++++++++++++++++++++++++++++++++++++-- gdk/gdkwindow.c | 66 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 170 insertions(+), 5 deletions(-) diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index f9730d995..046bc5de7 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -33,6 +33,8 @@ gdk_ensure_surface_flush (gpointer surface) cairo_surface_destroy (surface); } +static const cairo_user_data_key_t surface_flush_key; + /** * gdk_cairo_create: * @drawable: a #GdkDrawable @@ -53,7 +55,6 @@ gdk_ensure_surface_flush (gpointer surface) cairo_t * gdk_cairo_create (GdkDrawable *drawable) { - static const cairo_user_data_key_t key; cairo_surface_t *surface; cairo_t *cr; @@ -70,7 +71,29 @@ gdk_cairo_create (GdkDrawable *drawable) * on X11 (where flushing is a no-op). For details, see * https://bugzilla.gnome.org/show_bug.cgi?id=628291 */ - cairo_set_user_data (cr, &key, surface, gdk_ensure_surface_flush); + cairo_set_user_data (cr, &surface_flush_key, surface, gdk_ensure_surface_flush); + + return cr; +} + +/* gdk_cairo_create() for drawing that stays within @area (in the + * coordinates of @drawable): for a window whose clip has many + * rectangles, only those parts of it within @area make the clip */ +cairo_t * +_gdk_cairo_create_in_area (GdkDrawable *drawable, + const GdkRectangle *area) +{ + cairo_surface_t *surface; + cairo_t *cr; + + if (!GDK_IS_WINDOW (drawable) || + _gdk_window_get_cairo_clip_n_rects ((GdkWindow *) drawable) <= 2) + return gdk_cairo_create (drawable); + + surface = _gdk_drawable_ref_cairo_surface (drawable); + cr = cairo_create (surface); + _gdk_window_set_cairo_clip_in_area ((GdkWindow *) drawable, cr, area); + cairo_set_user_data (cr, &surface_flush_key, surface, gdk_ensure_surface_flush); return cr; } diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index 82ce0d71e..f2b41bc58 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -406,6 +406,13 @@ gboolean _gdk_rgb_composite (GdkColormap *colormap, gboolean _gdk_rgb_prefers_own_blending (GdkColormap *colormap, GdkRgbDither dither); +gint _gdk_window_get_cairo_clip_n_rects (GdkWindow *window); +void _gdk_window_set_cairo_clip_in_area (GdkWindow *window, + cairo_t *cr, + const GdkRectangle *area); +cairo_t *_gdk_cairo_create_in_area (GdkDrawable *drawable, + const GdkRectangle *area); + void _gdk_gc_update_context (GdkGC *gc, cairo_t *cr, const GdkColor *override_foreground, diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c index 756507847..5b36602f7 100644 --- a/gdk/gdkpango.c +++ b/gdk/gdkpango.c @@ -59,6 +59,12 @@ struct _GdkPangoRendererPrivate GdkGC *base_gc; gboolean gc_changed; + + /* what gdk_draw_layout[_line]_with_colors() draws, where, for the + * clip (see get_cairo_context()) */ + PangoLayout *area_layout; + PangoLayoutLine *area_line; + gint area_x, area_y; }; static PangoAttrType gdk_pango_attr_stipple_type; @@ -155,6 +161,41 @@ color_equal (const PangoColor *c1, const PangoColor *c2) return FALSE; } +/* Where gdk_draw_layout[_line]_with_colors() draws: the ink and the + * logical extents, with room around for the emboss and for pixels of + * glyphs that antialiasing puts a little outside their ink. Only asked + * for when the clip of the window has more than a few rectangles. */ +#define DRAW_AREA_MARGIN 4 + +static gboolean +get_draw_area (GdkPangoRendererPrivate *priv, + GdkRectangle *area) +{ + PangoRectangle ink, logical; + + if (priv->area_layout) + pango_layout_get_pixel_extents (priv->area_layout, &ink, &logical); + else if (priv->area_line) + pango_layout_line_get_pixel_extents (priv->area_line, &ink, &logical); + else + return FALSE; + + if (ink.width <= 0 || ink.height <= 0) + ink = logical; + + area->x = MIN (ink.x, logical.x); + area->y = MIN (ink.y, logical.y); + area->width = MAX (ink.x + ink.width, logical.x + logical.width) - area->x; + area->height = MAX (ink.y + ink.height, logical.y + logical.height) - area->y; + + area->x += priv->area_x - DRAW_AREA_MARGIN; + area->y += priv->area_y - DRAW_AREA_MARGIN; + area->width += 2 * DRAW_AREA_MARGIN; + area->height += 2 * DRAW_AREA_MARGIN; + + return TRUE; +} + static cairo_t * get_cairo_context (GdkPangoRenderer *gdk_renderer, PangoRenderPart part) @@ -166,8 +207,15 @@ get_cairo_context (GdkPangoRenderer *gdk_renderer, if (!priv->cr) { const PangoMatrix *matrix; + GdkRectangle area; - priv->cr = gdk_cairo_create (priv->drawable); + if ((priv->area_layout || priv->area_line) && + GDK_IS_WINDOW (priv->drawable) && + _gdk_window_get_cairo_clip_n_rects ((GdkWindow *) priv->drawable) > 2 && + get_draw_area (priv, &area)) + priv->cr = _gdk_cairo_create_in_area (priv->drawable, &area); + else + priv->cr = gdk_cairo_create (priv->drawable); cr_is_new = TRUE; matrix = pango_renderer_get_matrix (renderer); @@ -842,6 +890,9 @@ release_renderer (PangoRenderer *renderer) gdk_pango_renderer_set_drawable (gdk_renderer, NULL); gdk_pango_renderer_set_gc (gdk_renderer, NULL); + + gdk_renderer->priv->area_layout = NULL; + gdk_renderer->priv->area_line = NULL; } /** @@ -914,7 +965,16 @@ gdk_draw_layout_line_with_colors (GdkDrawable *drawable, y = 0; } else - pango_renderer_set_matrix (renderer, NULL); + { + GdkPangoRendererPrivate *priv = GDK_PANGO_RENDERER (renderer)->priv; + + pango_renderer_set_matrix (renderer, NULL); + + /* without a matrix, the extents of the line say where it goes */ + priv->area_line = line; + priv->area_x = x; + priv->area_y = y; + } pango_renderer_draw_layout_line (renderer, line, x * PANGO_SCALE, y * PANGO_SCALE); @@ -994,7 +1054,16 @@ gdk_draw_layout_with_colors (GdkDrawable *drawable, y = 0; } else - pango_renderer_set_matrix (renderer, NULL); + { + GdkPangoRendererPrivate *priv = GDK_PANGO_RENDERER (renderer)->priv; + + pango_renderer_set_matrix (renderer, NULL); + + /* without a matrix, the extents of the layout say where it goes */ + priv->area_layout = layout; + priv->area_x = x; + priv->area_y = y; + } pango_renderer_draw_layout (renderer, layout, x * PANGO_SCALE, y * PANGO_SCALE); diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index e75aebb07..580366e47 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -34,6 +34,7 @@ #include "gdkdrawable.h" #include "gdkintl.h" #include "gdkscreen.h" +#include "gdkregion-generic.h" #include "gdkmarshalers.h" #include "gdkalias.h" @@ -5249,6 +5250,71 @@ gdk_window_set_cairo_clip (GdkDrawable *drawable, } } +/* The region gdk_window_set_cairo_clip() clips to, or %NULL if it + * sets no clip */ +static const GdkRegion * +gdk_window_get_cairo_clip_region (GdkWindowObject *private) +{ + GdkWindowPaint *paint; + + if (!private->paint_stack) + return private->clip_region_with_children; + + paint = private->paint_stack->data; + return paint->uses_implicit ? paint->region : NULL; +} + +/* The number of rectangles of the clip a context made with + * gdk_cairo_create() for @window gets, 0 if it gets none */ +gint +_gdk_window_get_cairo_clip_n_rects (GdkWindow *window) +{ + const GdkRegion *region; + + region = gdk_window_get_cairo_clip_region ((GdkWindowObject *) window); + + return region ? region->numRects : 0; +} + +/* Clips @cr as gdk_window_set_cairo_clip() does, for drawing that + * stays within @area: only the parts of the clip region inside @area + * are made into the clip, which saves building a path out of every + * rectangle of a region with many (the parts of a window around its + * child windows, or an expose of many separate areas). */ +void +_gdk_window_set_cairo_clip_in_area (GdkWindow *window, + cairo_t *cr, + const GdkRectangle *area) +{ + const GdkRegion *region; + gint i; + + region = gdk_window_get_cairo_clip_region ((GdkWindowObject *) window); + + cairo_reset_clip (cr); + if (!region) + return; + + cairo_save (cr); + cairo_identity_matrix (cr); + cairo_new_path (cr); + + for (i = 0; i < region->numRects; i++) + { + const GdkRegionBox *box = ®ion->rects[i]; + gint x1 = MAX (box->x1, area->x); + gint y1 = MAX (box->y1, area->y); + gint x2 = MIN (box->x2, area->x + area->width); + gint y2 = MIN (box->y2, area->y + area->height); + + if (x1 < x2 && y1 < y2) + cairo_rectangle (cr, x1, y1, x2 - x1, y2 - y1); + } + + cairo_restore (cr); + cairo_clip (cr); +} + /* Code for dirty-region queueing */ static GSList *update_windows = NULL; From e96131d0bf8fa7bf0677ad918b191bace55f41bb Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:36 +0200 Subject: [PATCH 120/249] treedatalist: sorting a store or a sort model by a column with its own comparison reads every value once and compares strings by collation key, instead of reading and collating two values at each comparison --- gtk/gtktreedatalist.c | 207 +++++++++++++++++++++++++++++++++++++++++ gtk/gtktreedatalist.h | 6 ++ gtk/gtktreemodelsort.c | 56 ++++++++++- gtk/gtktreestore.c | 54 ++++++++++- 4 files changed, 321 insertions(+), 2 deletions(-) diff --git a/gtk/gtktreedatalist.c b/gtk/gtktreedatalist.c index f94a87de7..640280a5e 100644 --- a/gtk/gtktreedatalist.c +++ b/gtk/gtktreedatalist.c @@ -449,6 +449,213 @@ _gtk_tree_data_list_compare_func (GtkTreeModel *model, } +/* Sorting a whole list with _gtk_tree_data_list_compare_func() reads + * two values per comparison, copying strings, and collates both + * strings anew each time. _gtk_tree_data_list_sort_rows() reads every + * value once, turns strings into collation keys once, which compare + * with strcmp() as the strings do with g_utf8_collate(), and sorts + * those. */ +typedef enum +{ + SORT_SIGNED, + SORT_UNSIGNED, + SORT_DOUBLE, + SORT_STRING +} SortKind; + +typedef struct +{ + gint pos; + union { + gint64 v_int; + guint64 v_uint; + gdouble v_double; + gchar *v_key; + } v; +} SortRow; + +typedef struct +{ + SortKind kind; + gboolean descending; +} SortRowsData; + +static gint +sort_rows_compare (gconstpointer pa, + gconstpointer pb, + gpointer user_data) +{ + const SortRowsData *data = user_data; + const SortRow *a = pa; + const SortRow *b = pb; + gint retval; + + switch (data->kind) + { + case SORT_SIGNED: + retval = a->v.v_int < b->v.v_int ? -1 : a->v.v_int > b->v.v_int; + break; + case SORT_UNSIGNED: + retval = a->v.v_uint < b->v.v_uint ? -1 : a->v.v_uint > b->v.v_uint; + break; + case SORT_DOUBLE: + retval = a->v.v_double < b->v.v_double ? -1 : a->v.v_double > b->v.v_double; + break; + default: + retval = strcmp (a->v.v_key, b->v.v_key); + break; + } + + if (data->descending) + retval = -retval; + + /* rows that compare equal keep their order, as with the stable + * sorts the comparison function is used with */ + if (retval == 0) + retval = a->pos < b->pos ? -1 : a->pos > b->pos; + + return retval; +} + +/** + * _gtk_tree_data_list_sort_rows: + * @model: the model + * @column: the column to sort by + * @order: the sort order + * @iters: the @n_rows rows to sort + * @n_rows: the number of rows + * @new_order: (out): for every place in the sorted order, the index + * in @iters of the row that goes there + * + * Sorts rows of @model the way _gtk_tree_data_list_compare_func() on + * @column does with a stable sort. + * + * Returns: %FALSE, with nothing sorted, if the type of @column is one + * the comparison does not handle or a float column holds NaN, for + * which the caller sorts with the comparison function + **/ +gboolean +_gtk_tree_data_list_sort_rows (GtkTreeModel *model, + gint column, + GtkSortType order, + GtkTreeIter *iters, + gint n_rows, + gint *new_order) +{ + GType type = gtk_tree_model_get_column_type (model, column); + SortRowsData data; + SortRow *rows; + gint i; + + switch (get_fundamental_type (type)) + { + case G_TYPE_BOOLEAN: + case G_TYPE_CHAR: + case G_TYPE_INT: + case G_TYPE_LONG: + case G_TYPE_INT64: + case G_TYPE_ENUM: + data.kind = SORT_SIGNED; + break; + case G_TYPE_UCHAR: + case G_TYPE_UINT: + case G_TYPE_ULONG: + case G_TYPE_UINT64: + case G_TYPE_FLAGS: + data.kind = SORT_UNSIGNED; + break; + case G_TYPE_FLOAT: + case G_TYPE_DOUBLE: + data.kind = SORT_DOUBLE; + break; + case G_TYPE_STRING: + data.kind = SORT_STRING; + break; + default: + return FALSE; + } + data.descending = order == GTK_SORT_DESCENDING; + + rows = g_new (SortRow, n_rows); + for (i = 0; i < n_rows; i++) + { + GValue value = { 0, }; + const gchar *str; + + gtk_tree_model_get_value (model, &iters[i], column, &value); + rows[i].pos = i; + + switch (get_fundamental_type (type)) + { + case G_TYPE_BOOLEAN: + rows[i].v.v_int = g_value_get_boolean (&value); + break; + case G_TYPE_CHAR: + rows[i].v.v_int = g_value_get_schar (&value); + break; + case G_TYPE_INT: + rows[i].v.v_int = g_value_get_int (&value); + break; + case G_TYPE_LONG: + rows[i].v.v_int = g_value_get_long (&value); + break; + case G_TYPE_INT64: + rows[i].v.v_int = g_value_get_int64 (&value); + break; + case G_TYPE_ENUM: + rows[i].v.v_int = g_value_get_enum (&value); + break; + case G_TYPE_UCHAR: + rows[i].v.v_uint = g_value_get_uchar (&value); + break; + case G_TYPE_UINT: + rows[i].v.v_uint = g_value_get_uint (&value); + break; + case G_TYPE_ULONG: + rows[i].v.v_uint = g_value_get_ulong (&value); + break; + case G_TYPE_UINT64: + rows[i].v.v_uint = g_value_get_uint64 (&value); + break; + case G_TYPE_FLAGS: + rows[i].v.v_uint = g_value_get_flags (&value); + break; + case G_TYPE_FLOAT: + rows[i].v.v_double = g_value_get_float (&value); + break; + case G_TYPE_DOUBLE: + rows[i].v.v_double = g_value_get_double (&value); + break; + default: + str = g_value_get_string (&value); + rows[i].v.v_key = g_utf8_collate_key (str ? str : "", -1); + break; + } + + g_value_unset (&value); + + /* NaN compares neither less nor equal: leave such a column to + * the comparison function, so it sorts exactly as before */ + if (data.kind == SORT_DOUBLE && rows[i].v.v_double != rows[i].v.v_double) + { + g_free (rows); + return FALSE; + } + } + + g_qsort_with_data (rows, n_rows, sizeof (SortRow), sort_rows_compare, &data); + + for (i = 0; i < n_rows; i++) + { + new_order[i] = rows[i].pos; + if (data.kind == SORT_STRING) + g_free (rows[i].v.v_key); + } + g_free (rows); + + return TRUE; +} + GList * _gtk_tree_data_list_header_new (gint n_columns, GType *types) diff --git a/gtk/gtktreedatalist.h b/gtk/gtktreedatalist.h index cfd81b57d..fdaaec44d 100644 --- a/gtk/gtktreedatalist.h +++ b/gtk/gtktreedatalist.h @@ -68,6 +68,12 @@ gint _gtk_tree_data_list_compare_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data); +gboolean _gtk_tree_data_list_sort_rows (GtkTreeModel *model, + gint column, + GtkSortType order, + GtkTreeIter *iters, + gint n_rows, + gint *new_order); GList * _gtk_tree_data_list_header_new (gint n_columns, GType *types); void _gtk_tree_data_list_header_free (GList *header_list); diff --git a/gtk/gtktreemodelsort.c b/gtk/gtktreemodelsort.c index 8937cecc0..abc1885ab 100644 --- a/gtk/gtktreemodelsort.c +++ b/gtk/gtktreemodelsort.c @@ -1550,6 +1550,60 @@ gtk_tree_model_sort_offset_compare_func (gconstpointer a, return retval; } +/* sorting by a column with its own comparison, where the values can be + * read once (see _gtk_tree_data_list_sort_rows()); returns %FALSE if + * @sort_array is to be sorted with the comparison function */ +static gboolean +gtk_tree_model_sort_sort_by_column (GtkTreeModelSort *tree_model_sort, + SortData *data, + GArray *sort_array) +{ + GtkTreeIter *iters; + SortTuple *sorted; + gint *new_order; + gint n = sort_array->len; + gint i; + + if (data->sort_func != _gtk_tree_data_list_compare_func) + return FALSE; + + iters = g_new (GtkTreeIter, n); + new_order = g_new (gint, n); + for (i = 0; i < n; i++) + { + SortElt *elt = g_array_index (sort_array, SortTuple, i).elt; + + if (GTK_TREE_MODEL_SORT_CACHE_CHILD_ITERS (tree_model_sort)) + iters[i] = elt->iter; + else + { + data->parent_path_indices [data->parent_path_depth-1] = elt->offset; + gtk_tree_model_get_iter (GTK_TREE_MODEL (tree_model_sort->child_model), + &iters[i], data->parent_path); + } + } + + if (!_gtk_tree_data_list_sort_rows (tree_model_sort->child_model, + GPOINTER_TO_INT (data->sort_data), + tree_model_sort->order, + iters, n, new_order)) + { + g_free (iters); + g_free (new_order); + return FALSE; + } + + sorted = g_new (SortTuple, n); + for (i = 0; i < n; i++) + sorted[i] = g_array_index (sort_array, SortTuple, new_order[i]); + memcpy (sort_array->data, sorted, n * sizeof (SortTuple)); + + g_free (sorted); + g_free (iters); + g_free (new_order); + return TRUE; +} + static void gtk_tree_model_sort_sort_level (GtkTreeModelSort *tree_model_sort, SortLevel *level, @@ -1632,7 +1686,7 @@ gtk_tree_model_sort_sort_level (GtkTreeModelSort *tree_model_sort, g_array_sort_with_data (sort_array, gtk_tree_model_sort_offset_compare_func, &data); - else + else if (!gtk_tree_model_sort_sort_by_column (tree_model_sort, &data, sort_array)) g_array_sort_with_data (sort_array, gtk_tree_model_sort_compare_func, &data); diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index fac7bcaab..230d0bc6d 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2790,6 +2790,57 @@ gtk_tree_store_compare_func (gconstpointer a, return retval; } +/* sorting by a column with its own comparison, where the values can be + * read once (see _gtk_tree_data_list_sort_rows()); returns %FALSE if + * @sort_array is to be sorted with the comparison function */ +static gboolean +gtk_tree_store_sort_by_column (GtkTreeStore *tree_store, + GArray *sort_array) +{ + GtkTreeDataSortHeader *header; + GtkTreeIter *iters; + SortTuple *sorted; + gint *new_order; + gint n = sort_array->len; + gint i; + + if (tree_store->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID) + return FALSE; + + header = _gtk_tree_data_list_get_header (tree_store->sort_list, + tree_store->sort_column_id); + if (!header || header->func != _gtk_tree_data_list_compare_func) + return FALSE; + + iters = g_new (GtkTreeIter, n); + new_order = g_new (gint, n); + for (i = 0; i < n; i++) + { + iters[i].stamp = tree_store->stamp; + iters[i].user_data = g_array_index (sort_array, SortTuple, i).node; + } + + if (!_gtk_tree_data_list_sort_rows (GTK_TREE_MODEL (tree_store), + GPOINTER_TO_INT (header->data), + tree_store->order, + iters, n, new_order)) + { + g_free (iters); + g_free (new_order); + return FALSE; + } + + sorted = g_new (SortTuple, n); + for (i = 0; i < n; i++) + sorted[i] = g_array_index (sort_array, SortTuple, new_order[i]); + memcpy (sort_array->data, sorted, n * sizeof (SortTuple)); + + g_free (sorted); + g_free (iters); + g_free (new_order); + return TRUE; +} + static void gtk_tree_store_sort_helper (GtkTreeStore *tree_store, GNode *parent, @@ -2831,7 +2882,8 @@ gtk_tree_store_sort_helper (GtkTreeStore *tree_store, } /* Sort the array */ - g_array_sort_with_data (sort_array, gtk_tree_store_compare_func, tree_store); + if (!gtk_tree_store_sort_by_column (tree_store, sort_array)) + g_array_sort_with_data (sort_array, gtk_tree_store_compare_func, tree_store); for (i = 0; i < list_length - 1; i++) { From 2cc62ee2205bde166f16085ee501b55b38e911fc Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:42 +0200 Subject: [PATCH 121/249] liststore: sorting by a column with its own comparison reads every value once and compares strings by collation key --- gtk/gtkliststore.c | 63 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 3 deletions(-) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index 5d135fe10..cd82add8e 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -1702,6 +1702,58 @@ gtk_list_store_compare_func (GSequenceIter *a, return retval; } +/* sorting by a column with its own comparison, where the values can be + * read once (see _gtk_tree_data_list_sort_rows()); returns the new order + * or %NULL if the store is to be sorted with the comparison function */ +static gint * +gtk_list_store_sort_by_column (GtkListStore *list_store) +{ + GtkTreeDataSortHeader *header; + GSequenceIter *ptr; + GSequenceIter *end; + GtkTreeIter *iters; + gint *new_order; + gint n, i; + + if (list_store->sort_column_id == GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID) + return NULL; + + header = _gtk_tree_data_list_get_header (list_store->sort_list, + list_store->sort_column_id); + if (!header || header->func != _gtk_tree_data_list_compare_func) + return NULL; + + n = g_sequence_get_length (list_store->seq); + iters = g_new (GtkTreeIter, n); + new_order = g_new (gint, n); + + ptr = g_sequence_get_begin_iter (list_store->seq); + for (i = 0; i < n; i++) + { + iters[i].stamp = list_store->stamp; + iters[i].user_data = ptr; + ptr = g_sequence_iter_next (ptr); + } + + if (!_gtk_tree_data_list_sort_rows (GTK_TREE_MODEL (list_store), + GPOINTER_TO_INT (header->data), + list_store->order, + iters, n, new_order)) + { + g_free (iters); + g_free (new_order); + return NULL; + } + + /* append the rows to the end in their new order */ + end = g_sequence_get_end_iter (list_store->seq); + for (i = 0; i < n; i++) + g_sequence_move (iters[new_order[i]].user_data, end); + + g_free (iters); + return new_order; +} + static void gtk_list_store_sort (GtkListStore *list_store) { @@ -1713,12 +1765,17 @@ gtk_list_store_sort (GtkListStore *list_store) g_sequence_get_length (list_store->seq) <= 1) return; - old_positions = save_positions (list_store->seq); + new_order = gtk_list_store_sort_by_column (list_store); + if (!new_order) + { + old_positions = save_positions (list_store->seq); - g_sequence_sort_iter (list_store->seq, gtk_list_store_compare_func, list_store); + g_sequence_sort_iter (list_store->seq, gtk_list_store_compare_func, list_store); + + new_order = generate_order (list_store->seq, old_positions); + } /* Let the world know about our new order */ - new_order = generate_order (list_store->seq, old_positions); path = gtk_tree_path_new (); gtk_tree_model_rows_reordered (GTK_TREE_MODEL (list_store), From b71408562de03258463f2131588ec824dc5204b3 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:42 +0200 Subject: [PATCH 122/249] liststore: comparing two rows does not walk up the tree of the sequence for each row to check that it belongs to the store --- gtk/gtkliststore.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index cd82add8e..b95e5daf2 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -1686,9 +1686,6 @@ gtk_list_store_compare_func (GSequenceIter *a, iter_b.stamp = list_store->stamp; iter_b.user_data = (gpointer)b; - g_assert (VALID_ITER (&iter_a, list_store)); - g_assert (VALID_ITER (&iter_b, list_store)); - retval = (* func) (GTK_TREE_MODEL (list_store), &iter_a, &iter_b, data); if (list_store->order == GTK_SORT_DESCENDING) From 06aee2698b523104b6cb4b318288afcc1c777b3e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:35:42 +0200 Subject: [PATCH 123/249] textlayout: a text view in which no line wraps does not lay out every line again when its width changes --- gtk/gtktextlayout.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 23d45c6e7..4ea57cef9 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -627,6 +627,34 @@ gtk_text_layout_get_buffer (GtkTextLayout *layout) return layout->buffer; } +static void +tag_may_wrap (GtkTextTag *tag, + gpointer data) +{ + if (tag->wrap_mode_set && tag->values->wrap_mode != GTK_WRAP_NONE) + *(gboolean *) data = TRUE; +} + +/* Whether a line of the buffer may wrap, so that its layout depends on + * the screen width; always for a subclass with its own invalidation */ +static gboolean +gtk_text_layout_may_wrap (GtkTextLayout *layout) +{ + gboolean wraps = FALSE; + + if (GTK_TEXT_LAYOUT_GET_CLASS (layout)->invalidate != gtk_text_layout_real_invalidate || + GTK_TEXT_LAYOUT_GET_CLASS (layout)->wrap != gtk_text_layout_real_wrap || + layout->buffer == NULL || + layout->default_style == NULL || + layout->default_style->wrap_mode != GTK_WRAP_NONE) + return TRUE; + + gtk_text_tag_table_foreach (gtk_text_buffer_get_tag_table (layout->buffer), + tag_may_wrap, &wraps); + + return wraps; +} + void gtk_text_layout_set_screen_width (GtkTextLayout *layout, gint width) { @@ -639,6 +667,22 @@ gtk_text_layout_set_screen_width (GtkTextLayout *layout, gint width) layout->screen_width = width; + /* Where no line wraps, the lines keep their layout and their size + * at any width: only the room beside them changes, which the + * displays hold (with the place of lines aligned right or centered), + * so these are made again, as the lines are drawn. Without this, a + * resize of a window with a text view that does not wrap lays out + * every line of the buffer again. */ + if (!gtk_text_layout_may_wrap (layout)) + { + gint height; + + display_cache_clear (layout); + height = layout->height; + gtk_text_layout_emit_changed (layout, 0, height, height); + return; + } + DV (g_print ("invalidating all due to new screen width (%s)\n", G_STRLOC)); gtk_text_layout_invalidate_all (layout); } From b914c7068f0bd8202d74ed6ceb0047de17ebd8cc Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:38:41 +0200 Subject: [PATCH 124/249] cellrenderertext: the cache of laid out cells finds a text through buckets by its hash and keeps the order of use in a list, instead of comparing with every entry --- gtk/gtkcellrenderertext.c | 100 ++++++++++++++++++++++++++++++++------ 1 file changed, 85 insertions(+), 15 deletions(-) diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index 69fe85901..78d97de32 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -1377,7 +1377,10 @@ typedef struct PangoLayout *layout; guint serial; /* of @layout after our last change */ PangoRectangle rect; /* pixel extents at @width */ - guint used; + /* in the cache: the next entry with the same bucket, and the + * neighbours in the order of use, -1 for none */ + gint16 bucket_next; + gint16 lru_prev, lru_next; } CellLayout; #if PANGO_VERSION_CHECK (1, 46, 0) @@ -1391,31 +1394,38 @@ typedef struct /* Enough for three or four text columns of the rows a list shows; the * layout of a short text takes about 1.5 KB. The least recently used - * goes first; all go when the widget is unmapped. */ + * goes first; all go when the widget is unmapped. The entries are + * found through buckets by hash, so a lookup does not compare with + * every entry. */ #define CELL_LAYOUTS 128 +#define CELL_BUCKETS 64 typedef struct { PangoContext *context; /* not a reference: the widget holds one */ guint context_serial; - guint clock; guint n, size; /* the array grows to CELL_LAYOUTS */ CellLayout *entries; + gint16 buckets[CELL_BUCKETS]; + gint16 lru_head, lru_tail; /* most and least recently used */ } CellLayoutCache; static GQuark cell_layout_quark; #endif +/* Frees what @cl holds; the links of a cache entry stay */ static void cell_layout_clear (CellLayout *cl) { g_free (cl->text); + cl->text = NULL; if (cl->attrs) pango_attr_list_unref (cl->attrs); + cl->attrs = NULL; if (cl->layout) g_object_unref (cl->layout); - memset (cl, 0, sizeof (CellLayout)); + cl->layout = NULL; } #ifdef CELL_LAYOUT_CACHE @@ -1446,6 +1456,7 @@ cell_layout_cache_get (GtkWidget *widget) PangoContext *context = gtk_widget_get_pango_context (widget); CellLayoutCache *cache; guint serial = pango_context_get_serial (context); + guint i; if (!cell_layout_quark) cell_layout_quark = g_quark_from_static_string ("gtk-cell-renderer-text-layouts"); @@ -1471,6 +1482,9 @@ cell_layout_cache_get (GtkWidget *widget) cache = g_slice_new0 (CellLayoutCache); cache->context = context; cache->context_serial = serial; + for (i = 0; i < CELL_BUCKETS; i++) + cache->buckets[i] = -1; + cache->lru_head = cache->lru_tail = -1; g_object_set_qdata_full (G_OBJECT (widget), cell_layout_quark, cache, cell_layout_cache_free); } @@ -1478,6 +1492,58 @@ cell_layout_cache_get (GtkWidget *widget) return cache; } +static void +cell_layout_lru_unlink (CellLayoutCache *cache, + gint i) +{ + CellLayout *e = &cache->entries[i]; + + if (e->lru_prev >= 0) + cache->entries[e->lru_prev].lru_next = e->lru_next; + else + cache->lru_head = e->lru_next; + if (e->lru_next >= 0) + cache->entries[e->lru_next].lru_prev = e->lru_prev; + else + cache->lru_tail = e->lru_prev; +} + +static void +cell_layout_lru_push (CellLayoutCache *cache, + gint i) +{ + CellLayout *e = &cache->entries[i]; + + e->lru_prev = -1; + e->lru_next = cache->lru_head; + if (cache->lru_head >= 0) + cache->entries[cache->lru_head].lru_prev = i; + else + cache->lru_tail = i; + cache->lru_head = i; +} + +static void +cell_layout_lru_touch (CellLayoutCache *cache, + gint i) +{ + if (cache->lru_head == i) + return; + cell_layout_lru_unlink (cache, i); + cell_layout_lru_push (cache, i); +} + +static void +cell_layout_bucket_remove (CellLayoutCache *cache, + gint i) +{ + gint16 *link = &cache->buckets[cache->entries[i].hash % CELL_BUCKETS]; + + while (*link != i) + link = &cache->entries[*link].bucket_next; + *link = cache->entries[i].bucket_next; +} + #endif /* The layout of the cell as it is now, from the cache or made in @@ -1588,9 +1654,9 @@ cell_layout_get (GtkCellRendererText *celltext, #ifdef CELL_LAYOUT_CACHE { CellLayoutCache *cache = cell_layout_cache_get (widget); - guint i, victim = 0; + gint i, victim; - for (i = 0; i < cache->n; i++) + for (i = cache->buckets[key.hash % CELL_BUCKETS]; i >= 0; i = cache->entries[i].bucket_next) { CellLayout *e = &cache->entries[i]; @@ -1603,19 +1669,17 @@ cell_layout_get (GtkCellRendererText *celltext, strcmp (e->text, text) == 0 && pango_attr_list_equal (e->attrs, attr_list)) { + cell_layout_lru_touch (cache, i); if (layout_serial (e->layout) == e->serial) { - e->used = ++cache->clock; pango_attr_list_unref (attr_list); return e; } - /* changed behind our back: make it again */ + /* changed behind our back: make it again, in its place */ cell_layout_clear (e); - victim = i; + cl = e; goto make; } - if (e->used < cache->entries[victim].used) - victim = i; } if (cache->n < CELL_LAYOUTS) { @@ -1626,14 +1690,20 @@ cell_layout_get (GtkCellRendererText *celltext, } victim = cache->n++; memset (&cache->entries[victim], 0, sizeof (CellLayout)); + cell_layout_lru_push (cache, victim); } else - cell_layout_clear (&cache->entries[victim]); - - make: + { + victim = cache->lru_tail; + cell_layout_bucket_remove (cache, victim); + cell_layout_clear (&cache->entries[victim]); + cell_layout_lru_touch (cache, victim); + } + cache->entries[victim].bucket_next = cache->buckets[key.hash % CELL_BUCKETS]; + cache->buckets[key.hash % CELL_BUCKETS] = victim; cl = &cache->entries[victim]; - cl->used = ++cache->clock; } + make: #endif cl->hash = key.hash; From 4e73f3a53dd48c88379d9949bb675e0d568316f7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:49:19 +0200 Subject: [PATCH 125/249] x11: flushing a GC does not send again the clip rectangles and the tile origin the X server has from the last flush --- gdk/x11/gdkgc-x11.c | 34 +++++++++++++++++++++++++++++++--- gdk/x11/gdkprivate-x11.h | 6 ++++++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/gdk/x11/gdkgc-x11.c b/gdk/x11/gdkgc-x11.c index 30b3ac53a..6c55c4bbf 100644 --- a/gdk/x11/gdkgc-x11.c +++ b/gdk/x11/gdkgc-x11.c @@ -158,8 +158,18 @@ _gdk_x11_gc_flush (GdkGC *gc) GdkRegion *clip_region = _gdk_gc_get_clip_region (gc); if (!clip_region) - XSetClipOrigin (xdisplay, xgc, - gc->clip_x_origin, gc->clip_y_origin); + { + XSetClipOrigin (xdisplay, xgc, + gc->clip_x_origin, gc->clip_y_origin); + private->clip_sent = FALSE; + } + /* drawing to a window inside the paint of a parent moves the + * clip origin there and back for every drawing; the server has + * the rectangles at that origin from the last one already */ + else if (private->clip_sent && + private->sent_clip_x == gc->clip_x_origin && + private->sent_clip_y == gc->clip_y_origin) + ; else { XRectangle *rectangles; @@ -176,13 +186,23 @@ _gdk_x11_gc_flush (GdkGC *gc) n_rects, YXBanded); g_free (rectangles); + + private->clip_sent = TRUE; + private->sent_clip_x = gc->clip_x_origin; + private->sent_clip_y = gc->clip_y_origin; } } - if (private->dirty_mask & GDK_GC_DIRTY_TS) + if ((private->dirty_mask & GDK_GC_DIRTY_TS) && + !(private->ts_sent && + private->sent_ts_x == gc->ts_x_origin && + private->sent_ts_y == gc->ts_y_origin)) { XSetTSOrigin (xdisplay, xgc, gc->ts_x_origin, gc->ts_y_origin); + private->ts_sent = TRUE; + private->sent_ts_x = gc->ts_x_origin; + private->sent_ts_y = gc->ts_y_origin; } private->dirty_mask = 0; @@ -365,6 +385,7 @@ gdk_x11_gc_set_values (GdkGC *gc, { x11_gc->have_clip_region = FALSE; x11_gc->have_clip_mask = values->clip_mask != NULL; + x11_gc->clip_sent = FALSE; } gdk_x11_gc_values_to_xvalues (values, values_mask, &xvalues, &xvalues_mask); @@ -625,6 +646,7 @@ _gdk_windowing_gc_set_clip_region (GdkGC *gc, } x11_gc->have_clip_region = region != NULL; + x11_gc->clip_sent = FALSE; if (reset_origin) { @@ -648,6 +670,12 @@ _gdk_windowing_gc_copy (GdkGC *dst_gc, x11_dst_gc->dirty_mask = x11_src_gc->dirty_mask; x11_dst_gc->have_clip_region = x11_src_gc->have_clip_region; x11_dst_gc->have_clip_mask = x11_src_gc->have_clip_mask; + x11_dst_gc->clip_sent = x11_src_gc->clip_sent; + x11_dst_gc->sent_clip_x = x11_src_gc->sent_clip_x; + x11_dst_gc->sent_clip_y = x11_src_gc->sent_clip_y; + x11_dst_gc->ts_sent = x11_src_gc->ts_sent; + x11_dst_gc->sent_ts_x = x11_src_gc->sent_ts_x; + x11_dst_gc->sent_ts_y = x11_src_gc->sent_ts_y; } /** diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h index b4c82d0e4..a8d96f924 100644 --- a/gdk/x11/gdkprivate-x11.h +++ b/gdk/x11/gdkprivate-x11.h @@ -60,6 +60,12 @@ struct _GdkGCX11 guint have_clip_region : 1; guint have_clip_mask : 1; guint depth : 8; + /* the clip rectangles and the tile origin last sent to the server, + * for flushes that would send the same again */ + guint clip_sent : 1; + guint ts_sent : 1; + gint sent_clip_x, sent_clip_y; + gint sent_ts_x, sent_ts_y; }; struct _GdkGCX11Class From 05fb549c656ddb077889798e841ef08eb5b51cc0 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:49:19 +0200 Subject: [PATCH 126/249] gdkwindow: drawing with a GC into a window inside the paint of its parent leaves the clip of the window on the GC for the next drawing, instead of taking it off and making it anew each time --- gdk/gdkgc.c | 59 +++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkinternals.h | 7 ++++++ gdk/gdkwindow.c | 24 +++++++++--------- gdk/x11/gdkgc-x11.c | 9 +++++++ 4 files changed, 88 insertions(+), 11 deletions(-) diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index b51369bee..5f78aaed7 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -61,6 +61,9 @@ struct _GdkGCPrivate guint subwindow_mode : 1; guint fill : 2; guint exposures : 2; + /* the clip of a window stays on after a drawing, see + * _gdk_gc_set_draw_origins() */ + guint drawable_clip_kept : 1; }; #define GDK_GC_GET_PRIVATE(o) ((GdkGCPrivate *) gdk_gc_get_instance_private (GDK_GC (o))) @@ -758,11 +761,66 @@ _gdk_gc_add_drawable_clip (GdkGC *gc, priv->region_tag_offset_y = offset_y; } +/* For drawing to a window inside the paint of a parent: moves the clip + * and tile origins of @gc there for the drawing, and back after it + * (@drawing_done), without taking off the clip of the window that + * _gdk_gc_add_drawable_clip() puts on, as setting the clip origin does. + * That clip is relative to the clip origin of the caller, which these + * moves keep, so the next drawing to the window finds it still in + * place, instead of making it anew and sending it to the X server. + * + * Where a GC is used for drawing directly by the caller, with + * gdk_x11_gc_get_xgc(), the clip of the window is taken off first, as + * it was before. Other backends set the clip of a GC for each drawing + * themselves, from the same region the raw drawing functions use, so + * the clip of the window is taken off after a drawing there. */ +void +_gdk_gc_set_draw_origins (GdkGC *gc, + gint clip_x, + gint clip_y, + gint ts_x, + gint ts_y, + gboolean drawing_done) +{ + GdkGCPrivate *priv = GDK_GC_GET_PRIVATE (gc); + GdkGCValues values; + +#ifndef GDK_WINDOWING_X11 + if (drawing_done) + { + gdk_gc_set_clip_origin (gc, clip_x, clip_y); + gdk_gc_set_ts_origin (gc, ts_x, ts_y); + return; + } +#endif + + priv->drawable_clip_kept = drawing_done && priv->region_tag_applied != 0; + + gc->clip_x_origin = values.clip_x_origin = clip_x; + gc->clip_y_origin = values.clip_y_origin = clip_y; + gc->ts_x_origin = values.ts_x_origin = ts_x; + gc->ts_y_origin = values.ts_y_origin = ts_y; + + GDK_GC_GET_CLASS (gc)->set_values (gc, &values, + GDK_GC_CLIP_X_ORIGIN | GDK_GC_CLIP_Y_ORIGIN | + GDK_GC_TS_X_ORIGIN | GDK_GC_TS_Y_ORIGIN); +} + +/* Takes off a clip of a window that _gdk_gc_set_draw_origins() left on */ +void +_gdk_gc_remove_kept_drawable_clip (GdkGC *gc) +{ + if (GDK_GC_GET_PRIVATE (gc)->drawable_clip_kept) + _gdk_gc_remove_drawable_clip (gc); +} + void _gdk_gc_remove_drawable_clip (GdkGC *gc) { GdkGCPrivate *priv = GDK_GC_GET_PRIVATE (gc); + priv->drawable_clip_kept = FALSE; + if (priv->region_tag_applied) { priv->region_tag_applied = 0; @@ -1194,6 +1252,7 @@ gdk_gc_copy (GdkGC *dst_gc, dst_priv->clip_region = NULL; dst_priv->region_tag_applied = src_priv->region_tag_applied; + dst_priv->drawable_clip_kept = src_priv->drawable_clip_kept; if (dst_priv->old_clip_region) gdk_region_destroy (dst_priv->old_clip_region); diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h index f2b41bc58..aaccd46d9 100644 --- a/gdk/gdkinternals.h +++ b/gdk/gdkinternals.h @@ -480,6 +480,13 @@ void _gdk_gc_add_drawable_clip (GdkGC *gc, int offset_x, int offset_y); void _gdk_gc_remove_drawable_clip (GdkGC *gc); +void _gdk_gc_set_draw_origins (GdkGC *gc, + gint clip_x, + gint clip_y, + gint ts_x, + gint ts_y, + gboolean drawing_done); +void _gdk_gc_remove_kept_drawable_clip (GdkGC *gc); void _gdk_gc_set_clip_region_internal (GdkGC *gc, GdkRegion *region, gboolean reset_origin); diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 580366e47..53387c2e9 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -3052,6 +3052,8 @@ gdk_window_begin_paint_region (GdkWindow *window, GdkWindowPaint *tmp_paint = list->data; gdk_region_subtract (tmp_paint->region, paint->region); + /* a GC may still have the clip of the paint as it was before */ + tmp_paint->region_tag = new_region_tag (); } private->paint_stack = g_slist_prepend (private->paint_stack, paint); @@ -3732,14 +3734,12 @@ start_draw_helper (GdkDrawable *drawable, } if (x_offset != 0 || y_offset != 0) - { - gdk_gc_set_clip_origin (gc, + _gdk_gc_set_draw_origins (gc, old_clip_x - x_offset, - old_clip_y - y_offset); - gdk_gc_set_ts_origin (gc, - gc->ts_x_origin - x_offset, - gc->ts_y_origin - y_offset); - } + old_clip_y - y_offset, + gc->ts_x_origin - x_offset, + gc->ts_y_origin - y_offset, + FALSE); *x_offset_out = x_offset; *y_offset_out = y_offset; @@ -3787,6 +3787,10 @@ start_draw_helper (GdkDrawable *drawable, * window offset, need to take that into * consideration */ -old_clip_x, -old_clip_y); + else + /* the clip of another window or paint, left on the GC from a + * drawing before, does not belong to this one */ + _gdk_gc_remove_drawable_clip (gc); return impl; } @@ -3804,10 +3808,8 @@ start_draw_helper (GdkDrawable *drawable, #define END_DRAW \ if (x_offset != 0 || y_offset != 0) \ - { \ - gdk_gc_set_clip_origin (gc, old_clip_x, old_clip_y); \ - gdk_gc_set_ts_origin (gc, old_ts_x, old_ts_y); \ - } \ + _gdk_gc_set_draw_origins (gc, old_clip_x, old_clip_y, \ + old_ts_x, old_ts_y, TRUE); \ } #define BEGIN_DRAW_MACRO \ diff --git a/gdk/x11/gdkgc-x11.c b/gdk/x11/gdkgc-x11.c index 6c55c4bbf..4f761ab1a 100644 --- a/gdk/x11/gdkgc-x11.c +++ b/gdk/x11/gdkgc-x11.c @@ -733,9 +733,18 @@ gdk_x11_gc_get_xgc (GdkGC *gc) gc_x11 = GDK_GC_X11 (gc); + /* drawing with the X GC directly gets the clip the GC has, without + * the one of the window it was last drawn to inside a paint */ + _gdk_gc_remove_kept_drawable_clip (gc); + if (gc_x11->dirty_mask) _gdk_x11_gc_flush (gc); + /* the caller may change the clip and the tile origin of the X GC + * itself: the next flush sends them again */ + gc_x11->clip_sent = FALSE; + gc_x11->ts_sent = FALSE; + return gc_x11->xgc; } From a623c64741fd620ba809ff6bddc68f46d53ab1ba Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:53:18 +0200 Subject: [PATCH 127/249] gtkwidget: where a container without a window draws, with its children, is kept until an allocation, mapping, parent or style changes, so an expose does not walk through all children of each container away from the exposed area --- gtk/gtkwidget.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 7eea2af0f..bda379210 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -367,6 +367,7 @@ static void gtk_widget_queue_tooltip_query (GtkWidget *widg static void gtk_widget_set_usize_internal (GtkWidget *widget, gint width, gint height); +static void draw_rects_changed (void); static void gtk_widget_get_draw_rectangle (GtkWidget *widget, GdkRectangle *rect); @@ -3190,6 +3191,7 @@ gtk_widget_unparent (GtkWidget *widget) g_object_notify_queue_clear (G_OBJECT (widget), nqueue); g_object_notify_queue_thaw (G_OBJECT (widget), nqueue); g_object_unref (widget); + draw_rects_changed (); } /** @@ -3469,6 +3471,7 @@ gtk_widget_map (GtkWidget *widget) if (!gtk_widget_get_has_window (widget)) gdk_window_invalidate_rect (widget->window, &widget->allocation, FALSE); } + draw_rects_changed (); } /** @@ -3490,6 +3493,7 @@ gtk_widget_unmap (GtkWidget *widget) _gtk_tooltip_hide (widget); g_signal_emit (widget, widget_signals[UNMAP], 0); } + draw_rects_changed (); } static void @@ -3614,6 +3618,7 @@ gtk_widget_realize (GtkWidget *widget) if (mode != GDK_EXTENSION_EVENTS_NONE) gtk_widget_set_extension_events_internal (widget, mode, NULL); } + draw_rects_changed (); } /** @@ -3644,6 +3649,7 @@ gtk_widget_unrealize (GtkWidget *widget) gtk_widget_set_mapped (widget, FALSE); g_object_unref (widget); } + draw_rects_changed (); } /***************************************** @@ -3757,6 +3763,28 @@ widget_add_child_draw_rectangle (GtkWidget *widget, gdk_rectangle_union (rect, &child_rect, rect); } +/* Where widgets without a window draw, with their children, is kept for + * the containers among them, as long as nothing happened that may change + * it: a new allocation, size or drawing asked for, a widget mapped, + * realized, parented, styled or the like anywhere. An expose otherwise + * walks through all children of each container away from the exposed + * area, to find whether some of them draw in it after all, and through + * the children of each one it passes on the expose to again. */ +typedef struct +{ + guint serial; + GdkRectangle rect; +} DrawRectCache; + +static guint draw_rects_serial = 1; +static GQuark quark_draw_rect; + +static void +draw_rects_changed (void) +{ + draw_rects_serial++; +} + /* The allocation of a widget without a window, with its draw border */ static void gtk_widget_get_own_draw_rectangle (GtkWidget *widget, @@ -3815,15 +3843,33 @@ _gtk_widget_draws_in_area (GtkWidget *widget, { GdkRectangle rect; + DrawRectCache *cache; + gtk_widget_get_own_draw_rectangle (widget, &rect); if (gdk_rectangle_intersect (area, &rect, NULL)) return TRUE; if (!GTK_IS_CONTAINER (widget)) return FALSE; - gtk_container_forall (GTK_CONTAINER (widget), - (GtkCallback)widget_add_child_draw_rectangle, - &rect); + /* only here, to leave out children: a stale rectangle (after a + * change outside GTK's own calls) costs a needless expose at most + * where the children stay within the container */ + if (!quark_draw_rect) + quark_draw_rect = g_quark_from_static_string ("gtk-widget-draw-rectangle"); + cache = g_object_get_qdata (G_OBJECT (widget), quark_draw_rect); + if (cache && cache->serial == draw_rects_serial) + return gdk_rectangle_intersect (area, &cache->rect, NULL); + + gtk_widget_get_draw_rectangle (widget, &rect); + + if (!cache) + { + cache = g_new (DrawRectCache, 1); + g_object_set_qdata_full (G_OBJECT (widget), quark_draw_rect, cache, g_free); + } + cache->serial = draw_rects_serial; + cache->rect = rect; + return gdk_rectangle_intersect (area, &rect, NULL); } @@ -4182,6 +4228,8 @@ gtk_widget_size_allocate (GtkWidget *widget, if (!alloc_needed && !size_changed && !position_changed) return; + draw_rects_changed (); + g_signal_emit (widget, widget_signals[SIZE_ALLOCATE], 0, &real_allocation); if (gtk_widget_get_mapped (widget)) @@ -4219,6 +4267,7 @@ gtk_widget_size_allocate (GtkWidget *widget, gtk_widget_invalidate_widget_windows (widget->parent, invalidate); gdk_region_destroy (invalidate); } + draw_rects_changed (); } /** @@ -6179,6 +6228,7 @@ gtk_widget_set_realized (GtkWidget *widget, GTK_OBJECT_FLAGS (widget) |= GTK_REALIZED; else GTK_OBJECT_FLAGS (widget) &= ~(GTK_REALIZED); + draw_rects_changed (); } /** @@ -6221,6 +6271,7 @@ gtk_widget_set_mapped (GtkWidget *widget, GTK_OBJECT_FLAGS (widget) |= GTK_MAPPED; else GTK_OBJECT_FLAGS (widget) &= ~(GTK_MAPPED); + draw_rects_changed (); } /** @@ -6546,6 +6597,7 @@ gtk_widget_set_parent (GtkWidget *widget, gtk_widget_queue_resize (widget); } + draw_rects_changed (); } /** @@ -7097,6 +7149,7 @@ gtk_widget_set_style_internal (GtkWidget *widget, g_object_notify (G_OBJECT (widget), "style"); g_object_thaw_notify (G_OBJECT (widget)); g_object_unref (widget); + draw_rects_changed (); } typedef struct { @@ -7642,6 +7695,7 @@ gtk_widget_set_child_visible (GtkWidget *widget, } g_object_unref (widget); + draw_rects_changed (); } /** @@ -11416,6 +11470,7 @@ gtk_widget_set_allocation (GtkWidget *widget, g_return_if_fail (allocation != NULL); widget->allocation = *allocation; + draw_rects_changed (); } /** @@ -11473,6 +11528,7 @@ gtk_widget_set_window (GtkWidget *widget, widget->window = window; g_object_notify (G_OBJECT (widget), "window"); } + draw_rects_changed (); } /** From 8ca795ac372933bb8fbd0c533cbab557152eb286 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:55:22 +0200 Subject: [PATCH 128/249] scale: the size of the value text for the bounds is measured at the size request and kept for the changes of the value, instead of laying out both bounds at each --- gtk/gtkscale.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index d89211f97..45545499d 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -66,6 +66,15 @@ struct _GtkScalePrivate { PangoLayout *layout; GSList *marks; + + /* the size of the value text for the bounds of the adjustment, + * which every change of the value asks for; measured again at each + * size request and whenever the bounds, the digits or the style are + * new */ + guint value_size_valid : 1; + gint value_width, value_height; + gdouble value_lower, value_upper; + gint value_digits; }; enum { @@ -821,12 +830,25 @@ _gtk_scale_get_value_size (GtkScale *scale, if (scale->draw_value) { + GtkScalePrivate *priv = GTK_SCALE_GET_PRIVATE (scale); PangoLayout *layout; PangoRectangle logical_rect; gchar *txt; range = GTK_RANGE (scale); + if (priv->value_size_valid && + priv->value_lower == range->adjustment->lower && + priv->value_upper == range->adjustment->upper && + priv->value_digits == scale->digits) + { + if (width) + *width = priv->value_width; + if (height) + *height = priv->value_height; + return; + } + layout = gtk_widget_create_pango_layout (GTK_WIDGET (scale), NULL); txt = _gtk_scale_format_value (scale, range->adjustment->lower); @@ -852,6 +874,16 @@ _gtk_scale_get_value_size (GtkScale *scale, *height = MAX (*height, logical_rect.height); g_object_unref (layout); + + if (width && height) + { + priv->value_size_valid = TRUE; + priv->value_width = *width; + priv->value_height = *height; + priv->value_lower = range->adjustment->lower; + priv->value_upper = range->adjustment->upper; + priv->value_digits = scale->digits; + } } else { @@ -955,6 +987,10 @@ gtk_scale_size_request (GtkWidget *widget, gint n1, w1, h1, n2, w2, h2; gint slider_length; + /* a new size is asked for: the text of the value may be new as well, + * from a handler of ::format-value */ + GTK_SCALE_GET_PRIVATE (widget)->value_size_valid = FALSE; + GTK_WIDGET_CLASS (gtk_scale_parent_class)->size_request (widget, requisition); gtk_widget_style_get (widget, "slider-length", &slider_length, NULL); @@ -1390,6 +1426,8 @@ _gtk_scale_clear_layout (GtkScale *scale) g_return_if_fail (GTK_IS_SCALE (scale)); + priv->value_size_valid = FALSE; + if (priv->layout) { g_object_unref (priv->layout); From 86f24665ef3a05a8189daa40d3b48047f32297cf Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 19:56:36 +0200 Subject: [PATCH 129/249] entry: which invisible character the font has is found once per style and font map, not by laying out the candidates for every entry at its start and at every new style --- gtk/gtkentry.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 2a021df58..1019b7eab 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -2218,12 +2218,20 @@ gtk_entry_get_property (GObject *object, } } +typedef struct +{ + gunichar wanted; /* the invisible-char style property */ + PangoFontMap *font_map; /* not a reference: only compared */ + gunichar found; +} InvisibleCharFound; + +static gunichar find_invisible_char_in_font (GtkWidget *widget, + gunichar *invisible_chars, + gint n_chars); + static gunichar find_invisible_char (GtkWidget *widget) { - PangoLayout *layout; - PangoAttrList *attr_list; - gint i; gunichar invisible_chars [] = { 0, 0x25cf, /* BLACK CIRCLE */ @@ -2232,11 +2240,57 @@ find_invisible_char (GtkWidget *widget) 0x273a /* SIXTEEN POINTED ASTERISK */ }; + static GQuark quark_found; + InvisibleCharFound *found = NULL; + PangoFontMap *font_map; + gunichar result; + if (widget->style) gtk_widget_style_get (widget, "invisible-char", &invisible_chars[0], NULL); + /* Which of the characters the font has depends on the style, which + * many entries share, and the font map; finding out takes laying + * them out, at the start of each entry and at every new style */ + font_map = pango_context_get_font_map (gtk_widget_get_pango_context (widget)); + if (widget->style) + { + if (!quark_found) + quark_found = g_quark_from_static_string ("gtk-entry-invisible-char-found"); + found = g_object_get_qdata (G_OBJECT (widget->style), quark_found); + if (found && + found->wanted == invisible_chars[0] && + found->font_map == font_map) + return found->found; + } + + result = find_invisible_char_in_font (widget, invisible_chars, G_N_ELEMENTS (invisible_chars)); + + if (widget->style) + { + if (!found) + { + found = g_new (InvisibleCharFound, 1); + g_object_set_qdata_full (G_OBJECT (widget->style), quark_found, found, g_free); + } + found->wanted = invisible_chars[0]; + found->font_map = font_map; + found->found = result; + } + + return result; +} + +static gunichar +find_invisible_char_in_font (GtkWidget *widget, + gunichar *invisible_chars, + gint n_chars) +{ + PangoLayout *layout; + PangoAttrList *attr_list; + gint i; + layout = gtk_widget_create_pango_layout (widget, NULL); attr_list = pango_attr_list_new (); @@ -2245,7 +2299,7 @@ find_invisible_char (GtkWidget *widget) pango_layout_set_attributes (layout, attr_list); pango_attr_list_unref (attr_list); - for (i = (invisible_chars[0] != 0 ? 0 : 1); i < G_N_ELEMENTS (invisible_chars); i++) + for (i = (invisible_chars[0] != 0 ? 0 : 1); i < n_chars; i++) { gchar text[7] = { 0, }; gint len, count; From 3768153fbb56bf1ea620a9f277e3ece8e0d78cc7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 20:25:29 +0200 Subject: [PATCH 130/249] gtk-demo: the list store demo stops its spinner when its window is destroyed, not only when it is closed, instead of running on a freed model --- demos/gtk-demo/list_store.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/demos/gtk-demo/list_store.c b/demos/gtk-demo/list_store.c index 009cd9799..848c0a145 100644 --- a/demos/gtk-demo/list_store.c +++ b/demos/gtk-demo/list_store.c @@ -216,6 +216,14 @@ window_closed (GtkWidget *widget, return FALSE; } +/* destroyed without being closed, the spinner must stop all the same */ +static void +window_destroyed (GtkWidget *widget, + gpointer user_data) +{ + window_closed (widget, NULL, user_data); +} + GtkWidget * do_list_store (GtkWidget *do_widget) { @@ -233,7 +241,7 @@ do_list_store (GtkWidget *do_widget) gtk_window_set_title (GTK_WINDOW (window), "GtkListStore demo"); g_signal_connect (window, "destroy", - G_CALLBACK (gtk_widget_destroyed), &window); + G_CALLBACK (window_destroyed), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 8); vbox = gtk_vbox_new (FALSE, 8); From cc15589b82e15126e1902137266ba23640f26009 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 20:26:01 +0200 Subject: [PATCH 131/249] rc: the types named in the class path of a widget are looked up once for all widget_class patterns of a theme, not once per pattern and place --- gtk/gtkrc.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index d316a0d90..963427dd1 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -4735,6 +4735,65 @@ gtk_rc_set_free (GtkRcSet *rc_set) g_free (rc_set); } +/* A widget class path is matched against every widget_class pattern + * of the theme, and a pattern like "**" looks up the type + * of each class in the path by its name: the types of the path being + * matched are kept by the place of their name in it, so that each name + * is looked up once for all patterns. */ +#define PATH_TYPES 48 + +static struct +{ + gchar *path; /* a copy, to know the path again */ + const gchar *base; /* the path being matched */ + gsize len; + guint n; + struct { + guint offset; + GType type; + } types[PATH_TYPES]; +} path_types; + +static void +path_types_set_path (gchar *path) +{ + if (!path_types.path || strcmp (path_types.path, path) != 0) + { + g_free (path_types.path); + path_types.path = g_strdup (path); + path_types.len = strlen (path); + path_types.n = 0; + } + path_types.base = path; +} + +static GType +path_type_from_name (gchar *type_name) +{ + guint offset, i; + GType type; + + if (!path_types.base || + type_name < path_types.base || + type_name >= path_types.base + path_types.len) + return g_type_from_name (type_name); + + offset = type_name - path_types.base; + for (i = 0; i < path_types.n; i++) + if (path_types.types[i].offset == offset) + return path_types.types[i].type; + + type = g_type_from_name (type_name); + if (path_types.n < PATH_TYPES) + { + path_types.types[path_types.n].offset = offset; + path_types.types[path_types.n].type = type; + path_types.n++; + } + + return type; +} + static gboolean match_class (PathElt *path_elt, gchar *type_name) @@ -4754,7 +4813,7 @@ match_class (PathElt *path_elt, return g_str_equal (type_name, path_elt->elt.class_name); } - return g_type_is_a (g_type_from_name (type_name), path_elt->elt.class_type); + return g_type_is_a (path_type_from_name (type_name), path_elt->elt.class_type); } static gboolean @@ -4910,7 +4969,13 @@ _gtk_rc_match_widget_class (GSList *list, gchar *path, gchar *path_reversed) { - return match_widget_class_recursive (list, length, path, path_reversed); + gboolean result; + + path_types_set_path (path); + result = match_widget_class_recursive (list, length, path, path_reversed); + path_types.base = NULL; + + return result; } #if defined (G_OS_WIN32) && !defined (_WIN64) From 32a3932ecb0fd1bd602cd4e9a1b445351bfc2f9c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 20:30:11 +0200 Subject: [PATCH 132/249] rc: the rc sets a widget path, class path or type name matches are kept for the next widgets with the same path until the sets change, instead of matching every pattern of the theme for each widget --- gtk/gtkrc.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 963427dd1..11a97b141 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -128,6 +128,10 @@ struct _GtkRcContext GHashTable *color_hash; + /* the sets matched by a widget path, class path or type name (the key + * starts with 'w', 'c' or 't'), for widgets with the same path */ + GHashTable *matches; + guint reloading : 1; }; @@ -700,6 +704,7 @@ gtk_rc_context_get (GtkSettings *settings) context->rc_sets_class = NULL; context->rc_files = NULL; context->default_style = NULL; + context->matches = NULL; context->reloading = FALSE; g_object_get (settings, @@ -786,6 +791,9 @@ _gtk_rc_context_destroy (GtkSettings *settings) if (context->color_hash) g_hash_table_unref (context->color_hash); + if (context->matches) + g_hash_table_destroy (context->matches); + g_signal_handlers_disconnect_by_func (settings, gtk_rc_settings_changed, context); g_signal_handlers_disconnect_by_func (settings, @@ -1613,11 +1621,21 @@ gtk_rc_free_rc_sets (GSList *slist) } } +/* The sets of @context are new: what paths matched is to be found again */ +static void +gtk_rc_context_sets_changed (GtkRcContext *context) +{ + if (context->matches) + g_hash_table_remove_all (context->matches); +} + static void gtk_rc_clear_styles (GtkRcContext *context) { /* Clear out all old rc_styles */ + gtk_rc_context_sets_changed (context); + if (context->rc_style_ht) { g_hash_table_foreach (context->rc_style_ht, gtk_rc_clear_hash_node, NULL); @@ -1913,6 +1931,44 @@ gtk_rc_styles_match (GSList *rc_styles, return rc_styles; } +/* gtk_rc_styles_match() of the sets of @context of @kind, by way of the + * matches of earlier widgets with the same path: many widgets have the + * same class path, and all of a type the same type names */ +#define MAX_MATCHES 2048 + +static GSList * +gtk_rc_context_match (GtkRcContext *context, + GSList *rc_styles, + gchar kind, + GSList *sets, + guint path_length, + gchar *path, + gchar *path_reversed) +{ + gchar *key; + gpointer matches; + + key = g_malloc (path_length + 2); + key[0] = kind; + memcpy (key + 1, path, path_length + 1); + + if (!context->matches) + context->matches = g_hash_table_new_full (g_str_hash, g_str_equal, + g_free, (GDestroyNotify) g_slist_free); + + if (!g_hash_table_lookup_extended (context->matches, key, NULL, &matches)) + { + matches = gtk_rc_styles_match (NULL, sets, path_length, path, path_reversed); + if (g_hash_table_size (context->matches) >= MAX_MATCHES) + g_hash_table_remove_all (context->matches); + g_hash_table_insert (context->matches, key, matches); + } + else + g_free (key); + + return g_slist_concat (rc_styles, g_slist_copy (matches)); +} + static gint rc_set_compare (gconstpointer a, gconstpointer b) { @@ -1995,7 +2051,8 @@ gtk_rc_get_style (GtkWidget *widget) guint path_length; gtk_widget_path (widget, &path_length, &path, &path_reversed); - rc_styles = gtk_rc_styles_match (rc_styles, context->rc_sets_widget, path_length, path, path_reversed); + rc_styles = gtk_rc_context_match (context, rc_styles, 'w', context->rc_sets_widget, + path_length, path, path_reversed); g_free (path); g_free (path_reversed); } @@ -2006,7 +2063,8 @@ gtk_rc_get_style (GtkWidget *widget) guint path_length; gtk_widget_class_path (widget, &path_length, &path, &path_reversed); - rc_styles = gtk_rc_styles_match (rc_styles, context->rc_sets_widget_class, path_length, path, path_reversed); + rc_styles = gtk_rc_context_match (context, rc_styles, 'c', context->rc_sets_widget_class, + path_length, path, path_reversed); g_free (path); g_free (path_reversed); } @@ -2027,7 +2085,8 @@ gtk_rc_get_style (GtkWidget *widget) path_reversed = g_strdup (path); g_strreverse (path_reversed); - rc_styles = gtk_rc_styles_match (rc_styles, context->rc_sets_class, path_length, path, path_reversed); + rc_styles = gtk_rc_context_match (context, rc_styles, 't', context->rc_sets_class, + path_length, path, path_reversed); g_free (path); g_free (path_reversed); @@ -2220,6 +2279,7 @@ gtk_rc_add_widget_name_style (GtkRcStyle *rc_style, context = gtk_rc_context_get (gtk_settings_get_default ()); + gtk_rc_context_sets_changed (context); context->rc_sets_widget = gtk_rc_add_rc_sets (context->rc_sets_widget, rc_style, pattern, GTK_PATH_WIDGET); } @@ -2234,6 +2294,7 @@ gtk_rc_add_widget_class_style (GtkRcStyle *rc_style, context = gtk_rc_context_get (gtk_settings_get_default ()); + gtk_rc_context_sets_changed (context); context->rc_sets_widget_class = gtk_rc_add_rc_sets (context->rc_sets_widget_class, rc_style, pattern, GTK_PATH_WIDGET_CLASS); } @@ -2248,6 +2309,7 @@ gtk_rc_add_class_style (GtkRcStyle *rc_style, context = gtk_rc_context_get (gtk_settings_get_default ()); + gtk_rc_context_sets_changed (context); context->rc_sets_class = gtk_rc_add_rc_sets (context->rc_sets_class, rc_style, pattern, GTK_PATH_CLASS); } @@ -4292,6 +4354,8 @@ gtk_rc_parse_path_pattern (GtkRcContext *context, rc_set->rc_style = rc_style; rc_set->priority = priority; + gtk_rc_context_sets_changed (context); + if (path_type == GTK_PATH_WIDGET) context->rc_sets_widget = g_slist_prepend (context->rc_sets_widget, rc_set); else if (path_type == GTK_PATH_WIDGET_CLASS) From 6a7985ece4f636fc7eface0fd0b3df25f69aa758 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 20:32:43 +0200 Subject: [PATCH 133/249] gdkpixmap: making a pixmap from XPM sets the mask to NULL when the image cannot be read, as with a gdk-pixbuf without its XPM loader, instead of leaving the caller's variable as it was --- gdk/gdkpixmap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c index 5bda8dd63..3241a9c89 100644 --- a/gdk/gdkpixmap.c +++ b/gdk/gdkpixmap.c @@ -740,6 +740,12 @@ gdk_pixmap_colormap_create_from_xpm (GdkDrawable *drawable, if (colormap == NULL) colormap = gdk_drawable_get_colormap (drawable); + /* no mask either if the image cannot be read (gdk-pixbuf may come + * without its XPM loader): callers use it without looking at the + * pixmap first */ + if (mask) + *mask = NULL; + pixbuf = gdk_pixbuf_new_from_file (filename, NULL); if (!pixbuf) return NULL; @@ -823,6 +829,12 @@ gdk_pixmap_colormap_create_from_xpm_d (GdkDrawable *drawable, if (colormap == NULL) colormap = gdk_drawable_get_colormap (drawable); + /* no mask either if the image cannot be read (gdk-pixbuf may come + * without its XPM loader): callers use it without looking at the + * pixmap first */ + if (mask) + *mask = NULL; + pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **)data); if (!pixbuf) return NULL; From dc82fc7b017746cf8edeeb1a54eb8865f1ae9767 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 21:17:10 +0200 Subject: [PATCH 134/249] gtk-demo: the assistant demo forgets its window when it is destroyed, not only when it is closed or cancelled --- demos/gtk-demo/assistant.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/gtk-demo/assistant.c b/demos/gtk-demo/assistant.c index a00c59537..f72d20fc6 100644 --- a/demos/gtk-demo/assistant.c +++ b/demos/gtk-demo/assistant.c @@ -194,6 +194,8 @@ do_assistant (GtkWidget *do_widget) create_page3 (assistant); create_page4 (assistant); + g_signal_connect (assistant, "destroy", + G_CALLBACK (gtk_widget_destroyed), &assistant); g_signal_connect (G_OBJECT (assistant), "cancel", G_CALLBACK (on_assistant_close_cancel), &assistant); g_signal_connect (G_OBJECT (assistant), "close", From 3776f89ea44d16d388679f7591ad49135f23e3ab Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 22:33:03 +0200 Subject: [PATCH 135/249] gdkwindow: showing, moving or restacking an input-only window does not compute the clip of all its siblings and its parent again, which it takes no part in --- gdk/gdkwindow.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 53387c2e9..b3e05ac07 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1062,7 +1062,14 @@ recompute_visible_regions_internal (GdkWindowObject *private, should_apply_clip_as_shape (private)) apply_clip_as_shape (private); + /* An input-only window takes no part in the clip of its siblings nor + * in the clip of its parent with children (see remove_child_area()): + * when one is shown, moved or restacked, theirs stay as they are. + * Without this, mapping a container with many such windows (the + * event windows of buttons) computes the clip of every sibling again + * for each of them. */ if (recalculate_siblings && + !private->input_only && !gdk_window_is_toplevel (private)) { /* If we moved a child window in parent or changed the stacking order, then we From 3af8f826d6879c1258f7da29e6a77b31bc9e41ea Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 22:38:38 +0200 Subject: [PATCH 136/249] sizegroup: a resize asked for in a size group finds the groups of widgets by a flag and marks the visited ones in a set instead of object data, and does not go through the same widgets a second time when all groups are of both modes --- gtk/gtkprivate.h | 1 + gtk/gtksizegroup.c | 146 ++++++++++++++++++++++++--------------------- 2 files changed, 79 insertions(+), 68 deletions(-) diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index c9144448b..ad3df3d75 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -74,6 +74,7 @@ gpointer _gtk_memdup2 (gconstpointer mem, typedef enum { PRIVATE_GTK_USER_STYLE = 1 << 0, + PRIVATE_GTK_IN_SIZE_GROUP = 1 << 1, /* If the widget is in a size group */ PRIVATE_GTK_RESIZE_PENDING = 1 << 2, PRIVATE_GTK_HAS_POINTER = 1 << 3, /* If the pointer is above a window belonging to the widget */ PRIVATE_GTK_SHADOWED = 1 << 4, /* If there is a grab in effect shadowing the widget */ diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c index 7362b0f1c..abfde84f0 100644 --- a/gtk/gtksizegroup.c +++ b/gtk/gtksizegroup.c @@ -68,12 +68,16 @@ static void gtk_size_group_buildable_custom_finished (GtkBuildable *buildable, static GQuark size_groups_quark; static const gchar size_groups_tag[] = "gtk-size-groups"; -static GQuark visited_quark; -static const gchar visited_tag[] = "gtk-size-group-visited"; +/* most widgets are in no group: a flag says so, without looking for + * the groups in the data of the widget, for each widget and each of + * its parents at every resize asked for */ static GSList * get_size_groups (GtkWidget *widget) { + if (!(GTK_PRIVATE_FLAGS (widget) & PRIVATE_GTK_IN_SIZE_GROUP)) + return NULL; + return g_object_get_qdata (G_OBJECT (widget), size_groups_quark); } @@ -82,24 +86,38 @@ set_size_groups (GtkWidget *widget, GSList *groups) { g_object_set_qdata (G_OBJECT (widget), size_groups_quark, groups); + + if (groups) + GTK_PRIVATE_SET_FLAG (widget, GTK_IN_SIZE_GROUP); + else + GTK_PRIVATE_UNSET_FLAG (widget, GTK_IN_SIZE_GROUP); } +/* The widgets and groups of a closure being built are marked in a set, + * not with data on each object: setting and reading object data takes + * a lock and a search of all data of the object each time, for every + * widget of a group at every resize asked for by one of them */ +static GHashTable *visited_set; + static void mark_visited (gpointer object) { - g_object_set_qdata (object, visited_quark, "visited"); + if (!visited_set) + visited_set = g_hash_table_new (NULL, NULL); + g_hash_table_insert (visited_set, object, object); } static void mark_unvisited (gpointer object) { - g_object_set_qdata (object, visited_quark, NULL); + if (visited_set) + g_hash_table_remove (visited_set, object); } static gboolean is_visited (gpointer object) { - return g_object_get_qdata (object, visited_quark) != NULL; + return visited_set && g_hash_table_lookup (visited_set, object) != NULL; } static void @@ -176,18 +194,68 @@ reset_group_sizes (GSList *groups) } } +static void queue_resize_on_widget (GtkWidget *widget, + gboolean check_siblings); + +/* Resets the groups of the closure of @parent in @mode and asks for a + * new size of all its widgets; returns whether all groups of all these + * widgets are of both modes, when the closure in the other mode is the + * same and needs no second round */ +static gboolean +queue_resize_on_closure (GtkWidget *widget, + GtkWidget *parent, + GtkSizeGroupMode mode) +{ + GSList *groups = NULL; + GSList *widgets = NULL; + GSList *tmp_list; + gboolean all_both = TRUE; + + add_widget_to_closure (parent, mode, &groups, &widgets); + g_slist_foreach (widgets, (GFunc)mark_unvisited, NULL); + g_slist_foreach (groups, (GFunc)mark_unvisited, NULL); + + reset_group_sizes (groups); + + tmp_list = widgets; + while (tmp_list) + { + GSList *g; + + for (g = get_size_groups (tmp_list->data); g; g = g->next) + if (((GtkSizeGroup *) g->data)->mode != GTK_SIZE_GROUP_BOTH) + all_both = FALSE; + + if (tmp_list->data == parent) + { + if (widget == parent) + real_queue_resize (parent); + } + else if (tmp_list->data == widget) + { + g_warning ("A container and its child are part of this SizeGroup"); + } + else + queue_resize_on_widget (tmp_list->data, FALSE); + + tmp_list = tmp_list->next; + } + + g_slist_free (widgets); + g_slist_free (groups); + + return all_both; +} + static void queue_resize_on_widget (GtkWidget *widget, gboolean check_siblings) { GtkWidget *parent = widget; - GSList *tmp_list; while (parent) { GSList *widget_groups; - GSList *groups; - GSList *widgets; if (widget == parent && !check_siblings) { @@ -206,65 +274,8 @@ queue_resize_on_widget (GtkWidget *widget, continue; } - groups = NULL; - widgets = NULL; - - add_widget_to_closure (parent, GTK_SIZE_GROUP_HORIZONTAL, &groups, &widgets); - g_slist_foreach (widgets, (GFunc)mark_unvisited, NULL); - g_slist_foreach (groups, (GFunc)mark_unvisited, NULL); - - reset_group_sizes (groups); - - tmp_list = widgets; - while (tmp_list) - { - if (tmp_list->data == parent) - { - if (widget == parent) - real_queue_resize (parent); - } - else if (tmp_list->data == widget) - { - g_warning ("A container and its child are part of this SizeGroup"); - } - else - queue_resize_on_widget (tmp_list->data, FALSE); - - tmp_list = tmp_list->next; - } - - g_slist_free (widgets); - g_slist_free (groups); - - groups = NULL; - widgets = NULL; - - add_widget_to_closure (parent, GTK_SIZE_GROUP_VERTICAL, &groups, &widgets); - g_slist_foreach (widgets, (GFunc)mark_unvisited, NULL); - g_slist_foreach (groups, (GFunc)mark_unvisited, NULL); - - reset_group_sizes (groups); - - tmp_list = widgets; - while (tmp_list) - { - if (tmp_list->data == parent) - { - if (widget == parent) - real_queue_resize (parent); - } - else if (tmp_list->data == widget) - { - g_warning ("A container and its child are part of this SizeGroup"); - } - else - queue_resize_on_widget (tmp_list->data, FALSE); - - tmp_list = tmp_list->next; - } - - g_slist_free (widgets); - g_slist_free (groups); + if (!queue_resize_on_closure (widget, parent, GTK_SIZE_GROUP_HORIZONTAL)) + queue_resize_on_closure (widget, parent, GTK_SIZE_GROUP_VERTICAL); parent = parent->parent; } @@ -283,7 +294,6 @@ initialize_size_group_quarks (void) if (!size_groups_quark) { size_groups_quark = g_quark_from_static_string (size_groups_tag); - visited_quark = g_quark_from_static_string (visited_tag); } } From a34a0ab0041ae4395c8724f3e82f2d0c342a33db Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 22:42:49 +0200 Subject: [PATCH 137/249] gdkwindow: a window shown, hidden, raised or lowered in its place has the clip computed again only for the siblings it overlaps, not for all children of its parent --- gdk/gdkwindow.c | 51 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index b3e05ac07..bd2bcd1c2 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -910,6 +910,9 @@ apply_clip_as_shape (GdkWindowObject *private) apply_shape (private, NULL); } +/* the window recompute_visible_regions_in_place() is about */ +static GdkWindowObject *unmoved_window; + static void recompute_visible_regions_internal (GdkWindowObject *private, gboolean recalculate_clip, @@ -1072,6 +1075,13 @@ recompute_visible_regions_internal (GdkWindowObject *private, !private->input_only && !gdk_window_is_toplevel (private)) { + GdkRectangle area; + + area.x = private->x; + area.y = private->y; + area.width = private->width; + area.height = private->height; + /* If we moved a child window in parent or changed the stacking order, then we * need to recompute the visible area of all the other children in the parent */ @@ -1079,8 +1089,24 @@ recompute_visible_regions_internal (GdkWindowObject *private, { child = l->data; - if (child != private) - recompute_visible_regions_internal (child, TRUE, FALSE, FALSE); + if (child == private) + continue; + + /* a window shown, hidden, raised or lowered in its place takes + * part in the clip of a sibling only where they overlap */ + if (private == unmoved_window) + { + GdkRectangle r; + + r.x = child->x; + r.y = child->y; + r.width = child->width; + r.height = child->height; + if (!gdk_rectangle_intersect (&area, &r, NULL)) + continue; + } + + recompute_visible_regions_internal (child, TRUE, FALSE, FALSE); } /* We also need to recompute the _with_children clip for the parent */ @@ -1130,6 +1156,19 @@ recompute_visible_regions (GdkWindowObject *private, recalculate_children); } +/* recompute_visible_regions() with siblings, for a window that was + * shown, hidden, raised or lowered, but kept its place and size: the + * clip of the siblings that do not overlap it stays as it is. Showing + * the many child windows of one parent (the items of a list) would + * otherwise compute the clip of all siblings again for each of them. */ +static void +recompute_visible_regions_in_place (GdkWindowObject *private) +{ + unmoved_window = private; + recompute_visible_regions (private, TRUE, FALSE); + unmoved_window = NULL; +} + void _gdk_window_update_size (GdkWindow *window) { @@ -6998,7 +7037,7 @@ gdk_window_show_internal (GdkWindow *window, gboolean raise) if (!was_mapped || did_raise) { - recompute_visible_regions (private, TRUE, FALSE); + recompute_visible_regions_in_place (private); /* If any decendants became visible we need to send visibility notify */ gdk_window_update_visibility_recursively (private, NULL); @@ -7071,7 +7110,7 @@ gdk_window_raise (GdkWindow *window) /* Keep children in (reverse) stacking order */ gdk_window_raise_internal (window); - recompute_visible_regions (private, TRUE, FALSE); + recompute_visible_regions_in_place (private); if (old_region) { @@ -7204,7 +7243,7 @@ gdk_window_lower (GdkWindow *window) /* Keep children in (reverse) stacking order */ gdk_window_lower_internal (window); - recompute_visible_regions (private, TRUE, FALSE); + recompute_visible_regions_in_place (private); _gdk_synthesize_crossing_events_for_geometry_change (window); gdk_window_invalidate_in_parent (private); @@ -7419,7 +7458,7 @@ gdk_window_hide (GdkWindow *window) impl_iface->hide (window); } - recompute_visible_regions (private, TRUE, FALSE); + recompute_visible_regions_in_place (private); /* all decendants became non-visible, we need to send visibility notify */ gdk_window_update_visibility_recursively (private, NULL); From 430516ae7f55008621ddf202d381703ce4a77389 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 22:42:50 +0200 Subject: [PATCH 138/249] gdkwindow: a new window, not mapped yet, does not have the clip of all its siblings and its parent computed again --- gdk/gdkwindow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index bd2bcd1c2..c29ea4d0e 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1514,7 +1514,10 @@ gdk_window_new (GdkWindow *parent, private->impl = g_object_ref (private->impl_window->impl); } - recompute_visible_regions (private, TRUE, FALSE); + /* a new window is not mapped yet: it takes no part in the clip of its + * siblings and of its parent (see remove_child_area()), which stay as + * they are */ + recompute_visible_regions (private, FALSE, FALSE); if (private->parent->window_type != GDK_WINDOW_ROOT) { From dff2bb0eef649a894ead0ea08249527118518863 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Fri, 16 Oct 2026 22:58:51 +0200 Subject: [PATCH 139/249] gtk-demo: the application window, builder and images demos free their action group, builder with its about dialog, and loaded image, instead of keeping them after each run --- demos/gtk-demo/appwindow.c | 1 + demos/gtk-demo/builder.c | 15 +++++++++++++++ demos/gtk-demo/images.c | 2 ++ 3 files changed, 18 insertions(+) diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index c80d00d02..6cab50f1b 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -466,6 +466,7 @@ do_appwindow (GtkWidget *do_widget) g_object_set_data_full (G_OBJECT (window), "ui-manager", merge, g_object_unref); gtk_ui_manager_insert_action_group (merge, action_group, 0); + g_object_unref (action_group); gtk_window_add_accel_group (GTK_WINDOW (window), gtk_ui_manager_get_accel_group (merge)); diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c index 80374c94b..0d08aa853 100644 --- a/demos/gtk-demo/builder.c +++ b/demos/gtk-demo/builder.c @@ -27,6 +27,19 @@ about_activate (GtkAction *action) gtk_widget_hide (about_dlg); } +/* the about dialog and the builder go with the window */ +static void +window_destroyed (GtkWidget *window, + gpointer user_data) +{ + GObject *about_dlg = gtk_builder_get_object (builder, "aboutdialog1"); + + if (about_dlg) + gtk_widget_destroy (GTK_WIDGET (about_dlg)); + g_object_unref (builder); + builder = NULL; +} + GtkWidget * do_builder (GtkWidget *do_widget) { @@ -51,6 +64,8 @@ do_builder (GtkWidget *do_widget) gtk_widget_get_screen (do_widget)); g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window); + g_signal_connect (window, "destroy", + G_CALLBACK (window_destroyed), NULL); } if (!gtk_widget_get_visible (window)) diff --git a/demos/gtk-demo/images.c b/demos/gtk-demo/images.c index 9eaac39c0..0066f7f91 100644 --- a/demos/gtk-demo/images.c +++ b/demos/gtk-demo/images.c @@ -389,6 +389,8 @@ do_images (GtkWidget *do_widget) } image = gtk_image_new_from_pixbuf (pixbuf); + if (pixbuf) + g_object_unref (pixbuf); gtk_container_add (GTK_CONTAINER (frame), image); From 3fbad7604167a8a7367dce7af4d2a449f4ab1db7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 01:37:38 +0200 Subject: [PATCH 140/249] filechoosersettings: the name of the settings folder made when it is missing is freed after use, not lost in a second variable of the same name inside the block --- gtk/gtkfilechoosersettings.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/gtkfilechoosersettings.c b/gtk/gtkfilechoosersettings.c index c147ee074..c91cfd507 100644 --- a/gtk/gtkfilechoosersettings.c +++ b/gtk/gtkfilechoosersettings.c @@ -669,7 +669,6 @@ _gtk_file_chooser_settings_save (GtkFileChooserSettings *settings, if (!g_file_set_contents (filename, contents, len, NULL)) { - char *dirname; int saved_errno; /* Directory is not there? */ From 7422001fd4c5f49b46be62c1e030dd74d059c555 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:05:52 +0200 Subject: [PATCH 141/249] fontsel: the family list is as wide as its widest family again, with the scrollbar below, as with the autosized column of GTK+, but measured in one go, kept for the next font selection with the same fonts, and in slices while idle with thousands of fonts --- gtk/gtkfontsel.c | 345 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 339 insertions(+), 6 deletions(-) diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index 99b39797e..7ac35373d 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -35,6 +35,7 @@ #include #include +#include #include "gdk/gdk.h" #include "gdk/gdkkeysyms.h" @@ -187,6 +188,9 @@ typedef struct gboolean styles_pending; /* preview_idle also lists the styles */ gint64 preview_done; /* when the last preview was made... */ gint64 preview_time; /* ...and how long that took */ + GtkTreeViewColumn *family_column; + GtkCellRenderer *family_renderer; + struct _FamilyMeasuring *measuring; /* the family column, see family_list_measure() */ } GtkFontSelectionPrivate; #define GET_PRIV(fontsel) ((GtkFontSelectionPrivate *) gtk_font_selection_get_instance_private (fontsel)) @@ -222,6 +226,10 @@ static void gtk_font_selection_get_property (GObject *object, GValue *value, GParamSpec *pspec); static void gtk_font_selection_finalize (GObject *object); +static void family_list_measure_stop (GtkFontSelection *fontsel); +static void family_list_style_set (GtkWidget *widget, + GtkStyle *previous_style, + GtkFontSelection *fontsel); static void gtk_font_selection_destroy (GtkObject *object); static void gtk_font_selection_screen_changed (GtkWidget *widget, GdkScreen *previous_screen); @@ -472,18 +480,20 @@ gtk_font_selection_init (GtkFontSelection *fontsel) g_signal_connect (fontsel->family_list, "row-activated", G_CALLBACK (list_row_activated), fontsel); - /* All rows have the same height and the column a fixed width, so the - * list does not measure every family when there are thousands. */ + /* The column is as wide as the widest family, as an autosized one + * would be, but measured in one go by family_list_measure() instead of + * by the tree view walking every row; with thousands of fonts that + * walk is most of the time the dialog takes to open. */ renderer = gtk_cell_renderer_text_new (); - g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); column = gtk_tree_view_column_new_with_attributes ("Family", renderer, "text", FAMILY_NAME_COLUMN, NULL); gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED); - gtk_tree_view_column_set_fixed_width (column, 1); - gtk_tree_view_column_set_expand (column, TRUE); gtk_tree_view_append_column (GTK_TREE_VIEW (fontsel->family_list), column); - gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (fontsel->family_list), TRUE); + GET_PRIV (fontsel)->family_column = column; + GET_PRIV (fontsel)->family_renderer = renderer; + g_signal_connect (fontsel->family_list, "style-set", + G_CALLBACK (family_list_style_set), fontsel); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (fontsel->family_list), FALSE); gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (fontsel->family_list)), @@ -703,6 +713,7 @@ gtk_font_selection_destroy (GtkObject *object) g_source_remove (priv->preview_idle); priv->preview_idle = 0; } + family_list_measure_stop (GTK_FONT_SELECTION (object)); GTK_OBJECT_CLASS (gtk_font_selection_parent_class)->destroy (object); } @@ -876,6 +887,320 @@ typedef struct gchar *key; } FamilyEntry; +/* The family column gets the width that an autosized column would get + * after the tree view had measured every row (the widest name, with the + * padding of the cell, the focus line and the separator, as in + * validate_row() of gtktreeview.c), and the tree view takes the height + * of one row for all when all names are of one height, which is what it + * would find measuring them one by one. So the list looks as with an + * autosized column, but: + * + * - the names are measured with one layout, without the tree view and + * the renderer around each of them; + * - what was measured is kept with the font map, so the next font + * selection of the program, with the same fonts, does not measure; + * - with many fonts the measuring goes on in slices when nothing else + * is to be done, and the column grows meanwhile, as an autosized one + * does while the tree view measures its rows. + */ + +#define MEASURE_SLICE 8000 /* microseconds of measuring at a time */ + +typedef struct +{ + guint serial; + gchar *font; + gdouble resolution; + gulong options_hash; + gint n_names; + gint xpad, ypad; + gint max_width; + gboolean same_height; +} FamilyMeasure; + +typedef struct _FamilyMeasuring +{ + PangoLayout *layout; + const gchar **names; /* owned by the families in the model */ + gint n_names; + gint pos; + gint max_width; + gint height; + gboolean same_height; + guint idle; + FamilyMeasure key; /* to keep with the font map when done */ + PangoFontMap *font_map; +} FamilyMeasuring; + +static void +family_measure_free (gpointer data) +{ + FamilyMeasure *measure = data; + + g_free (measure->font); + g_slice_free (FamilyMeasure, measure); +} + +static GQuark +family_measure_quark (void) +{ + static GQuark quark; + + if (!quark) + quark = g_quark_from_static_string ("gtk-font-selection-family-measure"); + return quark; +} + +static void +family_list_apply (GtkFontSelection *fontsel, + gint max_width, + gboolean same_height) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + GtkTreeView *list = GTK_TREE_VIEW (fontsel->family_list); + gint focus_line_width, horizontal_separator; + + gtk_widget_style_get (GTK_WIDGET (list), + "focus-line-width", &focus_line_width, + "horizontal-separator", &horizontal_separator, + NULL); + gtk_tree_view_column_set_fixed_width (priv->family_column, + MAX (1, max_width + 2 * focus_line_width + horizontal_separator)); + + if (gtk_tree_view_get_fixed_height_mode (list) != same_height) + gtk_tree_view_set_fixed_height_mode (list, same_height); +} + +static void +family_list_measure_stop (GtkFontSelection *fontsel) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + FamilyMeasuring *m = priv->measuring; + + if (!m) + return; + if (m->idle) + g_source_remove (m->idle); + if (m->layout) + g_object_unref (m->layout); + g_free (m->names); + g_free (m->key.font); + g_slice_free (FamilyMeasuring, m); + priv->measuring = NULL; +} + +/* Measures for up to @budget microseconds; TRUE when all are measured */ +static gboolean +family_list_measure_some (FamilyMeasuring *m, + GtkCellRenderer *cell, + gint64 budget) +{ + gint64 start = g_get_monotonic_time (); + + while (m->pos < m->n_names) + { + PangoRectangle rect; + gint height; + + /* The layout the renderer makes for a plain text (no markup, no + * attributes, no wrapping) is the one of the widget */ + pango_layout_set_text (m->layout, m->names[m->pos++], -1); + pango_layout_get_pixel_extents (m->layout, NULL, &rect); + m->max_width = MAX (m->max_width, cell->xpad * 2 + rect.x + rect.width); + height = cell->ypad * 2 + rect.height; + if (m->height < 0) + m->height = height; + else if (height != m->height) + m->same_height = FALSE; + + if ((m->pos & 15) == 0 && g_get_monotonic_time () - start >= budget) + break; + } + + return m->pos >= m->n_names; +} + +static void +family_list_measure_done (GtkFontSelection *fontsel) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + FamilyMeasuring *m = priv->measuring; + + family_list_apply (fontsel, m->max_width, m->same_height); + + if (m->font_map) + { + FamilyMeasure *measure = g_slice_new (FamilyMeasure); + + *measure = m->key; + m->key.font = NULL; + measure->max_width = m->max_width; + measure->same_height = m->same_height; + g_object_set_qdata_full (G_OBJECT (m->font_map), family_measure_quark (), + measure, family_measure_free); + } + + m->idle = 0; + family_list_measure_stop (fontsel); +} + +static gboolean +family_list_measure_idle (gpointer data) +{ + GtkFontSelection *fontsel = data; + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + FamilyMeasuring *m = priv->measuring; + + if (family_list_measure_some (m, priv->family_renderer, MEASURE_SLICE)) + { + family_list_measure_done (fontsel); + return FALSE; + } + + /* as an autosized column grows while the rows are measured */ + family_list_apply (fontsel, m->max_width, TRUE); + return TRUE; +} + +/* What the measure depends on: the fonts there are, the font of the + * list and how it is rendered, the padding of the cells. Returns the + * font map to keep the measure with, NULL if it cannot be kept. */ +static PangoFontMap * +family_measure_key (GtkFontSelection *fontsel, + gint n_names, + FamilyMeasure *key) +{ + GtkWidget *list = fontsel->family_list; + GtkCellRenderer *cell = GET_PRIV (fontsel)->family_renderer; + PangoContext *context = gtk_widget_get_pango_context (list); + PangoFontMap *font_map = NULL; + const cairo_font_options_t *options; + + memset (key, 0, sizeof (FamilyMeasure)); +#if PANGO_VERSION_CHECK (1, 34, 0) + font_map = pango_context_get_font_map (context); + key->serial = pango_font_map_get_serial (font_map); +#endif + key->font = pango_font_description_to_string (list->style->font_desc); + key->resolution = pango_cairo_context_get_resolution (context); + options = pango_cairo_context_get_font_options (context); + key->options_hash = options ? cairo_font_options_hash (options) : 0; + key->n_names = n_names; + key->xpad = cell->xpad; + key->ypad = cell->ypad; + + return font_map; +} + +/* Gives the column the measure kept for @key, if there is one */ +static gboolean +family_list_apply_known (GtkFontSelection *fontsel, + PangoFontMap *font_map, + FamilyMeasure *key) +{ + FamilyMeasure *known; + + if (!font_map) + return FALSE; + + known = g_object_get_qdata (G_OBJECT (font_map), family_measure_quark ()); + if (!known || known->serial != key->serial || known->n_names != key->n_names || + known->resolution != key->resolution || known->options_hash != key->options_hash || + known->xpad != key->xpad || known->ypad != key->ypad || + strcmp (known->font, key->font) != 0) + return FALSE; + + family_list_apply (fontsel, known->max_width, known->same_height); + return TRUE; +} + +/* Takes @names */ +static void +family_list_measure (GtkFontSelection *fontsel, + const gchar **names, + gint n_names) +{ + GtkFontSelectionPrivate *priv = GET_PRIV (fontsel); + GtkCellRenderer *cell = priv->family_renderer; + FamilyMeasuring *m; + FamilyMeasure key; + PangoFontMap *font_map; + + family_list_measure_stop (fontsel); + + font_map = family_measure_key (fontsel, n_names, &key); + if (family_list_apply_known (fontsel, font_map, &key)) + { + g_free (key.font); + g_free (names); + return; + } + + m = g_slice_new0 (FamilyMeasuring); + m->layout = gtk_widget_create_pango_layout (fontsel->family_list, NULL); + m->names = names; + m->n_names = n_names; + m->height = -1; + m->same_height = TRUE; + m->key = key; + m->font_map = font_map; + priv->measuring = m; + + if (family_list_measure_some (m, cell, MEASURE_SLICE)) + { + family_list_measure_done (fontsel); + return; + } + + family_list_apply (fontsel, m->max_width, TRUE); + m->idle = gdk_threads_add_idle (family_list_measure_idle, fontsel); +} + +/* Another font or other separators: an autosized column would be + * measured again as well */ +static void +family_list_style_set (GtkWidget *widget, + GtkStyle *previous_style, + GtkFontSelection *fontsel) +{ + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (widget)); + const gchar **names; + GtkTreeIter iter; + gboolean valid; + gint n = 0; + + FamilyMeasure key; + PangoFontMap *font_map; + + /* also the first style of the list (previous_style NULL), which may + * come after the families were listed and measured */ + if (!model) + return; + + n = gtk_tree_model_iter_n_children (model, NULL); + font_map = family_measure_key (fontsel, n, &key); + if (family_list_apply_known (fontsel, font_map, &key)) + { + g_free (key.font); + return; + } + g_free (key.font); + + n = 0; + names = g_new (const gchar *, gtk_tree_model_iter_n_children (model, NULL) + 1); + for (valid = gtk_tree_model_get_iter_first (model, &iter); valid; + valid = gtk_tree_model_iter_next (model, &iter)) + { + PangoFontFamily *family; + + /* the model keeps the family, and with it the name */ + gtk_tree_model_get (model, &iter, FAMILY_COLUMN, &family, -1); + names[n++] = pango_font_family_get_name (family); + g_object_unref (family); + } + family_list_measure (fontsel, names, n); +} + static int cmp_families (const void *a, const void *b) { @@ -890,11 +1215,15 @@ gtk_font_selection_show_available_fonts (GtkFontSelection *fontsel) PangoFontFamily **families; PangoFontFamily *match_family = NULL; FamilyEntry *entries; + const gchar **names; gint n_families, i; GtkTreeIter match_row; model = GTK_LIST_STORE (gtk_tree_view_get_model (view)); + /* the names it would measure go with the families in the list */ + family_list_measure_stop (fontsel); + /* Collation keys are made once per family instead of in every comparison. */ pango_context_list_families (gtk_widget_get_pango_context (GTK_WIDGET (fontsel)), &families, &n_families); @@ -911,6 +1240,7 @@ gtk_font_selection_show_available_fonts (GtkFontSelection *fontsel) gtk_tree_view_set_model (view, NULL); gtk_list_store_clear (model); + names = g_new (const gchar *, n_families); for (i = 0; i < n_families; i++) { const gchar *name = pango_font_family_get_name (entries[i].family); @@ -920,6 +1250,7 @@ gtk_font_selection_show_available_fonts (GtkFontSelection *fontsel) FAMILY_COLUMN, entries[i].family, FAMILY_NAME_COLUMN, name, -1); + names[i] = name; g_free (entries[i].key); if (i == 0 || !g_ascii_strcasecmp (name, "sans")) @@ -929,6 +1260,8 @@ gtk_font_selection_show_available_fonts (GtkFontSelection *fontsel) } } + family_list_measure (fontsel, names, n_families); + gtk_tree_view_set_model (view, GTK_TREE_MODEL (model)); g_object_unref (model); g_free (entries); From 469caa6587a96d0dafd469d6c4b190f46657efd3 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:12:39 +0200 Subject: [PATCH 142/249] recentmanager: the age of an item and the clamping by age take the time of now from g_get_real_time(), not from a time_t, which on 32-bit systems ends in 2038, and compare the 64-bit times as they are --- gtk/gtkrecentmanager.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index a7187f5a1..ed9a875ac 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -1742,24 +1742,23 @@ gtk_recent_manager_clamp_to_age (GtkRecentManager *manager, GtkRecentManagerPrivate *priv = manager->priv; gchar **uris; gsize n_uris, i; - time_t now; + gint64 now; if (G_UNLIKELY (!priv->recent_items)) return; - now = time (NULL); - if (now == (time_t) -1) - return; + /* not time (), which a 32-bit time_t cannot give after 2038 */ + now = g_get_real_time () / G_USEC_PER_SEC; uris = g_bookmark_file_get_uris (priv->recent_items, &n_uris); for (i = 0; i < n_uris; i++) { const gchar *uri = uris[i]; - time_t modified; + gint64 modified; gint item_age; - modified = recent_time_to_time_t (gtk_recent_bookmark_file_get_modified_time (priv->recent_items, uri)); + modified = gtk_recent_bookmark_file_get_modified_time (priv->recent_items, uri); if (recent_time_get_days_elapsed (now, modified, &item_age) && item_age > age) @@ -2652,7 +2651,7 @@ gtk_recent_info_get_age (GtkRecentInfo *info) g_return_val_if_fail (info != NULL, -1); - now = (gint64) time (NULL); + now = g_get_real_time () / G_USEC_PER_SEC; if (!recent_time_get_days_elapsed (now, info->modified, &retval)) return -1; From 3c5d8d0ac5105e28c89626d0cd3068dd7f215772 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:13:26 +0200 Subject: [PATCH 143/249] recentchooser: sorting by the time of use compares the 64-bit times instead of returning their difference, which overflowed for items more than 68 years apart and mixed up the order --- gtk/gtkrecentchooserutils.c | 11 +++++++++-- gtk/gtkrecentchooserutils.h | 2 ++ gtk/gtkrecentmanager.c | 12 ++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/gtk/gtkrecentchooserutils.c b/gtk/gtkrecentchooserutils.c index 12170e320..4f66463ae 100644 --- a/gtk/gtkrecentchooserutils.c +++ b/gtk/gtkrecentchooserutils.c @@ -300,9 +300,16 @@ sort_recent_items_mru (GtkRecentInfo *a, GtkRecentInfo *b, gpointer unused) { + gint64 time_a, time_b; + g_assert (a != NULL && b != NULL); - return gtk_recent_info_get_modified (b) - gtk_recent_info_get_modified (a); + /* compared, not subtracted: the difference of two times does not fit + * into the gint returned when they are more than 68 years apart */ + time_a = _gtk_recent_info_get_modified_time (a); + time_b = _gtk_recent_info_get_modified_time (b); + + return time_b < time_a ? -1 : (time_b > time_a ? 1 : 0); } static gint @@ -312,7 +319,7 @@ sort_recent_items_lru (GtkRecentInfo *a, { g_assert (a != NULL && b != NULL); - return -1 * (gtk_recent_info_get_modified (b) - gtk_recent_info_get_modified (a)); + return -sort_recent_items_mru (a, b, unused); } typedef struct diff --git a/gtk/gtkrecentchooserutils.h b/gtk/gtkrecentchooserutils.h index 916c22091..6ca7d36b1 100644 --- a/gtk/gtkrecentchooserutils.h +++ b/gtk/gtkrecentchooserutils.h @@ -57,6 +57,8 @@ void _gtk_recent_chooser_set_delegate (GtkRecentChooser *receiver, GQuark _gtk_recent_chooser_delegate_get_quark (void); +gint64 _gtk_recent_info_get_modified_time (GtkRecentInfo *info); + G_END_DECLS #endif /* __GTK_RECENT_CHOOSER_UTILS_H__ */ diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index ed9a875ac..c4c2ba496 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -33,6 +33,7 @@ #include #include "gtkrecentmanager.h" +#include "gtkrecentchooserutils.h" #include "gtkintl.h" #include "gtkstock.h" #include "gtkicontheme.h" @@ -2058,6 +2059,17 @@ gtk_recent_info_get_visited (GtkRecentInfo *info) return recent_time_to_time_t (info->visited); } +/* The time of the last change as kept, in 64 bits, for sorting inside + * GTK+; gtk_recent_info_get_modified() gives a time_t, which may be 32 + * bits. */ +gint64 +_gtk_recent_info_get_modified_time (GtkRecentInfo *info) +{ + g_return_val_if_fail (info != NULL, -1); + + return info->modified; +} + /** * gtk_recent_info_get_private_hint: * @info: a #GtkRecentInfo From 04ab40425e381b740aa503c3346e319dd54e5520 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:13:58 +0200 Subject: [PATCH 144/249] filechooser: the modification time of a file is read as the 64-bit seconds of GIO, without the GTimeVal fallback for older GLib that ends in 2038 on 32-bit systems and on Windows, and without making a GDateTime for every cell drawn --- gtk/gtkfilechooserdefault.c | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 337a27aa2..7cf606826 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -10342,26 +10342,12 @@ file_system_model_set (GtkFileSystemModel *model, if (info == NULL) break; -/* GLib 2.62 replaced the old GTimeVal API with GDateTime. */ -#if GLIB_CHECK_VERSION (2, 62, 0) - { - GDateTime *dt; - - dt = g_file_info_get_modification_date_time (info); - if (dt) - { - tv = g_date_time_to_unix (dt); - g_date_time_unref (dt); - } - } -#else - { - GTimeVal timeval; - - g_file_info_get_modification_time (info, &timeval); - tv = timeval.tv_sec; - } -#endif + /* The seconds as GIO keeps them, 64 bits on all systems: not + * the GTimeVal of older GLib, whose glong ends in 2038 on 32-bit + * systems and on Windows, and no GDateTime made for every cell + * drawn. GIO puts st_mtime into a uint64; read as signed, a + * time before 1970 comes back as it was. */ + tv = (gint64) g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_TIME_MODIFIED); if (column == MODEL_COL_MTIME) g_value_set_int64 (value, tv); From ec29783922a71d94a63f581c15feaed6195af1ea Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:14:25 +0200 Subject: [PATCH 145/249] gdkcolor-x11: the pause between two syncs of a colormap is measured with the monotonic clock, not with time(), which on 32-bit systems stops after 2038 and then let no colormap be synced again --- gdk/x11/gdkcolor-x11.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/gdk/x11/gdkcolor-x11.c b/gdk/x11/gdkcolor-x11.c index f14650059..58e26d084 100644 --- a/gdk/x11/gdkcolor-x11.c +++ b/gdk/x11/gdkcolor-x11.c @@ -34,6 +34,9 @@ #include "gdkscreen-x11.h" #include "gdkalias.h" +#define MIN_SYNC_TIME 2 /* seconds between syncs of a colormap */ +#define NEVER_SYNCED G_MININT64 + typedef struct _GdkColormapPrivateX11 GdkColormapPrivateX11; typedef GdkColormapPrivateX11 GdkColormapPrivate; @@ -82,7 +85,7 @@ gdk_colormap_init (GdkColormap *colormap) private->screen = NULL; private->hash = NULL; - private->last_sync_time = 0; + private->last_sync_time = NEVER_SYNCED; private->info = NULL; colormap->size = 0; @@ -317,7 +320,6 @@ gdk_colormap_sync_direct_color (GdkColormap *colormap) g_free (xpalette); } -#define MIN_SYNC_TIME 2 static void gdk_colormap_sync (GdkColormap *colormap, @@ -331,8 +333,12 @@ gdk_colormap_sync (GdkColormap *colormap, if (private->screen->closed) return; - current_time = (gint64) time (NULL); - if (!force && ((current_time - private->last_sync_time) < MIN_SYNC_TIME)) + /* A time between two syncs: the monotonic clock, not time (), which + * on 32-bit systems has no answer after 2038 (and then never let the + * colormap be synced again) and jumps when the clock is set */ + current_time = g_get_monotonic_time () / G_USEC_PER_SEC; + if (!force && private->last_sync_time != NEVER_SYNCED && + current_time - private->last_sync_time < MIN_SYNC_TIME) return; private->last_sync_time = current_time; @@ -376,7 +382,7 @@ gdk_screen_get_system_colormap (GdkScreen *screen) private->private_val = FALSE; private->hash = NULL; - private->last_sync_time = 0; + private->last_sync_time = NEVER_SYNCED; private->info = NULL; colormap->colors = NULL; From 725236c4c25c3c40396b2a7e77d1224eade67240 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:15:01 +0200 Subject: [PATCH 146/249] cups: the time to print at is turned into UTC with the offset of local time from GDateTime, not with time(), which has no answer after 2038 where time_t is 32 bits, and in seconds, so zones with quarter hours, such as Nepal, no longer come out an hour wrong --- .../printbackends/cups/gtkprintbackendcups.c | 40 +++++++------------ 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index beae10b1e..f94e163b3 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -5877,13 +5877,8 @@ localtime_to_utctime (const char *local_time) " %I %p ", " %p %I "}; const char *formats_1[] = {" %H : %M : %S ", " %H : %M "}; const char *end = NULL; - struct tm *actual_local_time; - struct tm *actual_utc_time; struct tm local_print_time; - struct tm utc_now; - struct tm local_now; struct tm utc_print_time; - struct tm diff_time; gchar *utc_time = NULL; int i, n; @@ -5909,31 +5904,24 @@ localtime_to_utctime (const char *local_time) if (end != NULL && end[0] == '\0') { - time_t rawtime; - struct tm *tmp_tm; + GDateTime *now; + gint64 offset, secs; - time (&rawtime); - - tmp_tm = gmtime (&rawtime); - if (tmp_tm == NULL) + /* The offset of local time now, from GDateTime: time () has no + * answer after 2038 where time_t is 32 bits */ + now = g_date_time_new_now_local (); + if (now == NULL) return NULL; - utc_now = *tmp_tm; + offset = g_date_time_get_utc_offset (now) / G_USEC_PER_SEC; + g_date_time_unref (now); - tmp_tm = localtime (&rawtime); - if (tmp_tm == NULL) - return NULL; - local_now = *tmp_tm; + secs = local_print_time.tm_hour * 3600 + local_print_time.tm_min * 60 + + local_print_time.tm_sec - offset; + secs = ((secs % 86400) + 86400) % 86400; - actual_utc_time = &utc_now; - actual_local_time = &local_now; - - diff_time.tm_hour = actual_utc_time->tm_hour - actual_local_time->tm_hour; - diff_time.tm_min = actual_utc_time->tm_min - actual_local_time->tm_min; - diff_time.tm_sec = actual_utc_time->tm_sec - actual_local_time->tm_sec; - - utc_print_time.tm_hour = ((local_print_time.tm_hour + diff_time.tm_hour) + 24) % 24; - utc_print_time.tm_min = ((local_print_time.tm_min + diff_time.tm_min) + 60) % 60; - utc_print_time.tm_sec = ((local_print_time.tm_sec + diff_time.tm_sec) + 60) % 60; + utc_print_time.tm_hour = secs / 3600; + utc_print_time.tm_min = (secs / 60) % 60; + utc_print_time.tm_sec = secs % 60; utc_time = g_strdup_printf ("%02d:%02d:%02d", utc_print_time.tm_hour, From 2b9d739cb070a8dcb71c5996daaec2910658833c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 11:16:09 +0200 Subject: [PATCH 147/249] menus and launching: the time since a submenu opened and the time a program takes to start are measured with the monotonic clock, so setting the clock meanwhile does not shorten or lengthen them --- gdk/x11/gdkapplaunchcontext-x11.c | 4 +++- gtk/gtkmenuitem.c | 2 +- gtk/gtkmenushell.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c index 0d171e5aa..723ff4dcf 100644 --- a/gdk/x11/gdkapplaunchcontext-x11.c +++ b/gdk/x11/gdkapplaunchcontext-x11.c @@ -178,10 +178,12 @@ free_startup_timeout (void *data) g_free (std); } +/* for the time a startup takes: not the wall clock, which may be set + * meanwhile */ static gint64 get_current_time_usec (void) { - return g_get_real_time (); + return g_get_monotonic_time (); } static gboolean diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index efad611ad..294679580 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -1504,7 +1504,7 @@ gtk_menu_item_real_popup_submenu (GtkWidget *widget, { gint64 *popup_time = g_slice_new0 (gint64); - *popup_time = g_get_real_time (); + *popup_time = g_get_monotonic_time (); g_object_set_data_full (G_OBJECT (menu_item->submenu), "gtk-menu-exact-popup-time", popup_time, diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 091586d79..40c9b8805 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -719,7 +719,7 @@ gtk_menu_shell_button_release (GtkWidget *widget, if (popup_time) { - usec_since_popup = g_get_real_time () - *popup_time; + usec_since_popup = g_get_monotonic_time () - *popup_time; g_object_set_data (G_OBJECT (submenu), "gtk-menu-exact-popup-time", NULL); From fe44ec039e078203de8c13b52d134ec09cf657d0 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:03:33 +0200 Subject: [PATCH 148/249] gdkcairo: gdk_cairo_create_in_area_libgtk_only() for the theme engines of GTK+, a cairo context with only the rectangles of the window clip that meet the area drawn, which within that area is the same clip --- gdk/gdk.symbols | 1 + gdk/gdkcairo.c | 27 +++++++++++++++++++++++++++ gdk/gdkcairo.h | 4 ++++ 3 files changed, 32 insertions(+) diff --git a/gdk/gdk.symbols b/gdk/gdk.symbols index 042b2ae26..ba9a8a93a 100644 --- a/gdk/gdk.symbols +++ b/gdk/gdk.symbols @@ -327,6 +327,7 @@ gdk_fontset_load_for_display #if IN_HEADER(__GDK_CAIRO_H__) #if IN_FILE(__GDK_CAIRO_C__) gdk_cairo_create +gdk_cairo_create_in_area_libgtk_only gdk_cairo_reset_clip gdk_cairo_set_source_color gdk_cairo_set_source_pixbuf diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 046bc5de7..145c674ed 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -98,6 +98,33 @@ _gdk_cairo_create_in_area (GdkDrawable *drawable, return cr; } +/** + * gdk_cairo_create_in_area_libgtk_only: + * @drawable: a #GdkDrawable + * @area: the area that will be drawn + * + * Like gdk_cairo_create(), for drawing that stays inside @area: of the + * clip of a window only the rectangles meeting @area are given to cairo, + * which within @area is the same clip. Theme engines that clip to the + * area they are given anyway spare cairo the whole clip of the window, + * which during an expose can be many rectangles, for each part they + * draw. Private to GTK+ and its modules. + * + * Return value: A newly created Cairo context. Free with + * cairo_destroy() when you are done drawing. + **/ +cairo_t * +gdk_cairo_create_in_area_libgtk_only (GdkDrawable *drawable, + const GdkRectangle *area) +{ + g_return_val_if_fail (GDK_IS_DRAWABLE (drawable), NULL); + + if (!area) + return gdk_cairo_create (drawable); + + return _gdk_cairo_create_in_area (drawable, area); +} + /** * gdk_cairo_reset_clip: * @cr: a #cairo_t diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h index 5bc952636..3d9822aef 100644 --- a/gdk/gdkcairo.h +++ b/gdk/gdkcairo.h @@ -31,6 +31,10 @@ G_BEGIN_DECLS cairo_t *gdk_cairo_create (GdkDrawable *drawable); + +/* private, for the theme engines of GTK+ */ +cairo_t *gdk_cairo_create_in_area_libgtk_only (GdkDrawable *drawable, + const GdkRectangle *area); void gdk_cairo_reset_clip (cairo_t *cr, GdkDrawable *drawable); From b591ae2797e9e2759c0bf3c2c82ce7dc5b147b02 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:03:33 +0200 Subject: [PATCH 149/249] pixbuf engine: the parts of an image are drawn with a cairo context clipped only around them, not with the whole clip of the window, which during an expose was most of the work of a pixmap theme --- modules/engines/pixbuf/pixbuf-render.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c index 592a443cb..33401936e 100644 --- a/modules/engines/pixbuf/pixbuf-render.c +++ b/modules/engines/pixbuf/pixbuf-render.c @@ -657,7 +657,8 @@ pixbuf_render (GdkPixbuf *src, if (!surface) return; - cr = gdk_cairo_create (window); + /* only rect is filled: the clip of the window around it is enough */ + cr = gdk_cairo_create_in_area_libgtk_only (window, &rect); cairo_set_source_surface (cr, surface, dest_x, dest_y); gdk_cairo_rectangle (cr, &rect); cairo_fill (cr); @@ -687,7 +688,7 @@ pixbuf_render (GdkPixbuf *src, cairo_destroy (cr); } - cr = gdk_cairo_create (window); + cr = gdk_cairo_create_in_area_libgtk_only (window, &rect); gdk_cairo_set_source_pixbuf (cr, tmp_pixbuf, -x_offset + rect.x, @@ -1124,15 +1125,17 @@ theme_pixbuf_render (ThemePixbuf *theme_pb, } else { - cairo_t *cr = gdk_cairo_create (window); + GdkRectangle fill = { x, y, width, height }; + cairo_t *cr; + + if (clip_rect) + fill = *clip_rect; + cr = gdk_cairo_create_in_area_libgtk_only (window, &fill); gdk_cairo_set_source_pixbuf (cr, pixbuf, 0, 0); cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT); - if (clip_rect) - gdk_cairo_rectangle (cr, clip_rect); - else - cairo_rectangle (cr, x, y, width, height); + gdk_cairo_rectangle (cr, &fill); cairo_fill (cr); From 65167e9ba880efea05603cb69bdd469f5df9ac4d Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:13:03 +0200 Subject: [PATCH 150/249] gdk: theme engines built outside GTK+ find gdk_cairo_create_in_area_libgtk_only() as type data of GdkDrawable, so that the same engine also loads into other builds of GTK+ 2, where it uses gdk_cairo_create() --- gdk/gdkdraw.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index 40141bbd8..25b71837f 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -84,6 +84,13 @@ gdk_drawable_class_init (GdkDrawableClass *klass) klass->get_visible_region = gdk_drawable_real_get_visible_region; klass->draw_pixbuf = gdk_drawable_real_draw_pixbuf; klass->draw_drawable = gdk_drawable_real_draw_drawable; + + /* how theme engines built outside GTK+, which must load into other + * builds of GTK+ 2 too, find gdk_cairo_create_in_area_libgtk_only(): + * where this is not set they use gdk_cairo_create() */ + g_type_set_qdata (G_TYPE_FROM_CLASS (klass), + g_quark_from_static_string ("gdk-cairo-create-in-area"), + (gpointer) gdk_cairo_create_in_area_libgtk_only); } static void From bbdabcad59858b0177035a097e9ae2888f4df6a5 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:17:16 +0200 Subject: [PATCH 151/249] style: the default theme draws arrows, check boxes, radio buttons and expanders with a cairo context clipped only around the area drawn, not with the whole clip of the window --- gtk/gtkstyle.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index 8e284fe39..bdfa388b6 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -3159,7 +3159,7 @@ draw_arrow (GdkWindow *window, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); gdk_cairo_set_source_color (cr, color); if (area) @@ -3859,7 +3859,7 @@ gtk_default_draw_check (GtkStyle *style, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); enum { BUTTON, MENU, CELL } type = BUTTON; int exterior_size; int interior_size; @@ -3984,7 +3984,7 @@ gtk_default_draw_option (GtkStyle *style, gint width, gint height) { - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); enum { BUTTON, MENU, CELL } type = BUTTON; int exterior_size; @@ -5382,7 +5382,7 @@ gtk_default_draw_expander (GtkStyle *style, double x_double, y_double; gint degrees = 0; - cairo_t *cr = gdk_cairo_create (window); + cairo_t *cr = gdk_cairo_create_in_area_libgtk_only (window, area); if (area) { From 80218dd9bd826f83e807209500e6702fe4159889 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 12:17:32 +0200 Subject: [PATCH 152/249] icontheme: small bitmap icons enlarged by a factor that is not whole, such as 2.5, get pixel blocks all of the same size and only the rest of the factor filtered, instead of blocks alternating between two and three pixels --- gtk/gtkicontheme.c | 78 ++++++++++++++++++++++++++++------------------ 1 file changed, 47 insertions(+), 31 deletions(-) diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 11308083c..f8ea498a3 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -2978,29 +2978,49 @@ apply_emblems (GtkIconInfo *info) info->emblems_applied = TRUE; } -static GdkInterpType -icon_info_get_scale_interp_type (gint image_width, - gint image_height, - gdouble scale) +/* Scales an icon to @dest_width x @dest_height. + * + * Strongly upscaling small bitmap icons with bilinear filtering makes + * them blurry. For tiny bitmap icons enlarged two times or more, each + * source pixel becomes a block of whole pixels instead (nearest), as + * many as fit, and only what is left of the factor is filtered + * (bilinear): at 2x and 3x the blocks are all alike, and at 2.5x they + * do not alternate between two and three pixels as with nearest alone. + * Larger sources and moderate scaling keep bilinear filtering. + * + * This is done only when the icon pixbuf is created. Cached pixbufs + * are reused while scrolling and drawing. + */ +static GdkPixbuf * +icon_scale_pixbuf (GdkPixbuf *source, + gint dest_width, + gint dest_height, + gdouble scale) { - gint image_size; + gint width = gdk_pixbuf_get_width (source); + gint height = gdk_pixbuf_get_height (source); + gint image_size = MAX (width, height); + GdkPixbuf *blocks, *scaled; + gint k; - image_size = MAX (image_width, image_height); + if (image_size <= 0 || image_size > 64 || scale < 2.0) + return gdk_pixbuf_scale_simple (source, dest_width, dest_height, + GDK_INTERP_BILINEAR); - /* - * Strongly upscaling small bitmap icons with bilinear filtering makes - * them blurry and costs more CPU. Keep bilinear filtering for larger - * sources and moderate scaling, but use nearest-neighbour scaling for - * tiny bitmap icons that are enlarged substantially. - * - * This decision is made only when the icon pixbuf is created. Cached - * pixbufs are reused while scrolling and drawing. - */ -/*if (image_size > 0 && image_size <= 64 && scale >= 3.0) */ - if (image_size > 0 && image_size <= 64 && scale >= 2.0) - return GDK_INTERP_NEAREST; + k = MIN (dest_width / width, dest_height / height); + if (k < 2 || (width * k == dest_width && height * k == dest_height)) + return gdk_pixbuf_scale_simple (source, dest_width, dest_height, + GDK_INTERP_NEAREST); - return GDK_INTERP_BILINEAR; + blocks = gdk_pixbuf_scale_simple (source, width * k, height * k, + GDK_INTERP_NEAREST); + if (!blocks) + return NULL; + scaled = gdk_pixbuf_scale_simple (blocks, dest_width, dest_height, + GDK_INTERP_BILINEAR); + g_object_unref (blocks); + + return scaled; } /* This function contains the complicated logic for deciding @@ -3190,12 +3210,10 @@ icon_info_ensure_scale_and_pixbuf (GtkIconInfo *icon_info, icon_info->pixbuf = source_pixbuf; else { - icon_info->pixbuf = gdk_pixbuf_scale_simple (source_pixbuf, - 0.5 + image_width * icon_info->scale, - 0.5 + image_height * icon_info->scale, - icon_info_get_scale_interp_type (image_width, - image_height, - icon_info->scale)); + icon_info->pixbuf = icon_scale_pixbuf (source_pixbuf, + 0.5 + image_width * icon_info->scale, + 0.5 + image_height * icon_info->scale, + icon_info->scale); _gtk_icon_pixbuf_mark_shared (icon_info->pixbuf); g_object_unref (source_pixbuf); } @@ -3697,12 +3715,10 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme, max = MAX (width, height); scale = (gdouble) size / (gdouble) max; - scaled = gdk_pixbuf_scale_simple (pixbuf, - 0.5 + width * scale, - 0.5 + height * scale, - icon_info_get_scale_interp_type (width, - height, - scale)); + scaled = icon_scale_pixbuf (pixbuf, + 0.5 + width * scale, + 0.5 + height * scale, + scale); info = gtk_icon_info_new_for_pixbuf (icon_theme, scaled); From 7e44fbde302d6ea636402269a98a6dcd95dfbb0a Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:36:11 +0200 Subject: [PATCH 153/249] thumbnails: the Exif orientation of a JPEG is read along with its frame header, so photos also come out upright where the image loader does not report it (as GDI+ under Wine) --- gtk/gtkfilethumbnail.c | 82 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 4 deletions(-) diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index 0fefb9d71..d2115aa22 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -62,6 +62,7 @@ typedef struct goffset size; goffset max_remote_size; /* 0: none of network shares */ gint thumbnail_size; /* 128 or 256 */ + gint orientation; /* of a JPEG, from its Exif data; 0: none */ GCancellable *cancellable; GtkFileThumbnailDone done; gpointer data; @@ -319,29 +320,95 @@ size_prepared (GdkPixbufLoader *loader, } } +/* The orientation (1-8) in the Exif data of an APP1 segment, 0 if none */ +static gint +exif_orientation (const guchar *d, + gsize len) +{ + gboolean le; + guint32 ifd; + guint n, i; + +#define U16(p) (le ? (guint) ((p)[0] | (p)[1] << 8) : (guint) ((p)[0] << 8 | (p)[1])) +#define U32(p) (le ? ((guint32) (p)[0] | (guint32) (p)[1] << 8 | (guint32) (p)[2] << 16 | (guint32) (p)[3] << 24) \ + : ((guint32) (p)[0] << 24 | (guint32) (p)[1] << 16 | (guint32) (p)[2] << 8 | (guint32) (p)[3])) + + if (len < 6 + 8 || memcmp (d, "Exif\0\0", 6) != 0) + return 0; + d += 6; + len -= 6; + if (d[0] == 'I' && d[1] == 'I') + le = TRUE; + else if (d[0] == 'M' && d[1] == 'M') + le = FALSE; + else + return 0; + if (U16 (d + 2) != 42) + return 0; + ifd = U32 (d + 4); + if (ifd > len - 2) + return 0; + n = U16 (d + ifd); + for (i = 0; i < n && ifd + 2 + (i + 1) * 12 <= len; i++) + { + const guchar *e = d + ifd + 2 + i * 12; + + /* Orientation, a SHORT */ + if (U16 (e) == 0x0112 && U16 (e + 2) == 3) + { + guint o = U16 (e + 8); + return o >= 1 && o <= 8 ? (gint) o : 0; + } + } + +#undef U16 +#undef U32 + return 0; +} + /* A progressive JPEG needs memory for the whole picture, however small - * it is decoded; its frame header (SOFn) tells */ + * it is decoded; its frame header (SOFn) tells. On the way there, the + * Exif orientation is read: not every image loader reports it (the one + * of GDI+ under Wine, gdk-pixbuf before 2.12), and without it photos + * taken upright show lying on their side */ static gboolean -jpeg_is_progressive (const gchar *path) +jpeg_scan (const gchar *path, + gint *orientation) { FILE *f = g_fopen (path, "rb"); gboolean progressive = TRUE; /* not found: the careful answer */ guchar m[4]; gint i; + *orientation = 0; if (f == NULL) return TRUE; if (fread (m, 1, 2, f) == 2 && m[0] == 0xff && m[1] == 0xd8) for (i = 0; i < 64 && fread (m, 1, 4, f) == 4 && m[0] == 0xff; i++) { + gsize len = (m[2] << 8) | m[3]; + /* SOF0 to SOF15, but for DHT, JPG and DAC */ if (m[1] >= 0xc0 && m[1] <= 0xcf && m[1] != 0xc4 && m[1] != 0xc8 && m[1] != 0xcc) { progressive = m[1] == 0xc2 || m[1] == 0xc6 || m[1] == 0xca || m[1] == 0xce; break; } - if (fseek (f, ((m[2] << 8) | m[3]) - 2, SEEK_CUR) != 0) + if (len < 2) + break; + if (m[1] == 0xe1 && *orientation == 0) + { + guchar *app1 = g_malloc (len - 2); + gboolean read = fread (app1, 1, len - 2, f) == len - 2; + + if (read) + *orientation = exif_orientation (app1, len - 2); + g_free (app1); + if (!read) + break; + } + else if (fseek (f, len - 2, SEEK_CUR) != 0) break; } fclose (f); @@ -377,6 +444,13 @@ decode (Job *job) if (gdk_pixbuf_loader_close (loader, NULL) && ok) { pixbuf = gdk_pixbuf_loader_get_pixbuf (loader); + if (pixbuf && job->orientation > 1 && + gdk_pixbuf_get_option (pixbuf, "orientation") == NULL) + { + gchar o[2] = { '0' + job->orientation, 0 }; + + gdk_pixbuf_set_option (pixbuf, "orientation", o); + } if (pixbuf) pixbuf = gdk_pixbuf_apply_embedded_orientation (pixbuf); } @@ -774,7 +848,7 @@ make_thumbnail (Job *job) gboolean fits; if (g_strcmp0 (name, "jpeg") == 0) - fits = pixels <= (jpeg_is_progressive (job->path) ? MAX_PIXELS : MAX_JPEG_PIXELS); + fits = pixels <= (jpeg_scan (job->path, &job->orientation) ? MAX_PIXELS : MAX_JPEG_PIXELS); else if (g_strcmp0 (name, "gif") == 0) fits = pixels <= MAX_PIXELS && job->size <= MAX_GIF_SIZE; else From cf6ff8c4840e956e544eee556e34e1a1c14a1810 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:36:03 +0200 Subject: [PATCH 154/249] filechooser: the preview names an image by its format where the system has no name for its file type, instead of showing ".jpg filetype" --- gtk/gtkfilechooserdefault.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 7cf606826..7287fd80d 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1327,7 +1327,24 @@ preview_panel_update (GtkFileChooserDefault *impl) { gchar *description = g_content_type_get_description (type); - g_string_append (text, description); + /* Where the system knows no name for the type, GIO makes one of + * the type itself (".jpg filetype" on Windows without that file + * type registered, "image/x-foo" elsewhere); an image gdk-pixbuf + * can read has the name of its format instead */ + if (description == NULL || strstr (description, type) != NULL) + { + gchar *path = g_file_get_path (impl->preview_file); + GdkPixbufFormat *format = path ? gdk_pixbuf_get_file_info (path, NULL, NULL) : NULL; + + if (format != NULL) + { + g_free (description); + description = gdk_pixbuf_format_get_description (format); + } + g_free (path); + } + if (description) + g_string_append (text, description); g_free (description); } if (!_gtk_file_info_consider_as_directory (info) && From abea33b3ee1c7f6b6cb925c74004b6d5481b9e45 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 155/249] gtktimeprivate.h: file times as 64-bit seconds where stat() has 32 (statx on Linux, the FILETIME of Windows, the unsigned reading of a 32-bit time elsewhere); rc files, icon themes, the icon cache and gtk-update-icon-cache use them, which after 2038 failed to see changes, gave up the icon cache, or left icons out of it --- gtk/Makefile.am | 1 + gtk/gtkiconcache.c | 46 ++----- gtk/gtkicontheme.c | 23 ++-- gtk/gtkrc.c | 13 +- gtk/gtktimeprivate.h | 296 ++++++++++++++++++++++++++++++++++++++++++ gtk/updateiconcache.c | 59 ++++++--- 6 files changed, 363 insertions(+), 75 deletions(-) create mode 100644 gtk/gtktimeprivate.h diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 21d9d4a50..425e4d1d8 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -390,6 +390,7 @@ gtk_private_h_sources = \ gtkfilesystem.h \ gtkfilesystemmodel.h \ gtkfilethumbnail.h \ + gtktimeprivate.h \ gtkiconcache.h \ gtkimcontextsimpleseqs.h \ gtkintl.h \ diff --git a/gtk/gtkiconcache.c b/gtk/gtkiconcache.c index 7a363f6ac..3df44fbff 100644 --- a/gtk/gtkiconcache.c +++ b/gtk/gtkiconcache.c @@ -22,6 +22,7 @@ #include "gtkdebug.h" #include "gtkiconcache.h" #include "gtkiconcachevalidator.h" +#include "gtktimeprivate.h" #include "gtkalias.h" #include @@ -101,9 +102,8 @@ _gtk_icon_cache_new_for_path (const gchar *path) GMappedFile *map; gchar *cache_filename; - gint fd = -1; - GStatBuf st; - GStatBuf path_st; + GtkStatBuf st; + GtkStatBuf path_st; /* Check if we have a cache file */ cache_filename = g_build_filename (path, "icon-theme.cache", NULL); @@ -111,44 +111,16 @@ _gtk_icon_cache_new_for_path (const gchar *path) GTK_NOTE (ICONTHEME, g_print ("look for cache in %s\n", path)); - if (g_stat (path, &path_st) < 0) + if (_gtk_stat (path, TRUE, &path_st) < 0) goto done; - /* Open the file and map it into memory */ - fd = g_open (cache_filename, O_RDONLY|_O_BINARY, 0); - - if (fd < 0) + /* The times as 64-bit seconds, where the stat of 32-bit Windows and + * of a 32-bit time_t ends in 2038 */ + if (_gtk_stat (cache_filename, TRUE, &st) < 0 || st.size < 4) goto done; - /* We need to know the correct function to call for the GStatBuf st we are using here, - * because GStatBuf may not be stat on Windows - */ -#ifdef G_OS_WIN32 - if (GLIB_CHECK_VERSION (2, 57, 3)) - { -# ifdef __MINGW64_VERSION_MAJOR -# ifdef _WIN64 -# define gtk_fstat _fstat64 -# else -# define gtk_fstat _fstat32 -# endif -# elif defined (_MSC_VER) && !defined (_WIN64) -# define gtk_fstat _fstat32 -# endif - } -#endif - -#ifndef gtk_fstat -#define gtk_fstat fstat -#endif - - if (gtk_fstat (fd, &st) < 0 || st.st_size < 4) - goto done; - -#undef gtk_fstat - /* Verify cache is uptodate */ - if ((gint64) st.st_mtime < (gint64) path_st.st_mtime) + if (st.mtime < path_st.mtime) { GTK_NOTE (ICONTHEME, g_print ("cache outdated\n")); @@ -189,8 +161,6 @@ _gtk_icon_cache_new_for_path (const gchar *path) done: g_free (cache_filename); - if (fd >= 0) - close (fd); return cache; } diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index f8ea498a3..b5533878c 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -46,6 +46,7 @@ #include "gtkmain.h" #include "gtksettings.h" #include "gtkprivate.h" +#include "gtktimeprivate.h" #include "gtkalias.h" #define DEFAULT_THEME_NAME "hicolor" @@ -928,7 +929,7 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name) GKeyFile *theme_file; GError *error = NULL; IconThemeDirMtime *dir_mtime; - GStatBuf stat_buf; + GtkStatBuf stat_buf; priv = icon_theme->priv; @@ -948,9 +949,9 @@ insert_theme (GtkIconTheme *icon_theme, const char *theme_name) dir_mtime->cache = NULL; dir_mtime->cache_tried = FALSE; dir_mtime->dir = path; - if (g_stat (path, &stat_buf) == 0 && S_ISDIR (stat_buf.st_mode)) + if (_gtk_stat (path, TRUE, &stat_buf) == 0 && S_ISDIR (stat_buf.mode)) { - dir_mtime->mtime = (gint64) stat_buf.st_mtime; + dir_mtime->mtime = stat_buf.mtime; dir_mtime->exists = TRUE; } else @@ -1078,7 +1079,7 @@ load_themes (GtkIconTheme *icon_theme) UnthemedIcon *unthemed_icon; IconSuffix old_suffix, new_suffix; IconThemeDirMtime *dir_mtime; - GStatBuf stat_buf; + GtkStatBuf stat_buf; priv = icon_theme->priv; @@ -1110,9 +1111,9 @@ load_themes (GtkIconTheme *icon_theme) dir_mtime->cache = NULL; dir_mtime->cache_tried = TRUE; - if (g_stat (dir, &stat_buf) != 0 || !S_ISDIR (stat_buf.st_mode)) + if (_gtk_stat (dir, TRUE, &stat_buf) != 0 || !S_ISDIR (stat_buf.mode)) continue; - dir_mtime->mtime = (gint64) stat_buf.st_mtime; + dir_mtime->mtime = stat_buf.mtime; dir_mtime->exists = TRUE; dir_mtime->cache = _gtk_icon_cache_new_for_path (dir); @@ -1973,7 +1974,7 @@ rescan_themes (GtkIconTheme *icon_theme) IconThemeDirMtime *dir_mtime; GList *d; int stat_res; - GStatBuf stat_buf; + GtkStatBuf stat_buf; priv = icon_theme->priv; @@ -1981,16 +1982,16 @@ rescan_themes (GtkIconTheme *icon_theme) { dir_mtime = d->data; - stat_res = g_stat (dir_mtime->dir, &stat_buf); + stat_res = _gtk_stat (dir_mtime->dir, TRUE, &stat_buf); /* dir mtime didn't change */ if (stat_res == 0 && dir_mtime->exists && - S_ISDIR (stat_buf.st_mode) && - dir_mtime->mtime == (gint64) stat_buf.st_mtime) + S_ISDIR (stat_buf.mode) && + dir_mtime->mtime == stat_buf.mtime) continue; /* didn't exist before, and still doesn't */ if (!dir_mtime->exists && - (stat_res != 0 || !S_ISDIR (stat_buf.st_mode))) + (stat_res != 0 || !S_ISDIR (stat_buf.mode))) continue; return TRUE; diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 11a97b141..94e71aee5 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -55,6 +55,7 @@ #include "gtkprivate.h" #include "gtksettings.h" #include "gtkwindow.h" +#include "gtktimeprivate.h" #include "gtkalias.h" @@ -1009,7 +1010,7 @@ gtk_rc_context_parse_one_file (GtkRcContext *context, gboolean reload) { GtkRcFile *rc_file; - GStatBuf statbuf; + GtkStatBuf statbuf; gint saved_priority; g_return_if_fail (filename != NULL); @@ -1042,11 +1043,11 @@ gtk_rc_context_parse_one_file (GtkRcContext *context, if (g_slist_find (current_files_stack, rc_file)) return; - if (!g_lstat (rc_file->canonical_name, &statbuf)) + if (!_gtk_stat (rc_file->canonical_name, FALSE, &statbuf)) { gint fd; - rc_file->mtime = (gint64) statbuf.st_mtime; + rc_file->mtime = statbuf.mtime; fd = g_open (rc_file->canonical_name, O_RDONLY, 0); if (fd < 0) @@ -1798,7 +1799,7 @@ gtk_rc_reparse_all_for_settings (GtkSettings *settings, GtkRcFile *rc_file; GSList *tmp_list; GtkRcContext *context; - GStatBuf statbuf; + GtkStatBuf statbuf; g_return_val_if_fail (GTK_IS_SETTINGS (settings), FALSE); @@ -1819,8 +1820,8 @@ gtk_rc_reparse_all_for_settings (GtkSettings *settings, if (!rc_file->is_string) { - if (!g_lstat (rc_file->name, &statbuf) && - ((gint64) statbuf.st_mtime != rc_file->mtime)) + if (!_gtk_stat (rc_file->name, FALSE, &statbuf) && + statbuf.mtime != rc_file->mtime) { mtime_modified = TRUE; break; diff --git a/gtk/gtktimeprivate.h b/gtk/gtktimeprivate.h new file mode 100644 index 000000000..f1f7c3e12 --- /dev/null +++ b/gtk/gtktimeprivate.h @@ -0,0 +1,296 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2026 the gtk2-ng authors + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* The time of now and the times of files as 64-bit seconds, also where + * time_t has 32 bits and the C library ends on 2038-01-19: + * + * - Linux: the kernel has had 64-bit calls for 32-bit programs since + * 4.11 (statx) and 5.1 (clock_gettime64, utimensat_time64); they are + * called directly where time_t is 32 bits, as Rust's standard + * library does, so a GTK+ built for an old 32-bit system still + * knows the time after 2038 when it runs on a newer kernel + * - Windows: GetFileAttributesEx and SetFileTime take the 64-bit + * FILETIME (since Windows 95/NT 4), where the stat of a 32-bit + * program has a 32-bit time + * - elsewhere, where time_t has 32 bits (Mac OS X on PowerPC and + * i386, FreeBSD on i386), a time past 2038 comes back negative; + * no clock and no file of a desktop goes back to 1901, so it is + * read as the unsigned number it was, which lasts until 2106 (the + * way NTP reads its 32-bit seconds) + * + * Where time_t has 64 bits, all of this is the plain GLib call. + * Header only, for libgtk, gtk-update-icon-cache and the modules. */ + +#ifndef __GTK_TIME_PRIVATE_H__ +#define __GTK_TIME_PRIVATE_H__ + +#include +#include +#include +#include +#include +#include + +#ifdef G_OS_WIN32 +#include +#else +#include +#include +#include +#endif + +#include + +#ifdef __linux__ +#include +#include +/* declared by unistd.h only with _DEFAULT_SOURCE or _GNU_SOURCE */ +extern long syscall (long number, ...); +#endif + +G_BEGIN_DECLS + +typedef struct +{ + guint mode; /* as st_mode */ + guint64 dev; /* as st_dev, 0 on Windows */ + guint64 ino; /* as st_ino, 0 on Windows */ + gint64 size; + gint64 mtime; /* seconds since 1970 */ +} GtkStatBuf; + +/* A time from a 32-bit time_t: see above */ +static inline gint64 +_gtk_time_from_time_t (gint64 t) +{ + if (sizeof (time_t) < 8 && t < 0) + t += G_GINT64_CONSTANT (1) << 32; + return t; +} + +/* g_get_real_time(), past 2038 also where time_t has 32 bits */ +static inline gint64 +_gtk_get_real_time (void) +{ + gint64 t; + +#if defined (__linux__) && defined (SYS_clock_gettime64) + if (sizeof (time_t) < 8) + { + struct { gint64 tv_sec; gint64 tv_nsec; } ts; /* struct __kernel_timespec */ + + if (syscall (SYS_clock_gettime64, CLOCK_REALTIME, &ts) == 0) + return ts.tv_sec * G_USEC_PER_SEC + ts.tv_nsec / 1000; + } +#endif + + t = g_get_real_time (); + if (sizeof (time_t) < 8 && t < 0) + t += (G_GINT64_CONSTANT (1) << 32) * G_USEC_PER_SEC; + return t; +} + +/* g_date_time_new_now_local(), past 2038 also where time_t has 32 bits */ +static inline GDateTime * +_gtk_date_time_new_now_local (void) +{ + return g_date_time_new_from_unix_local (_gtk_get_real_time () / G_USEC_PER_SEC); +} + +#ifdef G_OS_WIN32 +static inline gint64 +_gtk_time_from_filetime (const FILETIME *ft) +{ + guint64 t = ((guint64) ft->dwHighDateTime << 32) | ft->dwLowDateTime; + + /* 100 ns since 1601 */ + return (gint64) (t / 10000000) - G_GINT64_CONSTANT (11644473600); +} + +static inline void +_gtk_set_errno_from_win32 (DWORD error) +{ + switch (error) + { + case ERROR_FILE_NOT_FOUND: + case ERROR_PATH_NOT_FOUND: + case ERROR_INVALID_NAME: + case ERROR_INVALID_DRIVE: + errno = ENOENT; + break; + case ERROR_ACCESS_DENIED: + case ERROR_SHARING_VIOLATION: + errno = EACCES; + break; + default: + errno = EIO; + break; + } +} +#endif + +/* g_stat() or g_lstat() (@follow_links FALSE) for the fields in + * GtkStatBuf: 0 on success, -1 with errno set on failure */ +static inline int +_gtk_stat (const gchar *filename, + gboolean follow_links, + GtkStatBuf *buf) +{ +#ifdef G_OS_WIN32 + WIN32_FILE_ATTRIBUTE_DATA data; + wchar_t *wfilename; + BOOL ok; + + memset (buf, 0, sizeof *buf); + wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL); + if (wfilename == NULL) + { + errno = EINVAL; + return -1; + } + ok = GetFileAttributesExW (wfilename, GetFileExInfoStandard, &data); + g_free (wfilename); + if (!ok) + { + _gtk_set_errno_from_win32 (GetLastError ()); + return -1; + } + buf->mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? S_IFDIR | 0755 : S_IFREG | 0644; + buf->dev = 0; + buf->ino = 0; + buf->size = ((gint64) data.nFileSizeHigh << 32) | data.nFileSizeLow; + buf->mtime = _gtk_time_from_filetime (&data.ftLastWriteTime); + return 0; +#else + GStatBuf st; + int res; + + memset (buf, 0, sizeof *buf); + +#if defined (__linux__) && defined (SYS_statx) + static gboolean no_statx = FALSE; + + if (sizeof (time_t) < 8 && !no_statx) + { + guint64 stx[32]; /* struct statx, 256 bytes */ + guint16 mode; + guint32 major, minor; + + memset (stx, 0, sizeof stx); + /* AT_FDCWD, AT_SYMLINK_NOFOLLOW, STATX_BASIC_STATS */ + if (syscall (SYS_statx, -100, filename, follow_links ? 0 : 0x100, 0x7ffU, stx) == 0) + { + guchar *p = (guchar *) stx; + + memcpy (&mode, p + 28, 2); + memcpy (&buf->ino, p + 32, 8); + memcpy (&buf->size, p + 40, 8); + memcpy (&buf->mtime, p + 112, 8); + memcpy (&major, p + 136, 4); + memcpy (&minor, p + 140, 4); + buf->mode = mode; + buf->dev = makedev (major, minor); + return 0; + } + /* a kernel before 4.11, or a sandbox that does not let statx through */ + if (errno != ENOSYS && errno != EPERM) + return -1; + no_statx = TRUE; + } +#endif + + res = follow_links ? g_stat (filename, &st) : g_lstat (filename, &st); + if (res != 0) + return res; + buf->mode = st.st_mode; + buf->dev = st.st_dev; + buf->ino = st.st_ino; + buf->size = st.st_size; + buf->mtime = _gtk_time_from_time_t (st.st_mtime); + return 0; +#endif +} + +/* Sets the modification time of @filename and leaves its access time: + * 0 on success, -1 with errno set on failure */ +static inline int +_gtk_set_mtime (const gchar *filename, + gint64 mtime) +{ +#ifdef G_OS_WIN32 + wchar_t *wfilename = g_utf8_to_utf16 (filename, -1, NULL, NULL, NULL); + HANDLE h; + FILETIME ft; + guint64 t; + BOOL ok; + + if (wfilename == NULL) + { + errno = EINVAL; + return -1; + } + /* FILE_FLAG_BACKUP_SEMANTICS: folders too */ + h = CreateFileW (wfilename, FILE_WRITE_ATTRIBUTES, + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, + NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL); + g_free (wfilename); + if (h == INVALID_HANDLE_VALUE) + { + _gtk_set_errno_from_win32 (GetLastError ()); + return -1; + } + t = (guint64) (mtime + G_GINT64_CONSTANT (11644473600)) * 10000000; + ft.dwLowDateTime = (DWORD) t; + ft.dwHighDateTime = (DWORD) (t >> 32); + ok = SetFileTime (h, NULL, NULL, &ft); + if (!ok) + _gtk_set_errno_from_win32 (GetLastError ()); + CloseHandle (h); + return ok ? 0 : -1; +#else + struct stat st; + struct utimbuf times; + +#if defined (__linux__) && defined (SYS_utimensat_time64) + if (sizeof (time_t) < 8) + { + /* struct __kernel_timespec; the access time is left alone */ + struct { gint64 tv_sec; gint64 tv_nsec; } ts[2] = { + { 0, (1L << 30) - 2L }, /* UTIME_OMIT */ + { mtime, 0 } + }; + + if (syscall (SYS_utimensat_time64, -100, filename, ts, 0) == 0) + return 0; + if (errno != ENOSYS && errno != EPERM) + return -1; + } +#endif + + if (stat (filename, &st) != 0) + return -1; + times.actime = st.st_atime; + times.modtime = (time_t) mtime; + return utime (filename, ×); +#endif +} + +G_END_DECLS + +#endif /* __GTK_TIME_PRIVATE_H__ */ diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 70115e6b6..20a88a14d 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -49,6 +49,7 @@ #include "gtkpixdatautils.h" #include #include "gtkiconcachevalidator.h" +#include "gtktimeprivate.h" static gboolean force_update = FALSE; static gboolean ignore_theme_index = FALSE; @@ -76,19 +77,36 @@ static gchar *var_name = "-"; #define ALIGN_VALUE(this, boundary) \ (( ((unsigned long)(this)) + (((unsigned long)(boundary)) -1)) & (~(((unsigned long)(boundary))-1))) +/* The times are 64-bit seconds (gtktimeprivate.h): with the stat of a + * 32-bit time_t or of 32-bit Windows, a theme changed after 2038 could + * not be checked or got no cache at all */ #ifdef HAVE_FTW_H #include -static struct stat cache_stat; +static gint64 cache_mtime; static gboolean cache_up_to_date; static int check_dir_mtime (const char *dir, const struct stat *sb, int tf) { - if (tf != FTW_NS && - (gint64) sb->st_mtime > (gint64) cache_stat.st_mtime) + gint64 mtime; + + if (tf == FTW_NS) + { + /* the stat of ftw() failed, as it does for a time it cannot give + * in a 32-bit time_t */ + GtkStatBuf buf; + + if (_gtk_stat (dir, TRUE, &buf) != 0) + return 0; + mtime = buf.mtime; + } + else + mtime = _gtk_time_from_time_t (sb->st_mtime); + + if (mtime > cache_mtime) { cache_up_to_date = FALSE; /* stop tree walk */ @@ -103,9 +121,10 @@ static int check_dir_mtime (const char *dir, { gchar *cache_path; gint retval; + GtkStatBuf cache_stat; cache_path = g_build_filename (path, CACHE_NAME, NULL); - retval = g_stat (cache_path, &cache_stat); + retval = _gtk_stat (cache_path, TRUE, &cache_stat); g_free (cache_path); if (retval < 0) @@ -114,6 +133,7 @@ static int check_dir_mtime (const char *dir, return FALSE; } + cache_mtime = cache_stat.mtime; cache_up_to_date = TRUE; ftw (path, check_dir_mtime, 20); @@ -126,11 +146,11 @@ static int check_dir_mtime (const char *dir, gboolean is_cache_up_to_date (const gchar *path) { - GStatBuf path_stat, cache_stat; + GtkStatBuf path_stat, cache_stat; gchar *cache_path; int retval; - retval = g_stat (path, &path_stat); + retval = _gtk_stat (path, TRUE, &path_stat); if (retval < 0) { @@ -140,7 +160,7 @@ is_cache_up_to_date (const gchar *path) } cache_path = g_build_filename (path, CACHE_NAME, NULL); - retval = g_stat (cache_path, &cache_stat); + retval = _gtk_stat (cache_path, TRUE, &cache_stat); g_free (cache_path); if (retval < 0) @@ -150,7 +170,7 @@ is_cache_up_to_date (const gchar *path) } /* Check mtime */ - return (gint64) cache_stat.st_mtime >= (gint64) path_stat.st_mtime; + return cache_stat.mtime >= path_stat.mtime; } #endif /* !HAVE_FTW_H */ @@ -660,7 +680,7 @@ scan_directory (const gchar *base_path, for (i = 0; i < names->len; i++) { gchar *path; - GStatBuf st; + GtkStatBuf st; int flags = 0; Image *image; gchar *basename, *dot; @@ -668,13 +688,15 @@ scan_directory (const gchar *base_path, name = g_ptr_array_index (names, i); path = g_build_filename (dir_path, name, NULL); - if (g_stat (path, &st) != 0) + /* not g_stat(): with a 32-bit time_t it fails for files changed + * after 2038, which then were left out of the cache */ + if (_gtk_stat (path, TRUE, &st) != 0) { g_free (path); continue; } - if (S_ISDIR (st.st_mode)) + if (S_ISDIR (st.mode)) { gchar *subsubdir; @@ -687,7 +709,7 @@ scan_directory (const gchar *base_path, g_free (subsubdir); } /* ignore images in the toplevel directory */ - else if (subdir != NULL && S_ISREG (st.st_mode)) + else if (subdir != NULL && S_ISREG (st.mode)) { if (g_str_has_suffix (name, ".png")) flags |= HAS_SUFFIX_PNG; @@ -1510,8 +1532,7 @@ build_cache (const gchar *path) #endif GHashTable *files; FILE *cache; - GStatBuf path_stat, cache_stat; - struct utimbuf utime_buf; + GtkStatBuf cache_stat; GList *directories = NULL; int fd; int retry_count = 0; @@ -1635,15 +1656,13 @@ opentmp: g_unlink (bak_cache_path); #endif - /* Update time */ + /* Update time: the folder gets the time of the cache, which renaming + * the cache into it made older */ /* FIXME: What do do if an error occurs here? */ - if (g_stat (path, &path_stat) < 0 || - g_stat (cache_path, &cache_stat)) + if (_gtk_stat (cache_path, TRUE, &cache_stat) != 0) exit (1); - utime_buf.actime = path_stat.st_atime; - utime_buf.modtime = cache_stat.st_mtime; - g_utime (path, &utime_buf); + _gtk_set_mtime (path, cache_stat.mtime); if (!quiet) g_printerr (_("Cache file created successfully.\n")); From abb3c12457396313a2acf73be15df79c33d1ebe9 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 156/249] the time of now for the age of recent items, Today and Yesterday in the file chooser, the day of the calendar and the CUPS print time also after 2038 where time_t has 32 bits, from clock_gettime64 on Linux --- gtk/gtkcalendar.c | 3 ++- gtk/gtkfilechooserdefault.c | 5 +++-- gtk/gtkrecentmanager.c | 5 +++-- modules/printbackends/cups/gtkprintbackendcups.c | 3 ++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 2e453db04..ecd860825 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -54,6 +54,7 @@ #include "gtkmarshalers.h" #include "gtktooltip.h" #include "gtkprivate.h" +#include "gtktimeprivate.h" #include "gdk/gdkkeysyms.h" #include "gtkalias.h" @@ -766,7 +767,7 @@ gtk_calendar_init (GtkCalendar *calendar) } /* Set defaults */ - now_dt = g_date_time_new_now_local (); + now_dt = _gtk_date_time_new_now_local (); if (now_dt) { calendar->month = g_date_time_get_month (now_dt) - 1; diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 7287fd80d..8c1e8fb54 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -57,6 +57,7 @@ #include "gtkmountoperation.h" #include "gtkpathbar.h" #include "gtkprivate.h" +#include "gtktimeprivate.h" #include "gtkradiobutton.h" #include "gtkrecentfilter.h" #include "gtkrecentmanager.h" @@ -6365,7 +6366,7 @@ file_list_update_fixed_sizing (GtkFileChooserDefault *impl) /* Date column: today, yesterday, every weekday and one date per month, * formatted exactly like the column does. */ texts = g_ptr_array_new_with_free_func (g_free); - now = g_date_time_new_now_local (); + now = _gtk_date_time_new_now_local (); now_secs = g_date_time_to_unix (now); for (i = 0; i < 7; i++) g_ptr_array_add (texts, my_g_format_time_for_display (now_secs - i * 24 * 3600)); @@ -9632,7 +9633,7 @@ my_g_format_time_for_display (gint64 secs) (GDateMonth) g_date_time_get_month (mtime_dt), g_date_time_get_year (mtime_dt)); - now_dt = g_date_time_new_now_local (); + now_dt = _gtk_date_time_new_now_local (); if (now_dt == NULL) { g_date_time_unref (mtime_dt); diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index c4c2ba496..b3a33a02a 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -39,6 +39,7 @@ #include "gtkicontheme.h" #include "gtktypebuiltins.h" #include "gtkprivate.h" +#include "gtktimeprivate.h" #include "gtkmarshalers.h" #include "gtkalias.h" @@ -1749,7 +1750,7 @@ gtk_recent_manager_clamp_to_age (GtkRecentManager *manager, return; /* not time (), which a 32-bit time_t cannot give after 2038 */ - now = g_get_real_time () / G_USEC_PER_SEC; + now = _gtk_get_real_time () / G_USEC_PER_SEC; uris = g_bookmark_file_get_uris (priv->recent_items, &n_uris); @@ -2663,7 +2664,7 @@ gtk_recent_info_get_age (GtkRecentInfo *info) g_return_val_if_fail (info != NULL, -1); - now = g_get_real_time () / G_USEC_PER_SEC; + now = _gtk_get_real_time () / G_USEC_PER_SEC; if (!recent_time_get_days_elapsed (now, info->modified, &retval)) return -1; diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c index f94e163b3..3c27134ab 100644 --- a/modules/printbackends/cups/gtkprintbackendcups.c +++ b/modules/printbackends/cups/gtkprintbackendcups.c @@ -55,6 +55,7 @@ #include #include #include +#include #include "gtkprintbackendcups.h" #include "gtkprintercups.h" @@ -5909,7 +5910,7 @@ localtime_to_utctime (const char *local_time) /* The offset of local time now, from GDateTime: time () has no * answer after 2038 where time_t is 32 bits */ - now = g_date_time_new_now_local (); + now = _gtk_date_time_new_now_local (); if (now == NULL) return NULL; offset = g_date_time_get_utc_offset (now) / G_USEC_PER_SEC; From 721715ca20cdd6d7a2e5e852fd501d06f948307b Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 157/249] icontheme, gdk: the pause between two looks for changed themes, between two checks for the window manager and between two flushes on Quartz is measured with the monotonic clock --- gdk/quartz/gdkdrawable-quartz.c | 14 ++++++++------ gdk/x11/gdkevents-x11.c | 6 ++++-- gtk/gtkicontheme.c | 8 ++++---- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/gdk/quartz/gdkdrawable-quartz.c b/gdk/quartz/gdkdrawable-quartz.c index eb520f08d..3193e2984 100644 --- a/gdk/quartz/gdkdrawable-quartz.c +++ b/gdk/quartz/gdkdrawable-quartz.c @@ -844,14 +844,16 @@ gdk_quartz_drawable_get_context (GdkDrawable *drawable, void _gdk_quartz_drawable_flush (GdkDrawable *drawable) { - static struct timeval prev_tv; + /* intervals on the monotonic clock: setting the clock, or a 32-bit + * time_t after 2038, does not stop the flushing */ + static gint64 prev_time; static gint intervals[4]; static gint index; - struct timeval tv; + gint64 now; gint ms; - gettimeofday (&tv, NULL); - ms = (tv.tv_sec - prev_tv.tv_sec) * 1000 + (tv.tv_usec - prev_tv.tv_usec) / 1000; + now = g_get_monotonic_time (); + ms = (gint) MIN ((now - prev_time) / 1000, G_MAXINT / 8); intervals[index++ % 4] = ms; if (drawable) @@ -868,11 +870,11 @@ _gdk_quartz_drawable_flush (GdkDrawable *drawable) [window_impl->toplevel flushWindow]; } - prev_tv = tv; + prev_time = now; } } else - prev_tv = tv; + prev_time = now; } void diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c index 1d427a15b..227b477c7 100644 --- a/gdk/x11/gdkevents-x11.c +++ b/gdk/x11/gdkevents-x11.c @@ -2715,9 +2715,11 @@ fetch_net_wm_check_window (GdkScreen *screen) g_return_if_fail (GDK_DISPLAY_X11 (display)->trusted_client); - now_sec = g_get_real_time () / G_USEC_PER_SEC; + now_sec = g_get_monotonic_time () / G_USEC_PER_SEC; - if (ABS (now_sec - screen_x11->last_wmspec_check_time) < 15) + /* 0: not checked yet, or to be checked again */ + if (screen_x11->last_wmspec_check_time != 0 && + ABS (now_sec - screen_x11->last_wmspec_check_time) < 15) return; /* we've checked recently */ screen_x11->last_wmspec_check_time = now_sec; diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index b5533878c..3c1c4ed95 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -99,7 +99,7 @@ struct _GtkIconThemePrivate */ GdkScreen *screen; - /* time when we last stat:ed for theme changes */ + /* time when we last stat:ed for theme changes (monotonic seconds) */ gint64 last_stat_time; GList *dir_mtimes; @@ -1187,7 +1187,7 @@ load_themes (GtkIconTheme *icon_theme) priv->themes_valid = TRUE; - priv->last_stat_time = g_get_real_time () / G_USEC_PER_SEC; + priv->last_stat_time = g_get_monotonic_time () / G_USEC_PER_SEC; } void @@ -1237,7 +1237,7 @@ ensure_valid_themes (GtkIconTheme *icon_theme) if (priv->themes_valid) { - now = g_get_real_time () / G_USEC_PER_SEC; + now = g_get_monotonic_time () / G_USEC_PER_SEC; if (ABS (now - priv->last_stat_time) > 5 && rescan_themes (icon_theme)) @@ -1997,7 +1997,7 @@ rescan_themes (GtkIconTheme *icon_theme) return TRUE; } - priv->last_stat_time = g_get_real_time () / G_USEC_PER_SEC; + priv->last_stat_time = g_get_monotonic_time () / G_USEC_PER_SEC; return FALSE; } From 0420ad70ab937ff0953afb01a57165b19b413a66 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 158/249] fileselection: folders are read and recognised by their 64-bit times, so a folder changed after 2038 still opens where time_t has 32 bits --- gtk/gtkfilesel.c | 57 ++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/gtk/gtkfilesel.c b/gtk/gtkfilesel.c index e76d91429..c925b9d62 100644 --- a/gtk/gtkfilesel.c +++ b/gtk/gtkfilesel.c @@ -86,6 +86,7 @@ #define WANT_HPANED 1 #include "gtkhpaned.h" +#include "gtktimeprivate.h" #include "gtkalias.h" @@ -156,9 +157,9 @@ typedef struct _PossibleCompletion PossibleCompletion; struct _CompletionDirSent { #ifndef G_PLATFORM_WIN32 - ino_t inode; + guint64 inode; gint64 mtime; - dev_t device; + guint64 device; #endif gint entry_count; @@ -329,7 +330,7 @@ static CompletionDir* open_ref_dir (gchar* text_to_complete, CompletionState* cmpl_state); #ifndef G_PLATFORM_WIN32 static gboolean check_dir (gchar *dir_name, - GStatBuf *result, + GtkStatBuf *result, gboolean *stat_subdirs); #endif static CompletionDir* open_dir (gchar* dir_name, @@ -341,11 +342,11 @@ static CompletionDir* open_user_dir (const gchar* text_to_complete, static CompletionDir* open_relative_dir (gchar* dir_name, CompletionDir* dir, CompletionState *cmpl_state); static CompletionDirSent* open_new_dir (gchar* dir_name, - GStatBuf *sbuf, + GtkStatBuf *sbuf, gboolean stat_subdirs); static gint correct_dir_fullname (CompletionDir* cmpl_dir); static gint correct_parent (CompletionDir* cmpl_dir, - GStatBuf *sbuf); + GtkStatBuf *sbuf); #ifndef G_PLATFORM_WIN32 static gchar* find_parent_dir_fullname (gchar* dirname); #endif @@ -2989,7 +2990,7 @@ open_relative_dir (gchar *dir_name, /* after the cache lookup fails, really open a new directory */ static CompletionDirSent* open_new_dir (gchar *dir_name, - GStatBuf *sbuf, + GtkStatBuf *sbuf, gboolean stat_subdirs) { CompletionDirSent *sent; @@ -2999,15 +3000,15 @@ open_new_dir (gchar *dir_name, gint entry_count = 0; gint n_entries = 0; gint i; - GStatBuf ent_sbuf; + GtkStatBuf ent_sbuf; GString *path; gchar *sys_dir_name; sent = g_new (CompletionDirSent, 1); #ifndef G_PLATFORM_WIN32 - sent->mtime = (gint64) sbuf->st_mtime; - sent->inode = sbuf->st_ino; - sent->device = sbuf->st_dev; + sent->mtime = sbuf->mtime; + sent->inode = sbuf->ino; + sent->device = sbuf->dev; #endif path = g_string_sized_new (2*MAXPATHLEN + 10); @@ -3079,7 +3080,7 @@ open_new_dir (gchar *dir_name, if (stat_subdirs) { /* Here we know path->str is a "system charset" string */ - if (g_stat (path->str, &ent_sbuf) >= 0 && S_ISDIR (ent_sbuf.st_mode)) + if (_gtk_stat (path->str, TRUE, &ent_sbuf) >= 0 && S_ISDIR (ent_sbuf.mode)) sent->entries[n_entries].is_dir = TRUE; else /* stat may fail, and we don't mind, since it could be a @@ -3106,7 +3107,7 @@ open_new_dir (gchar *dir_name, static gboolean check_dir (gchar *dir_name, - GStatBuf *result, + GtkStatBuf *result, gboolean *stat_subdirs) { /* A list of directories that we know only contain other directories. @@ -3117,7 +3118,7 @@ check_dir (gchar *dir_name, static struct { const gchar name[5]; gboolean present; - GStatBuf statbuf; + GtkStatBuf statbuf; } no_stat_dirs[] = { { "/afs", FALSE, { 0 } }, { "/net", FALSE, { 0 } } @@ -3133,7 +3134,7 @@ check_dir (gchar *dir_name, initialized = TRUE; for (i = 0; i < n_no_stat_dirs; i++) { - if (g_stat (no_stat_dirs[i].name, &no_stat_dirs[i].statbuf) == 0) + if (_gtk_stat (no_stat_dirs[i].name, TRUE, &no_stat_dirs[i].statbuf) == 0) no_stat_dirs[i].present = TRUE; } } @@ -3145,7 +3146,7 @@ check_dir (gchar *dir_name, return FALSE; } - if (g_stat (sys_dir_name, result) < 0) + if (_gtk_stat (sys_dir_name, TRUE, result) < 0) { g_free (sys_dir_name); cmpl_errno = errno; @@ -3157,8 +3158,8 @@ check_dir (gchar *dir_name, for (i = 0; i < n_no_stat_dirs; i++) { if (no_stat_dirs[i].present && - (no_stat_dirs[i].statbuf.st_dev == result->st_dev) && - (no_stat_dirs[i].statbuf.st_ino == result->st_ino)) + (no_stat_dirs[i].statbuf.dev == result->dev) && + (no_stat_dirs[i].statbuf.ino == result->ino)) { *stat_subdirs = FALSE; break; @@ -3176,7 +3177,7 @@ open_dir (gchar *dir_name, CompletionState *cmpl_state) { #ifndef G_PLATFORM_WIN32 - GStatBuf sbuf; + GtkStatBuf sbuf; gboolean stat_subdirs; GList* cdsl; #endif @@ -3192,9 +3193,9 @@ open_dir (gchar *dir_name, { sent = cdsl->data; - if (sent->inode == sbuf.st_ino && - sent->mtime == (gint64) sbuf.st_mtime && - sent->device == sbuf.st_dev) + if (sent->inode == sbuf.ino && + sent->mtime == sbuf.mtime && + sent->device == sbuf.dev) return attach_dir (sent, dir_name, cmpl_state); cdsl = cdsl->next; @@ -3242,7 +3243,7 @@ correct_dir_fullname (CompletionDir* cmpl_dir) gint length = strlen (cmpl_dir->fullname); gchar *first_slash = strchr (cmpl_dir->fullname, G_DIR_SEPARATOR); gchar *sys_filename; - GStatBuf sbuf; + GtkStatBuf sbuf; /* Does it end with /. (\.) ? */ if (length >= 2 && @@ -3287,7 +3288,7 @@ correct_dir_fullname (CompletionDir* cmpl_dir) return FALSE; } - if (g_stat (sys_filename, &sbuf) < 0) + if (_gtk_stat (sys_filename, TRUE, &sbuf) < 0) { g_free (sys_filename); cmpl_errno = errno; @@ -3321,7 +3322,7 @@ correct_dir_fullname (CompletionDir* cmpl_dir) return FALSE; } - if (g_stat (sys_filename, &sbuf) < 0) + if (_gtk_stat (sys_filename, TRUE, &sbuf) < 0) { g_free (sys_filename); cmpl_errno = errno; @@ -3342,9 +3343,9 @@ correct_dir_fullname (CompletionDir* cmpl_dir) static gint correct_parent (CompletionDir *cmpl_dir, - GStatBuf *sbuf) + GtkStatBuf *sbuf) { - GStatBuf parbuf; + GtkStatBuf parbuf; gchar *last_slash; gchar *first_slash; #ifndef G_PLATFORM_WIN32 @@ -3379,7 +3380,7 @@ correct_parent (CompletionDir *cmpl_dir, return FALSE; } - if (g_stat (sys_filename, &parbuf) < 0) + if (_gtk_stat (sys_filename, TRUE, &parbuf) < 0) { g_free (sys_filename); cmpl_errno = errno; @@ -3390,7 +3391,7 @@ correct_parent (CompletionDir *cmpl_dir, g_free (sys_filename); #ifndef G_PLATFORM_WIN32 /* No inode numbers on Win32 */ - if (parbuf.st_ino == sbuf->st_ino && parbuf.st_dev == sbuf->st_dev) + if (parbuf.ino == sbuf->ino && parbuf.dev == sbuf->dev) /* it wasn't a link */ return TRUE; From 679dad58cefcdb5724410ae5d3b7f009fdf2029b Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 159/249] search: the simple search walks the folders itself instead of with nftw(), which did not go into folders changed after 2038 where time_t has 32 bits and which Windows does not have, where the search found nothing --- gtk/gtksearchenginesimple.c | 128 ++++++++++++++---------------------- 1 file changed, 49 insertions(+), 79 deletions(-) diff --git a/gtk/gtksearchenginesimple.c b/gtk/gtksearchenginesimple.c index 9dbb68c76..5e73fbe88 100644 --- a/gtk/gtksearchenginesimple.c +++ b/gtk/gtksearchenginesimple.c @@ -22,22 +22,9 @@ #include "config.h" -/* these must be defined even when HAVE_GNU_FTW is not defined - * because (really) old versions of GNU libc have ftw.h but do - * export ftw() and friends only if _XOPEN_SOURCE and _GNU_SOURCE - * are defined. see bug #444097. - */ -#if !defined(_XOPEN_SOURCE) && (!defined(__sun) || __STDC_VERSION__ - 0 < 199901L) -#define _XOPEN_SOURCE 500 -#endif -#define _GNU_SOURCE - -#ifdef HAVE_FTW_H -#include -#endif - #include "gtksearchenginesimple.h" #include "gtkprivate.h" +#include "gtktimeprivate.h" #include @@ -193,99 +180,82 @@ send_batch (SearchThreadData *data) data->uri_hits = NULL; } -static GPrivate search_thread_data = G_PRIVATE_INIT (NULL); - -#ifdef HAVE_FTW_H -static int -search_visit_func (const char *fpath, - const struct stat *sb, - int typeflag, - struct FTW *ftwbuf) +/* Notes @path as a hit if its name has all the words; a hidden name + * (starting with a dot) is never a hit */ +static void +search_visit (SearchThreadData *data, + const gchar *path, + const gchar *name) { - SearchThreadData *data; - gint i; - const gchar *name; gchar *lower_name; - gchar *uri; - gboolean hit; - gboolean is_hidden; + gboolean hit = TRUE; + gint i; - data = (SearchThreadData*)g_private_get (&search_thread_data); - if (data->cancelled) -#ifdef HAVE_GNU_FTW - return FTW_STOP; -#else - return 1; -#endif /* HAVE_GNU_FTW */ - - name = strrchr (fpath, '/'); - if (name) - name++; + if (*name == '.') + hit = FALSE; else - name = fpath; - - is_hidden = *name == '.'; - - hit = FALSE; - - if (!is_hidden) { lower_name = g_ascii_strdown (name, -1); - - hit = TRUE; for (i = 0; data->words[i] != NULL; i++) - { - if (strstr (lower_name, data->words[i]) == NULL) - { - hit = FALSE; - break; - } - } + if (strstr (lower_name, data->words[i]) == NULL) + { + hit = FALSE; + break; + } g_free (lower_name); } if (hit) - { - uri = g_filename_to_uri (fpath, NULL, NULL); - data->uri_hits = g_list_prepend (data->uri_hits, uri); - } + data->uri_hits = g_list_prepend (data->uri_hits, g_filename_to_uri (path, NULL, NULL)); data->n_processed_files++; if (data->n_processed_files > BATCH_SIZE) send_batch (data); - -#ifdef HAVE_GNU_FTW - if (is_hidden) - return FTW_SKIP_SUBTREE; - else - return FTW_CONTINUE; -#else - return 0; -#endif /* HAVE_GNU_FTW */ } -#endif /* HAVE_FTW_H */ +/* Walks the folders below the search folder, without following links + * and leaving out hidden folders, as nftw() did with FTW_PHYS and + * FTW_ACTIONRETVAL. Its own walk rather than nftw(): that one has no + * Windows, and with a 32-bit time_t its stat() fails for anything + * changed after 2038, whose folders it then did not go into. */ static gpointer search_thread_func (gpointer user_data) { -#ifdef HAVE_FTW_H - SearchThreadData *data; + SearchThreadData *data = user_data; + GPtrArray *todo = g_ptr_array_new (); + gchar *base = g_path_get_basename (data->path); - data = user_data; + search_visit (data, data->path, base); + g_free (base); + g_ptr_array_add (todo, g_strdup (data->path)); - g_private_set (&search_thread_data, data); + while (todo->len > 0) + { + gchar *dir_path = g_ptr_array_remove_index (todo, todo->len - 1); + GDir *dir = data->cancelled ? NULL : g_dir_open (dir_path, 0, NULL); + const gchar *name; - nftw (data->path, search_visit_func, 20, -#ifdef HAVE_GNU_FTW - FTW_ACTIONRETVAL | -#endif - FTW_PHYS); + while (dir != NULL && !data->cancelled && (name = g_dir_read_name (dir)) != NULL) + { + gchar *path = g_build_filename (dir_path, name, NULL); + GtkStatBuf buf; + + search_visit (data, path, name); + if (*name != '.' && _gtk_stat (path, FALSE, &buf) == 0 && S_ISDIR (buf.mode)) + g_ptr_array_add (todo, path); + else + g_free (path); + } + if (dir != NULL) + g_dir_close (dir); + g_free (dir_path); + } + g_ptr_array_free (todo, TRUE); send_batch (data); gdk_threads_add_idle (search_thread_done_idle, data); -#endif /* HAVE_FTW_H */ return NULL; } From b85626343b97065ed69b2a6c9fcb1796798de40f Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 160/249] recentmanager: gtk_recent_info_exists() asks whether the file is there instead of for its times, which stat() cannot give for files changed after 2038 where time_t has 32 bits --- gtk/gtkrecentmanager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index b3a33a02a..2f494e837 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -2408,7 +2408,6 @@ gboolean gtk_recent_info_exists (GtkRecentInfo *info) { gchar *filename; - GStatBuf stat_buf; gboolean retval = FALSE; g_return_val_if_fail (info != NULL, FALSE); @@ -2420,8 +2419,9 @@ gtk_recent_info_exists (GtkRecentInfo *info) filename = g_filename_from_uri (info->uri, NULL, NULL); if (filename) { - if (g_stat (filename, &stat_buf) == 0) - retval = TRUE; + /* not g_stat(): it fails for files changed after 2038 where + * time_t has 32 bits, and the times are not needed here */ + retval = g_file_test (filename, G_FILE_TEST_EXISTS); g_free (filename); } From d89e5651ecc3c438511a2e87a8395baccc1bfba7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 161/249] thumbnails: the device of a FUSE mount is looked up with the 64-bit stat, so a folder changed after 2038 is still known as local --- gtk/gtkfilethumbnail.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkfilethumbnail.c b/gtk/gtkfilethumbnail.c index d2115aa22..b9582b9af 100644 --- a/gtk/gtkfilethumbnail.c +++ b/gtk/gtkfilethumbnail.c @@ -29,6 +29,7 @@ #include #include "gtkfilethumbnail.h" +#include "gtktimeprivate.h" #ifdef G_OS_WIN32 #include @@ -227,9 +228,9 @@ static const gchar *const remote_types[] = { static gboolean local_fuse_mount (const gchar *path) { - GStatBuf buf; + GtkStatBuf buf; - return g_stat (path, &buf) == 0 && major (buf.st_dev) != 0; + return _gtk_stat (path, TRUE, &buf) == 0 && major (buf.dev) != 0; } #endif #endif From f74a593f9175aa869a00314ccb3664a39d49bced Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:50 +0200 Subject: [PATCH 162/249] cups: the size of the document to send is taken from the end of the file where fstat() fails, as it does for a file written after 2038 where time_t has 32 bits --- modules/printbackends/cups/gtkcupsutils.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/modules/printbackends/cups/gtkcupsutils.c b/modules/printbackends/cups/gtkcupsutils.c index f96b7a5b5..872004865 100644 --- a/modules/printbackends/cups/gtkcupsutils.c +++ b/modules/printbackends/cups/gtkcupsutils.c @@ -745,6 +745,8 @@ _post_send (GtkCupsRequest *request) { gchar length[255]; struct stat data_info; + gint fd; + off_t size; GTK_NOTE (PRINTING, g_print ("CUPS Backend: %s\n", G_STRFUNC)); @@ -753,8 +755,19 @@ _post_send (GtkCupsRequest *request) if (request->data_io != NULL) { - fstat (g_io_channel_unix_get_fd (request->data_io), &data_info); - sprintf (length, "%lu", (unsigned long) (ippLength (request->ipp_request) + data_info.st_size)); + /* fstat() fails for a file written after 2038 where time_t has + * 32 bits; the end of the file tells its size as well */ + fd = g_io_channel_unix_get_fd (request->data_io); + if (fstat (fd, &data_info) == 0) + size = data_info.st_size; + else + { + off_t here = lseek (fd, 0, SEEK_CUR); + + size = lseek (fd, 0, SEEK_END); + lseek (fd, here, SEEK_SET); + } + sprintf (length, "%lu", (unsigned long) (ippLength (request->ipp_request) + size)); } else sprintf (length, "%lu", (unsigned long) ippLength (request->ipp_request)); From e5425116ec0fc6e539e1504664eb920a534bce9c Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:51 +0200 Subject: [PATCH 163/249] gdk/directfb: event times from the 64-bit wall clock instead of the GTimeVal, whose glong ends in 2038 on 32-bit systems --- gdk/directfb/gdkevents-directfb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gdk/directfb/gdkevents-directfb.c b/gdk/directfb/gdkevents-directfb.c index fd32145ed..2a2fb2a29 100644 --- a/gdk/directfb/gdkevents-directfb.c +++ b/gdk/directfb/gdkevents-directfb.c @@ -366,11 +366,9 @@ gdk_event_send_client_message_for_display (GdkDisplay *display, guint32 gdk_directfb_get_time (void) { - GTimeVal tv; - - g_get_current_time (&tv); - - return (guint32) tv.tv_sec * 1000 + tv.tv_usec / 1000; + /* milliseconds of the wall clock, as before, from the 64-bit time + * instead of the GTimeVal whose glong ends in 2038 on 32-bit systems */ + return (guint32) (g_get_real_time () / 1000); } void From 1c59cdb971e16a06e208681627bdfbc28dfc8d45 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 13:51:51 +0200 Subject: [PATCH 164/249] recentmanager: gtk_recent_info_get_added_unix(), _modified_unix(), _visited_unix() and gtk_recent_info_get_application_info_unix(), the times as 64-bit seconds next to the time_t ones, which end in 2038 where time_t has 32 bits --- gtk/gtk.symbols | 4 ++ gtk/gtkrecentchooserutils.c | 4 +- gtk/gtkrecentchooserutils.h | 2 - gtk/gtkrecentmanager.c | 98 ++++++++++++++++++++++++++++++++++--- gtk/gtkrecentmanager.h | 8 +++ 5 files changed, 106 insertions(+), 10 deletions(-) diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index e69fe5b79..bd72030b7 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -3630,10 +3630,14 @@ gtk_recent_info_get_display_name gtk_recent_info_get_description gtk_recent_info_get_mime_type gtk_recent_info_get_added +gtk_recent_info_get_added_unix gtk_recent_info_get_modified +gtk_recent_info_get_modified_unix gtk_recent_info_get_visited +gtk_recent_info_get_visited_unix gtk_recent_info_get_private_hint gtk_recent_info_get_application_info +gtk_recent_info_get_application_info_unix gtk_recent_info_get_applications G_GNUC_MALLOC gtk_recent_info_last_application G_GNUC_MALLOC gtk_recent_info_has_application diff --git a/gtk/gtkrecentchooserutils.c b/gtk/gtkrecentchooserutils.c index 4f66463ae..ea8cbbb35 100644 --- a/gtk/gtkrecentchooserutils.c +++ b/gtk/gtkrecentchooserutils.c @@ -306,8 +306,8 @@ sort_recent_items_mru (GtkRecentInfo *a, /* compared, not subtracted: the difference of two times does not fit * into the gint returned when they are more than 68 years apart */ - time_a = _gtk_recent_info_get_modified_time (a); - time_b = _gtk_recent_info_get_modified_time (b); + time_a = gtk_recent_info_get_modified_unix (a); + time_b = gtk_recent_info_get_modified_unix (b); return time_b < time_a ? -1 : (time_b > time_a ? 1 : 0); } diff --git a/gtk/gtkrecentchooserutils.h b/gtk/gtkrecentchooserutils.h index 6ca7d36b1..916c22091 100644 --- a/gtk/gtkrecentchooserutils.h +++ b/gtk/gtkrecentchooserutils.h @@ -57,8 +57,6 @@ void _gtk_recent_chooser_set_delegate (GtkRecentChooser *receiver, GQuark _gtk_recent_chooser_delegate_get_quark (void); -gint64 _gtk_recent_info_get_modified_time (GtkRecentInfo *info); - G_END_DECLS #endif /* __GTK_RECENT_CHOOSER_UTILS_H__ */ diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index 2f494e837..ad2fb2154 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -33,7 +33,6 @@ #include #include "gtkrecentmanager.h" -#include "gtkrecentchooserutils.h" #include "gtkintl.h" #include "gtkstock.h" #include "gtkicontheme.h" @@ -2060,17 +2059,66 @@ gtk_recent_info_get_visited (GtkRecentInfo *info) return recent_time_to_time_t (info->visited); } -/* The time of the last change as kept, in 64 bits, for sorting inside - * GTK+; gtk_recent_info_get_modified() gives a time_t, which may be 32 - * bits. */ +/** + * gtk_recent_info_get_added_unix: + * @info: a #GtkRecentInfo + * + * Like gtk_recent_info_get_added(), as 64-bit seconds: a #time_t of 32 + * bits ends in 2038. + * + * Return value: the number of seconds elapsed from 1970-01-01 UTC when + * the resource was added to the list, or -1 on failure. + * + * Since: 2.24 + */ gint64 -_gtk_recent_info_get_modified_time (GtkRecentInfo *info) +gtk_recent_info_get_added_unix (GtkRecentInfo *info) +{ + g_return_val_if_fail (info != NULL, -1); + + return info->added; +} + +/** + * gtk_recent_info_get_modified_unix: + * @info: a #GtkRecentInfo + * + * Like gtk_recent_info_get_modified(), as 64-bit seconds: a #time_t of + * 32 bits ends in 2038. + * + * Return value: the number of seconds elapsed from 1970-01-01 UTC when + * the resource was last modified, or -1 on failure. + * + * Since: 2.24 + */ +gint64 +gtk_recent_info_get_modified_unix (GtkRecentInfo *info) { g_return_val_if_fail (info != NULL, -1); return info->modified; } +/** + * gtk_recent_info_get_visited_unix: + * @info: a #GtkRecentInfo + * + * Like gtk_recent_info_get_visited(), as 64-bit seconds: a #time_t of + * 32 bits ends in 2038. + * + * Return value: the number of seconds elapsed from 1970-01-01 UTC when + * the resource was last visited, or -1 on failure. + * + * Since: 2.24 + */ +gint64 +gtk_recent_info_get_visited_unix (GtkRecentInfo *info) +{ + g_return_val_if_fail (info != NULL, -1); + + return info->visited; +} + /** * gtk_recent_info_get_private_hint: * @info: a #GtkRecentInfo @@ -2148,6 +2196,44 @@ gtk_recent_info_get_application_info (GtkRecentInfo *info, const gchar **app_exec, guint *count, time_t *time_) +{ + gint64 stamp; + + if (!gtk_recent_info_get_application_info_unix (info, app_name, app_exec, + count, &stamp)) + return FALSE; + + if (time_) + *time_ = recent_time_to_time_t (stamp); + + return TRUE; +} + +/** + * gtk_recent_info_get_application_info_unix: + * @info: a #GtkRecentInfo + * @app_name: the name of the application that has registered this item + * @app_exec: (transfer none) (out): return location for the string containing the command line + * @count: (out): return location for the number of times this item was registered + * @time_: (out): return location for the timestamp this item was last registered + * for this application, in seconds from 1970-01-01 UTC + * + * Like gtk_recent_info_get_application_info(), with the time as 64-bit + * seconds: a #time_t of 32 bits ends in 2038. + * + * Return value: %TRUE if an application with @app_name has registered this + * resource inside the recently used list, or %FALSE otherwise. The + * @app_exec string is owned by the #GtkRecentInfo and should not be + * modified or freed + * + * Since: 2.24 + */ +gboolean +gtk_recent_info_get_application_info_unix (GtkRecentInfo *info, + const gchar *app_name, + const gchar **app_exec, + guint *count, + gint64 *time_) { RecentAppInfo *ai; @@ -2172,7 +2258,7 @@ gtk_recent_info_get_application_info (GtkRecentInfo *info, *count = ai->count; if (time_) - *time_ = recent_time_to_time_t (ai->stamp); + *time_ = ai->stamp; return TRUE; } diff --git a/gtk/gtkrecentmanager.h b/gtk/gtkrecentmanager.h index 1a4c75935..dc7f43700 100644 --- a/gtk/gtkrecentmanager.h +++ b/gtk/gtkrecentmanager.h @@ -183,12 +183,20 @@ const gchar * gtk_recent_info_get_mime_type (GtkRecentInfo *info time_t gtk_recent_info_get_added (GtkRecentInfo *info); time_t gtk_recent_info_get_modified (GtkRecentInfo *info); time_t gtk_recent_info_get_visited (GtkRecentInfo *info); +gint64 gtk_recent_info_get_added_unix (GtkRecentInfo *info); +gint64 gtk_recent_info_get_modified_unix (GtkRecentInfo *info); +gint64 gtk_recent_info_get_visited_unix (GtkRecentInfo *info); gboolean gtk_recent_info_get_private_hint (GtkRecentInfo *info); gboolean gtk_recent_info_get_application_info (GtkRecentInfo *info, const gchar *app_name, const gchar **app_exec, guint *count, time_t *time_); +gboolean gtk_recent_info_get_application_info_unix (GtkRecentInfo *info, + const gchar *app_name, + const gchar **app_exec, + guint *count, + gint64 *time_); gchar ** gtk_recent_info_get_applications (GtkRecentInfo *info, gsize *length) G_GNUC_MALLOC; gchar * gtk_recent_info_last_application (GtkRecentInfo *info) G_GNUC_MALLOC; From 7b4448388bd219e10b67534162a78a057efa8592 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 15:02:52 +0200 Subject: [PATCH 165/249] configure: --enable-win32-time64 builds for 32-bit Windows with a 64-bit time_t, which msvcrt.dll has had since Windows 2000, so also on XP and ReactOS; gtk+-2.0.pc passes it on to the programs, whose time_t must be the same --- configure.ac | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4bd798e43..95cba76e9 100644 --- a/configure.ac +++ b/configure.ac @@ -353,6 +353,25 @@ changequote([,])dnl CPPFLAGS="$CPPFLAGS -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" +# A 64-bit time_t on 32-bit Windows: msvcrt.dll has had the 64-bit time +# functions since Windows 2000 (so XP and ReactOS have them), but MinGW +# keeps time_t at 32 bits there unless asked. It changes the ABI of the +# time_t functions of GtkRecentInfo, so programs must be built the same +# way; gtk+-2.0.pc passes the flag on. The _unix functions of +# GtkRecentInfo give 64-bit times either way. +AC_ARG_ENABLE(win32-time64, + [AS_HELP_STRING([--enable-win32-time64], + [on 32-bit Windows, build with a 64-bit time_t (changes the ABI of the time_t functions of GtkRecentInfo) [default=no]])],, + [enable_win32_time64=no]) +win32_time64_cflags= +if test x"$os_win32" = xyes && test x"$enable_win32_time64" = xyes; then + case "$host" in + x86_64-*|aarch64-*) ;; + *) win32_time64_cflags='-D__MINGW_USE_VC2005_COMPAT' + CFLAGS="$CFLAGS $win32_time64_cflags" ;; + esac +fi + # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while @@ -1558,7 +1577,7 @@ GTK_DEP_LIBS="$GDK_EXTRA_LIBS $GTK_DEP_LIBS_FOR_X `$PKG_CONFIG --libs $PANGO_PAC GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PACKAGES $GTK_PACKAGES` $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS" if test x"$os_win32" = xyes; then - GTK_EXTRA_CFLAGS="$msnative_struct" + GTK_EXTRA_CFLAGS="$msnative_struct $win32_time64_cflags" fi GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`" From a822ded39cfea25f221ddb508e8f394bb80033a7 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Sat, 17 Oct 2026 15:02:53 +0200 Subject: [PATCH 166/249] stock icons: all sizes GTK+ asks for (16, 18, 20, 24, 32, 48) are made from the SVGs as Mac OS X does, drawn at twice the size and made smaller with a Lanczos filter, instead of scaled at run time from the next size there is; an icon of exactly the size wins over one within the threshold --- gtk/Makefile.am | 563 +++++++++++++++++- gtk/gtkicontheme.c | 22 +- gtk/stock-icons/16/audio-volume-high.png | Bin 0 -> 850 bytes gtk/stock-icons/16/audio-volume-low.png | Bin 0 -> 617 bytes gtk/stock-icons/16/audio-volume-medium.png | Bin 0 -> 731 bytes gtk/stock-icons/16/audio-volume-muted.png | Bin 0 -> 714 bytes gtk/stock-icons/16/dialog-error.png | Bin 0 -> 763 bytes gtk/stock-icons/16/dialog-password.png | Bin 0 -> 757 bytes gtk/stock-icons/16/dialog-question.png | Bin 0 -> 777 bytes gtk/stock-icons/16/dialog-warning.png | Bin 0 -> 731 bytes gtk/stock-icons/16/gtk-apply.png | Bin 0 -> 821 bytes gtk/stock-icons/16/gtk-cancel.png | Bin 0 -> 882 bytes gtk/stock-icons/16/gtk-dnd-multiple.png | Bin 0 -> 760 bytes gtk/stock-icons/16/gtk-dnd.png | Bin 0 -> 687 bytes gtk/stock-icons/16/gtk-no.png | Bin 0 -> 778 bytes gtk/stock-icons/16/gtk-ok.png | Bin 0 -> 841 bytes gtk/stock-icons/16/gtk-yes.png | Bin 0 -> 825 bytes gtk/stock-icons/18/application-exit.png | Bin 0 -> 993 bytes gtk/stock-icons/18/audio-volume-high.png | Bin 0 -> 1005 bytes gtk/stock-icons/18/audio-volume-low.png | Bin 0 -> 712 bytes gtk/stock-icons/18/audio-volume-medium.png | Bin 0 -> 852 bytes gtk/stock-icons/18/audio-volume-muted.png | Bin 0 -> 842 bytes gtk/stock-icons/18/dialog-error.png | Bin 0 -> 915 bytes gtk/stock-icons/18/dialog-information.png | Bin 0 -> 1085 bytes gtk/stock-icons/18/dialog-password.png | Bin 0 -> 879 bytes gtk/stock-icons/18/dialog-question.png | Bin 0 -> 906 bytes gtk/stock-icons/18/dialog-warning.png | Bin 0 -> 892 bytes gtk/stock-icons/18/document-new.png | Bin 0 -> 748 bytes gtk/stock-icons/18/document-open-recent.png | Bin 0 -> 1160 bytes gtk/stock-icons/18/document-open.png | Bin 0 -> 788 bytes gtk/stock-icons/18/document-print-preview.png | Bin 0 -> 1027 bytes gtk/stock-icons/18/document-print.png | Bin 0 -> 799 bytes gtk/stock-icons/18/document-properties.png | Bin 0 -> 1065 bytes gtk/stock-icons/18/document-revert-ltr.png | Bin 0 -> 1027 bytes gtk/stock-icons/18/document-revert-rtl.png | Bin 0 -> 1029 bytes gtk/stock-icons/18/document-save-as.png | Bin 0 -> 1000 bytes gtk/stock-icons/18/drive-harddisk.png | Bin 0 -> 1052 bytes gtk/stock-icons/18/edit-clear.png | Bin 0 -> 988 bytes gtk/stock-icons/18/edit-copy.png | Bin 0 -> 847 bytes gtk/stock-icons/18/edit-cut.png | Bin 0 -> 1191 bytes gtk/stock-icons/18/edit-delete.png | Bin 0 -> 1052 bytes gtk/stock-icons/18/edit-find-replace.png | Bin 0 -> 1168 bytes gtk/stock-icons/18/edit-find.png | Bin 0 -> 1031 bytes gtk/stock-icons/18/edit-paste.png | Bin 0 -> 840 bytes gtk/stock-icons/18/edit-redo-ltr.png | Bin 0 -> 1026 bytes gtk/stock-icons/18/edit-redo-rtl.png | Bin 0 -> 1028 bytes gtk/stock-icons/18/edit-select-all.png | Bin 0 -> 866 bytes gtk/stock-icons/18/edit-undo-ltr.png | Bin 0 -> 987 bytes gtk/stock-icons/18/edit-undo-rtl.png | Bin 0 -> 980 bytes gtk/stock-icons/18/folder.png | Bin 0 -> 820 bytes gtk/stock-icons/18/format-indent-less-ltr.png | Bin 0 -> 810 bytes gtk/stock-icons/18/format-indent-less-rtl.png | Bin 0 -> 798 bytes gtk/stock-icons/18/format-indent-more-ltr.png | Bin 0 -> 813 bytes gtk/stock-icons/18/format-indent-more-rtl.png | Bin 0 -> 820 bytes gtk/stock-icons/18/format-justify-center.png | Bin 0 -> 652 bytes gtk/stock-icons/18/format-justify-fill.png | Bin 0 -> 572 bytes gtk/stock-icons/18/format-justify-left.png | Bin 0 -> 643 bytes gtk/stock-icons/18/format-justify-right.png | Bin 0 -> 640 bytes gtk/stock-icons/18/format-text-bold.png | Bin 0 -> 870 bytes gtk/stock-icons/18/format-text-italic.png | Bin 0 -> 843 bytes .../18/format-text-strikethrough.png | Bin 0 -> 871 bytes gtk/stock-icons/18/format-text-underline.png | Bin 0 -> 864 bytes gtk/stock-icons/18/go-bottom.png | Bin 0 -> 951 bytes gtk/stock-icons/18/go-down.png | Bin 0 -> 854 bytes gtk/stock-icons/18/go-first-ltr.png | Bin 0 -> 975 bytes gtk/stock-icons/18/go-home.png | Bin 0 -> 1095 bytes gtk/stock-icons/18/go-jump-ltr.png | Bin 0 -> 1025 bytes gtk/stock-icons/18/go-jump-rtl.png | Bin 0 -> 1024 bytes gtk/stock-icons/18/go-last-ltr.png | Bin 0 -> 989 bytes gtk/stock-icons/18/go-next-ltr.png | Bin 0 -> 835 bytes gtk/stock-icons/18/go-previous-ltr.png | Bin 0 -> 823 bytes gtk/stock-icons/18/go-top.png | Bin 0 -> 975 bytes gtk/stock-icons/18/go-up.png | Bin 0 -> 810 bytes gtk/stock-icons/18/gtk-apply.png | Bin 0 -> 960 bytes gtk/stock-icons/18/gtk-cancel.png | Bin 0 -> 1041 bytes gtk/stock-icons/18/gtk-caps-lock-warning.png | Bin 0 -> 814 bytes gtk/stock-icons/18/gtk-color-picker.png | Bin 0 -> 759 bytes gtk/stock-icons/18/gtk-connect.png | Bin 0 -> 932 bytes gtk/stock-icons/18/gtk-convert.png | Bin 0 -> 872 bytes gtk/stock-icons/18/gtk-disconnect.png | Bin 0 -> 1036 bytes gtk/stock-icons/18/gtk-dnd-multiple.png | Bin 0 -> 936 bytes gtk/stock-icons/18/gtk-dnd.png | Bin 0 -> 800 bytes gtk/stock-icons/18/gtk-edit.png | Bin 0 -> 981 bytes gtk/stock-icons/18/gtk-font.png | Bin 0 -> 951 bytes gtk/stock-icons/18/gtk-index.png | Bin 0 -> 1025 bytes gtk/stock-icons/18/gtk-no.png | Bin 0 -> 906 bytes gtk/stock-icons/18/gtk-ok.png | Bin 0 -> 993 bytes .../18/gtk-orientation-landscape.png | Bin 0 -> 858 bytes .../18/gtk-orientation-portrait.png | Bin 0 -> 864 bytes .../18/gtk-orientation-reverse-landscape.png | Bin 0 -> 852 bytes .../18/gtk-orientation-reverse-portrait.png | Bin 0 -> 872 bytes gtk/stock-icons/18/gtk-page-setup.png | Bin 0 -> 965 bytes gtk/stock-icons/18/gtk-preferences.png | Bin 0 -> 1264 bytes gtk/stock-icons/18/gtk-select-color.png | Bin 0 -> 1051 bytes gtk/stock-icons/18/gtk-select-font.png | Bin 0 -> 925 bytes gtk/stock-icons/18/gtk-undelete-ltr.png | Bin 0 -> 1160 bytes gtk/stock-icons/18/gtk-undelete-rtl.png | Bin 0 -> 1164 bytes gtk/stock-icons/18/gtk-yes.png | Bin 0 -> 990 bytes gtk/stock-icons/18/help-about.png | Bin 0 -> 1033 bytes gtk/stock-icons/18/help-contents.png | Bin 0 -> 1243 bytes gtk/stock-icons/18/image-missing.png | Bin 0 -> 847 bytes gtk/stock-icons/18/list-add.png | Bin 0 -> 679 bytes gtk/stock-icons/18/list-remove.png | Bin 0 -> 304 bytes gtk/stock-icons/18/media-floppy.png | Bin 0 -> 850 bytes gtk/stock-icons/18/media-optical.png | Bin 0 -> 1123 bytes gtk/stock-icons/18/media-playback-pause.png | Bin 0 -> 512 bytes .../18/media-playback-start-ltr.png | Bin 0 -> 710 bytes .../18/media-playback-start-rtl.png | Bin 0 -> 642 bytes gtk/stock-icons/18/media-playback-stop.png | Bin 0 -> 487 bytes gtk/stock-icons/18/media-record.png | Bin 0 -> 759 bytes .../18/media-seek-backward-ltr.png | Bin 0 -> 798 bytes gtk/stock-icons/18/media-seek-forward-ltr.png | Bin 0 -> 790 bytes .../18/media-skip-backward-ltr.png | Bin 0 -> 683 bytes gtk/stock-icons/18/media-skip-forward-ltr.png | Bin 0 -> 670 bytes gtk/stock-icons/18/network-idle.png | Bin 0 -> 1023 bytes gtk/stock-icons/18/printer-error.png | Bin 0 -> 971 bytes gtk/stock-icons/18/printer-info.png | Bin 0 -> 972 bytes gtk/stock-icons/18/printer-paused.png | Bin 0 -> 944 bytes gtk/stock-icons/18/printer-warning.png | Bin 0 -> 975 bytes gtk/stock-icons/18/process-stop.png | Bin 0 -> 1025 bytes gtk/stock-icons/18/system-run.png | Bin 0 -> 1127 bytes gtk/stock-icons/18/text-x-generic.png | Bin 0 -> 748 bytes gtk/stock-icons/18/tools-check-spelling.png | Bin 0 -> 988 bytes gtk/stock-icons/18/view-fullscreen.png | Bin 0 -> 810 bytes gtk/stock-icons/18/view-refresh.png | Bin 0 -> 1163 bytes gtk/stock-icons/18/view-restore.png | Bin 0 -> 901 bytes gtk/stock-icons/18/view-sort-ascending.png | Bin 0 -> 758 bytes gtk/stock-icons/18/view-sort-descending.png | Bin 0 -> 776 bytes gtk/stock-icons/18/window-close.png | Bin 0 -> 1077 bytes gtk/stock-icons/18/zoom-fit-best.png | Bin 0 -> 1118 bytes gtk/stock-icons/18/zoom-in.png | Bin 0 -> 1111 bytes gtk/stock-icons/18/zoom-original.png | Bin 0 -> 1117 bytes gtk/stock-icons/18/zoom-out.png | Bin 0 -> 1067 bytes gtk/stock-icons/20/application-exit.png | Bin 0 -> 1132 bytes gtk/stock-icons/20/audio-volume-high.png | Bin 0 -> 1179 bytes gtk/stock-icons/20/audio-volume-low.png | Bin 0 -> 888 bytes gtk/stock-icons/20/audio-volume-medium.png | Bin 0 -> 1027 bytes gtk/stock-icons/20/audio-volume-muted.png | Bin 0 -> 1046 bytes gtk/stock-icons/20/dialog-error.png | Bin 0 -> 1091 bytes gtk/stock-icons/20/dialog-information.png | Bin 0 -> 1229 bytes gtk/stock-icons/20/dialog-password.png | Bin 0 -> 1034 bytes gtk/stock-icons/20/dialog-question.png | Bin 0 -> 1089 bytes gtk/stock-icons/20/dialog-warning.png | Bin 0 -> 1014 bytes gtk/stock-icons/20/document-new.png | Bin 0 -> 773 bytes gtk/stock-icons/20/document-open-recent.png | Bin 0 -> 1355 bytes gtk/stock-icons/20/document-open.png | Bin 0 -> 831 bytes gtk/stock-icons/20/document-print-preview.png | Bin 0 -> 1165 bytes gtk/stock-icons/20/document-print.png | Bin 0 -> 878 bytes gtk/stock-icons/20/document-properties.png | Bin 0 -> 1173 bytes gtk/stock-icons/20/document-revert-ltr.png | Bin 0 -> 1211 bytes gtk/stock-icons/20/document-revert-rtl.png | Bin 0 -> 1201 bytes gtk/stock-icons/20/document-save-as.png | Bin 0 -> 1137 bytes gtk/stock-icons/20/drive-harddisk.png | Bin 0 -> 1220 bytes gtk/stock-icons/20/edit-clear.png | Bin 0 -> 1146 bytes gtk/stock-icons/20/edit-copy.png | Bin 0 -> 966 bytes gtk/stock-icons/20/edit-cut.png | Bin 0 -> 1407 bytes gtk/stock-icons/20/edit-delete.png | Bin 0 -> 1230 bytes gtk/stock-icons/20/edit-find-replace.png | Bin 0 -> 1300 bytes gtk/stock-icons/20/edit-find.png | Bin 0 -> 1221 bytes gtk/stock-icons/20/edit-paste.png | Bin 0 -> 985 bytes gtk/stock-icons/20/edit-redo-ltr.png | Bin 0 -> 1201 bytes gtk/stock-icons/20/edit-redo-rtl.png | Bin 0 -> 1187 bytes gtk/stock-icons/20/edit-select-all.png | Bin 0 -> 907 bytes gtk/stock-icons/20/edit-undo-ltr.png | Bin 0 -> 1133 bytes gtk/stock-icons/20/edit-undo-rtl.png | Bin 0 -> 1128 bytes gtk/stock-icons/20/folder.png | Bin 0 -> 914 bytes gtk/stock-icons/20/format-indent-less-ltr.png | Bin 0 -> 931 bytes gtk/stock-icons/20/format-indent-less-rtl.png | Bin 0 -> 947 bytes gtk/stock-icons/20/format-indent-more-ltr.png | Bin 0 -> 957 bytes gtk/stock-icons/20/format-indent-more-rtl.png | Bin 0 -> 948 bytes gtk/stock-icons/20/format-justify-center.png | Bin 0 -> 652 bytes gtk/stock-icons/20/format-justify-fill.png | Bin 0 -> 599 bytes gtk/stock-icons/20/format-justify-left.png | Bin 0 -> 659 bytes gtk/stock-icons/20/format-justify-right.png | Bin 0 -> 661 bytes gtk/stock-icons/20/format-text-bold.png | Bin 0 -> 1008 bytes gtk/stock-icons/20/format-text-italic.png | Bin 0 -> 988 bytes .../20/format-text-strikethrough.png | Bin 0 -> 999 bytes gtk/stock-icons/20/format-text-underline.png | Bin 0 -> 995 bytes gtk/stock-icons/20/go-bottom.png | Bin 0 -> 1105 bytes gtk/stock-icons/20/go-down.png | Bin 0 -> 921 bytes gtk/stock-icons/20/go-first-ltr.png | Bin 0 -> 1092 bytes gtk/stock-icons/20/go-home.png | Bin 0 -> 1270 bytes gtk/stock-icons/20/go-jump-ltr.png | Bin 0 -> 1219 bytes gtk/stock-icons/20/go-jump-rtl.png | Bin 0 -> 1207 bytes gtk/stock-icons/20/go-last-ltr.png | Bin 0 -> 1095 bytes gtk/stock-icons/20/go-next-ltr.png | Bin 0 -> 937 bytes gtk/stock-icons/20/go-previous-ltr.png | Bin 0 -> 942 bytes gtk/stock-icons/20/go-top.png | Bin 0 -> 1110 bytes gtk/stock-icons/20/go-up.png | Bin 0 -> 906 bytes gtk/stock-icons/20/gtk-caps-lock-warning.png | Bin 0 -> 873 bytes gtk/stock-icons/20/gtk-color-picker.png | Bin 0 -> 929 bytes gtk/stock-icons/20/gtk-connect.png | Bin 0 -> 1073 bytes gtk/stock-icons/20/gtk-convert.png | Bin 0 -> 1025 bytes gtk/stock-icons/20/gtk-disconnect.png | Bin 0 -> 1169 bytes gtk/stock-icons/20/gtk-dnd-multiple.png | Bin 0 -> 1051 bytes gtk/stock-icons/20/gtk-dnd.png | Bin 0 -> 911 bytes gtk/stock-icons/20/gtk-edit.png | Bin 0 -> 1056 bytes gtk/stock-icons/20/gtk-font.png | Bin 0 -> 1145 bytes gtk/stock-icons/20/gtk-index.png | Bin 0 -> 1226 bytes .../20/gtk-orientation-landscape.png | Bin 0 -> 954 bytes .../20/gtk-orientation-portrait.png | Bin 0 -> 908 bytes .../20/gtk-orientation-reverse-landscape.png | Bin 0 -> 902 bytes .../20/gtk-orientation-reverse-portrait.png | Bin 0 -> 914 bytes gtk/stock-icons/20/gtk-page-setup.png | Bin 0 -> 1124 bytes gtk/stock-icons/20/gtk-preferences.png | Bin 0 -> 1530 bytes gtk/stock-icons/20/gtk-select-color.png | Bin 0 -> 1234 bytes gtk/stock-icons/20/gtk-select-font.png | Bin 0 -> 1098 bytes gtk/stock-icons/20/gtk-undelete-ltr.png | Bin 0 -> 1373 bytes gtk/stock-icons/20/gtk-undelete-rtl.png | Bin 0 -> 1391 bytes gtk/stock-icons/20/help-about.png | Bin 0 -> 1169 bytes gtk/stock-icons/20/help-contents.png | Bin 0 -> 1512 bytes gtk/stock-icons/20/image-missing.png | Bin 0 -> 921 bytes gtk/stock-icons/20/list-add.png | Bin 0 -> 780 bytes gtk/stock-icons/20/list-remove.png | Bin 0 -> 336 bytes gtk/stock-icons/20/media-floppy.png | Bin 0 -> 960 bytes gtk/stock-icons/20/media-optical.png | Bin 0 -> 1332 bytes gtk/stock-icons/20/media-playback-pause.png | Bin 0 -> 546 bytes .../20/media-playback-start-ltr.png | Bin 0 -> 742 bytes .../20/media-playback-start-rtl.png | Bin 0 -> 754 bytes gtk/stock-icons/20/media-playback-stop.png | Bin 0 -> 457 bytes gtk/stock-icons/20/media-record.png | Bin 0 -> 889 bytes .../20/media-seek-backward-ltr.png | Bin 0 -> 900 bytes gtk/stock-icons/20/media-seek-forward-ltr.png | Bin 0 -> 939 bytes .../20/media-skip-backward-ltr.png | Bin 0 -> 861 bytes gtk/stock-icons/20/media-skip-forward-ltr.png | Bin 0 -> 838 bytes gtk/stock-icons/20/network-idle.png | Bin 0 -> 1176 bytes gtk/stock-icons/20/printer-error.png | Bin 0 -> 1110 bytes gtk/stock-icons/20/printer-info.png | Bin 0 -> 1110 bytes gtk/stock-icons/20/printer-paused.png | Bin 0 -> 1107 bytes gtk/stock-icons/20/printer-warning.png | Bin 0 -> 1117 bytes gtk/stock-icons/20/process-stop.png | Bin 0 -> 1254 bytes gtk/stock-icons/20/system-run.png | Bin 0 -> 1279 bytes gtk/stock-icons/20/text-x-generic.png | Bin 0 -> 773 bytes gtk/stock-icons/20/tools-check-spelling.png | Bin 0 -> 1126 bytes gtk/stock-icons/20/view-fullscreen.png | Bin 0 -> 928 bytes gtk/stock-icons/20/view-refresh.png | Bin 0 -> 1373 bytes gtk/stock-icons/20/view-restore.png | Bin 0 -> 925 bytes gtk/stock-icons/20/view-sort-ascending.png | Bin 0 -> 900 bytes gtk/stock-icons/20/view-sort-descending.png | Bin 0 -> 923 bytes gtk/stock-icons/20/zoom-fit-best.png | Bin 0 -> 1263 bytes gtk/stock-icons/20/zoom-in.png | Bin 0 -> 1268 bytes gtk/stock-icons/20/zoom-original.png | Bin 0 -> 1276 bytes gtk/stock-icons/20/zoom-out.png | Bin 0 -> 1209 bytes gtk/stock-icons/24/dialog-error.png | Bin 0 -> 1363 bytes gtk/stock-icons/24/dialog-password.png | Bin 0 -> 1253 bytes gtk/stock-icons/24/dialog-question.png | Bin 0 -> 1393 bytes gtk/stock-icons/24/dialog-warning.png | Bin 0 -> 1301 bytes gtk/stock-icons/24/gtk-apply.png | Bin 0 -> 1477 bytes gtk/stock-icons/24/gtk-cancel.png | Bin 0 -> 1632 bytes gtk/stock-icons/24/gtk-dnd-multiple.png | Bin 0 -> 1258 bytes gtk/stock-icons/24/gtk-dnd.png | Bin 0 -> 1199 bytes gtk/stock-icons/24/gtk-no.png | Bin 0 -> 1236 bytes gtk/stock-icons/24/gtk-ok.png | Bin 0 -> 1418 bytes gtk/stock-icons/24/gtk-yes.png | Bin 0 -> 1362 bytes gtk/stock-icons/32/application-exit.png | Bin 0 -> 2006 bytes gtk/stock-icons/32/audio-volume-high.png | Bin 0 -> 2109 bytes gtk/stock-icons/32/audio-volume-low.png | Bin 0 -> 1417 bytes gtk/stock-icons/32/audio-volume-medium.png | Bin 0 -> 1694 bytes gtk/stock-icons/32/audio-volume-muted.png | Bin 0 -> 1648 bytes gtk/stock-icons/32/dialog-error.png | Bin 0 -> 1957 bytes gtk/stock-icons/32/dialog-information.png | Bin 0 -> 2439 bytes gtk/stock-icons/32/dialog-password.png | Bin 0 -> 1715 bytes gtk/stock-icons/32/dialog-question.png | Bin 0 -> 2117 bytes gtk/stock-icons/32/dialog-warning.png | Bin 0 -> 1891 bytes gtk/stock-icons/32/document-new.png | Bin 0 -> 1343 bytes gtk/stock-icons/32/document-open-recent.png | Bin 0 -> 2821 bytes gtk/stock-icons/32/document-open.png | Bin 0 -> 1269 bytes gtk/stock-icons/32/document-print-preview.png | Bin 0 -> 2237 bytes gtk/stock-icons/32/document-print.png | Bin 0 -> 1564 bytes gtk/stock-icons/32/document-properties.png | Bin 0 -> 2082 bytes gtk/stock-icons/32/document-revert-ltr.png | Bin 0 -> 2501 bytes gtk/stock-icons/32/document-revert-rtl.png | Bin 0 -> 2495 bytes gtk/stock-icons/32/document-save-as.png | Bin 0 -> 2143 bytes gtk/stock-icons/32/drive-harddisk.png | Bin 0 -> 2449 bytes gtk/stock-icons/32/edit-clear.png | Bin 0 -> 2149 bytes gtk/stock-icons/32/edit-copy.png | Bin 0 -> 1337 bytes gtk/stock-icons/32/edit-cut.png | Bin 0 -> 2659 bytes gtk/stock-icons/32/edit-delete.png | Bin 0 -> 2392 bytes gtk/stock-icons/32/edit-find-replace.png | Bin 0 -> 2406 bytes gtk/stock-icons/32/edit-find.png | Bin 0 -> 2104 bytes gtk/stock-icons/32/edit-paste.png | Bin 0 -> 1516 bytes gtk/stock-icons/32/edit-redo-ltr.png | Bin 0 -> 1757 bytes gtk/stock-icons/32/edit-redo-rtl.png | Bin 0 -> 1794 bytes gtk/stock-icons/32/edit-select-all.png | Bin 0 -> 1366 bytes gtk/stock-icons/32/edit-undo-ltr.png | Bin 0 -> 1743 bytes gtk/stock-icons/32/edit-undo-rtl.png | Bin 0 -> 1689 bytes gtk/stock-icons/32/folder.png | Bin 0 -> 1336 bytes gtk/stock-icons/32/format-indent-less-ltr.png | Bin 0 -> 1561 bytes gtk/stock-icons/32/format-indent-less-rtl.png | Bin 0 -> 1545 bytes gtk/stock-icons/32/format-indent-more-ltr.png | Bin 0 -> 1564 bytes gtk/stock-icons/32/format-indent-more-rtl.png | Bin 0 -> 1569 bytes gtk/stock-icons/32/format-justify-center.png | Bin 0 -> 838 bytes gtk/stock-icons/32/format-justify-fill.png | Bin 0 -> 749 bytes gtk/stock-icons/32/format-justify-left.png | Bin 0 -> 829 bytes gtk/stock-icons/32/format-justify-right.png | Bin 0 -> 832 bytes gtk/stock-icons/32/format-text-bold.png | Bin 0 -> 1706 bytes gtk/stock-icons/32/format-text-italic.png | Bin 0 -> 1691 bytes .../32/format-text-strikethrough.png | Bin 0 -> 1751 bytes gtk/stock-icons/32/format-text-underline.png | Bin 0 -> 1712 bytes gtk/stock-icons/32/go-bottom.png | Bin 0 -> 1956 bytes gtk/stock-icons/32/go-down.png | Bin 0 -> 1683 bytes gtk/stock-icons/32/go-first-ltr.png | Bin 0 -> 1929 bytes gtk/stock-icons/32/go-home.png | Bin 0 -> 2130 bytes gtk/stock-icons/32/go-jump-ltr.png | Bin 0 -> 2038 bytes gtk/stock-icons/32/go-jump-rtl.png | Bin 0 -> 2011 bytes gtk/stock-icons/32/go-last-ltr.png | Bin 0 -> 1967 bytes gtk/stock-icons/32/go-next-ltr.png | Bin 0 -> 1689 bytes gtk/stock-icons/32/go-previous-ltr.png | Bin 0 -> 1655 bytes gtk/stock-icons/32/go-top.png | Bin 0 -> 1970 bytes gtk/stock-icons/32/go-up.png | Bin 0 -> 1646 bytes gtk/stock-icons/32/gtk-apply.png | Bin 0 -> 2293 bytes gtk/stock-icons/32/gtk-cancel.png | Bin 0 -> 2491 bytes gtk/stock-icons/32/gtk-caps-lock-warning.png | Bin 0 -> 1062 bytes gtk/stock-icons/32/gtk-color-picker.png | Bin 0 -> 1496 bytes gtk/stock-icons/32/gtk-connect.png | Bin 0 -> 1776 bytes gtk/stock-icons/32/gtk-convert.png | Bin 0 -> 2692 bytes gtk/stock-icons/32/gtk-disconnect.png | Bin 0 -> 1667 bytes gtk/stock-icons/32/gtk-edit.png | Bin 0 -> 1988 bytes gtk/stock-icons/32/gtk-font.png | Bin 0 -> 1948 bytes gtk/stock-icons/32/gtk-index.png | Bin 0 -> 1795 bytes gtk/stock-icons/32/gtk-no.png | Bin 0 -> 1934 bytes gtk/stock-icons/32/gtk-ok.png | Bin 0 -> 2133 bytes .../32/gtk-orientation-landscape.png | Bin 0 -> 1685 bytes .../32/gtk-orientation-portrait.png | Bin 0 -> 1664 bytes .../32/gtk-orientation-reverse-landscape.png | Bin 0 -> 1611 bytes .../32/gtk-orientation-reverse-portrait.png | Bin 0 -> 1632 bytes gtk/stock-icons/32/gtk-page-setup.png | Bin 0 -> 1866 bytes gtk/stock-icons/32/gtk-preferences.png | Bin 0 -> 2558 bytes gtk/stock-icons/32/gtk-select-color.png | Bin 0 -> 2072 bytes gtk/stock-icons/32/gtk-select-font.png | Bin 0 -> 1677 bytes gtk/stock-icons/32/gtk-undelete-ltr.png | Bin 0 -> 2853 bytes gtk/stock-icons/32/gtk-undelete-rtl.png | Bin 0 -> 2843 bytes gtk/stock-icons/32/gtk-yes.png | Bin 0 -> 2114 bytes gtk/stock-icons/32/help-about.png | Bin 0 -> 1832 bytes gtk/stock-icons/32/help-contents.png | Bin 0 -> 3053 bytes gtk/stock-icons/32/image-missing.png | Bin 0 -> 1595 bytes gtk/stock-icons/32/list-add.png | Bin 0 -> 1224 bytes gtk/stock-icons/32/list-remove.png | Bin 0 -> 576 bytes gtk/stock-icons/32/media-floppy.png | Bin 0 -> 1709 bytes gtk/stock-icons/32/media-optical.png | Bin 0 -> 2448 bytes gtk/stock-icons/32/media-playback-pause.png | Bin 0 -> 977 bytes .../32/media-playback-start-ltr.png | Bin 0 -> 1455 bytes .../32/media-playback-start-rtl.png | Bin 0 -> 1403 bytes gtk/stock-icons/32/media-playback-stop.png | Bin 0 -> 822 bytes gtk/stock-icons/32/media-record.png | Bin 0 -> 1678 bytes .../32/media-seek-backward-ltr.png | Bin 0 -> 1434 bytes gtk/stock-icons/32/media-seek-forward-ltr.png | Bin 0 -> 1441 bytes .../32/media-skip-backward-ltr.png | Bin 0 -> 1491 bytes gtk/stock-icons/32/media-skip-forward-ltr.png | Bin 0 -> 1464 bytes gtk/stock-icons/32/network-idle.png | Bin 0 -> 2113 bytes gtk/stock-icons/32/printer-error.png | Bin 0 -> 2016 bytes gtk/stock-icons/32/printer-info.png | Bin 0 -> 2055 bytes gtk/stock-icons/32/printer-paused.png | Bin 0 -> 2015 bytes gtk/stock-icons/32/printer-warning.png | Bin 0 -> 2083 bytes gtk/stock-icons/32/process-stop.png | Bin 0 -> 2072 bytes gtk/stock-icons/32/system-run.png | Bin 0 -> 2805 bytes gtk/stock-icons/32/text-x-generic.png | Bin 0 -> 1343 bytes gtk/stock-icons/32/tools-check-spelling.png | Bin 0 -> 1972 bytes gtk/stock-icons/32/view-fullscreen.png | Bin 0 -> 1387 bytes gtk/stock-icons/32/view-refresh.png | Bin 0 -> 2559 bytes gtk/stock-icons/32/view-restore.png | Bin 0 -> 1412 bytes gtk/stock-icons/32/view-sort-ascending.png | Bin 0 -> 1035 bytes gtk/stock-icons/32/view-sort-descending.png | Bin 0 -> 1037 bytes gtk/stock-icons/32/window-close.png | Bin 0 -> 2541 bytes gtk/stock-icons/32/zoom-fit-best.png | Bin 0 -> 1994 bytes gtk/stock-icons/32/zoom-in.png | Bin 0 -> 1993 bytes gtk/stock-icons/32/zoom-original.png | Bin 0 -> 1985 bytes gtk/stock-icons/32/zoom-out.png | Bin 0 -> 1850 bytes gtk/stock-icons/48/application-exit.png | Bin 0 -> 3006 bytes gtk/stock-icons/48/audio-volume-high.png | Bin 0 -> 1469 bytes gtk/stock-icons/48/audio-volume-low.png | Bin 0 -> 1021 bytes gtk/stock-icons/48/audio-volume-medium.png | Bin 0 -> 1202 bytes gtk/stock-icons/48/audio-volume-muted.png | Bin 0 -> 1068 bytes gtk/stock-icons/48/document-new.png | Bin 0 -> 2073 bytes gtk/stock-icons/48/document-open-recent.png | Bin 0 -> 5286 bytes gtk/stock-icons/48/document-open.png | Bin 0 -> 1937 bytes gtk/stock-icons/48/document-print-preview.png | Bin 0 -> 3873 bytes gtk/stock-icons/48/document-print.png | Bin 0 -> 2361 bytes gtk/stock-icons/48/document-properties.png | Bin 0 -> 3457 bytes gtk/stock-icons/48/document-revert-ltr.png | Bin 0 -> 4289 bytes gtk/stock-icons/48/document-revert-rtl.png | Bin 0 -> 4245 bytes gtk/stock-icons/48/document-save-as.png | Bin 0 -> 3525 bytes gtk/stock-icons/48/drive-harddisk.png | Bin 0 -> 4280 bytes gtk/stock-icons/48/edit-clear.png | Bin 0 -> 3545 bytes gtk/stock-icons/48/edit-copy.png | Bin 0 -> 749 bytes gtk/stock-icons/48/edit-cut.png | Bin 0 -> 4784 bytes gtk/stock-icons/48/edit-delete.png | Bin 0 -> 4214 bytes gtk/stock-icons/48/edit-find-replace.png | Bin 0 -> 4298 bytes gtk/stock-icons/48/edit-find.png | Bin 0 -> 3878 bytes gtk/stock-icons/48/edit-paste.png | Bin 0 -> 1004 bytes gtk/stock-icons/48/edit-redo-ltr.png | Bin 0 -> 2930 bytes gtk/stock-icons/48/edit-redo-rtl.png | Bin 0 -> 2969 bytes gtk/stock-icons/48/edit-select-all.png | Bin 0 -> 1866 bytes gtk/stock-icons/48/edit-undo-ltr.png | Bin 0 -> 2851 bytes gtk/stock-icons/48/edit-undo-rtl.png | Bin 0 -> 2842 bytes gtk/stock-icons/48/folder.png | Bin 0 -> 2045 bytes gtk/stock-icons/48/format-indent-less-ltr.png | Bin 0 -> 2339 bytes gtk/stock-icons/48/format-indent-less-rtl.png | Bin 0 -> 2348 bytes gtk/stock-icons/48/format-indent-more-ltr.png | Bin 0 -> 2502 bytes gtk/stock-icons/48/format-indent-more-rtl.png | Bin 0 -> 2490 bytes gtk/stock-icons/48/format-justify-center.png | Bin 0 -> 1086 bytes gtk/stock-icons/48/format-justify-fill.png | Bin 0 -> 940 bytes gtk/stock-icons/48/format-justify-left.png | Bin 0 -> 1127 bytes gtk/stock-icons/48/format-justify-right.png | Bin 0 -> 1125 bytes gtk/stock-icons/48/format-text-bold.png | Bin 0 -> 2799 bytes gtk/stock-icons/48/format-text-italic.png | Bin 0 -> 2917 bytes .../48/format-text-strikethrough.png | Bin 0 -> 3001 bytes gtk/stock-icons/48/format-text-underline.png | Bin 0 -> 2969 bytes gtk/stock-icons/48/go-bottom.png | Bin 0 -> 3154 bytes gtk/stock-icons/48/go-down.png | Bin 0 -> 2704 bytes gtk/stock-icons/48/go-first-ltr.png | Bin 0 -> 3119 bytes gtk/stock-icons/48/go-home.png | Bin 0 -> 3149 bytes gtk/stock-icons/48/go-jump-ltr.png | Bin 0 -> 3581 bytes gtk/stock-icons/48/go-jump-rtl.png | Bin 0 -> 3613 bytes gtk/stock-icons/48/go-last-ltr.png | Bin 0 -> 3164 bytes gtk/stock-icons/48/go-next-ltr.png | Bin 0 -> 2667 bytes gtk/stock-icons/48/go-previous-ltr.png | Bin 0 -> 2653 bytes gtk/stock-icons/48/go-top.png | Bin 0 -> 3145 bytes gtk/stock-icons/48/go-up.png | Bin 0 -> 2634 bytes gtk/stock-icons/48/gtk-apply.png | Bin 0 -> 4041 bytes gtk/stock-icons/48/gtk-cancel.png | Bin 0 -> 4243 bytes gtk/stock-icons/48/gtk-caps-lock-warning.png | Bin 0 -> 401 bytes gtk/stock-icons/48/gtk-color-picker.png | Bin 0 -> 2516 bytes gtk/stock-icons/48/gtk-connect.png | Bin 0 -> 2952 bytes gtk/stock-icons/48/gtk-convert.png | Bin 0 -> 4746 bytes gtk/stock-icons/48/gtk-disconnect.png | Bin 0 -> 2532 bytes gtk/stock-icons/48/gtk-dnd-multiple.png | Bin 0 -> 2752 bytes gtk/stock-icons/48/gtk-dnd.png | Bin 0 -> 2780 bytes gtk/stock-icons/48/gtk-edit.png | Bin 0 -> 3375 bytes gtk/stock-icons/48/gtk-font.png | Bin 0 -> 3377 bytes gtk/stock-icons/48/gtk-index.png | Bin 0 -> 2666 bytes gtk/stock-icons/48/gtk-no.png | Bin 0 -> 2666 bytes gtk/stock-icons/48/gtk-ok.png | Bin 0 -> 3714 bytes .../48/gtk-orientation-landscape.png | Bin 0 -> 2566 bytes .../48/gtk-orientation-portrait.png | Bin 0 -> 2638 bytes .../48/gtk-orientation-reverse-landscape.png | Bin 0 -> 2494 bytes .../48/gtk-orientation-reverse-portrait.png | Bin 0 -> 2581 bytes gtk/stock-icons/48/gtk-page-setup.png | Bin 0 -> 1261 bytes gtk/stock-icons/48/gtk-preferences.png | Bin 0 -> 4514 bytes gtk/stock-icons/48/gtk-select-color.png | Bin 0 -> 3125 bytes gtk/stock-icons/48/gtk-select-font.png | Bin 0 -> 1212 bytes gtk/stock-icons/48/gtk-undelete-ltr.png | Bin 0 -> 5318 bytes gtk/stock-icons/48/gtk-undelete-rtl.png | Bin 0 -> 5292 bytes gtk/stock-icons/48/gtk-yes.png | Bin 0 -> 2931 bytes gtk/stock-icons/48/help-about.png | Bin 0 -> 3169 bytes gtk/stock-icons/48/help-contents.png | Bin 0 -> 5947 bytes gtk/stock-icons/48/image-missing.png | Bin 0 -> 2522 bytes gtk/stock-icons/48/list-add.png | Bin 0 -> 1675 bytes gtk/stock-icons/48/list-remove.png | Bin 0 -> 804 bytes gtk/stock-icons/48/media-floppy.png | Bin 0 -> 2542 bytes gtk/stock-icons/48/media-optical.png | Bin 0 -> 4180 bytes gtk/stock-icons/48/media-playback-pause.png | Bin 0 -> 1027 bytes .../48/media-playback-start-ltr.png | Bin 0 -> 2435 bytes .../48/media-playback-start-rtl.png | Bin 0 -> 2482 bytes gtk/stock-icons/48/media-playback-stop.png | Bin 0 -> 1141 bytes gtk/stock-icons/48/media-record.png | Bin 0 -> 3055 bytes .../48/media-seek-backward-ltr.png | Bin 0 -> 2405 bytes gtk/stock-icons/48/media-seek-forward-ltr.png | Bin 0 -> 2285 bytes .../48/media-skip-backward-ltr.png | Bin 0 -> 2571 bytes gtk/stock-icons/48/media-skip-forward-ltr.png | Bin 0 -> 2523 bytes gtk/stock-icons/48/network-idle.png | Bin 0 -> 3223 bytes gtk/stock-icons/48/printer-error.png | Bin 0 -> 3348 bytes gtk/stock-icons/48/printer-info.png | Bin 0 -> 3455 bytes gtk/stock-icons/48/printer-paused.png | Bin 0 -> 3233 bytes gtk/stock-icons/48/printer-warning.png | Bin 0 -> 3316 bytes gtk/stock-icons/48/process-stop.png | Bin 0 -> 3278 bytes gtk/stock-icons/48/system-run.png | Bin 0 -> 5091 bytes gtk/stock-icons/48/text-x-generic.png | Bin 0 -> 2073 bytes gtk/stock-icons/48/tools-check-spelling.png | Bin 0 -> 3310 bytes gtk/stock-icons/48/view-fullscreen.png | Bin 0 -> 2145 bytes gtk/stock-icons/48/view-refresh.png | Bin 0 -> 4417 bytes gtk/stock-icons/48/view-restore.png | Bin 0 -> 2153 bytes gtk/stock-icons/48/view-sort-ascending.png | Bin 0 -> 356 bytes gtk/stock-icons/48/view-sort-descending.png | Bin 0 -> 327 bytes gtk/stock-icons/48/window-close.png | Bin 0 -> 4238 bytes gtk/stock-icons/48/zoom-fit-best.png | Bin 0 -> 3241 bytes gtk/stock-icons/48/zoom-in.png | Bin 0 -> 3362 bytes gtk/stock-icons/48/zoom-original.png | Bin 0 -> 3336 bytes gtk/stock-icons/48/zoom-out.png | Bin 0 -> 3170 bytes gtk/stock-icons/render-sizes.py | 65 ++ 480 files changed, 628 insertions(+), 22 deletions(-) create mode 100644 gtk/stock-icons/16/audio-volume-high.png create mode 100644 gtk/stock-icons/16/audio-volume-low.png create mode 100644 gtk/stock-icons/16/audio-volume-medium.png create mode 100644 gtk/stock-icons/16/audio-volume-muted.png create mode 100644 gtk/stock-icons/16/dialog-error.png create mode 100644 gtk/stock-icons/16/dialog-password.png create mode 100644 gtk/stock-icons/16/dialog-question.png create mode 100644 gtk/stock-icons/16/dialog-warning.png create mode 100644 gtk/stock-icons/16/gtk-apply.png create mode 100644 gtk/stock-icons/16/gtk-cancel.png create mode 100644 gtk/stock-icons/16/gtk-dnd-multiple.png create mode 100644 gtk/stock-icons/16/gtk-dnd.png create mode 100644 gtk/stock-icons/16/gtk-no.png create mode 100644 gtk/stock-icons/16/gtk-ok.png create mode 100644 gtk/stock-icons/16/gtk-yes.png create mode 100644 gtk/stock-icons/18/application-exit.png create mode 100644 gtk/stock-icons/18/audio-volume-high.png create mode 100644 gtk/stock-icons/18/audio-volume-low.png create mode 100644 gtk/stock-icons/18/audio-volume-medium.png create mode 100644 gtk/stock-icons/18/audio-volume-muted.png create mode 100644 gtk/stock-icons/18/dialog-error.png create mode 100644 gtk/stock-icons/18/dialog-information.png create mode 100644 gtk/stock-icons/18/dialog-password.png create mode 100644 gtk/stock-icons/18/dialog-question.png create mode 100644 gtk/stock-icons/18/dialog-warning.png create mode 100644 gtk/stock-icons/18/document-new.png create mode 100644 gtk/stock-icons/18/document-open-recent.png create mode 100644 gtk/stock-icons/18/document-open.png create mode 100644 gtk/stock-icons/18/document-print-preview.png create mode 100644 gtk/stock-icons/18/document-print.png create mode 100644 gtk/stock-icons/18/document-properties.png create mode 100644 gtk/stock-icons/18/document-revert-ltr.png create mode 100644 gtk/stock-icons/18/document-revert-rtl.png create mode 100644 gtk/stock-icons/18/document-save-as.png create mode 100644 gtk/stock-icons/18/drive-harddisk.png create mode 100644 gtk/stock-icons/18/edit-clear.png create mode 100644 gtk/stock-icons/18/edit-copy.png create mode 100644 gtk/stock-icons/18/edit-cut.png create mode 100644 gtk/stock-icons/18/edit-delete.png create mode 100644 gtk/stock-icons/18/edit-find-replace.png create mode 100644 gtk/stock-icons/18/edit-find.png create mode 100644 gtk/stock-icons/18/edit-paste.png create mode 100644 gtk/stock-icons/18/edit-redo-ltr.png create mode 100644 gtk/stock-icons/18/edit-redo-rtl.png create mode 100644 gtk/stock-icons/18/edit-select-all.png create mode 100644 gtk/stock-icons/18/edit-undo-ltr.png create mode 100644 gtk/stock-icons/18/edit-undo-rtl.png create mode 100644 gtk/stock-icons/18/folder.png create mode 100644 gtk/stock-icons/18/format-indent-less-ltr.png create mode 100644 gtk/stock-icons/18/format-indent-less-rtl.png create mode 100644 gtk/stock-icons/18/format-indent-more-ltr.png create mode 100644 gtk/stock-icons/18/format-indent-more-rtl.png create mode 100644 gtk/stock-icons/18/format-justify-center.png create mode 100644 gtk/stock-icons/18/format-justify-fill.png create mode 100644 gtk/stock-icons/18/format-justify-left.png create mode 100644 gtk/stock-icons/18/format-justify-right.png create mode 100644 gtk/stock-icons/18/format-text-bold.png create mode 100644 gtk/stock-icons/18/format-text-italic.png create mode 100644 gtk/stock-icons/18/format-text-strikethrough.png create mode 100644 gtk/stock-icons/18/format-text-underline.png create mode 100644 gtk/stock-icons/18/go-bottom.png create mode 100644 gtk/stock-icons/18/go-down.png create mode 100644 gtk/stock-icons/18/go-first-ltr.png create mode 100644 gtk/stock-icons/18/go-home.png create mode 100644 gtk/stock-icons/18/go-jump-ltr.png create mode 100644 gtk/stock-icons/18/go-jump-rtl.png create mode 100644 gtk/stock-icons/18/go-last-ltr.png create mode 100644 gtk/stock-icons/18/go-next-ltr.png create mode 100644 gtk/stock-icons/18/go-previous-ltr.png create mode 100644 gtk/stock-icons/18/go-top.png create mode 100644 gtk/stock-icons/18/go-up.png create mode 100644 gtk/stock-icons/18/gtk-apply.png create mode 100644 gtk/stock-icons/18/gtk-cancel.png create mode 100644 gtk/stock-icons/18/gtk-caps-lock-warning.png create mode 100644 gtk/stock-icons/18/gtk-color-picker.png create mode 100644 gtk/stock-icons/18/gtk-connect.png create mode 100644 gtk/stock-icons/18/gtk-convert.png create mode 100644 gtk/stock-icons/18/gtk-disconnect.png create mode 100644 gtk/stock-icons/18/gtk-dnd-multiple.png create mode 100644 gtk/stock-icons/18/gtk-dnd.png create mode 100644 gtk/stock-icons/18/gtk-edit.png create mode 100644 gtk/stock-icons/18/gtk-font.png create mode 100644 gtk/stock-icons/18/gtk-index.png create mode 100644 gtk/stock-icons/18/gtk-no.png create mode 100644 gtk/stock-icons/18/gtk-ok.png create mode 100644 gtk/stock-icons/18/gtk-orientation-landscape.png create mode 100644 gtk/stock-icons/18/gtk-orientation-portrait.png create mode 100644 gtk/stock-icons/18/gtk-orientation-reverse-landscape.png create mode 100644 gtk/stock-icons/18/gtk-orientation-reverse-portrait.png create mode 100644 gtk/stock-icons/18/gtk-page-setup.png create mode 100644 gtk/stock-icons/18/gtk-preferences.png create mode 100644 gtk/stock-icons/18/gtk-select-color.png create mode 100644 gtk/stock-icons/18/gtk-select-font.png create mode 100644 gtk/stock-icons/18/gtk-undelete-ltr.png create mode 100644 gtk/stock-icons/18/gtk-undelete-rtl.png create mode 100644 gtk/stock-icons/18/gtk-yes.png create mode 100644 gtk/stock-icons/18/help-about.png create mode 100644 gtk/stock-icons/18/help-contents.png create mode 100644 gtk/stock-icons/18/image-missing.png create mode 100644 gtk/stock-icons/18/list-add.png create mode 100644 gtk/stock-icons/18/list-remove.png create mode 100644 gtk/stock-icons/18/media-floppy.png create mode 100644 gtk/stock-icons/18/media-optical.png create mode 100644 gtk/stock-icons/18/media-playback-pause.png create mode 100644 gtk/stock-icons/18/media-playback-start-ltr.png create mode 100644 gtk/stock-icons/18/media-playback-start-rtl.png create mode 100644 gtk/stock-icons/18/media-playback-stop.png create mode 100644 gtk/stock-icons/18/media-record.png create mode 100644 gtk/stock-icons/18/media-seek-backward-ltr.png create mode 100644 gtk/stock-icons/18/media-seek-forward-ltr.png create mode 100644 gtk/stock-icons/18/media-skip-backward-ltr.png create mode 100644 gtk/stock-icons/18/media-skip-forward-ltr.png create mode 100644 gtk/stock-icons/18/network-idle.png create mode 100644 gtk/stock-icons/18/printer-error.png create mode 100644 gtk/stock-icons/18/printer-info.png create mode 100644 gtk/stock-icons/18/printer-paused.png create mode 100644 gtk/stock-icons/18/printer-warning.png create mode 100644 gtk/stock-icons/18/process-stop.png create mode 100644 gtk/stock-icons/18/system-run.png create mode 100644 gtk/stock-icons/18/text-x-generic.png create mode 100644 gtk/stock-icons/18/tools-check-spelling.png create mode 100644 gtk/stock-icons/18/view-fullscreen.png create mode 100644 gtk/stock-icons/18/view-refresh.png create mode 100644 gtk/stock-icons/18/view-restore.png create mode 100644 gtk/stock-icons/18/view-sort-ascending.png create mode 100644 gtk/stock-icons/18/view-sort-descending.png create mode 100644 gtk/stock-icons/18/window-close.png create mode 100644 gtk/stock-icons/18/zoom-fit-best.png create mode 100644 gtk/stock-icons/18/zoom-in.png create mode 100644 gtk/stock-icons/18/zoom-original.png create mode 100644 gtk/stock-icons/18/zoom-out.png create mode 100644 gtk/stock-icons/20/application-exit.png create mode 100644 gtk/stock-icons/20/audio-volume-high.png create mode 100644 gtk/stock-icons/20/audio-volume-low.png create mode 100644 gtk/stock-icons/20/audio-volume-medium.png create mode 100644 gtk/stock-icons/20/audio-volume-muted.png create mode 100644 gtk/stock-icons/20/dialog-error.png create mode 100644 gtk/stock-icons/20/dialog-information.png create mode 100644 gtk/stock-icons/20/dialog-password.png create mode 100644 gtk/stock-icons/20/dialog-question.png create mode 100644 gtk/stock-icons/20/dialog-warning.png create mode 100644 gtk/stock-icons/20/document-new.png create mode 100644 gtk/stock-icons/20/document-open-recent.png create mode 100644 gtk/stock-icons/20/document-open.png create mode 100644 gtk/stock-icons/20/document-print-preview.png create mode 100644 gtk/stock-icons/20/document-print.png create mode 100644 gtk/stock-icons/20/document-properties.png create mode 100644 gtk/stock-icons/20/document-revert-ltr.png create mode 100644 gtk/stock-icons/20/document-revert-rtl.png create mode 100644 gtk/stock-icons/20/document-save-as.png create mode 100644 gtk/stock-icons/20/drive-harddisk.png create mode 100644 gtk/stock-icons/20/edit-clear.png create mode 100644 gtk/stock-icons/20/edit-copy.png create mode 100644 gtk/stock-icons/20/edit-cut.png create mode 100644 gtk/stock-icons/20/edit-delete.png create mode 100644 gtk/stock-icons/20/edit-find-replace.png create mode 100644 gtk/stock-icons/20/edit-find.png create mode 100644 gtk/stock-icons/20/edit-paste.png create mode 100644 gtk/stock-icons/20/edit-redo-ltr.png create mode 100644 gtk/stock-icons/20/edit-redo-rtl.png create mode 100644 gtk/stock-icons/20/edit-select-all.png create mode 100644 gtk/stock-icons/20/edit-undo-ltr.png create mode 100644 gtk/stock-icons/20/edit-undo-rtl.png create mode 100644 gtk/stock-icons/20/folder.png create mode 100644 gtk/stock-icons/20/format-indent-less-ltr.png create mode 100644 gtk/stock-icons/20/format-indent-less-rtl.png create mode 100644 gtk/stock-icons/20/format-indent-more-ltr.png create mode 100644 gtk/stock-icons/20/format-indent-more-rtl.png create mode 100644 gtk/stock-icons/20/format-justify-center.png create mode 100644 gtk/stock-icons/20/format-justify-fill.png create mode 100644 gtk/stock-icons/20/format-justify-left.png create mode 100644 gtk/stock-icons/20/format-justify-right.png create mode 100644 gtk/stock-icons/20/format-text-bold.png create mode 100644 gtk/stock-icons/20/format-text-italic.png create mode 100644 gtk/stock-icons/20/format-text-strikethrough.png create mode 100644 gtk/stock-icons/20/format-text-underline.png create mode 100644 gtk/stock-icons/20/go-bottom.png create mode 100644 gtk/stock-icons/20/go-down.png create mode 100644 gtk/stock-icons/20/go-first-ltr.png create mode 100644 gtk/stock-icons/20/go-home.png create mode 100644 gtk/stock-icons/20/go-jump-ltr.png create mode 100644 gtk/stock-icons/20/go-jump-rtl.png create mode 100644 gtk/stock-icons/20/go-last-ltr.png create mode 100644 gtk/stock-icons/20/go-next-ltr.png create mode 100644 gtk/stock-icons/20/go-previous-ltr.png create mode 100644 gtk/stock-icons/20/go-top.png create mode 100644 gtk/stock-icons/20/go-up.png create mode 100644 gtk/stock-icons/20/gtk-caps-lock-warning.png create mode 100644 gtk/stock-icons/20/gtk-color-picker.png create mode 100644 gtk/stock-icons/20/gtk-connect.png create mode 100644 gtk/stock-icons/20/gtk-convert.png create mode 100644 gtk/stock-icons/20/gtk-disconnect.png create mode 100644 gtk/stock-icons/20/gtk-dnd-multiple.png create mode 100644 gtk/stock-icons/20/gtk-dnd.png create mode 100644 gtk/stock-icons/20/gtk-edit.png create mode 100644 gtk/stock-icons/20/gtk-font.png create mode 100644 gtk/stock-icons/20/gtk-index.png create mode 100644 gtk/stock-icons/20/gtk-orientation-landscape.png create mode 100644 gtk/stock-icons/20/gtk-orientation-portrait.png create mode 100644 gtk/stock-icons/20/gtk-orientation-reverse-landscape.png create mode 100644 gtk/stock-icons/20/gtk-orientation-reverse-portrait.png create mode 100644 gtk/stock-icons/20/gtk-page-setup.png create mode 100644 gtk/stock-icons/20/gtk-preferences.png create mode 100644 gtk/stock-icons/20/gtk-select-color.png create mode 100644 gtk/stock-icons/20/gtk-select-font.png create mode 100644 gtk/stock-icons/20/gtk-undelete-ltr.png create mode 100644 gtk/stock-icons/20/gtk-undelete-rtl.png create mode 100644 gtk/stock-icons/20/help-about.png create mode 100644 gtk/stock-icons/20/help-contents.png create mode 100644 gtk/stock-icons/20/image-missing.png create mode 100644 gtk/stock-icons/20/list-add.png create mode 100644 gtk/stock-icons/20/list-remove.png create mode 100644 gtk/stock-icons/20/media-floppy.png create mode 100644 gtk/stock-icons/20/media-optical.png create mode 100644 gtk/stock-icons/20/media-playback-pause.png create mode 100644 gtk/stock-icons/20/media-playback-start-ltr.png create mode 100644 gtk/stock-icons/20/media-playback-start-rtl.png create mode 100644 gtk/stock-icons/20/media-playback-stop.png create mode 100644 gtk/stock-icons/20/media-record.png create mode 100644 gtk/stock-icons/20/media-seek-backward-ltr.png create mode 100644 gtk/stock-icons/20/media-seek-forward-ltr.png create mode 100644 gtk/stock-icons/20/media-skip-backward-ltr.png create mode 100644 gtk/stock-icons/20/media-skip-forward-ltr.png create mode 100644 gtk/stock-icons/20/network-idle.png create mode 100644 gtk/stock-icons/20/printer-error.png create mode 100644 gtk/stock-icons/20/printer-info.png create mode 100644 gtk/stock-icons/20/printer-paused.png create mode 100644 gtk/stock-icons/20/printer-warning.png create mode 100644 gtk/stock-icons/20/process-stop.png create mode 100644 gtk/stock-icons/20/system-run.png create mode 100644 gtk/stock-icons/20/text-x-generic.png create mode 100644 gtk/stock-icons/20/tools-check-spelling.png create mode 100644 gtk/stock-icons/20/view-fullscreen.png create mode 100644 gtk/stock-icons/20/view-refresh.png create mode 100644 gtk/stock-icons/20/view-restore.png create mode 100644 gtk/stock-icons/20/view-sort-ascending.png create mode 100644 gtk/stock-icons/20/view-sort-descending.png create mode 100644 gtk/stock-icons/20/zoom-fit-best.png create mode 100644 gtk/stock-icons/20/zoom-in.png create mode 100644 gtk/stock-icons/20/zoom-original.png create mode 100644 gtk/stock-icons/20/zoom-out.png create mode 100644 gtk/stock-icons/24/dialog-error.png create mode 100644 gtk/stock-icons/24/dialog-password.png create mode 100644 gtk/stock-icons/24/dialog-question.png create mode 100644 gtk/stock-icons/24/dialog-warning.png create mode 100644 gtk/stock-icons/24/gtk-apply.png create mode 100644 gtk/stock-icons/24/gtk-cancel.png create mode 100644 gtk/stock-icons/24/gtk-dnd-multiple.png create mode 100644 gtk/stock-icons/24/gtk-dnd.png create mode 100644 gtk/stock-icons/24/gtk-no.png create mode 100644 gtk/stock-icons/24/gtk-ok.png create mode 100644 gtk/stock-icons/24/gtk-yes.png create mode 100644 gtk/stock-icons/32/application-exit.png create mode 100644 gtk/stock-icons/32/audio-volume-high.png create mode 100644 gtk/stock-icons/32/audio-volume-low.png create mode 100644 gtk/stock-icons/32/audio-volume-medium.png create mode 100644 gtk/stock-icons/32/audio-volume-muted.png create mode 100644 gtk/stock-icons/32/dialog-error.png create mode 100644 gtk/stock-icons/32/dialog-information.png create mode 100644 gtk/stock-icons/32/dialog-password.png create mode 100644 gtk/stock-icons/32/dialog-question.png create mode 100644 gtk/stock-icons/32/dialog-warning.png create mode 100644 gtk/stock-icons/32/document-new.png create mode 100644 gtk/stock-icons/32/document-open-recent.png create mode 100644 gtk/stock-icons/32/document-open.png create mode 100644 gtk/stock-icons/32/document-print-preview.png create mode 100644 gtk/stock-icons/32/document-print.png create mode 100644 gtk/stock-icons/32/document-properties.png create mode 100644 gtk/stock-icons/32/document-revert-ltr.png create mode 100644 gtk/stock-icons/32/document-revert-rtl.png create mode 100644 gtk/stock-icons/32/document-save-as.png create mode 100644 gtk/stock-icons/32/drive-harddisk.png create mode 100644 gtk/stock-icons/32/edit-clear.png create mode 100644 gtk/stock-icons/32/edit-copy.png create mode 100644 gtk/stock-icons/32/edit-cut.png create mode 100644 gtk/stock-icons/32/edit-delete.png create mode 100644 gtk/stock-icons/32/edit-find-replace.png create mode 100644 gtk/stock-icons/32/edit-find.png create mode 100644 gtk/stock-icons/32/edit-paste.png create mode 100644 gtk/stock-icons/32/edit-redo-ltr.png create mode 100644 gtk/stock-icons/32/edit-redo-rtl.png create mode 100644 gtk/stock-icons/32/edit-select-all.png create mode 100644 gtk/stock-icons/32/edit-undo-ltr.png create mode 100644 gtk/stock-icons/32/edit-undo-rtl.png create mode 100644 gtk/stock-icons/32/folder.png create mode 100644 gtk/stock-icons/32/format-indent-less-ltr.png create mode 100644 gtk/stock-icons/32/format-indent-less-rtl.png create mode 100644 gtk/stock-icons/32/format-indent-more-ltr.png create mode 100644 gtk/stock-icons/32/format-indent-more-rtl.png create mode 100644 gtk/stock-icons/32/format-justify-center.png create mode 100644 gtk/stock-icons/32/format-justify-fill.png create mode 100644 gtk/stock-icons/32/format-justify-left.png create mode 100644 gtk/stock-icons/32/format-justify-right.png create mode 100644 gtk/stock-icons/32/format-text-bold.png create mode 100644 gtk/stock-icons/32/format-text-italic.png create mode 100644 gtk/stock-icons/32/format-text-strikethrough.png create mode 100644 gtk/stock-icons/32/format-text-underline.png create mode 100644 gtk/stock-icons/32/go-bottom.png create mode 100644 gtk/stock-icons/32/go-down.png create mode 100644 gtk/stock-icons/32/go-first-ltr.png create mode 100644 gtk/stock-icons/32/go-home.png create mode 100644 gtk/stock-icons/32/go-jump-ltr.png create mode 100644 gtk/stock-icons/32/go-jump-rtl.png create mode 100644 gtk/stock-icons/32/go-last-ltr.png create mode 100644 gtk/stock-icons/32/go-next-ltr.png create mode 100644 gtk/stock-icons/32/go-previous-ltr.png create mode 100644 gtk/stock-icons/32/go-top.png create mode 100644 gtk/stock-icons/32/go-up.png create mode 100644 gtk/stock-icons/32/gtk-apply.png create mode 100644 gtk/stock-icons/32/gtk-cancel.png create mode 100644 gtk/stock-icons/32/gtk-caps-lock-warning.png create mode 100644 gtk/stock-icons/32/gtk-color-picker.png create mode 100644 gtk/stock-icons/32/gtk-connect.png create mode 100644 gtk/stock-icons/32/gtk-convert.png create mode 100644 gtk/stock-icons/32/gtk-disconnect.png create mode 100644 gtk/stock-icons/32/gtk-edit.png create mode 100644 gtk/stock-icons/32/gtk-font.png create mode 100644 gtk/stock-icons/32/gtk-index.png create mode 100644 gtk/stock-icons/32/gtk-no.png create mode 100644 gtk/stock-icons/32/gtk-ok.png create mode 100644 gtk/stock-icons/32/gtk-orientation-landscape.png create mode 100644 gtk/stock-icons/32/gtk-orientation-portrait.png create mode 100644 gtk/stock-icons/32/gtk-orientation-reverse-landscape.png create mode 100644 gtk/stock-icons/32/gtk-orientation-reverse-portrait.png create mode 100644 gtk/stock-icons/32/gtk-page-setup.png create mode 100644 gtk/stock-icons/32/gtk-preferences.png create mode 100644 gtk/stock-icons/32/gtk-select-color.png create mode 100644 gtk/stock-icons/32/gtk-select-font.png create mode 100644 gtk/stock-icons/32/gtk-undelete-ltr.png create mode 100644 gtk/stock-icons/32/gtk-undelete-rtl.png create mode 100644 gtk/stock-icons/32/gtk-yes.png create mode 100644 gtk/stock-icons/32/help-about.png create mode 100644 gtk/stock-icons/32/help-contents.png create mode 100644 gtk/stock-icons/32/image-missing.png create mode 100644 gtk/stock-icons/32/list-add.png create mode 100644 gtk/stock-icons/32/list-remove.png create mode 100644 gtk/stock-icons/32/media-floppy.png create mode 100644 gtk/stock-icons/32/media-optical.png create mode 100644 gtk/stock-icons/32/media-playback-pause.png create mode 100644 gtk/stock-icons/32/media-playback-start-ltr.png create mode 100644 gtk/stock-icons/32/media-playback-start-rtl.png create mode 100644 gtk/stock-icons/32/media-playback-stop.png create mode 100644 gtk/stock-icons/32/media-record.png create mode 100644 gtk/stock-icons/32/media-seek-backward-ltr.png create mode 100644 gtk/stock-icons/32/media-seek-forward-ltr.png create mode 100644 gtk/stock-icons/32/media-skip-backward-ltr.png create mode 100644 gtk/stock-icons/32/media-skip-forward-ltr.png create mode 100644 gtk/stock-icons/32/network-idle.png create mode 100644 gtk/stock-icons/32/printer-error.png create mode 100644 gtk/stock-icons/32/printer-info.png create mode 100644 gtk/stock-icons/32/printer-paused.png create mode 100644 gtk/stock-icons/32/printer-warning.png create mode 100644 gtk/stock-icons/32/process-stop.png create mode 100644 gtk/stock-icons/32/system-run.png create mode 100644 gtk/stock-icons/32/text-x-generic.png create mode 100644 gtk/stock-icons/32/tools-check-spelling.png create mode 100644 gtk/stock-icons/32/view-fullscreen.png create mode 100644 gtk/stock-icons/32/view-refresh.png create mode 100644 gtk/stock-icons/32/view-restore.png create mode 100644 gtk/stock-icons/32/view-sort-ascending.png create mode 100644 gtk/stock-icons/32/view-sort-descending.png create mode 100644 gtk/stock-icons/32/window-close.png create mode 100644 gtk/stock-icons/32/zoom-fit-best.png create mode 100644 gtk/stock-icons/32/zoom-in.png create mode 100644 gtk/stock-icons/32/zoom-original.png create mode 100644 gtk/stock-icons/32/zoom-out.png create mode 100644 gtk/stock-icons/48/application-exit.png create mode 100644 gtk/stock-icons/48/audio-volume-high.png create mode 100644 gtk/stock-icons/48/audio-volume-low.png create mode 100644 gtk/stock-icons/48/audio-volume-medium.png create mode 100644 gtk/stock-icons/48/audio-volume-muted.png create mode 100644 gtk/stock-icons/48/document-new.png create mode 100644 gtk/stock-icons/48/document-open-recent.png create mode 100644 gtk/stock-icons/48/document-open.png create mode 100644 gtk/stock-icons/48/document-print-preview.png create mode 100644 gtk/stock-icons/48/document-print.png create mode 100644 gtk/stock-icons/48/document-properties.png create mode 100644 gtk/stock-icons/48/document-revert-ltr.png create mode 100644 gtk/stock-icons/48/document-revert-rtl.png create mode 100644 gtk/stock-icons/48/document-save-as.png create mode 100644 gtk/stock-icons/48/drive-harddisk.png create mode 100644 gtk/stock-icons/48/edit-clear.png create mode 100644 gtk/stock-icons/48/edit-copy.png create mode 100644 gtk/stock-icons/48/edit-cut.png create mode 100644 gtk/stock-icons/48/edit-delete.png create mode 100644 gtk/stock-icons/48/edit-find-replace.png create mode 100644 gtk/stock-icons/48/edit-find.png create mode 100644 gtk/stock-icons/48/edit-paste.png create mode 100644 gtk/stock-icons/48/edit-redo-ltr.png create mode 100644 gtk/stock-icons/48/edit-redo-rtl.png create mode 100644 gtk/stock-icons/48/edit-select-all.png create mode 100644 gtk/stock-icons/48/edit-undo-ltr.png create mode 100644 gtk/stock-icons/48/edit-undo-rtl.png create mode 100644 gtk/stock-icons/48/folder.png create mode 100644 gtk/stock-icons/48/format-indent-less-ltr.png create mode 100644 gtk/stock-icons/48/format-indent-less-rtl.png create mode 100644 gtk/stock-icons/48/format-indent-more-ltr.png create mode 100644 gtk/stock-icons/48/format-indent-more-rtl.png create mode 100644 gtk/stock-icons/48/format-justify-center.png create mode 100644 gtk/stock-icons/48/format-justify-fill.png create mode 100644 gtk/stock-icons/48/format-justify-left.png create mode 100644 gtk/stock-icons/48/format-justify-right.png create mode 100644 gtk/stock-icons/48/format-text-bold.png create mode 100644 gtk/stock-icons/48/format-text-italic.png create mode 100644 gtk/stock-icons/48/format-text-strikethrough.png create mode 100644 gtk/stock-icons/48/format-text-underline.png create mode 100644 gtk/stock-icons/48/go-bottom.png create mode 100644 gtk/stock-icons/48/go-down.png create mode 100644 gtk/stock-icons/48/go-first-ltr.png create mode 100644 gtk/stock-icons/48/go-home.png create mode 100644 gtk/stock-icons/48/go-jump-ltr.png create mode 100644 gtk/stock-icons/48/go-jump-rtl.png create mode 100644 gtk/stock-icons/48/go-last-ltr.png create mode 100644 gtk/stock-icons/48/go-next-ltr.png create mode 100644 gtk/stock-icons/48/go-previous-ltr.png create mode 100644 gtk/stock-icons/48/go-top.png create mode 100644 gtk/stock-icons/48/go-up.png create mode 100644 gtk/stock-icons/48/gtk-apply.png create mode 100644 gtk/stock-icons/48/gtk-cancel.png create mode 100644 gtk/stock-icons/48/gtk-caps-lock-warning.png create mode 100644 gtk/stock-icons/48/gtk-color-picker.png create mode 100644 gtk/stock-icons/48/gtk-connect.png create mode 100644 gtk/stock-icons/48/gtk-convert.png create mode 100644 gtk/stock-icons/48/gtk-disconnect.png create mode 100644 gtk/stock-icons/48/gtk-dnd-multiple.png create mode 100644 gtk/stock-icons/48/gtk-dnd.png create mode 100644 gtk/stock-icons/48/gtk-edit.png create mode 100644 gtk/stock-icons/48/gtk-font.png create mode 100644 gtk/stock-icons/48/gtk-index.png create mode 100644 gtk/stock-icons/48/gtk-no.png create mode 100644 gtk/stock-icons/48/gtk-ok.png create mode 100644 gtk/stock-icons/48/gtk-orientation-landscape.png create mode 100644 gtk/stock-icons/48/gtk-orientation-portrait.png create mode 100644 gtk/stock-icons/48/gtk-orientation-reverse-landscape.png create mode 100644 gtk/stock-icons/48/gtk-orientation-reverse-portrait.png create mode 100644 gtk/stock-icons/48/gtk-page-setup.png create mode 100644 gtk/stock-icons/48/gtk-preferences.png create mode 100644 gtk/stock-icons/48/gtk-select-color.png create mode 100644 gtk/stock-icons/48/gtk-select-font.png create mode 100644 gtk/stock-icons/48/gtk-undelete-ltr.png create mode 100644 gtk/stock-icons/48/gtk-undelete-rtl.png create mode 100644 gtk/stock-icons/48/gtk-yes.png create mode 100644 gtk/stock-icons/48/help-about.png create mode 100644 gtk/stock-icons/48/help-contents.png create mode 100644 gtk/stock-icons/48/image-missing.png create mode 100644 gtk/stock-icons/48/list-add.png create mode 100644 gtk/stock-icons/48/list-remove.png create mode 100644 gtk/stock-icons/48/media-floppy.png create mode 100644 gtk/stock-icons/48/media-optical.png create mode 100644 gtk/stock-icons/48/media-playback-pause.png create mode 100644 gtk/stock-icons/48/media-playback-start-ltr.png create mode 100644 gtk/stock-icons/48/media-playback-start-rtl.png create mode 100644 gtk/stock-icons/48/media-playback-stop.png create mode 100644 gtk/stock-icons/48/media-record.png create mode 100644 gtk/stock-icons/48/media-seek-backward-ltr.png create mode 100644 gtk/stock-icons/48/media-seek-forward-ltr.png create mode 100644 gtk/stock-icons/48/media-skip-backward-ltr.png create mode 100644 gtk/stock-icons/48/media-skip-forward-ltr.png create mode 100644 gtk/stock-icons/48/network-idle.png create mode 100644 gtk/stock-icons/48/printer-error.png create mode 100644 gtk/stock-icons/48/printer-info.png create mode 100644 gtk/stock-icons/48/printer-paused.png create mode 100644 gtk/stock-icons/48/printer-warning.png create mode 100644 gtk/stock-icons/48/process-stop.png create mode 100644 gtk/stock-icons/48/system-run.png create mode 100644 gtk/stock-icons/48/text-x-generic.png create mode 100644 gtk/stock-icons/48/tools-check-spelling.png create mode 100644 gtk/stock-icons/48/view-fullscreen.png create mode 100644 gtk/stock-icons/48/view-refresh.png create mode 100644 gtk/stock-icons/48/view-restore.png create mode 100644 gtk/stock-icons/48/view-sort-ascending.png create mode 100644 gtk/stock-icons/48/view-sort-descending.png create mode 100644 gtk/stock-icons/48/window-close.png create mode 100644 gtk/stock-icons/48/zoom-fit-best.png create mode 100644 gtk/stock-icons/48/zoom-in.png create mode 100644 gtk/stock-icons/48/zoom-original.png create mode 100644 gtk/stock-icons/48/zoom-out.png create mode 100755 gtk/stock-icons/render-sizes.py diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 425e4d1d8..b1fc2a8dd 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -837,7 +837,7 @@ MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) st EXTRA_HEADERS = EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources) EXTRA_DIST += $(gtk_built_sources) -EXTRA_DIST += $(STOCK_ICONS) +EXTRA_DIST += $(STOCK_ICONS) stock-icons/render-sizes.py # # rules to generate built sources @@ -1392,39 +1392,564 @@ STOCK_ICONS = \ stock-icons/48/dialog-information.png \ stock-icons/48/dialog-password.png \ stock-icons/48/dialog-question.png \ - stock-icons/48/dialog-warning.png + stock-icons/48/dialog-warning.png \ + stock-icons/16/audio-volume-high.png \ + stock-icons/16/audio-volume-low.png \ + stock-icons/16/audio-volume-medium.png \ + stock-icons/16/audio-volume-muted.png \ + stock-icons/16/dialog-error.png \ + stock-icons/16/dialog-password.png \ + stock-icons/16/dialog-question.png \ + stock-icons/16/dialog-warning.png \ + stock-icons/16/gtk-apply.png \ + stock-icons/16/gtk-cancel.png \ + stock-icons/16/gtk-dnd-multiple.png \ + stock-icons/16/gtk-dnd.png \ + stock-icons/16/gtk-no.png \ + stock-icons/16/gtk-ok.png \ + stock-icons/16/gtk-yes.png \ + stock-icons/18/application-exit.png \ + stock-icons/18/audio-volume-high.png \ + stock-icons/18/audio-volume-low.png \ + stock-icons/18/audio-volume-medium.png \ + stock-icons/18/audio-volume-muted.png \ + stock-icons/18/dialog-error.png \ + stock-icons/18/dialog-information.png \ + stock-icons/18/dialog-password.png \ + stock-icons/18/dialog-question.png \ + stock-icons/18/dialog-warning.png \ + stock-icons/18/document-new.png \ + stock-icons/18/document-open-recent.png \ + stock-icons/18/document-open.png \ + stock-icons/18/document-print-preview.png \ + stock-icons/18/document-print.png \ + stock-icons/18/document-properties.png \ + stock-icons/18/document-revert-ltr.png \ + stock-icons/18/document-revert-rtl.png \ + stock-icons/18/document-save-as.png \ + stock-icons/18/drive-harddisk.png \ + stock-icons/18/edit-clear.png \ + stock-icons/18/edit-copy.png \ + stock-icons/18/edit-cut.png \ + stock-icons/18/edit-delete.png \ + stock-icons/18/edit-find-replace.png \ + stock-icons/18/edit-find.png \ + stock-icons/18/edit-paste.png \ + stock-icons/18/edit-redo-ltr.png \ + stock-icons/18/edit-redo-rtl.png \ + stock-icons/18/edit-select-all.png \ + stock-icons/18/edit-undo-ltr.png \ + stock-icons/18/edit-undo-rtl.png \ + stock-icons/18/folder.png \ + stock-icons/18/format-indent-less-ltr.png \ + stock-icons/18/format-indent-less-rtl.png \ + stock-icons/18/format-indent-more-ltr.png \ + stock-icons/18/format-indent-more-rtl.png \ + stock-icons/18/format-justify-center.png \ + stock-icons/18/format-justify-fill.png \ + stock-icons/18/format-justify-left.png \ + stock-icons/18/format-justify-right.png \ + stock-icons/18/format-text-bold.png \ + stock-icons/18/format-text-italic.png \ + stock-icons/18/format-text-strikethrough.png \ + stock-icons/18/format-text-underline.png \ + stock-icons/18/go-bottom.png \ + stock-icons/18/go-down.png \ + stock-icons/18/go-first-ltr.png \ + stock-icons/18/go-home.png \ + stock-icons/18/go-jump-ltr.png \ + stock-icons/18/go-jump-rtl.png \ + stock-icons/18/go-last-ltr.png \ + stock-icons/18/go-next-ltr.png \ + stock-icons/18/go-previous-ltr.png \ + stock-icons/18/go-top.png \ + stock-icons/18/go-up.png \ + stock-icons/18/gtk-apply.png \ + stock-icons/18/gtk-cancel.png \ + stock-icons/18/gtk-caps-lock-warning.png \ + stock-icons/18/gtk-color-picker.png \ + stock-icons/18/gtk-connect.png \ + stock-icons/18/gtk-convert.png \ + stock-icons/18/gtk-disconnect.png \ + stock-icons/18/gtk-dnd-multiple.png \ + stock-icons/18/gtk-dnd.png \ + stock-icons/18/gtk-edit.png \ + stock-icons/18/gtk-font.png \ + stock-icons/18/gtk-index.png \ + stock-icons/18/gtk-no.png \ + stock-icons/18/gtk-ok.png \ + stock-icons/18/gtk-orientation-landscape.png \ + stock-icons/18/gtk-orientation-portrait.png \ + stock-icons/18/gtk-orientation-reverse-landscape.png \ + stock-icons/18/gtk-orientation-reverse-portrait.png \ + stock-icons/18/gtk-page-setup.png \ + stock-icons/18/gtk-preferences.png \ + stock-icons/18/gtk-select-color.png \ + stock-icons/18/gtk-select-font.png \ + stock-icons/18/gtk-undelete-ltr.png \ + stock-icons/18/gtk-undelete-rtl.png \ + stock-icons/18/gtk-yes.png \ + stock-icons/18/help-about.png \ + stock-icons/18/help-contents.png \ + stock-icons/18/image-missing.png \ + stock-icons/18/list-add.png \ + stock-icons/18/list-remove.png \ + stock-icons/18/media-floppy.png \ + stock-icons/18/media-optical.png \ + stock-icons/18/media-playback-pause.png \ + stock-icons/18/media-playback-start-ltr.png \ + stock-icons/18/media-playback-start-rtl.png \ + stock-icons/18/media-playback-stop.png \ + stock-icons/18/media-record.png \ + stock-icons/18/media-seek-backward-ltr.png \ + stock-icons/18/media-seek-forward-ltr.png \ + stock-icons/18/media-skip-backward-ltr.png \ + stock-icons/18/media-skip-forward-ltr.png \ + stock-icons/18/network-idle.png \ + stock-icons/18/printer-error.png \ + stock-icons/18/printer-info.png \ + stock-icons/18/printer-paused.png \ + stock-icons/18/printer-warning.png \ + stock-icons/18/process-stop.png \ + stock-icons/18/system-run.png \ + stock-icons/18/text-x-generic.png \ + stock-icons/18/tools-check-spelling.png \ + stock-icons/18/view-fullscreen.png \ + stock-icons/18/view-refresh.png \ + stock-icons/18/view-restore.png \ + stock-icons/18/view-sort-ascending.png \ + stock-icons/18/view-sort-descending.png \ + stock-icons/18/window-close.png \ + stock-icons/18/zoom-fit-best.png \ + stock-icons/18/zoom-in.png \ + stock-icons/18/zoom-original.png \ + stock-icons/18/zoom-out.png \ + stock-icons/20/application-exit.png \ + stock-icons/20/audio-volume-high.png \ + stock-icons/20/audio-volume-low.png \ + stock-icons/20/audio-volume-medium.png \ + stock-icons/20/audio-volume-muted.png \ + stock-icons/20/dialog-error.png \ + stock-icons/20/dialog-information.png \ + stock-icons/20/dialog-password.png \ + stock-icons/20/dialog-question.png \ + stock-icons/20/dialog-warning.png \ + stock-icons/20/document-new.png \ + stock-icons/20/document-open-recent.png \ + stock-icons/20/document-open.png \ + stock-icons/20/document-print-preview.png \ + stock-icons/20/document-print.png \ + stock-icons/20/document-properties.png \ + stock-icons/20/document-revert-ltr.png \ + stock-icons/20/document-revert-rtl.png \ + stock-icons/20/document-save-as.png \ + stock-icons/20/drive-harddisk.png \ + stock-icons/20/edit-clear.png \ + stock-icons/20/edit-copy.png \ + stock-icons/20/edit-cut.png \ + stock-icons/20/edit-delete.png \ + stock-icons/20/edit-find-replace.png \ + stock-icons/20/edit-find.png \ + stock-icons/20/edit-paste.png \ + stock-icons/20/edit-redo-ltr.png \ + stock-icons/20/edit-redo-rtl.png \ + stock-icons/20/edit-select-all.png \ + stock-icons/20/edit-undo-ltr.png \ + stock-icons/20/edit-undo-rtl.png \ + stock-icons/20/folder.png \ + stock-icons/20/format-indent-less-ltr.png \ + stock-icons/20/format-indent-less-rtl.png \ + stock-icons/20/format-indent-more-ltr.png \ + stock-icons/20/format-indent-more-rtl.png \ + stock-icons/20/format-justify-center.png \ + stock-icons/20/format-justify-fill.png \ + stock-icons/20/format-justify-left.png \ + stock-icons/20/format-justify-right.png \ + stock-icons/20/format-text-bold.png \ + stock-icons/20/format-text-italic.png \ + stock-icons/20/format-text-strikethrough.png \ + stock-icons/20/format-text-underline.png \ + stock-icons/20/go-bottom.png \ + stock-icons/20/go-down.png \ + stock-icons/20/go-first-ltr.png \ + stock-icons/20/go-home.png \ + stock-icons/20/go-jump-ltr.png \ + stock-icons/20/go-jump-rtl.png \ + stock-icons/20/go-last-ltr.png \ + stock-icons/20/go-next-ltr.png \ + stock-icons/20/go-previous-ltr.png \ + stock-icons/20/go-top.png \ + stock-icons/20/go-up.png \ + stock-icons/20/gtk-caps-lock-warning.png \ + stock-icons/20/gtk-color-picker.png \ + stock-icons/20/gtk-connect.png \ + stock-icons/20/gtk-convert.png \ + stock-icons/20/gtk-disconnect.png \ + stock-icons/20/gtk-dnd-multiple.png \ + stock-icons/20/gtk-dnd.png \ + stock-icons/20/gtk-edit.png \ + stock-icons/20/gtk-font.png \ + stock-icons/20/gtk-index.png \ + stock-icons/20/gtk-orientation-landscape.png \ + stock-icons/20/gtk-orientation-portrait.png \ + stock-icons/20/gtk-orientation-reverse-landscape.png \ + stock-icons/20/gtk-orientation-reverse-portrait.png \ + stock-icons/20/gtk-page-setup.png \ + stock-icons/20/gtk-preferences.png \ + stock-icons/20/gtk-select-color.png \ + stock-icons/20/gtk-select-font.png \ + stock-icons/20/gtk-undelete-ltr.png \ + stock-icons/20/gtk-undelete-rtl.png \ + stock-icons/20/help-about.png \ + stock-icons/20/help-contents.png \ + stock-icons/20/image-missing.png \ + stock-icons/20/list-add.png \ + stock-icons/20/list-remove.png \ + stock-icons/20/media-floppy.png \ + stock-icons/20/media-optical.png \ + stock-icons/20/media-playback-pause.png \ + stock-icons/20/media-playback-start-ltr.png \ + stock-icons/20/media-playback-start-rtl.png \ + stock-icons/20/media-playback-stop.png \ + stock-icons/20/media-record.png \ + stock-icons/20/media-seek-backward-ltr.png \ + stock-icons/20/media-seek-forward-ltr.png \ + stock-icons/20/media-skip-backward-ltr.png \ + stock-icons/20/media-skip-forward-ltr.png \ + stock-icons/20/network-idle.png \ + stock-icons/20/printer-error.png \ + stock-icons/20/printer-info.png \ + stock-icons/20/printer-paused.png \ + stock-icons/20/printer-warning.png \ + stock-icons/20/process-stop.png \ + stock-icons/20/system-run.png \ + stock-icons/20/text-x-generic.png \ + stock-icons/20/tools-check-spelling.png \ + stock-icons/20/view-fullscreen.png \ + stock-icons/20/view-refresh.png \ + stock-icons/20/view-restore.png \ + stock-icons/20/view-sort-ascending.png \ + stock-icons/20/view-sort-descending.png \ + stock-icons/20/zoom-fit-best.png \ + stock-icons/20/zoom-in.png \ + stock-icons/20/zoom-original.png \ + stock-icons/20/zoom-out.png \ + stock-icons/24/dialog-error.png \ + stock-icons/24/dialog-password.png \ + stock-icons/24/dialog-question.png \ + stock-icons/24/dialog-warning.png \ + stock-icons/24/gtk-apply.png \ + stock-icons/24/gtk-cancel.png \ + stock-icons/24/gtk-dnd-multiple.png \ + stock-icons/24/gtk-dnd.png \ + stock-icons/24/gtk-no.png \ + stock-icons/24/gtk-ok.png \ + stock-icons/24/gtk-yes.png \ + stock-icons/32/application-exit.png \ + stock-icons/32/audio-volume-high.png \ + stock-icons/32/audio-volume-low.png \ + stock-icons/32/audio-volume-medium.png \ + stock-icons/32/audio-volume-muted.png \ + stock-icons/32/dialog-error.png \ + stock-icons/32/dialog-information.png \ + stock-icons/32/dialog-password.png \ + stock-icons/32/dialog-question.png \ + stock-icons/32/dialog-warning.png \ + stock-icons/32/document-new.png \ + stock-icons/32/document-open-recent.png \ + stock-icons/32/document-open.png \ + stock-icons/32/document-print-preview.png \ + stock-icons/32/document-print.png \ + stock-icons/32/document-properties.png \ + stock-icons/32/document-revert-ltr.png \ + stock-icons/32/document-revert-rtl.png \ + stock-icons/32/document-save-as.png \ + stock-icons/32/drive-harddisk.png \ + stock-icons/32/edit-clear.png \ + stock-icons/32/edit-copy.png \ + stock-icons/32/edit-cut.png \ + stock-icons/32/edit-delete.png \ + stock-icons/32/edit-find-replace.png \ + stock-icons/32/edit-find.png \ + stock-icons/32/edit-paste.png \ + stock-icons/32/edit-redo-ltr.png \ + stock-icons/32/edit-redo-rtl.png \ + stock-icons/32/edit-select-all.png \ + stock-icons/32/edit-undo-ltr.png \ + stock-icons/32/edit-undo-rtl.png \ + stock-icons/32/folder.png \ + stock-icons/32/format-indent-less-ltr.png \ + stock-icons/32/format-indent-less-rtl.png \ + stock-icons/32/format-indent-more-ltr.png \ + stock-icons/32/format-indent-more-rtl.png \ + stock-icons/32/format-justify-center.png \ + stock-icons/32/format-justify-fill.png \ + stock-icons/32/format-justify-left.png \ + stock-icons/32/format-justify-right.png \ + stock-icons/32/format-text-bold.png \ + stock-icons/32/format-text-italic.png \ + stock-icons/32/format-text-strikethrough.png \ + stock-icons/32/format-text-underline.png \ + stock-icons/32/go-bottom.png \ + stock-icons/32/go-down.png \ + stock-icons/32/go-first-ltr.png \ + stock-icons/32/go-home.png \ + stock-icons/32/go-jump-ltr.png \ + stock-icons/32/go-jump-rtl.png \ + stock-icons/32/go-last-ltr.png \ + stock-icons/32/go-next-ltr.png \ + stock-icons/32/go-previous-ltr.png \ + stock-icons/32/go-top.png \ + stock-icons/32/go-up.png \ + stock-icons/32/gtk-apply.png \ + stock-icons/32/gtk-cancel.png \ + stock-icons/32/gtk-caps-lock-warning.png \ + stock-icons/32/gtk-color-picker.png \ + stock-icons/32/gtk-connect.png \ + stock-icons/32/gtk-convert.png \ + stock-icons/32/gtk-disconnect.png \ + stock-icons/32/gtk-edit.png \ + stock-icons/32/gtk-font.png \ + stock-icons/32/gtk-index.png \ + stock-icons/32/gtk-no.png \ + stock-icons/32/gtk-ok.png \ + stock-icons/32/gtk-orientation-landscape.png \ + stock-icons/32/gtk-orientation-portrait.png \ + stock-icons/32/gtk-orientation-reverse-landscape.png \ + stock-icons/32/gtk-orientation-reverse-portrait.png \ + stock-icons/32/gtk-page-setup.png \ + stock-icons/32/gtk-preferences.png \ + stock-icons/32/gtk-select-color.png \ + stock-icons/32/gtk-select-font.png \ + stock-icons/32/gtk-undelete-ltr.png \ + stock-icons/32/gtk-undelete-rtl.png \ + stock-icons/32/gtk-yes.png \ + stock-icons/32/help-about.png \ + stock-icons/32/help-contents.png \ + stock-icons/32/image-missing.png \ + stock-icons/32/list-add.png \ + stock-icons/32/list-remove.png \ + stock-icons/32/media-floppy.png \ + stock-icons/32/media-optical.png \ + stock-icons/32/media-playback-pause.png \ + stock-icons/32/media-playback-start-ltr.png \ + stock-icons/32/media-playback-start-rtl.png \ + stock-icons/32/media-playback-stop.png \ + stock-icons/32/media-record.png \ + stock-icons/32/media-seek-backward-ltr.png \ + stock-icons/32/media-seek-forward-ltr.png \ + stock-icons/32/media-skip-backward-ltr.png \ + stock-icons/32/media-skip-forward-ltr.png \ + stock-icons/32/network-idle.png \ + stock-icons/32/printer-error.png \ + stock-icons/32/printer-info.png \ + stock-icons/32/printer-paused.png \ + stock-icons/32/printer-warning.png \ + stock-icons/32/process-stop.png \ + stock-icons/32/system-run.png \ + stock-icons/32/text-x-generic.png \ + stock-icons/32/tools-check-spelling.png \ + stock-icons/32/view-fullscreen.png \ + stock-icons/32/view-refresh.png \ + stock-icons/32/view-restore.png \ + stock-icons/32/view-sort-ascending.png \ + stock-icons/32/view-sort-descending.png \ + stock-icons/32/window-close.png \ + stock-icons/32/zoom-fit-best.png \ + stock-icons/32/zoom-in.png \ + stock-icons/32/zoom-original.png \ + stock-icons/32/zoom-out.png \ + stock-icons/48/application-exit.png \ + stock-icons/48/audio-volume-high.png \ + stock-icons/48/audio-volume-low.png \ + stock-icons/48/audio-volume-medium.png \ + stock-icons/48/audio-volume-muted.png \ + stock-icons/48/document-new.png \ + stock-icons/48/document-open-recent.png \ + stock-icons/48/document-open.png \ + stock-icons/48/document-print-preview.png \ + stock-icons/48/document-print.png \ + stock-icons/48/document-properties.png \ + stock-icons/48/document-revert-ltr.png \ + stock-icons/48/document-revert-rtl.png \ + stock-icons/48/document-save-as.png \ + stock-icons/48/drive-harddisk.png \ + stock-icons/48/edit-clear.png \ + stock-icons/48/edit-copy.png \ + stock-icons/48/edit-cut.png \ + stock-icons/48/edit-delete.png \ + stock-icons/48/edit-find-replace.png \ + stock-icons/48/edit-find.png \ + stock-icons/48/edit-paste.png \ + stock-icons/48/edit-redo-ltr.png \ + stock-icons/48/edit-redo-rtl.png \ + stock-icons/48/edit-select-all.png \ + stock-icons/48/edit-undo-ltr.png \ + stock-icons/48/edit-undo-rtl.png \ + stock-icons/48/folder.png \ + stock-icons/48/format-indent-less-ltr.png \ + stock-icons/48/format-indent-less-rtl.png \ + stock-icons/48/format-indent-more-ltr.png \ + stock-icons/48/format-indent-more-rtl.png \ + stock-icons/48/format-justify-center.png \ + stock-icons/48/format-justify-fill.png \ + stock-icons/48/format-justify-left.png \ + stock-icons/48/format-justify-right.png \ + stock-icons/48/format-text-bold.png \ + stock-icons/48/format-text-italic.png \ + stock-icons/48/format-text-strikethrough.png \ + stock-icons/48/format-text-underline.png \ + stock-icons/48/go-bottom.png \ + stock-icons/48/go-down.png \ + stock-icons/48/go-first-ltr.png \ + stock-icons/48/go-home.png \ + stock-icons/48/go-jump-ltr.png \ + stock-icons/48/go-jump-rtl.png \ + stock-icons/48/go-last-ltr.png \ + stock-icons/48/go-next-ltr.png \ + stock-icons/48/go-previous-ltr.png \ + stock-icons/48/go-top.png \ + stock-icons/48/go-up.png \ + stock-icons/48/gtk-apply.png \ + stock-icons/48/gtk-cancel.png \ + stock-icons/48/gtk-caps-lock-warning.png \ + stock-icons/48/gtk-color-picker.png \ + stock-icons/48/gtk-connect.png \ + stock-icons/48/gtk-convert.png \ + stock-icons/48/gtk-disconnect.png \ + stock-icons/48/gtk-dnd-multiple.png \ + stock-icons/48/gtk-dnd.png \ + stock-icons/48/gtk-edit.png \ + stock-icons/48/gtk-font.png \ + stock-icons/48/gtk-index.png \ + stock-icons/48/gtk-no.png \ + stock-icons/48/gtk-ok.png \ + stock-icons/48/gtk-orientation-landscape.png \ + stock-icons/48/gtk-orientation-portrait.png \ + stock-icons/48/gtk-orientation-reverse-landscape.png \ + stock-icons/48/gtk-orientation-reverse-portrait.png \ + stock-icons/48/gtk-page-setup.png \ + stock-icons/48/gtk-preferences.png \ + stock-icons/48/gtk-select-color.png \ + stock-icons/48/gtk-select-font.png \ + stock-icons/48/gtk-undelete-ltr.png \ + stock-icons/48/gtk-undelete-rtl.png \ + stock-icons/48/gtk-yes.png \ + stock-icons/48/help-about.png \ + stock-icons/48/help-contents.png \ + stock-icons/48/image-missing.png \ + stock-icons/48/list-add.png \ + stock-icons/48/list-remove.png \ + stock-icons/48/media-floppy.png \ + stock-icons/48/media-optical.png \ + stock-icons/48/media-playback-pause.png \ + stock-icons/48/media-playback-start-ltr.png \ + stock-icons/48/media-playback-start-rtl.png \ + stock-icons/48/media-playback-stop.png \ + stock-icons/48/media-record.png \ + stock-icons/48/media-seek-backward-ltr.png \ + stock-icons/48/media-seek-forward-ltr.png \ + stock-icons/48/media-skip-backward-ltr.png \ + stock-icons/48/media-skip-forward-ltr.png \ + stock-icons/48/network-idle.png \ + stock-icons/48/printer-error.png \ + stock-icons/48/printer-info.png \ + stock-icons/48/printer-paused.png \ + stock-icons/48/printer-warning.png \ + stock-icons/48/process-stop.png \ + stock-icons/48/system-run.png \ + stock-icons/48/text-x-generic.png \ + stock-icons/48/tools-check-spelling.png \ + stock-icons/48/view-fullscreen.png \ + stock-icons/48/view-refresh.png \ + stock-icons/48/view-restore.png \ + stock-icons/48/view-sort-ascending.png \ + stock-icons/48/view-sort-descending.png \ + stock-icons/48/window-close.png \ + stock-icons/48/zoom-fit-best.png \ + stock-icons/48/zoom-in.png \ + stock-icons/48/zoom-original.png \ + stock-icons/48/zoom-out.png GENERATED_ICONS = \ stock-icons/16/go-previous-rtl.png \ - stock-icons/16/go-next-rtl.png \ + stock-icons/16/go-next-rtl.png \ stock-icons/16/go-first-rtl.png \ - stock-icons/16/go-last-rtl.png \ - stock-icons/16/media-seek-forward-rtl.png \ - stock-icons/16/media-skip-forward-rtl.png \ - stock-icons/16/media-skip-backward-rtl.png \ - stock-icons/16/media-seek-backward-rtl.png \ + stock-icons/16/go-last-rtl.png \ + stock-icons/16/media-seek-forward-rtl.png \ + stock-icons/16/media-skip-forward-rtl.png \ + stock-icons/16/media-skip-backward-rtl.png \ + stock-icons/16/media-seek-backward-rtl.png \ stock-icons/16/document-save.png \ stock-icons/16/folder-remote.png \ - stock-icons/16/user-home.png \ + stock-icons/16/user-home.png \ stock-icons/16/user-desktop.png \ + stock-icons/18/go-previous-rtl.png \ + stock-icons/18/go-next-rtl.png \ + stock-icons/18/go-first-rtl.png \ + stock-icons/18/go-last-rtl.png \ + stock-icons/18/media-seek-forward-rtl.png \ + stock-icons/18/media-skip-forward-rtl.png \ + stock-icons/18/media-skip-backward-rtl.png \ + stock-icons/18/media-seek-backward-rtl.png \ + stock-icons/18/document-save.png \ + stock-icons/18/folder-remote.png \ + stock-icons/18/user-home.png \ + stock-icons/18/user-desktop.png \ + stock-icons/20/go-previous-rtl.png \ + stock-icons/20/go-next-rtl.png \ + stock-icons/20/go-first-rtl.png \ + stock-icons/20/go-last-rtl.png \ + stock-icons/20/media-seek-forward-rtl.png \ + stock-icons/20/media-skip-forward-rtl.png \ + stock-icons/20/media-skip-backward-rtl.png \ + stock-icons/20/media-seek-backward-rtl.png \ + stock-icons/20/document-save.png \ + stock-icons/20/folder-remote.png \ + stock-icons/20/user-home.png \ + stock-icons/20/user-desktop.png \ stock-icons/24/go-previous-rtl.png \ - stock-icons/24/go-next-rtl.png \ + stock-icons/24/go-next-rtl.png \ stock-icons/24/go-first-rtl.png \ - stock-icons/24/go-last-rtl.png \ - stock-icons/24/media-seek-forward-rtl.png \ - stock-icons/24/media-skip-forward-rtl.png \ - stock-icons/24/media-skip-backward-rtl.png \ - stock-icons/24/media-seek-backward-rtl.png \ + stock-icons/24/go-last-rtl.png \ + stock-icons/24/media-seek-forward-rtl.png \ + stock-icons/24/media-skip-forward-rtl.png \ + stock-icons/24/media-skip-backward-rtl.png \ + stock-icons/24/media-seek-backward-rtl.png \ stock-icons/24/document-save.png \ stock-icons/24/folder-remote.png \ - stock-icons/24/user-home.png \ - stock-icons/24/user-desktop.png + stock-icons/24/user-home.png \ + stock-icons/24/user-desktop.png \ + stock-icons/32/go-previous-rtl.png \ + stock-icons/32/go-next-rtl.png \ + stock-icons/32/go-first-rtl.png \ + stock-icons/32/go-last-rtl.png \ + stock-icons/32/media-seek-forward-rtl.png \ + stock-icons/32/media-skip-forward-rtl.png \ + stock-icons/32/media-skip-backward-rtl.png \ + stock-icons/32/media-seek-backward-rtl.png \ + stock-icons/32/document-save.png \ + stock-icons/32/folder-remote.png \ + stock-icons/32/user-home.png \ + stock-icons/32/user-desktop.png \ + stock-icons/48/go-previous-rtl.png \ + stock-icons/48/go-next-rtl.png \ + stock-icons/48/go-first-rtl.png \ + stock-icons/48/go-last-rtl.png \ + stock-icons/48/media-seek-forward-rtl.png \ + stock-icons/48/media-skip-forward-rtl.png \ + stock-icons/48/media-skip-backward-rtl.png \ + stock-icons/48/media-seek-backward-rtl.png \ + stock-icons/48/document-save.png \ + stock-icons/48/folder-remote.png \ + stock-icons/48/user-home.png \ + stock-icons/48/user-desktop.png # need to copy the icons so that we can replace the generated ones with # symlinks, even in the readonly srcdir case stamp-icons: $(STOCK_ICONS) if [ ! -d stock-icons ]; then \ - for d in 16 20 24 32 48; do \ + for d in 16 18 20 24 32 48; do \ mkdir -p stock-icons/$$d; \ done; \ for f in $(STOCK_ICONS); do \ @@ -1432,7 +1957,7 @@ stamp-icons: $(STOCK_ICONS) done; \ chmod -R u+w stock-icons; \ fi && \ - for i in 16 24; do \ + for i in 16 18 20 24 32 48; do \ (cd stock-icons/$$i \ && $(RM) document-save.png \ && $(LN_S) media-floppy.png document-save.png \ diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 3c1c4ed95..64b1a10e3 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -1195,9 +1195,11 @@ _gtk_icon_theme_ensure_builtin_cache (void) { static gboolean initialized = FALSE; IconThemeDir *dir; - static IconThemeDir dirs[5] = + /* all the sizes GTK+ asks for, rendered from the SVGs (render-sizes.py) */ + static IconThemeDir dirs[6] = { { ICON_THEME_DIR_THRESHOLD, 0, 16, 16, 16, 2, NULL, "16", -1, NULL, NULL, NULL }, + { ICON_THEME_DIR_THRESHOLD, 0, 18, 18, 18, 2, NULL, "18", -1, NULL, NULL, NULL }, { ICON_THEME_DIR_THRESHOLD, 0, 20, 20, 20, 2, NULL, "20", -1, NULL, NULL, NULL }, { ICON_THEME_DIR_THRESHOLD, 0, 24, 24, 24, 2, NULL, "24", -1, NULL, NULL, NULL }, { ICON_THEME_DIR_THRESHOLD, 0, 32, 32, 32, 2, NULL, "32", -1, NULL, NULL, NULL }, @@ -3565,11 +3567,25 @@ find_builtin_icon (const gchar *icon_name, else difference = 0; + /* within the threshold: a match, but one of exactly the size + * (the builtin icons come in all the sizes GTK+ asks for) is + * looked for further */ if (difference == 0) { + if (min_difference != 0 || default_icon->size == size) + min_icon = default_icon; min_difference = 0; - min_icon = default_icon; - break; + if (default_icon->size == size) + break; + icons = icons->next; + continue; + } + + /* a match within the threshold beats any icon to be scaled */ + if (min_difference == 0) + { + icons = icons->next; + continue; } if (!has_larger) diff --git a/gtk/stock-icons/16/audio-volume-high.png b/gtk/stock-icons/16/audio-volume-high.png new file mode 100644 index 0000000000000000000000000000000000000000..85f455268a1b0f5f8e43d78ea8a51c105dfcab82 GIT binary patch literal 850 zcmV-Y1FigtP)q{%eqoSY=*oOc)M>=3-r=koW!pFcd$ z4|tW4B>J*70f0SwKCb)p^I+p#21%l5m-xBtg(Sv+&dwIwLQ%Z>MzuK9-tKb&U;rQv zm)ja$_8&dnef}qm5&FE9#0LTaDocRiT(q5tDQUL z5X!!ObJO=#kiH@R)d__{Isk0myt+(m^8H#W>9nMmG=T|Jfr7vPaaJ^K`nESRHgkB* z>ZQM9p1C&?I(YP10P8*U#feg}Xs@WOY+3W}`yVFc2hbkoiJ~ZK;4I_%dx+fH^HX?P zTl29SCxiRDdjII?lm#)O`N5EGP9?JZ_065|k2ZDvC;Tic-iVlYLFQ z&bvp3Cvt;*Td&0?W&gCC9?3p@w`-1OTo)Jt<9(j_z() zRJVf=*r6x}0OUz7n!FI&=M9`#`6!d^G8y>Q`S2YiG6TTZ6~M<z0l`gZQJ-+y?=mCEb3Wm+y?^xXaU;(F!a z_-OUysl#VL#G=VJ!aoi~(H$uk%bXxMu(Gm@Y&MHptq#T*mX^OU0H`;0my7SIcl|=W z(RiNE7h)iC?8(W*5ogzGbawa3fH6K74^ zvd|-m%6KFa{aLM|WwfeK9zFI&qe)#+QfAjRG60M*dn9rwCXm%E8pc9lZSCoS(eSio zSqy-vC@HNYNdK>qhyY-2W3c5+=Gw5&f1U{LO$}_TAUPyS>NQQ%qwBihbUK~IQYlYF zLa!{_)m*M?bLWxJZx`wkDD?wGs_$6_ZE?X*lE9FHd%Cw*%r^(o~6HgKgujFE$f=9rLbm8_lGB^f7CiF zqbItD4iy&Vf8=*$*RBQM&u{=>Hk%xg$P&YG2F%P%V`5?gk`x7{6jRf)6d;h}aU)?_ znIQ(2AyEJNLNpe8EQ(=uHW)MnLm`GCj4nx0W>u1u<#4#C^xREqW~zSdWB>6QI2RzB#{^k&(A;HRaxcHG>yV)wfemWR_)DqY9uLE zxAJr8769V&dG!DAO{$gN*50n3Jk>4($N~Vq{*rk!l-D^h*le~mRaGsrEOSPq(HL1= z6bT_*8qe#$LLr3S-j8jdyg?&Lnj8QF02Y95uc|6A5kdojz$CU(zX3nx89*12_@w{< N002ovPDHLkV1n;DNlX9$ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/audio-volume-muted.png b/gtk/stock-icons/16/audio-volume-muted.png new file mode 100644 index 0000000000000000000000000000000000000000..ed7cf1b6b6c4361682f29e6a23bd0693cf61996b GIT binary patch literal 714 zcmV;*0yX`KP)W5pZb}hpVobuCX-1u~m~sBUd*5v_2pYEZzy}|PkHZhX0~~?~01ORXueot+ zuy(I^km$dLlz_+6pjSDav(@F!k6m3Y1_1fL5VpIFjEpd!&qoQF&H-ym-$3mNfbh9R zpDrPjk3iJwd=LO21V}HycLRvm>*WB@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002ovPDHLkV1kx7ToeER literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/dialog-password.png b/gtk/stock-icons/16/dialog-password.png new file mode 100644 index 0000000000000000000000000000000000000000..b04f31503ec975a701201199e9216877ee5df3b3 GIT binary patch literal 757 zcmV)sU4$L=w6vhGu8lMUg^RWrDQ05*HO*xfR@0D7Fz>g+f~> zErm9dU|lr}(KKme#j0rvHc>RG_$MZ*`QyBq_ujnkeYXoIG!yKBv%2@5dk*&s8=$Hp zBHGl{wC(h#r{Bos{Pt2*zI)`*kx`(sR_8@fRRK7E;r!vL>8X3m%ggFC(}jQL?b!Ip zU;SrJy|=!v4#i^81Ni)lbMMbD&Z(;E-I+Ujp(6bc1z z{k*8E9NpiMA059up{j2D>e$0GXFq)R(1AB!Ir-7?zKbJ2J$drzVj*yGe9Q;Mr38IK8wtj=RNZ`Q=OBv>j}UAN^pANkxkVPx=P4>EX7%oju0~{iZ~ki->k&s0f+*I1mN<(++HrpHedy54>?GduP)Td$$jq$$k+K8)7#Sj)=yroCmerki8Jr>iE4 zLZYZbl7u921((Gv{k%j29rjFNhDkP@wKF|DUR;h^rIuJ(uA!UAu8Tq>fI}Tp$*} z^!7ftGC7s)Brqc49Q;ScIVE$d)~QN!vR*f}r{g z)f}REggl<)@y#Xzzkz(vXciY;G&H;t0fE%gia_JX$69)OUT^KRX*E-I;+%slC36nv n9N=(}ja&&QKlwWOUE$fkSSNn{@5p}@00000NkvXXu0mjf)KGvh literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/dialog-question.png b/gtk/stock-icons/16/dialog-question.png new file mode 100644 index 0000000000000000000000000000000000000000..1d64666677569c26962aca0995af007ff80dc410 GIT binary patch literal 777 zcmV+k1NQuhP)g5p)n>Xsw!$AJ>=f-TUI*dc9=54R-&*gWv2=r{7|2 z4Gd%3T0s;&>4pI!PmM^Yi61yH^xEy)Z(253@kAoc>S_=iJBE4akRl8*Y#TZ|AqdbL z8=y7VHsQ^i;>^wx>+Vi;fN9M`^P%T`*_%pzq&zQD*{rF6dKfZYERxA&$R0obG>I`i z9nsxwK58^3=Amhz6q9%Ed|pi?s@B|`5#G3=(VFFj1s;~mygxF+w=**!fN>k_2pXaaGN#mPw#5!t$SEt12B^>40Q&O^J1 zC;??C5OO)=E7*Eat$y6fWE6!0_&%$(8j)!t%_cH2fxmaJTB=q*xd@x&a!+P=cn}c- zFw3qxC)up{SFc7Jo+q2lrubK`L~`_~+;`od0DD`j0E`_>rgAw2MEA?(ytjL|R@bld z!rB^bl?rNV3a_U}eqCJr5D2!l@*I`GbIzWO!Ko3m3xH*jOkhPDts@nI8db zbad3-+5T+VFC`K$#^dpx_fo0zf4Xif92^Y7!NFkt+&O=wtLuYUEY_E9YkLKV?U?)> zc&iZv?T%8r?lv09UfX{CoxZ+ZMpu{d_0rNWpH?d0J4*Q*zP|}Hf$&)a4fyR^H^gzg zg_V`NeVv_td42uovHAIN-*L*ZAo#rnb-@3(8~m5geJ=Z7A5Tew^tai000000NkvXX Hu0mjfI%jt8 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/dialog-warning.png b/gtk/stock-icons/16/dialog-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..d8c71f447a193e594db5256474f361b96bac0627 GIT binary patch literal 731 zcmV<10wn#3P)k}?FK;YpX^mb7 z;JloCdv|5!^LlpAxn%LDdU$x40LbRH%6qyV9@6#jjbkU9?gQZLZtnz!VJH(56Ha?9 z)>aoeFqKLr1q1N={P^%?p>t+(a%P9~*93KSbqoNJQhmg9gr~1&U7S9+DbkKmBc=LC zE@uZy?)9;;F?puD`)nvwlu(^j9y*a!DvKTQ>^(`3FAxnCmArZM@WH%c7|QJIEaxVm zth1u;3n$XH6!Gd!5ZTCcZ=pMyMAC9-e@SozfSTpfu7P0~B9TbQp1z)bm)qA7RDQ{L zb4Cn|&f&tHS@gHq!jDy{dbA_G@%Y6=A|VaK5IY7mK0Ypi3U4SFyp=XhK3|)J8UV~K zM#^OPLyU7ZDQqMy4h8dXLf8G<8jy&^VhRy)PrTtWsak!RZ;ekKvIRQ|I%)&xtSUvn2{vN`sA7ZzkoUIH|?iV;B6!2ha=_dmq7XW+a^~~sj zNMs<8=l2mnAlmlG5pvd10!XJVbN=JpQvh;@;sp@SZRS6~0M-Gl{|49|2Z(Kp3aS7A N002ovPDHLkV1f(BOr`(; literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/gtk-apply.png b/gtk/stock-icons/16/gtk-apply.png new file mode 100644 index 0000000000000000000000000000000000000000..c59a2e75c070d07697d39c2b2d99f519ad3d87bd GIT binary patch literal 821 zcmV-51Iqk~P)7yzjl~=Q|L7LDAGD1{4QFkH?Ii>k zu~FF{O~;_ITBA#|NTZUnTR~Z5t&uAfch?4Pm0~T^x%<9ne|R0q*m~gk>zwobJkRre z4!j^t6A4O$>d2`&kQQ5ez<)KTmerHz`ilg5f`$NT`~3Q6HLrd!*OTO(d+Bz2>$N$Z z$8YwGh2{S}HVm{#^)V~APF0mHuBb@%CRu&s=i{qO-c&AqT4>-I;=ctkYBuC`rW#cH?M864o5W&s{yC{2T`1dy>~eD zH0>SoKnYVNfW`F`tlUR)a4Rc7pp+>=$yatc&tDk$T($gC89y}eR{X2mb*gYXJ3ul4 z0n*JrJKcQ`YH5?t zdfYoT1U7(fTXw8>;QQQyX~oX_W8K!gKtOB@?=F>=i~fxoM{d!y}0Y@a-1 z7*$#%60s(St@U@rzy8^O{m;?Sq0*Og%CuqYS9@5*)TsWO=pVVFic{CgZ%;Qr?!5K8 zG1hHAG450ojiUasTPXxc=4_(0`isoIllMPSXNDW%AO4tOpBUU0|FV0t3Vy`7h`_fq|CrdrAmEPhUtf~T8AwX}BQYu909?$#>+>-kHacFaqAU<*75Gx|FbhZn zd_W4|eqP}DN;JTcm4zE5AYnG11ksrQO=;tAE=dy8&=DO+00000NkvXXu0mjfg5r`5 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/gtk-cancel.png b/gtk/stock-icons/16/gtk-cancel.png new file mode 100644 index 0000000000000000000000000000000000000000..51b66d24c552f5bcd45492dc73c61608f1bd180c GIT binary patch literal 882 zcmV-&1C9KNP)gl424Eq*n-H~1wf3^KfnnT6&-x^=uyw4)49DZEo}Gs&WmN~+p2B5 z>g#*=b$5G*J3C{0!{IOcLZOHS&;umF>K0jzEiXIUN=goIibT}*`vsBhyJu$Xoz>MZ zH=R7W`F<*u4^&m@+_h_^soS^T-%#)qD4r+3K>znwuii2R1y+7>QL7Fd&^^`FXBtkN zsLajJs}&5&4}*i&-0bXguZYYE4Mp@Hnuk};K)UjD`naY7+4 zl}cGx1_t_1i9GMB8pHn~!e8*+&B@7}I*!rhWpX1U#$>a)tZIEbICy2jbze-z<5mK6 zgXe-#RdFMcqGTX2@%QP|datW1f9KdSU21Cb(ustAUR*re2N6UzA~X+oK#bAq#l=gp z&d&P4>Z+Gdr^Q!W>!~rAOorm}@{kQ-_v~4dSbJ;$5+FSy-g~OA9gN4@!+}69H$QLg zS5(Na3k$}st3#)z^7~p_BgG;YdU|`kb>$`rR*x}Wzv@%os;$l68yhoDT^(Zs z1AmTQzC4<-Acd!E%LGJ5X%^-j&_KiU=!JKv0tUwCQ9 zj<2ySeQRp!gU1#Yy33oJy-X%!7yAA6HQ*OxvH%v~D~2$YmA-E1NPtUW;UfhQbsT5U zPTOw$V(Zr5e~ZU;sH9}_96Sva#K0CFBv1f2LGay;M6#5XY2ozrmJEmkCJT4F;PDFB z{SJJ36K(;8K=wZs0<0MLVh{v2@n8nZAczPU1Fmaau-8fd0wbh8MD$j6J^%m!07*qo IM6N<$f`MGATL1t6 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/gtk-dnd-multiple.png b/gtk/stock-icons/16/gtk-dnd-multiple.png new file mode 100644 index 0000000000000000000000000000000000000000..1d20a5ef35c8d7c95ed427c3706897319fb9612b GIT binary patch literal 760 zcmVbLO5Qd*Q_gwp4eBHh}l>h?dIx>c|0*7jd||G|Cz`IjFSW@l%!sw#(qQmJGCGyc+xAI9By`knLd zem;4!7}o1Mh!|AB6U*sSuO{tQw8P(dvs;)$afXIQxX zkd!Apj#IpM{L$u$A)&~)+XEDZ*&y7$R9pmNk0+re$zWVhZ zYnu<4oEYh;7zbdF5EFdsBS0#ZB8noCxJQ0uf(viJ>n8)^UV?9n^4ggxf2mx}0nd;) z7+qB({*Rlh%~m_o#ieU*Z?B}-` zb{Wyi)vKk{ojW)Y=@0d}rSf7|pA&tT=%91wd4Fa&!NILte_pC=Y@CUE9p@az3@|YU qXN)zSZfA3DZqDD`-PIxX0RI9z(^+wQflhe<0000q zv5Q<)6vlt&+>3-)s-}$ZpgKzKM{cd}<^TBGhG7(V#a6kY@ zRV`cYetK~KliQzuc4vQoKQ>L%0YqRpo4)?;)oZ()o}Eev0W-thad*JUoyq2Sk|vvz zFZ1WQZJOqr9ufg8d%HMaaCSULTre*HGXn(@5{SOD^XB0Fn>W91Z5f)T`D$-(Pa^<| z#FTh`^qjotKm^Beb7B>#W)*{~l1p1#w)@sqQX1Tu)SJs&w{G8!0O}A_8O$m~hk#@5 zxEqR44@W%u{eY9>BR!qZbBqJM{Kl0prqk*7Wd#vbBVvMQ$MNDJf`rIF3plsH-%rk{ zhpI2VJn@{{(c$4?DhhByP$Veg4nUWUt-9j=Z%clDc)~_qu~;UqZwnv2J(VYa%?4Ya1Lqe#-pc69h0^%J6lC5KvWA$`ch-l^6q66mINp zGK@lufe<5t(B}XVC1||3y@-H=A}m)ICdC0E#MA>8fBy04$6tgGyDqy(zugPe|C_maN=c564u1d^{{bY_ VE!p=An4ACr002ovPDHLkV1lN{Hje-R literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/16/gtk-no.png b/gtk/stock-icons/16/gtk-no.png new file mode 100644 index 0000000000000000000000000000000000000000..98d447f4350367aee9826be5807396f4b51dab17 GIT binary patch literal 778 zcmV+l1NHogP)(j1uX+3 zAQX_Cfr2mZybF!%ptoSs5%Fy>9q|8=I1dp%_x@&8>rWaNFWxYv(lvl0&mZc%V2svXUh7;OW!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G@xQ8DjNVk z+xF27`gW;|<{cGa6=n7J#+BEtyPaHhgRV b);swNc|w}D%46^600000NkvXXu0mjfO-1OJ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/audio-volume-low.png b/gtk/stock-icons/18/audio-volume-low.png new file mode 100644 index 0000000000000000000000000000000000000000..fca7e2ae18c2f97d3885255b4f3a4e4e6fcf0808 GIT binary patch literal 712 zcmV;(0yq7MP)(NGl|Sg^8>20gJ9Q7$t^<#NDJJx+gLEA3zpr zT(~f_3DO{HVptKOMC6SvX_;5cbgm2P0!u{`%e@zsR$B8V#%mq zh!Tl}8H>fN>Kflwj^!;u5Y^SyoxMXzB9(}^pP3{{BFSV@@caF{9hci4iK2aIV{;3d zuJSIQizw>~Fg8{Mr3@H`mQ^InVGaO2894s*c7JrarS1Itj`q%>u1GgHo&#YxDC>#} z0N$`1IEbXwTEq$lgU(&k>Ij9}Jf{PV&D~u+R1id3$QLN3ut|N=6#($oxF0rMAL-r; zrTg?Eu~^KiKULpr6%nx6?54wBMGZq|W^Ty)b-0K7)*4BD%_{+<|=~65`(EhBFdp3b^s#FvSfZC_1S{8;Soh6 uqpD@P{OSIMS{X1i&kT}`Vtu1PCW8YWFpLuv78gvN)wwU&0NLQ^b=lc^Wb z-WB>#@X?o8s6|ro!6sXR#abwZLJ^t`uDPtqUYulZJDHv1gBybpO&?0Xw{!UT^ZU;E z|3Bc#Metu$Utgc3s^I=jFI|42X&ME95Bm?cJlj+^`uyg@ms6>p(8C6GkOSDtw2Gqe znx@gNuJ*Q}E0@^U=RS91u}JMo<32`|PN#ic*Mpj8*6-svArQroH8nL~rBP|~-V=M* z?bhn6_;k4tQB{?T$K$f1DE!fZ{?o}F?Z@uU%u?I2gw^X;Q-A;$FII@i$0Kt1%&uKu z$j}Ga;+Ry^6dnNEkcfTz&cVKkww>F4>v*l}x^U$6iFL8M_;cIj$Rlqga&%+4>6MmTE|-gFjxKxmz4J3_}>b{%dJ?c*Nrcfy|pG zDVNLc_^n$*X>N{>7yS2MxYb+REKYAOKR_Z@P6g(1HA=A zPzwM}iY7I`adJNrsRxl^OHo-Qq74lVl5N|eiY)VHE@v5qQrdOO)OMUz2*Mm-;dWYg z0Sqqf2f~&+o131V<_yCS7fPitfGEdt^q;ZJpZQ|xmuM*DE`?F!S6VToN+<%50MKYO ex~6*m|LQ(mmr6Aem}E8p0000}U3F2I2V*lKS`ZhCm>6|ToQ#ukX5Qbtzw09YKp<41_^rsr= z-`U&NwqfwbjhpfRI2%s3_|>^@C`jyL(6C^UlpZd%oGrB}wL9!{ZbrcI5ooeiJy*-`2MM`>R)_!TtN2 z_Kc0G-(9|}bOMJxpoi+Z9<_J04@V(7V=*OYQkuEzI%N9R6tNwb`@T=hbH&jHAX7== zICd;#Z%IaH0`(RubQ=AbN@_PRnxrqw~_5tl-T)C z+c&~)cmaTQ9l+1I#l@|{_3K;wWj}EVpuQmdJ__7g)$(6#@77M7IvE~0I$Q>@?%i9U z%hn`hIbPvxnoK5Rwr$Iyq6p^m=T@~`F$L?Y4hI{$ch1&xBhKH2?qr literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/dialog-error.png b/gtk/stock-icons/18/dialog-error.png new file mode 100644 index 0000000000000000000000000000000000000000..411dff404c623a4133c44035935315229de9d6c6 GIT binary patch literal 915 zcmV;E18n?>P))lN@YRaP9HU-nolN3P&wGkgg3Q}weLh(&o5TVcq1!=DdLVeX2 zDSo_`#*i0<(hwh%Lamk+d~i+67Tj)F+fAC?ZuaAT%$z>#W=R*N2hPKsVSZ=kKmQqE zB-r!BNGSmzJ{%EY5s;(nXb1pE5HU033!qTgv*)eJv9Vbt|{oMHY!NY~Z50^5T6UPDV0RjMsJx|d5 zyjjWR7GB%G|EvjuFa(s6lBAR%(U;6<4Py+VAke9JTvWPU|Cdtfm3Mo+-!Cys0ue4) z*7WN$GsS!&5$`dRr4*5r7zOD8O#8mJlSz5KR=e`zty^!f=LrR7?9FD6=50IKYc?bD zeZ@imLV%?N4>U4b1I&QdU}oV1{Iu)Ne(g91XwEOG|n(k%;Az$ysb~mlS}Ql5(F30-^&4$U1ovj|_MIFbo8c5~fyzzIJVw_XxXu1{ebf0kggiqcu1l2f~ncKw&osipXYXbg9JcQ>P$= z0Ei$)K+Fsn1I-MQQfw2U*X`aJ9{p~;zS@n&h>}UL5HQRDGc+(vW`^0R3Bi`@QY{GT zm$$Z722BZT_4;zT(YTo!AD22F*DNKpF@5h0Qfm#v3|0!lwzcIrbZ>L>yRU$)#bd{$ zGR%UA+7~O853`Q*gxgkQo<<3A{NuG>#9Gh)f?B#<@3x;ATojg z!{^S4ck1<()wQ+vst+FYo=B&q<+>o()yQNtG8s*-Ym(_SrEFVWtyKR0rdWLcW1{A# zL_`1&)${;04@4gTN8g;D{%GIW*bC1%j<5!vYK0+gw_5GrYPBn$RjXhAn@;~(Xg1q_ z0l_2R2ms6hvG4m|!^GQCKL2ti^O9v*4l~m|-@p59qw(uHa1-ftJKt>f{sDUbYc>YN p;@q74&q>b{7Y-e=c3%AMcnDypp*tFwIZ*%r002ovPDHLkV1mC*q3Hks literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/dialog-information.png b/gtk/stock-icons/18/dialog-information.png new file mode 100644 index 0000000000000000000000000000000000000000..f2f717a301a69262993f6b925c555c7f5cc8da5c GIT binary patch literal 1085 zcmV-D1j74?P)8@sIKkCS(-`-g1 z&h>QVk;`}hfH2Z{FxSGp`_o|p)-M zu1#Hfd?xT3p<=!#P{?^WuyZvI>|Bj}&V%m>G$PH$X992M=CU5_-`E!epE58fwjDnC zVlkin_=VjSH`h#LqAcVaa`60CDD*1?d25Da&w0u-_y7z30h5MhxaLcOI~xs*l56VFRedX=m% zFdrIj9bk+@!U(xEuy0El{XKbb&Mi5>2SkZMtO#vop_e#vfD{}6JWkfl8tafvai_FJtSn+}5hVt#$iO-W z2ZvY@qQs!R#3*f%^@TH*V2NgVl&GtZ1LZnP84`ja(S#_m2osA$Tfi-@QCr*p^CoEP50FX&Z zl#9Mwl~2*%Q%!N{%3TDl;MgChhEG(hjxzu_bm*)&cW%gTAO7N1?xjE3xUOr{=H8X) zEcr;KBmh7ugGY}OjNV_sUlX&VI*C8L`Q?#sap;S;Os+TgM_RmW^00000NkvXXu0mjf D4BZg! literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/dialog-password.png b/gtk/stock-icons/18/dialog-password.png new file mode 100644 index 0000000000000000000000000000000000000000..655680ce7c6c912c3e47259c44a46fb836eb605d GIT binary patch literal 879 zcmV-#1CacQP)^6qMl1Xfv5h(z%_>K4iRVy$z<}C+jnmHzVg-d%w74_*I!JYI&*B|vkPa=Ue8{0isi>a_Sfrt^hEj%0Jw5x zuK@t&GANNqh*WBZE=~@OZ{N1vtX36bD5DaIlv?=_fiOOv zP=()K-uK8}*e89#QZ}uFZ<*=yAHLaShR_JOG~X};yqM!gd9Zi!_4_}K9Z01TrvL=R z3?d?)c#S(#mkyN{)$Zt%%0{j&KBmq6C5&u(0UaF?NYBS#b5#_|gZR6lIo|KlOQQwc zxO!mQtNSs#lF^p+pn&=tgF~Amj+3L2{ul-aHYv@-nwhK!@yOO;>gcK)m1+~CTSm2X z8xDm+79gL6?S#R0^?R)E%ZV4`VApM+QfL{Tv>`nQo@>MN9BAc1N(aB^TOt+-b4Pfc z0?N-oOIZbguE4Q1q-;V3Hk5B8kS+MqhVQlDx-Hmt6JUv0Xn;dzgxlJ`i~=l>&>*tb za0o*9FpMx*D=-YGfb_rG5Agpo5$mubZUc2k!3@T8ivZSu88KBG=+-POW({Vn_&*6x zXO)@pATL90psQ0Db6nj=mVjX}3&9L}YG?*DGc+>?%3g$oeQXS3^*%8H3}lYR zcXju6_5{ACHG!ZM01ZF^0F+)jYju>~J6xHrd6);_`~!zjxFAXXK9m3e002ovPDHLk FV1lnJo{#_l literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/dialog-question.png b/gtk/stock-icons/18/dialog-question.png new file mode 100644 index 0000000000000000000000000000000000000000..43756fc0f3636840a5402f939585d2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v{jreFTF6{>?8^c9&VqW|30j`x;}+qpZnO zr%rjrqV3GwyGKKGwJE!0_V>NS(PKyGKYWOmmUZ|>lgTWQnO|h%#*JvLQA$z`N43jD zBH^{RZYX?p{v6+5y2RR8GvQDjp>PNU_{JxbSzzS+H*|J((Yn5sO2tEn|384-xpOD$ z);06`;Ut%@T;`p3hq0F&8ly3a#R8*Ouk+cbU-I;}9rPdSr&6h)q(mSe!c-T<<8d6v zp`&9fAH4q|02eM^BvN0`-24L9M{jWS$T5z;d7>It15zp;1FAl#lnUFn0odNLg;hbQ z57%G`msmrXuC6XT?cw_dsU$)O#6z5wVF3t%k+N!$b3^si{ffy33|u=jq!16es#$;F+y$NPKMDew6rPvB+|1nOr_+ zZcqIsDiv=&nM`^DU}$(~SHQA9Z>+D`aAB+FH?QUFx4#mpl^oios0|2KpdZTD jT2EKXZvUAx1K0lpNG!t}AafgN00000NkvXXu0mjfInDj| literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/document-revert-ltr.png b/gtk/stock-icons/18/document-revert-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..249f9d761ae6b3f8fc0eda4e4aff93674e3d804e GIT binary patch literal 1027 zcmV+e1pNDnP)F@gX2R4qQDvegnQ54QBkC<;c~8s_Y_G?(*CrLKOH_ zbZZBl`6iUIXbbp$Nb@T%ksIhkryIF=agb}l4SJTnTl*7rFPR7lV5~7u)eo^2w1^Nz z5p@F_X=@Zt{&bMRGe5BG(OxRgZ^8Fwh@t>vVnh_yS`s?J()+roxDX#Wi-@4H25TV| z3#X5M%y-A$XKAsS^7X5f|2#?i+-^FGOAxIgia;r_78^yx)9&54+Mv+M495=aVEEi# z-rU(sdCKL`;02CMYvPbj@D~jzer}3u~=46X$l3loPzO z>lq3QbC`0K4|cD^0MpYhr;cA>-=6hs-f@&-*K({ihzLrAFsd=B6>2XF>(21jd(YBd z$l{Gx2tz{{S;RtXdzSv~>sa%6JLgY-MnhvOnQR9m<1XL-a)T(oO;oZAD7)AB)PxcdZeyuO)P)yZVTDhh?U6tWs?E$VXI&&|xM96fZF zk*lM$wKb4T2##0;@B@oi4ry-A(9)7%+Y1|5dH)=uu}cK85JXXpNW~@8yca2_8##3F z6JFb%X7pB>Z;$*+(;UdMgJkP~RB`HmxCgCU|zsgK$7Hew@Gymz`Ta8oyc~@%KDW*r2by8qz x$i^7JA_yXa6@{_^*Qy;{3A(I9Y>cs={s-21xBI{iJ52xp002ovPDHLkV1hJS$`)uK5jR>4rfVp=h3x_JMPZRyE`-Q`#h(Mu?ssl=k9-g=lst(s(aI$ zN0jlm?>T#jWu-xyN`p866gP+bmz5?E$N5={_-OUBNZkC`XwTceaqUXhn$^r12#Att zlyfZ+^*^cDA_~Ma_>F1iF20MAHLEyr^7mavBixejz#AWBH+>`rsQ2 zy5|x(#q1dw5KXVh^=6)5QR-TW@fp2)j|f&eh1+NjEJB$ z{PI_c6a5!x7JeWT{X^b6#qOP(u@e=p4Tpr&G2%c(a3Z8r0Yil%;k2XTde8tiwrJ0% za`{)5o)Y?KVn26iXCW& zlNS0^Siv)jWSh(-pmXqu62t%SACmC99>3Jjjs_{L-T9ru!( zvz}t5m)BunqvN7thDI2&R-L&A7Cxk03red^-i(1*$k(h1L#^7yD~&-d}< zzC$#kCe22~m7yzCt5rPH#>Dk8YPAqwL)@rSnXDlqtsl|7VgGLDWj^Q$E_z+bQ7vA8 z5{Do-=KzIL3J?U1mL^x~^C&cX#KSu08sXbD?&f_00000NkvXXu0mjfW^DJN literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/document-save-as.png b/gtk/stock-icons/18/document-save-as.png new file mode 100644 index 0000000000000000000000000000000000000000..d6745fe4a02040a86dd38e0009737b7c4fef9f73 GIT binary patch literal 1000 zcmV>P)1v<_S%Qe6liCdGH5u|+M+Q=xe$mUMxqf9QA{)io1kF4@E3UDr5BobV`5?; z1|=d~ka!3IO$Z)P6DxS48mvOA1%^89lbTB32s20id|~1i@22*0zXl?Poqa$f4f#2aNW-(MPweXN%duit{0zD1~ya z8=`KE5^;DIuDL2R8K0qzPcbrihUV$do;MmHpX%SRvVrJTQq z@~dx9Ix>L)K?I~)L!uO`dzZ3iY2S4e5TSXs!Z*j>WH6g%$P_sI;Xb0l2YKX$L+tx} z8sl0R04IWI4W6Mm_b>HE4Nq&FBzUHW;>5=+?@hQp)8NqlJv4LoGxo|6E-nh4xCu&Q zK+&-dtrbc^6b3k#LTl9}QkpYAjgxohIQ!*UGWYIa^Uk-x3vfvt>$);DK*uJWoS0>{ z+(LzYELk={DxGC%|4NeDET?|?gY&fvLr=fW=H2_yJuA3Wy2`h|&ta3U7$YKR4c|{L zaD4nP;+f<0BxST#IAsXqB04?5`PLABpEyVJlb31G&*G9zwYQ5T*#D9s&cYR74b|IIw>YUr$XC=T;J1+a&_9P7rHxtuiC`-9>*U z%h98s;*t)TY>wx4jFHJ?@qHhq6t@ixb8_+wN(t6>t7#GFScgpDJ{D$Qn_VsVZjh_Kdz zQdlR%NrC_-Nt|0K*Y&E^{TQY31E1lMbv*pQCfcngxq*ieQ8XG2+O0OJR2tv+@w6f^ z9xj${HLa4d>8VTaD=$n1MoFboQ7%c?J~~FL)g+E%3WWmodL5f|Xfzts>ven$w%wvu zZ6G4ujaakwwO!6jzq>Y^_EtqjEnW!DAqdVnlu{^leNGfwVhXKWxDc-ukHk4A@B9Z$ Wr^&v+S literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/drive-harddisk.png b/gtk/stock-icons/18/drive-harddisk.png new file mode 100644 index 0000000000000000000000000000000000000000..6b8b0f1fb858c3c1781fbbf57af12472eb7e554a GIT binary patch literal 1052 zcmV+%1mpXOP)%R7xb)nJPc#r*C{SaRInu0!B1ubYyqLbg}uDC{|`M41qR6gr$%|ptM2-1_w~| zsE`LrGHazpYWrRtjalmfX#!}iweN+Z?9J=Pl^N{LI7Tf=u#~{7g%IgraMMFx$+&FX zvXQQ-B2&7brhZw3!98{QG?=ZSrSQTAu~?KN*|+hgy75;n`d{2jGPw=6e1)ynUAFD- z2T`J<1cQlvOfs)krvIx0-ap->po;8puPw?_(O>CuaHrZZF) z?o)c?GF{%pbKL_dwF(#lK<3Ed`yPFX*O?y=h$k&RKK~J^R5xqY3jh3k2B$Jdd9K9L zVlU4hxx|8bf!lx2V@i#t1zC>q1(p$IWx>U%uW4&IL;{_honnR<} zKuU?$3bYo`#xI0KDaCSSnQTutO|MCzG)qr*D`($7hmeALqsGkKW3*C4qEVhac|s6` zNGSk>1PH?b+fFkvIZo7!Vt3iBxpjX3<5%+Y)2uqn)ay0uWSUf$P1KAsF*#1kwh4o< zjX#&8>3L+c8C=)p+V!g(I(USPokc56xx7fV>X3*h*t2thLkEs>_4+mHYc;aj3{B4? zm&?(95kwG%3=SUP(zll}42w68AIELf34)MByo30?zA#H};3YP1-b~f0Q79A`pPZmlS?1X5uaQc1Q7kQJ(FSG? z4-bbIFMsbmn0h1o=e@ja1OT&;!t+f;aEGvSPk|6L~t(z7~DLl^u&_bX?r7KDW=O)L-zWW!x W4B%%etb8c|0000 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/edit-clear.png b/gtk/stock-icons/18/edit-clear.png new file mode 100644 index 0000000000000000000000000000000000000000..8c5ac6ec499e5f59150b917aa280c2e5601a16bd GIT binary patch literal 988 zcmV<210(#2P);rWvJ_?!?XK=t*xDmC3qp9=tdq~2-1!z2mxDEz^z^{%sb(f|0%Zb56cmJN_n7@CM z?=1gBe=N-1YKRtPvx^wmeN=U{ zwe@FR90q|C6OVWgVQpSeNRDiYcJX57E?t?v4BGkxC(L7mPYWO(Nd^a-o5R;STDEr>Fj4m<=Zh|An@vtr zJ8YwZp00h}pEyNZ^&b-nn5h&L0S1OY)K}hl`R&(^A3P(mBg{-hU@M-~R?Hgcy??jL->rOY2r2(< zmy{ApX=o*(w1UKvo|R*kc{(3YB|kwJM3Z(NkIvj|kAr z5JEso1tA2r@?HvC>GmD+lVttkyPvNf8ho!e_iEdo|Y|U+s3t)O( z$S}tA_*?96?F?Z{X8=*lg54BZ?|H)>Gl5J4(pPX=ZFp4&5Gy{gqBk|0NNWqeAB7$2 zgIB8}6zPRYX(;U=U^A*!A5ORvrD7IBm@osDi3{@4(=r>V)%Za%_Zw^K)Mn@qw(TB5 zsRXok4WnF%BHI2eGA#8?m73~$z*CG)R1Pd-KY>!Z5OUw__2|0BqEMbgf4{CX5FnD!KM8lLN_sk zV3rnI+O+sdV`@xE!DI^6+<_!BsmW$N9jMibEWmyEkA_p;e+a_;?eXD2`S@Q!m1 zDJ6}@8Z$F@-c*O}2?0S6kmVWWQki$&evd56kWwOg3C=k$gs|2c;V=NOBr^)jSrIhWrhW9w<`ov)0T^z^#`vZF3 zgHnbbW#PONYTt3-^P)gXiBg(UX`ug5N_mtX&bj@9_t>LJ-Fh zAW$kGX>PFkV3jkkpUt*fNt7fTH;*45T~vUdot@nPHV%D5eCgsPl+xzJi7^q!F+v1L z36;t*#;RkyFfqT5>q$oC}J=F<2R( z6voB1YuA4Po(v8S?(OdG{v-HrNx&W22fg)R7UalCxt!-=)^4{`z&x+eLA%eD5W@3+ Z=qc*@Z|cr3hI;@2002ovPDHLkV1m*4oO%EN literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/edit-cut.png b/gtk/stock-icons/18/edit-cut.png new file mode 100644 index 0000000000000000000000000000000000000000..a17970dc3523937245701966f9c082f9e5b7cbb3 GIT binary patch literal 1191 zcmV;Y1X%ltP)5vcV`_`DkG+?fIYA8!=w^Tt07}CwYGl0AO%% zuyo+lzPbK^-gf~Y5C|yvAFcU){k`Az_4kYp4-czrHvs_Y?9xH!I%kzdvmWW~J=vk_ zy7c*c;=d(cuUFA^UH0^x+Gj7cd&|lz+D1pO8~}jf;bB!UGePoGO|B+xYilbu*!*Oe zSp@)QCIImHd?FACn1h3Zr6h2s!_y&}-EL%Zx%~i;NF-Pc4Gn3UraG|eTJVZpikV+nRyWOtFMpsT%HP$psH2~p74n@*?L zZnN{o<`&atv-T@DNkXu7V;-rn9P%gf3RHoIFS7$U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 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/edit-find.png b/gtk/stock-icons/18/edit-find.png new file mode 100644 index 0000000000000000000000000000000000000000..496add1f0d819c05a2b97bff6f01bd5c8935d606 GIT binary patch literal 1031 zcmV+i1o-=jP)%IE$5 zyb;D2A%yVo@UY>ROXoZEjP{zvY%L)P!nmATiDuM{H|r7li>|JZCU~AFJRXk@Yk&X% z1mR0pcz&rr*Ojxis-hBD))B{mv8pQ8n?9d;!go``Sl`|KVb8G#$&erj)=)TbX49s! z`t40k@yp}4GviZpag24G>&P-S*H_VUOhhM6o}`hEpWC;u+q;&G5W|7@oGxem_NJ!z z;qT7IhR6N4wl!?kUwP?yBW-g?y~5F3j4elNY-m)I>C{0%5R5%NJ^0@j5jxi2sI9Kf zT)Q!~yqJbN`**h$Y%XxFTgO<4`YjvDqO!`V!vlkpWgE+|-OiSaQLz>wggK5QSBnf* zi?z^hXA>8%{}$Y_t&WnHR-{NQ9t_2nf}*q}F*Y{k_obD@ac9YkiGKuB?O= zRiU5EbJ&K?4v!~PJO-K~F%*j1X-Wny9mPt*!rE=@{Cw14BFLFFMXH)PH!<YV6vt5vPLL7&-Fuxy1Cubt>q;UDEabJ8!v5O4j%HAF;}d@}cgJ`4b$+QNCAw z`hN!5d+^g%tmC84)YTixH&m&<=cdpg~pApV%0tCOg|nnM@`uEl4O5iOeZV>f55?;x?@qiF7%}n#E+c++k?@<<8E|Sf9{WdHnb( zZ&5+vqZDN%27fp`_IQrt#gUPb(0$pT@H|hz188q=Hv$0U7ngq1v3D;X9lf&r!Ja)h zzt}xi-Pq{-yQ9^e@jQ?2X9u_2jX93f5kkOm91)b|oY0&&SY1_7`R1;+)af6+<}*Ke zM`_0TGJ^jP0s!35-0Tu(#UXb|VR`G$mh|}xmrPf#j$S0;;UH$Gr{iTcRo~Cd+};jnV6fOpKJZUM`mZyxjEvymw83e_XX+RJ@fLw`KgyC#>R$XmUTsdq9}EB zeOs6R{AH=u_+iIX4~oiv^yzheo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M6N<$f^!d{r2qf` literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/edit-undo-ltr.png b/gtk/stock-icons/18/edit-undo-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..58049c975eee18ee112b25eb664b0f3f05f2d8bd GIT binary patch literal 987 zcmV<110?*3P)cp=vPr7aAu%9s3uM#*qsp�S5i?^yz)>@dc~SOtSOpCikB2Irrpz zzQ7g{jY0yz)d-FZ_MsU7!eNN5-al}`42nh}Lm_hF5pjYfB3=`Whs1w`N)0zg|Ta;a?+i1ngp;(~`4uf3puIb&ol_B8r7YyPVd3&Xf4 zx|w$GJAw#0kvQmD`sq@?KT!Ez;OP?z$Qa|_e{L%q-CAK@2rNoM;^pJ`i%2k_u{j1f zR64}Y*H?=4+&8ts+JpX<50qgVhMmu1;g3O-n*vG|kXheAK9kOAJA1> z;VZ{*nTAiBPiazTgL~SZd^Gr~QkhGJogIS^1Q3B)gSj*XlSx)VmN&EM*{ieZTSj7Z zAg7A5U3R{qhiZdOyM2uv#r5=e=4xsbwvxzO8u!xdR0@qf_51E4^79=k zP$FvZOXuC~wN+;uo;l<=)+$X7U*0GboL1wX6(?v8Lr~jT5x~)*e!k<_(;qtyDq;~- zq5+w7`YqBZ4jj`d7(L(2T<)^h-G$|+l!Y3omKvi;)znbYq`~rLQmbsEF|iV2?6aEq|kX;aV>F(w3of#h%FcFOBY37@JC*R~d=K%i! ztw8|Ldl|)jojAW!+o}H>4F7|Sgrk9X2D<27BGMor64~3gA3JFc#N*(I11N*1z=yG5 z0M*G=v@f+ZpAXX~Qfn|GsC~Z@i$MItPul}C^mnnTrJ>_;qNiNPKfvdG*Xn!#5RHQG z^a}vcksWq&0U&l!S7?bk$#jSa!7Uqp(>lV6tIy^by?1(Hdi?q?(Te6r!pn(h6g(V; zq(}s;tqtnSO9#F8sHJnJ2hTI3@G;XW_4)h(7^Vq(OQF2x33&abP>Q*U@vCBXe00dL z0?*dJurU*hKo9`LJB(wdk?T5esP3WSs(J`-I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lok#&|4G$ka;@RWRbK(4Z42MHR zK=Rfnu@4~-7h-Mh)OG9L)`^Jx>tN7lda6Q}jo8_FfH4*kIdJg!I|R?nOqE{JHQu>D zBLL?z2EzfBnR&cVNwXf-7RGI|?@RL25Cp*ohcUC7BwcY?+K5DiEK5m}KF5w$7^Mkm zmQc_bL_j4EXDmRzvJV~+rPFCMOh?-hfcKuo#RV1?=IQs_WUi0m^K^1Yxs(0K#{`28 z1_>_njj>ShoIH7gVmwE$zl#Wj;3ge2J~)P>J|b*KfO?mT^OjfxS(@NOhKT?E*=%#76vuySojsj71Ie^i9Q+8S7z&aqwS+5M11W|Wh!=$@frMa8G$g)*7hE)&_yCBB zk01}=M`P~{gY^Z78fl|m;IuPyX3p7rFE8e!Q}o7tch1Fc{Xf>;vbOfgu@L2Mnx+>J zF*5`)1mVAqnSlrbhM8np_KjBTwkrZ(EH5vwESz49BIv&W!%uq(h>00-^XG>bHa0fy zxoWk#a_053(Unwx`~6qCoeb3k8!`4s!++5N~1dH9!n(kjXv}#ArCDIOj%I-7pAM zCB{He6zD*as^Chc{h&eEs(s}{>u#jpgsG`%N~O{Oq7+5J_V)Ies=l=l1E~m!>Zpa0 zHXZb3aX3-vW?dSM2ZRt1k$%`BW@e;mg~wZudGzQPR?eTJ@SbL~$^H9Z6JtOG%mfk0^PJ;zb6kAu zB6+XqgUk$3K_p@A)6Y3^e2&X+Um|u|)M_Unc~Q4l+_zioD>+%n|C()#>?s&sqqPSLaW0@W4S1 zAFlJ}(h`TBeTFnmSvb9bSsY|zbbDPoos8+}sl7GbOGm*qE>`1tmR6y9_5#&rO8 zcXwzu|0c!=BIJ3_$rC4e;rSP7wRieqkL{6(igdCz*WSCrpMU&CyVD}kgu;8awzr5O zAgbhfk9xh%V!Z literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/format-indent-less-rtl.png b/gtk/stock-icons/18/format-indent-less-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..b33dcf55a2d9c5fc958a9030f0999a1b189269d5 GIT binary patch literal 798 zcmV+(1L6FMP)pWV>h5-E~>apB>mxn^JdmpFZE|QzbWVzH_k(aw|>KB}B{& z0YgOiuVH3@AcA2gd7givHGA6^74I!BE;i@q7J>*WJR&f-v_}LnF(a&Rw3b#^S66(N zWzFZVTn)~v?)<(@C(luJ*id7nG`JT+MJ-La@Z?ka?84Qsw)Vq|UPLTd(8GfRin73Y zho~}iHb68R%1MBtENCCJNs~-P1V8ws_Z}6cs7e$=1}t*Sm-O_4LF63X`yr|y1R<)3 zDk_4CjKc2EWl<1!0b!|r@rS%M}ePu>=aHNwIt)-k3aFrr=RiR?G;27GwVA7yz@NxRRgAFV!Br_;%)EU@&_HO@Y9 zhNI5mu(%#fR5jFUwceg_p88~+%Tv?;IzmFIs6xf%dY!zJlSBztb%U9yKRi6Tv)1~) zIX}M;K(s0Y-R{Hwxii}Q(r>W=7CL}YmStF9zpF=i{CT*ZAMV$n*TG c;PlOZ0Cspg640(qApigX07*qoM6N<$f=!Wox&QzG literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/format-indent-more-ltr.png b/gtk/stock-icons/18/format-indent-more-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..e6da4b4aff6fb6597d605a18e8045bf8608f8e58 GIT binary patch literal 813 zcmV+|1JeA7P)U+A%sA;+u_$=?w}e$q$)#%vMg!NHaUCt9I3B45g`DAKoSztG$lz= zR2A<%S(bBZZVt1__KX-Kjp+u#hbjRO#yyX+^?QAe9C-`??*eI>V0u`f7$YH!Yj_9} zAW0LNjV2%8_>|+bO)g!0i9cF9?6h`>Q4bP>z_2Vie&Pf^c!*3^B(z#Pl;u9H)?L2% z@@vk_&og)GBrD4+BYh71GgOTbJf?<-n*a%X_W4)*eET*@l5+3fUu=ATi?`l*m5q%J z)O2*ALJbB3=I77w!um;uqDQmbF(gAYHVmZrS<`fH@M8kaA>GIq>N5fKbS zRZ)$|qhe1@O;Jk|PCxY|FJ8F7u_umk_stpJ&glvaql~x7!&*4{0O_ zoo<&)7hk4ct1}oB%shUS^XJzwGt59^Waj7$s*3Yr;{A_6hT**D!9Ne!+Z*7V;GD-h zPny=NNHr9t-EMRL{@-L-o#yN;8i$8l!yv8IaNZMqz&Vd|GIm8ZqN)V%Nz+So^1i>M$(!ta)6tn7! zWO+_j&*}C1YGy9f+tKaq-(0^aev)hN rUwfKiyqRbD^Zf5+6h-l)diVCfYr;fp!sT^$00000NkvXXu0mjfBpHCH literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/format-indent-more-rtl.png b/gtk/stock-icons/18/format-indent-more-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..3252419f8b9342d17a318eda1c3f403747966d5e GIT binary patch literal 820 zcmV-41Izr0P)8ThM1BEjZ_m6#s9z#RL~+g(4h}h=%AQ4oQ4Xwm94X?L2m+YQRbE=l5bdg@dxiu{Zh5ep$| ztJPp-b(LDRN|Gd)Szn7fWoBlEVyGZ=0)`Pf0YoUWLnlP8%tF@dV~yWG<^ zGBV1|n;U%o>tDW4yTZ63#i0?)XQBM`<)mrk|bS>8GCLuk9VOH0y7=?^7Q zBA^;bDG8zm5c^g|q;er5)N6Id#>Wv=R2AGYcN&cbS(ef3^$@9Q9hVcKeu#jZ)BfH@ zRcSVxLu}gZ9VRCyhA_rqj?UiR9%hEf-~inW4S~sti6M4z5G1H73yTYM4m$M8s)eHq zVvLN9jZvl&KTGK7)ZN+M{>JX^FG4jBEG3%F^W3?6d!Y7op?=?H#?0(>Qo4HV2zNvS zW?t2u#Yp;YK7IU5Q4}X4fAOo=>ntuV3~gCFZRxIFyMl`#0)VcsucxBO ze{OBHk}@P)1gh6ot>7ne}Y`B+@_;M1*Y;?7RVu3k2ddsPYhz2qF!ykdk)*DnK%Mh}ek*bqXR< z*mx&1b0}u*gzUy-rD^u=p8K71@2&vA!TW<})|d}jmNjFH3U|1aQqlX%pKj`2@9pg$ z832Od-#mZ$s=dA42_XcCNP3zz3Ic$H(wf7QYP2>N-B!+^ioNQ$1O_O^Aso#)#oyh@vR2)}X|VA!2oH z6`ju01w?X1)ZOVOA2rsLlG?SX&1i5us1nVmX3^d0EDoChL&5R2c<*t2Yyu#X$gRcFQvQEyD5*rGA|$D}AR`fyL}UWqc(_r?=Q^=-4kXLP6wZYr zskJsV+90=i*_CylJ(MWqHiyv$T5B>!4FIa&?+53Kv(e~8CX+FXqCh(C#!2_4Wqmvu z^K^6~&J|~ehlkz(plI{%>$fk>???Ssn%13uY~nBd2*$h>5&i{h=KQOiPdax10000< KMNUMnLSTaL{0;K} literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/format-justify-left.png b/gtk/stock-icons/18/format-justify-left.png new file mode 100644 index 0000000000000000000000000000000000000000..3bd449d1a3425f2494cd83e47c0fe056e3571f77 GIT binary patch literal 643 zcmV-}0(||6P)QWNAA{0Pe?$`MX@ zVBMMRuJW+MEDH#B(ueL${p#QUsu}^E7{!~1tTX7)5}Zf^QoJ)2!#UbXSDaVd%% zaSo{fh9KA_l&Mj#XR@-iYFU=eY;A3Y0N_MYN>Nfu*8S7v+t=^(`voEn5r{F-oNltR zvW%Hw14X2i1aS%wN~t0UB7$>{=5&)7<3N=NniBUXC#l!#m>ES;ATs#gFd2dXgi8L{ z*gaBGWW*NZ_}4K$cv`I%S6vL34^jr4o&6@oSl$dlni8Q_qt$9%D@M3_A>x>wok5dU z95bVlWlT&=U_gv75@GK)3@`I-;ty509$KTwbb5qmi-xaQ$|(FBB~-K0wu~?5b8i$#BkB>TmH#Ff&e1 zPKo8HXiQ8^Pcc6~U-{GT_wRlhKnS&};Zz(>95Kcbl{bS#%*0R|WL#WYD4PmIgrtcS z)5W}2V`63qViicuym!HZ4>YpIP+AEKE)cRXGPJ=5y!U3R9>DGI@28^3Pdc5pbi3!4 z=Q(*^40ln`%X50Y;m-4%^X|DFb=p!C`N`hiUJQVV53fIc{5fSF*<}k)!tOZpRNSwnMQ(j*LMde(m#zR%< zANC0$V60_!cJ`bNV68zahIM}KGLXaJkfJCs#!ix|MO@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8pqdyGz`^b0^1-9mRW(AY?Kb#x7jon@iu*fA9%{AgI3~SznQ& zWHTB5SXf|uVv^INAMoPf;JP`BRwLdXexHSfTWsIn(HfaLNCEMQ$J&5mvBXO+JkR3? z9wUz9=9r2IPYv|*`^}q_N+ove=p=DTYrM~Vd`c^oO5zfym9VVN)l^m0t5@$6ZD=j_ zs;cT-ZS8F0v{I=gAAWR7?aE4cW$wnzKzDbK2Qi@w@v0aRM5Oiq0IJ&DQ((na{QUf{ xCXAvf896<2A1*nU%jOR9zokS`bj=6mTUo literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/format-text-underline.png b/gtk/stock-icons/18/format-text-underline.png new file mode 100644 index 0000000000000000000000000000000000000000..29794ec0819dcd72daa0fd8f7679f1052c6291d8 GIT binary patch literal 864 zcmV-m1E2hfP)wAD=3ZRGbL96S5QNyaPZ* z?*RfY-s5T;YtyT%s~0tn6~>M2Kxk zMT8I#1Wag%qKF^}!F#N=Z2o?eOADWoWhqZjPqKIK19aLQ5J6Qjp&4kP+!YT|B@jgr zO2r~e%PTxSR$*l1087g&6yqWy((_S8L?0su;-66>`M?lkW(Rz1jA^&s{7AJjH}q7=t~5Cn?q zzZmsc^)jd`k%_pxxJ;#7=KeizUSoe=V-Uvs0gm#q5~ihw6D?S#U-lMQC>NHnlw!@QG~UYx89y(@$+R)9zWJ= z6J*fq;SPxRo?;xcw!XpQ(iJYu&oMbM(H{$sAZ%{_#_MmKVQu|K4m|cKdF}?o6b|>1 z^B!v>&d0qtJd5?(ThZuQ4e1AAy?y%PK@h1y7=Lob{Ztika z6>E3l@*MA7zp4QvFRJRI$fz+9KmYP8mli(dzTLZV&fT*{RF%IP4NkrE0;Aiy#5WH%0o&1Si~@4>D$TY3jW z$i(MaMp+=&>zCut(`PrPjqGXQ{U;CLfUu}n?m|gJ)cdP__HfUj`8JrgU$~xMq`R}v zIx1b3He&+9e^Ks%QjsjAlvZ#npXOS6iM&j4nn<)e>)fp|WM~Xmt>A{nK5zmGh6q$# zD;<@Uc$c86AcletjXmeumf?oRa4d}H5o{bvpoHgn;%%Rb2=f7nZ$U*70TBVw+413{ z3;lQSdk$6BN3{VlnXRXJNOStLW{#OD0^U_nbs$I?B4v!*b{%Ba`HEAqcBT0I*a%mB zRBb5nwU(tk`at(4BF2iAUd+si2r3Te6cyDrzm)FftM(CfUtYOEUgwza@ z`XjUu-Ksy8LGG`X}qk9S0fvAO8X% zgYQ;$#~3!pe6eEAL~=D*8MS=1+Ftc(bFNU_Awy=IvjlM^g82j~v+&u8k?@u5IouMu z`j$AKD7HADfRzyDAj=D^1gVt7SQ3i)D9cEt&5_Nx?;pC7KjKBv^=mg5E0(Pw6aiVd zM*}g#XU&|sMw2WpLOPpSI+ruoNGS_qGt@QZT5e)_mYF)+E;N7_H>P9b6>Eui?bhey6E Z{su{>qKn4ud&mF)002ovPDHLkV1kTo*^U4J literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/go-down.png b/gtk/stock-icons/18/go-down.png new file mode 100644 index 0000000000000000000000000000000000000000..38a5a731a87cf9cf54121942c093a8ef28484645 GIT binary patch literal 854 zcmV-c1F8IpP)9(E6vzMP-23Lep`8K~V5pQr1!97VF~k@XwF{G$SSoZeA#TJb#^^##T&WA6!@{+i z5bT(s#2v;|Lj6iew1gNmHl$PvAthme*biWwk52pEy!-BPF$`%D6#t8xd+#~tmvhd& zIfQ#?|L2>$*-Am0=S-VkI>-7-;hr2(3 z8U;)e9TWR{v3t@;7PleH< zgr>$f77M6UD@d)}AP%|83Z&5yxg!Mu`964U0QUWu8(xjo)hn>d%OIg$XjTvcKp@|L zpVtBG``~7uH3*Vx;KLuF@a#uiC!&Ux07oT3%(tI~Er+?>0SlnMth7Ccy^Y40%@iRB ztO;rXHk-%*w`h(^K#>9gB-TQ#-MZ^D?9g@XDhD2g$;oftsNU4ph-UD|P705&aW(`C z!GfExZ4eQ~1SnQuCa@ybHi?xjt?z11ylqnRUL4@Wf=By&A4~u+kWY8iO!3FPPrbbT zh3#*~rTVn0+BpPgWreqxizjlj`d1)G2mS{l^B&B@qy3k3tQ< zTD)c!lRYE9eK~RB;t|#6tu=uyLnww2A(8;a@CqEAFjJ*p)#d4nr^9ONo@0aMlJA3w zAZqd}i0^~Hc+XTGc-lLDe&$q=X``?gdV`b^2`Hynw g{$Rk;*>gAj4N<66?6S-s7XSbN07*qoM6N<$f>7I;k^lez literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/go-first-ltr.png b/gtk/stock-icons/18/go-first-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..42951107e82e5c0616e4049e49446d7132d21a25 GIT binary patch literal 975 zcmV;=12FuFP)F%%)X(3k>Imd0hBxN&Jhf+;a< z44Qxmf=HSeqKyk(v?dK2T9Q_vP@okGg?48C|NG8yQLbK|;pu_>Nd}fZ%%Thc9zaA8k-5K^2dtxK)uPJH^T)Ssc)O*u>7(qE6FYO2 za|U0@^_fw|&QEqdDiVv}oIE)++WXa(^&QQxzVKeSQ1176>e=}GHbf)}q5x(_ z-q+DTeu~SZhgUohshZDbK+zAHpM5FW^vo{3Fx&5^s#kC%s2XOLU?gUc#tKe6S`nP) z%maiFsa7)5G-F<|m^7_!jl;M4l8e)W6#YUlK^4>@A*Q6E%AIV2Vr~(O-D(gMZx~rM zP!1JLjoI>S_;K*K->|AplThbIrUuEoT2u|yNK{2t2{ENmyO3BgFwA3+rGbi7gXE)k z;trhqb7-0K_U5`3?ICsM=jWDC*R8?HS0{ zjcQzX4Lh?UNnoYK#B?002ovPDHLkV1m%o+rIz+ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/go-home.png b/gtk/stock-icons/18/go-home.png new file mode 100644 index 0000000000000000000000000000000000000000..f4c08e243c7ddb1d28991629c151256ac7ab66b7 GIT binary patch literal 1095 zcmV-N1i1T&P)Accg~ra&ZSdqX)6U4DYj*xLLDFhDJ`jmvM~iL5@I5V5_c{PQ6SJL)?h@u zY>*mFOI!dYu1JiDE{a05jV;&~B8@_%ozv;Pb3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5!Cj!;y2p{B~sPyY7=>&2C-nTDqt)>NH@CMJYwG=<`7L zgY>Q4!p?mIbgDA%zqAwM&me*n_+yl-j=i3534i+bfG*^!ePZ1k+P=Pdcer%kN>K|+ zNGUC#jIlVf0byb9N84D@n&9o{HekIB*3Xd5q^S5^;n;D+BtBuQSWsIr%RVJ&WNF{k_c`paP|Ay=7E3Ce&nQAFderlSTVnujt*=^A-w8mSbH(pU@&XDuV0o#4yiAs)ZGg#{6htJm`6a#QGNhfPF%VT_&8 zfHl4e7c?%TBeEE+93h2Jp)p7)XqK%UJ~~8Ob&`$U9c0oOO64lncy!KdHsz_j^y-|} z2rJGcPwIw93=8;y!K-8Ew|9zr7I*X2cSnij$JunR!&EMZ5r&9@miA`i@ferSUKU}< zXF3SO=SMGH>GA8JB1$Z4XD$*f6Mi*`KwJLJd2Yb&8a_yj;iL!z;T=C*}?YINL5 zPu5S&jtAfm}TLuN9P7}6P_s7JfW0CM-nEeN9DxjtQb`@h%!vJKQmBOxwVqx2hepRf^+?nfyi}oevN=v962pX+YN;qwV<~dEa9C)z z_U|F-x=4NKS;Cv)@55RU>oDce6B~PUc;@7(!sb}Cuu>{IjiDU+oL3G<2HxT88#);r v#Qdv)dIoU*=_7Dm^q&#G6>!(RX$}4WX3Mz~u+T1z00000NkvXXu0mjf-EIE7 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/go-jump-rtl.png b/gtk/stock-icons/18/go-jump-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..04f7a82fbd725709d0d27eaaab6bdb944ba13e3b GIT binary patch literal 1024 zcmV+b1poVqP)5hk6mO=~&0hWO^BCva_Kkd?R@nGws*|)acv&JQx zT0)c-oCD9e>Dddieb=_RQLMx*TIL_^5PKNP6K)RU5a&{A=gS=j7A%_c;F1;Vs_~i; z&xKa3YD7$eAk6aI2fIi%-(^EvqQCnG71zA|>nO*KLMwy#33E(3U!lFOp?1$5D<27` z)aQ&}8-SUG^JXAk9WQjgMcVpoe)fGn@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^fEZwa1(dDy#e1FV@*kH6F6|f1fPq39+}7zdYRfynb$v3j zI@+j*a#y6QC-D!4p|t@31p_bx(|!(>fv`|IBn9B(wbv^1S6rR_^JZpwU43;!&1&y@ zw$~bWvsfS(f(^jT&_=`8E?hl}@!98yhSos)0!(urt9|jCe%qkh_xSH8KVJ=8ToPLn z*CSKIGFx~8ivrNvz!(E#G}r*HKLc$Ow9jCk8@<9$pmS;e#@6HbYVhvwee8?R>cboL zqrxruNkttbEEqPX)S5OL4u$kk?ivY#JqJp|G^L>W_v21$XK>5lgDV#bzFQls+Mx69 zxV-)JI!I|jD7rx)%y@Y_Z^mFr>lWZ4k%0WK$3zcgZxXuoWGLq8$zQ*SZfFQs)SKV# zpYdiq{UZZ85C{wo2nai1=O*N*zYOesJPQWBv7#l|wiAJ+B)tpK>SeLfv1j8oQ`OZS z2Z!A^cbVV)*GjOjGZj%#;gTd36J80tl>002ovPDHLkV1iu+ BeGUKs literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/go-top.png b/gtk/stock-icons/18/go-top.png new file mode 100644 index 0000000000000000000000000000000000000000..4909f7c2a8861916aedf3e5a030458ec7efda970 GIT binary patch literal 975 zcmV;=12FuFP)CDek!L=!?qPXdM*Hr3FQ+HFg>?QXZ-?!No{nDI~x!PIXubC|;?Gx^R8z4b+S zRR^?Bm;?~Q29kT}et{tzi$mEOzPxzc9HYUnLwWg`*Ri#=1I}3xJ;-v_!5R;19Gvm6 z)}dZEAP#uZOscW`wcMk$>*+w4M4BqjZ!W-FhjoqsB!ZwG8B~3QI;^YNy40!$)k+QC zf+Lg_k@BUP>l6rsb9ZjUg1myPw@-k0z*T{|u@DbX=mTaCXV=1eMwrl0(6$F~0ka&O z{SzRJ98FGXX7XjTk8OAc*%Mg8M0x0b^q+yz(i|e{}gp zKRkWPzJICPzj_8kfWrTYQbW)aC8)Lts<|D`MGrr;ygWDZ+Ma>E{auIUujQYKqDJ}c z&JUEkJ$9u%vHf7&OsUO;84`a4>ywV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&JzJ&(2Xj+Xww+O)N`qpKlUg`G%(Q)38l)0e(hw@+Su p>htjrySm=^gW19VV3U%t@e85ZR0mw%vJe0O002ovPDHLkV1m-)We5NO literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/gtk-connect.png b/gtk/stock-icons/18/gtk-connect.png new file mode 100644 index 0000000000000000000000000000000000000000..86597db7042f15e8abc1c80d580f5b83c061dd19 GIT binary patch literal 932 zcmV;V16%xwP)xUx zX*M-A1pp%UTr;zIt`Z}M992kWDcKa}5I z`bw$~U=RSLQYkTiZvIK5Qcoyq+gQC?bLp#kXn5!u;c~i|gaiPn4}uVpoSBWkr*L{V z8jW}d`uovnG{J>{X_^p190>joM9E~5EiNvKnMC}PK%npZ=@*_ypzo;d_4?3iwP^G9 zCRw({h_OQ;(lm|I=`{2E{jyjr($dnBotTSX2=oWezxl>FtIOM^dfe@5dwU03hJoGk z9)ys%*I^ZaOr=s1z`>jg3k!Yu!j1Q56A2LtJ*}9QMG9l6*K06M6Si%GfPHuNL5vt? zU!M&d)%v6@_y{9*e0A-o&`5ODcXBj_?VWA>wfQGXd%KWQfZH5QRlpPmoAbM%SI@k1 zg}4|W3Jp01o)|#i(E!|T7lMN!xwTcKm0T8;DUO3dX;SU8cO97Tt{3Gwgn;vDFuX-_q~uBK5>GVt7ZJSa$QzywKk(= zpwVbz@Ts6Y;&hT}S^x-gU+hrZKtzx@3{$f!*Oi@}T~sO+R4P^2wq3I^mO+?fP)JT z!reeB>+9>c0bp`+Qk|HXAYIofnM|^iqp{`HwO=CDYBd^-jvy2a@orzY?C$ABy;hZO zmzxNL{LMUi{k>2$O=Fo%28BXF=(;WeNL|;F$z=H3Z@qKz`{gU0YiqxbH=9jWZByCC z#s>YKzd_;fu;ezUJ0N<<@0S2DotTa_>b3b!Psg)HtJVI}%P)4$&CZ=F?Uix$>N18S zVLWUhk)~;sN~OfXK9Ulbv)>)F>W#0Yolw-wy?1gHnXbP;@=I4i6+qLE*8fp7bco) zQKN}+=Y=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`y;HASzUBu{=WK%gH_Ip1xndJytqnR2AnOwZ<|x=cnm7%fhwutj=9!^J6ce zJ^^(EVUFB}5u!qsFxL-JfpqUsIQrzP8;yi-o3+Gx%KZb3Y`KqeZx7;HWc!Bc*|ZA~ z-0C9v$|%XoO~Oo$z$nS`4GIJIV*9tL7;6I&(ZB{`jKvs(H6UV8@4!3q16#=qjnVHC zGUZVO#fEv}c9W!CN0YWFssXH3>(-xh%+JqI**HpKBH~UH8x`o=yc6H86J-hzw+K=Z z#u~geWP67|1S29rr_-s|8;yKrpsE6r&!!1R_Hy%^6LeQ=(l@+YR<2*fMkV6fA0UFd z7}s7RJNSquorbz@t7*rd7%w!NjlDgk9+S=FB5sJO0} zFpC6f#D=7bn@E=*NEWZ04Hjp9{7_U?CMJ&^NvES{jWKyuug0V#42<7$>%HDB)!cA( z=Rs1XyHU(~niW;m)^DH5?^iDT&<%_G<&Iw?=MJ9>rkDbzn3~$f(-RY^$1e{Zic;Z= vM5PA>6DsSSNaD8Z)-RZR;mE#Yx2OLCkzca(UTk##00000NkvXXu0mjf6O#8N literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/gtk-no.png b/gtk/stock-icons/18/gtk-no.png new file mode 100644 index 0000000000000000000000000000000000000000..f69476bd95c89eb5cca6f154e5b794313db61acf GIT binary patch literal 906 zcmV;519kj~P)r z&ud&&6vsd3-uG)V851(o&}pP0jT=LxLO^g~{IyUjbRh)E)~&b@+?PU^1s9^Y@*fag zlxlIKH6?B&MQOXKsWzdFgEN_Nrp~U z!R$6PwxO{Fvw$t{{*Nt9rbRA8aS6OWyf$y`TNU5mRBJa7!Q}bgD9d*Kaqjy$xOo}! z31?bJ0DT|MEWyVMjmC$|OH1BDvq`nlP=H~lBi&YugGZ0@PN(zfUvTwHIGS*UlM;&$ zYPEVZNxpgR?Agub_4TweJL?ruWQ?_THzaO zYd_p))=gu6lW=<44UVHV6>sP*qSpIYk)9Fr85{@Aj@{Vi!f8Q zcC%)Tx^CA5X^I>jVO60hPQ(B$3Q(m`B}@|XUeDC3RjpdPc`?goyefnkvoR||5y#>= zhi$j9s+g&#0T7nN3BoB@ zpgJ?7gEW<4mhD`FkpWy!^}C0IL6U@_3q21}#V<2Y3wa`lDxv3*M3H+q7$jZQ8-Ozk zvH-iSB>Ce0VBl947RH|MqpC=mebV$o70>sn)a&El`+dJ1$Dh9dx3qlb0_fZD?8_ow zuU9HBoe#tDLYjJ-Wn%JN6ev7TB?$C52;80V*#B)bx_v`+`xp2FaJC$X*$2N1x6>?p z<~YySGiyz5tq_Jf4g&tRR_?3HZXDa)G`)TuuHJ@7nz!1^asU7T07*qoM6N<$f)IAE761SM literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/gtk-ok.png b/gtk/stock-icons/18/gtk-ok.png new file mode 100644 index 0000000000000000000000000000000000000000..f6ede74a8880af2ae25ba2b3de992081678b9db8 GIT binary patch literal 993 zcmV<710MW|P)^S=ugZJ6;UWg zP(%b02-$8#ffW?47#RqrL|!VTTotyxj$Oti6uAUTkl$1(#E=~3nyLWHyI{C~K>nYz1 zov}h#1jfSqpMGcbe+^Dh>=%?ucKx1r@^S1gUO2q>avWKa^n|-{D->rg{eg9wz`(kd ztu*+4B>&+k6ch+Ysbp6d_P;Ex{ml1ly0^EewUWX(2qH@mI%=^cc9P0WjUWpBzbh&X zCNCnW_ zThzl}?llYgifgjjrq6ffd-@6+JM5`*SL93(FJ1m%z9*YaZ;OoSyf#+h^0f&uHd*1( zt~T=BcXRanUlE1EfEpa!ZrZlI@>u(lg&*$DKisxrQO-DPRQ2WzwMdfiHCh;KR6`0! zD&cY0()p}yZ{hcmDPGur)Cz#M{AA^L;ZqSyj2TM>efVdCGVim()Tu zB$P^df?Q*YOjC+W!($lhC>=T;>5iQTj&yad*|GVNE;nAO*_)HoDx3C*jAL>-KueUb zz*CS=proZW7tm%cVPw!+5d?9hg+<{6);hx2F&kM_Ev6jCSZ7EmNcn=4FGzb5UqNgg z#yT>M2|HO0DOYEQ)x`O)2P=)8m67qv;}3MU%cgYF{BrGv^gT&SE=8^}VX|r8X3`0p zN&B|3!Lti8DZ8{aV~us{gD-v(r+>csx|kdLlC7`yEo)nJX#3{wg^lS3<4LPT9B?aw zgs)Kov;?idT1UA$!?&j|*&i-keQU#x{)il#dc0`n@Iwi=H?_*QvmVGe5pS>uX*3}Z>Kknp8e{a@nlj2VJxMNWmd;J zxi~I|qaoL?2Y?lT0z4oAc%)KEtkncTuxiuuh3V@TFHc-Neg)5yL{R`lKv*XN0w5Ii zswCjog&yFOOnTI60g$S{n>uk_a69JT_ejEk9Qv`P)VckZ2gT+DT#M5AZ*%P%?K^L?BgA+JiM;)h{q z{6}qXZ%eIKYvw&#tyVJtnf`qG6{U3w^nj{n7=ru@iij!VqWIo?x!C>j)YR10-(WKR z=_eZ#6BE6M1`iYXLEexz8kiY|p{hi?5qIzY!R@tQSz21Wj5S|BeR?LWR4VHEzTZ1K z{A{bMt4orkiHIU1fFUBNx(=Zox5KSQgOQQ3ma2PxVR8Q4$&>F-R;$%Jo~oFLxG1_u z6h){i0M2<}#>%x7cB6=~u`vo>f%Uc93=9nDi!Z#CI_EvNur&X5rBXTWL7RZ8!#S5T z0#)V9ufE{I_ZKjOr;i-r!w)_pZYI=k)amQ(^F%Z~_{722*4Nf&yocPx%qSL1T)V!) z#UCyb1OcAsadqV?^9%DlIWWMv^Rt*i97nFduRkl6g7>_=?t!;qeyo;F`I z%H>A@sMTtuX^L~YC#F5poO49+E~~$+QYw`?f9YwyT$***Vwh)UBBHHA!53A)c^nh07*qoM6N<$f~F9n#{d8T literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/gtk-orientation-portrait.png b/gtk/stock-icons/18/gtk-orientation-portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..6a6c18f54843f1aa3ee98e8823a46a5498b2b50b GIT binary patch literal 864 zcmV-m1E2hfP)?(7czA_jT_%+rcwwV>58U<_tDx@3q!hM*!yLX2)IR zzO>Fgt*QouqfkUdRYR@OXngV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WB#^}$#UwZn~sXzAsyBQw#tS{1=9~e*>A2;#zG~#&} zg-9JYQn}hG8A|6$T?B!TZ!NXhv7sZ+&|t}(I`j8{06H>~SVYvtu|(tJRHvsAK!6aq zjdeXQcj}f+z1+F8!1-&l+^xnG8`G$B#t17i_1J<00V0BU9^!f8fQR>d)bQ@k4*S5w zex7I@ zw+~}WUy^TG7n}6+PK#v}NoXqVq`m(QvoJZSfZ}4Aov#o~@0Z}>58k}QNx!LjuXGJH zY=7^I%+Cr>~f~ILe)>C5a>AXo&}(`&7n8kC19; zv)$`^cy{jd$C?T!F8#VUf6!>cz5WFh()mZ2J9n1K%miKA-l7&KI2U76tH`!&B*?Xq z&NWkUtBCwHe(zK7mqdaCmX!hPyCFU<3duHik?$O;Un0Ckdv_nYG(#buBM1an9;4XN zgKgfV#(18+k5N}eokLv+(tv7$M@)O?MzS4S>2xu=Uk+0$fOH>!&kT@r<5 z@10#7yD_`y-JHBynVT5DHhb;#SWq08Sem_VqKT7*{HC2QXe=qovX~%)*bL$Y_>G;U zTL4#MQxsLz@bY1~GJ5oE z6f`~~s>sL)W_Xxn1*Iw?qF^}wp?ll+gV#vqHwz}vdso%CR!ySvQIl)fy?yV(#DARX Vw5Vj{leho?002ovPDHLkV1f--_k#cc literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/gtk-select-font.png b/gtk/stock-icons/18/gtk-select-font.png new file mode 100644 index 0000000000000000000000000000000000000000..265f1433072ae0ef22b4f88f128225ff596ce72e GIT binary patch literal 925 zcmV;O17iG%P)1jMv4F=-U5!MN<6 z7~;yrm>@}|QlV8*7FZfYXscH2f)HDnnf{&5bo#ybTzu0OTo`Y1a_{2hN5}qDP0gF1*t(dRx~cKtoFkD;5Y2X#L@Ati z%+Ab#IPSfBy~Wc!@NIvi2?4E*o1V+*OP4R1fq`=r3PsZC23lWuo>(kcQLtLM6<>V$ z6{*@32M_Ego5@lUtH4^TFe{dNwAN^?InnbqMr(@2BAILkqYc(tf*|0^@Cfg8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-~h025 zfb)kUzuo?2@7{^*m8YXmyn!2VLIuax0MG_X0luKFA0_Z`obGUt*NP>6bb^cCS-E}a zPG1}sprsv?>|FGuRE7>jBCMaRaCAE_|f00000NkvXXu0mjf D8$|n= literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/help-contents.png b/gtk/stock-icons/18/help-contents.png new file mode 100644 index 0000000000000000000000000000000000000000..7d5c5a2cb8072c4ecbdc2b046a5842b4345316f3 GIT binary patch literal 1243 zcmV<11SI>3P)U5qm6P9&ZvQwNcIxiL%X5#cl zFUZtQ8Pj!UBU`2u2bN3%qLQgAU=@&x^ne^nq3yrlVHeZg?MdF-_vU%?q9dEsRzwot zQG!bl=l3E}ICYi3>P<;a+n`TLEkhWY5(xz&lT$;1P@n?|etxyVZ6OGDa!hi$kT)f# zThUjWaTg^hg+}?#K9W^VGfKalpKpi7CB-n$G#_+29SAPq@#qM2dpzK7b;J1ZO)%2n z?wo|TBTn%*Lc%yYwvEW7X}-82`xvj%kN@`iLhBrhV-3cD1pr_GK=3aT0E7~Y;y?H7 z6ZL)GVYlh!*FF!wpEO3ub(+OieNK!7|c;7uv2D^_$j~{$w#X2QFVmB*!cwhYy1` zHC2`^c^)H5Hp3US2ZwzReNsv(q?G*piLd1w&y_wXxYMEo005hfIvfrH05J3TapV3M z%R=`rUXT-#iRr0`xN@aguCHF(k1@itH5v^(u_L;MhM+%Ld$GIF9+!)u9Q+HwYuHRX0y?nni`eM<>GSBJ85FX$ODd;MR;K zutGzna^fT+2!O15Mcl65fV-j*kU~IFx&cb+8w4~oV1If#bldH+lL7K-15ga@dnx0r z#;6K>T;J>2Q;=&m%-gj~aE}L%e6ky77Fb1IEG8sKm?i}KjI*&43c^r|UWB-U|5jLN zPIBOo;Ot$DRpgnXxVPnxtkw3<`X4-Oo{GuoGpD6tQ4v>9M^PjeqoWgHI{IJ``H6~m zIi0c#tK{!Y`Z}}M*)37;6--GMIvDfVcZ+E8pGX|Tz@n`HOhcjoc1P28I155vGSG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!QkKka&yxl0Gn?=qR|LQU5uu*Fo?(k0INLe>&%|};;3333MDDqu}u_4 zW|k?vLP*AGG*0Np_v#W8Z(T0CJnCx;o@aJ|cbB8yoG*mRQWw!J1t@;=^R>6pHP@@F z77`VWLz5B_hzQOL2ANc{kXZ#x>D~*OUjvGsrul*f$T*HI?b?Mkibb6;i@Ntm+mZq- zEyTWmn3OLB)r0STk=+&mNV)D&^SJ(LV|~*kd6-kKd(_EvivHJ+?GM1RG|puBvgiN+ N002ovPDHLkV1iC%HUj_v literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/list-remove.png b/gtk/stock-icons/18/list-remove.png new file mode 100644 index 0000000000000000000000000000000000000000..b886a4d992e865731eb6fba6af3b7ef631c55f9a GIT binary patch literal 304 zcmV-00nh%4P)8Vd;%$OLilFHUCO zXCszo6szEAFB~qH3;(P_0ElBlvM;|f^lp{G!2e;RI5yEu^Z51orB#%^LbYBq5e=NN zo7-FY{n6XC>rXp&&cj8w8}%AaQEGZn-b-PY&6EDLbKn3}DNj!hb#HgaFBXLn`Cg`~ zgkj*vcQbQ-c~t_q&xr9P=gB*YV#x{*st^Plq-hQ)Um_84!(k#uy#2wx)~i889Dp0O z(<+)Y&mOa^Rj98}Uvng*ff#GUMm}n%)fyjijrjl~qhh$RU?wI20000QEM5}MCPCN|A%ipVIHMW&;F;;Js>@==jskM-rZ%Nh-?`_gWd4nhzmeE3z4z1S zJh8JuAqF%6Aly5;e~Ka1!1V_oWZSSI4g%e{(nLj#yeR8eCfimBheMc&yZ zG6p?F#6%H~%%6lP!VlLFgHXDFF@gwWX+j7Uj4_A6=y+%J&;rDW+yA zoV#nyg+U6T*W}a-Pcc!QY3BIH{d5m}7UZGm8Vy#6)IQi%zm#_VXh~nJ9no)() z1)L8A1redqsPpU9>#Wxk)_z>W7_io|y}eDXwnd)jL{W?|=-@t)md=Y9KS(4pR7OS^ zo0!7PogusVH`ZEOtu~FuHV{!1CB_J#ls&0JOBUy07*qoM6N<$f_agH&;S4c literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/media-optical.png b/gtk/stock-icons/18/media-optical.png new file mode 100644 index 0000000000000000000000000000000000000000..aba244232aa912f7fa61d05556cd3c9827ed7f55 GIT binary patch literal 1123 zcmV-p1f2VcP)W?A+Sar|)c!uS1J(@Pk(2+W9VHmiDids?B?k){pJ z+dJAjkWSYj9*==Dj?#PyxqKeCMuw5gPhXFk;jfM#?;BadB9qAo0O;BG(K`n||McI1 ztCz{P3fgtcLD9B!v1rkJX^vdi(L@w@o~M7g^fP^Ouy=m%$9vyj`i23({)79Qn4+5p zK0BD~XloBF+cLD);G8esOn}xJ1VSttM>HB!zm1KG?~Z-z1X{m+^4Q5?(cj-M?%o+Y zzh_TRbJx~4gBOJt2ICx@a}W`<($J(qqyYeqTZZd-JiWe7MWPXNWOU@U?rq&?1WfE` zY-spq-`-w5zc42j7D^DDFKK{qI6{V$@O_Ud<%5C4^IR~_ctc&Io}7A6`{;505!ZgO zyK_q?8HPcYRe&aqvap zv5AMw(3+LWBpkQQlv3~m58+6JN~JjrT)pC~Tf6Sd<_*nX{CeYhd9E~vNH{{i?;}tO zWv7f}A_3DhD~u&BwAKiM0GzW$g@{ln6fiTBD~4k$g2HTJk$fU36@Z99T7xkG0N}3Y zKAp8Km}ZES3ZS)yWfxdQMG{?GyTZexqsQ;v9Y4{%tveEr#V~6Zm?n)t1qg-0ux$&T z=N1jyvTo&a(`)P2*J&^aO&Wn8;EyLW=<0e4ZEYP=aE^F<1)l%?6t3$m`U^lb5>r#t zH@H=_Z*eZ=`N6@POew`yS5?FJeHh$;U9>QjpMdAPvLXr3cb5%m*#%advl-_ChLDIy<49GmMs-z< z8n`yVA5K2J-IQ**AhOvkZGNM3&!XWNhsAyHd({OH(V=RM+Z|G?_Fc zlZFW?CBl?5l z9*0s2rBVs`nLNhF$MA4+@|wZe*L{8GmTQD9`Dl5;7NNlW002ovPDHLkV1hxU8yx@u literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/media-playback-pause.png b/gtk/stock-icons/18/media-playback-pause.png new file mode 100644 index 0000000000000000000000000000000000000000..fd7253c9715383316bdd4ee9c5b8b19f55cc446c GIT binary patch literal 512 zcmV+b0{{JqP)in)5dL;`vQF|}RFR2!0yOSoT1uY41r@_9P%$*d4MW8%Fsbzfl$ik2z9Xt(EK6&a?Sq004g78y04HkY~ARwVSRm9Y1^e{HW9_0Ot8M(iXNat>JY?njzG*f0jOW$ZinaeV z(ponrlZkrw;k`=da}ZH@H8Bd$&VHzi>4i!r34E;^TSjpl3jovt@9pWA(>$3bg|7qU zdHQ@j9?S11^5)~`PX}3=ny?+ZLEs;6YVrSmBfkKYRJc|BUWWPr00000?JDl6eNfZ#EmPp*Og*)>yD6!L@(6{ts!E=io`@i z;-+1>QfychYJ(EQgoXe{(p!Z{0f8d#-Z?IyQeFufB>`vW-eNakelo_h?^j?fqo{07X$mzu!;$HuC%ZR9R)aottB+ zW-Rq`o+XDD7ng*bPUmWpA>UWD2al9Dkw`cmi_Otn-)nL{ZXBqquesIM)+TLx@~#p# zw}^2~V`*sz*KD>*?MC%YONq7Y+4M}br>?F>MnsThSpxvD+wE*GMo?iZzjnIlj2Q)h zaO4X!W@Pd_O93~ZFlWcPX3x*JR9daYKf1f$4G#_u5)mMPA|x1!J0da$L=9XFXyPEAf;FD(K1xd5 z&Rq}~Fo6LOfTWWkJ>AG9Q36#B3xQx4d>$F`apbOtN>k_NH{n)BiMu6H0%JxN*Xs>5 zK0d~RJpmXV8VW2fEHyVax?Zh!17Jggf)0m+Z%HH|0_PlbIs?x>attP-6YN882ZTZc zALr+0T~6l{579bXyWP$Zy;?Ht-$n#Pj4>@XACr3C2jNqHe`t1Q`l-ous{QVrduxe; zlx11-dcE47j6_M)_4W5MHKLAuQ@^_7ad_U+(z29j5r@MOPZZ>C!i|H1AywDDy0Sbv s6&-DEZG9O_GSC2k{@WOVe>K>C0cYAH9_0_cp#T5?07*qoM6N<$f)@@iPyhe` literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/media-playback-start-rtl.png b/gtk/stock-icons/18/media-playback-start-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..531b450de25c5744cf9c883fd14037cc43de8abf GIT binary patch literal 642 zcmV-|0)737P)Nkl@3b~741zR-mQbLnTbD=yZG;%vxnLG1Ze-mMu?RxrIA}2%6VpH7N5g6w zKNCY(7zqn8u1qi?)F4GfKEwn?+cM7F<3b_W25XSBzIk%bdCq%)T@(>9!!QK?qy7MB zn&u=T1_10|0h*=>UDquD2#3S_54uacolci8mod-kx-N@?48strs@eb$kH`0YSWI_% zs=Qq_zM8=F)bv8$zfeCXKm!$%r|SpWLPo}7G> z+wljQrt$49_x49l#jag>`RMU|T3%iv%eE{cGT+V4&|vKH=;k{m4**@)B>+UDJ?+kt zl1RXRC=_gLg4a_mzh~C*c4kUcReB(V0FguiXcI7?4YUY`zWRFq$>ydO)cWek{9)3< z;ylmhGLTY&i^7R0M8p_lxN&Q!!QQY250sU+wzZx>U2QE%Npkh`ipb@%Op=5{aX{KO z82i=vc2i1G?~H+S4n_0E2Rw$b@#s~miIM+XMvF}pb{KChh_Y!wT62l2L_kK>4 zmsOCvqEb2>PJjTx1vuZ_Nshk_dmO-cG}_ZXH=m9K{DDxgv6*>2)zUOK@M(30GXSjE zF7K%S$pcziUL+#2h{#N*XX$E8-_pc=Gw!v(8j1)#dZm1QbPaZAsZ}Xv^HC-L7q+-Lo@- cy*g|^0b#@#$4$2+lK=n!07*qoM6N<$f(s2Uw*UYD literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/media-playback-stop.png b/gtk/stock-icons/18/media-playback-stop.png new file mode 100644 index 0000000000000000000000000000000000000000..c41a2ae7b3b34dd5a8cddbfc3a2d60f79f88cf61 GIT binary patch literal 487 zcmVX^q5Qe{*9Y4sE!3Ik{gga1_mXZ^=pyCclG&GhQ8YJ$J+9#k)he${fBwqj|AdY1t zMK6*3n4x&j*pY3ZNX2%$tN)w%XJ!{}Y03I#Fc>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lp-Mcy>meT&>3UsJMIq*4Grz@ zy`qxWuV3M!(#1Lw3Iq|%W^?9c|I6FGS1w^Dlh&=)`G%(HUl36MfJh`_sH#d29ys*S z<#xRo80h!dY&KKHib`!}I**T^JR&HXJfp*-$)Vx+*5zg8Mrr9nBb}bWzNdX7spQ1D zkGd5_(HLVw(BE+>m!H{r^VW^jv!{Jjl4KnKFqKTnAs+6CMx#fsUcZd7_#hEQ$pGUs zMRO5}M0CcO5DWzSw`_LbfAwadK@`OW@kC;JDm`(&rlxL;2SX3mZ(J9TM&C9{l7xe? zSUfqNI!}IXk?<-MjGMAWcBHe})q!Jy=RG|=Ca>2!%TM@QEOL>mX?ir5%{%{@Y5)Hl c`P0Yt93_-`O~o}Cr6!`(hxPtyeta45s|ei7%~EDLLO^YIDgvLw%bmPCA7U^UpMPTphaNv9RF7NjNGtzaP>AKD^kAx6h z2tn~L`cuH)U<3fpobPVy>51(FfcExwHv12NoH-xw=(*6-GMn9e5DGy3c#sqBrS9vp zTO8@_?X`7Xr!#?z8KqY^)ZJK2Y?V@4^TG0|+O}gfH8!crii)dUr%s*@g+ev}GBq{D zIoGnAHgEA3x!t!#G`xF0SRQ1WCiD4xBpBRnR#(@^NF;m-fa08+mSq;y)zzt8J9jN{ zFLvLEM#BfCl-A5}2ms`#w0%eGf!bBIH37e0RjjB~hGA@KYHp~ksb2Nq%hxZ*>Q}FJ z`2zvl@ALEbV`F>PZ)o}0*>QAO2tfx22Y-TEw{JVpu%@wwai)}VSbcq?Jv}|S?$zs; z8(prVgMF9}YvNX>5w-?E0?&0BKBbS@pFHfJnC4}IiP{{ht zkc`nKBTq-j+jnm};<0nl8M7&m$77kM=^Yvx%zn;&3eG~Ll-7S)+66r$3v$@L1NV+S U|JxrYVgLXD07*qoM6N<$f~)L!CjbBd literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/media-skip-backward-ltr.png b/gtk/stock-icons/18/media-skip-backward-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..97119d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e(cyWr52Z8psCfXWmxOVF|y7z73 z(KU4_JOD~5?v*pGwBh-^&vt07J1V&_G(61U(BKv;BB0>T^gQ$PH7rd0!qXcXDI7e+ zw--j3nn?()2BomEMkz=$qplYI!&Q0qW_+pf4{TEs{k|Zft$ESH>Y7T2O3Xgc9 zk~uPgpNGa-8>A?$@ZMvSa(Qm-#vjXHD{SXT&n`at_!P6Hgk?sPq&c_mmT+Fk^PJoX z-g#_bSX|67t26-42{x-_-=8>n;)UjxW)}w5j9tIU&aO`K+#v{g?(iZw=MnF#RRrff zP81>@5s$UjZrinMC)#K&2otv_$#cib+KAFZi64Ksh*IFCss<6zT2Y)WvAJO*fzj31 zwAFRnyLROD_4O(U0?AUR?-pnDp(k58^>%@&Vi~O!B7%riW!57~-(9@IOxOqL$S|dW$4dlKjh~S)K#qyP;l?um?AIBC7 z1p`oDzhEaPAIaxSv+>lODOD`as@1F3AP<>S)q<*=1wp{&D;LSKjDIdVdi1F7>+AEq ty}g@7yMAlzdSgs=>VG1wq~3df@^1@L;|Q{>?}`8b002ovPDHLkV1oR?_HY0I literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/printer-error.png b/gtk/stock-icons/18/printer-error.png new file mode 100644 index 0000000000000000000000000000000000000000..921bf4aceb4b1012c5ac19422d35c8cdcd52f2f5 GIT binary patch literal 971 zcmV;+12p`JP)1_apJ0;;Ok8gJMvQp`LQwS*hLIb)a=GEc$oYO?^r7|%P`OfJd&73k)MZ%zr$`hv!^@Kr4I-Mp;)L@Ol8jH16P+$X86;b3r`yPT87Z(Lk zMPq9%rBaDpZmxRTmPb~EN~JFthLhB z)kPFVTM&cP)S$+o-pkVRGV4*aD)OgGc&eOEcm@qcqBD7b8-6a-NS>scb7#(cTKnx=bCa3f|)r39=JYbdO!3Es>zPsR=QL<<(U`<6?8;g*`uh``hoI2Jap2JJr$A zezd>8-_6a<+2>lbRc`=ECW&v4P`xK22C(kJ&oeL=oodRh~I^OwucB8UW&* zXLW6bYrkCM-rw_tL0ByvuybLayhl=J(b2r7B(M{Z_W|`8iavFVZduWJ-pG|TTM(A zNhEmi@_urk9j6{>-?tAbmq7#AK*&tLI{FFMK@VX zH(H^Pg;JpiMWLluYOq!<#e&3YGfCQHCY`yHnPl$0?{Sf&HjAFc**!nbd3YWH7#bR~ zqobqgi4RU34xKq|tZDaN4G6Hj1yoh7HJYZr(u|w0pZw_4b1PcM0~1B}246gMxMT0L z14)`BMvVC%grMpr2*UKz<%=C>zx`$qIJcr*1!~4IogJN8$QOv_tAt^Q6@xJrF$Po- zF%${~P15v1>1q&O5fQ0WDqQ~Q61iLsV=Ts6tg)nN%C4t&A&98ghl2!AAk2hxb#;-= z<}k)!jKLa*_a0*nih_}cf&>v!^#m@Ut*wnPlf@c?H5O}^K+ZZ;6;b5AeJh~5ckc?I ziYC@t8jS`M6UC+1mOV1Y(u`xeyB=MFA_<_&S{xu3E?h`PMn*EfT>H7ZR4QYwl^r{F z5QgD>NN5GYqadZ(8Hl6qkwawO{qEu-AOe`-;ohU_Vdq?l)1bO5j33 z2ptsfDc}EI;-8rXqNw6!ev-E4tskB&o;vd3zTu{b2+zN8@YKM--s9e@zxL}jlP}~^ zRa6CMQs&G?Cd}isuW4uh&h^w6J!3a#eZ5*Xt<|evogAWzY7rJ_~h#;rtXC7+_sK2`H#< literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/printer-paused.png b/gtk/stock-icons/18/printer-paused.png new file mode 100644 index 0000000000000000000000000000000000000000..fe5e2e414aba5976d16a464c2b7cf12a7708eb72 GIT binary patch literal 944 zcmV;h15f;kP)S|Dpbw-CP#@riVnjEZl&7Ksq7;o%jRA}+)+Xq}#AG(^Sh#1UVObX_ zO2S4$D#4XdtaXQlKExSnXz9%S&wE@9s5Ric)y!hzj4_^<0 z@QkWd%uxPiiQt@ByOXBJPknOg?1NbU@0XUBmq!mCe6{x6?!9@D=PDwrAZA7o1a9K; zrP^2L&K&~IJ~&&IHO+H-Xze;`)f#cyrmzfW1ttzrK#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$QdSmSsKM5aK0IwGse{na%oeh-&6m zn=Y5D@NL(3vT2&KrfKHijUthV@Or&s-@biDFc`FZN@ld(8N1W!tMC<9`TaDWOw!;$ zobvfRd1rbll}d@|k5O^|ekRu3)I2IZglL*(CK3tm?CkXB^z0tD*ZpDJ(xvubunx>j zN4`1AJtuljkBnR?o;_!_-Q)GZ?RGbF#z)hI77lMWsH(p0S~XR}!;J)T;j>zrZcbTk@`10Yc-7`Qol6X|psAQGyo zLbh1y3v7fP4hO>FkPt*14AluCg!CYreP{Y~&&lrY?q8$PXgm^$2mmbS_58Zn`3oCs z7uGImaJkr5;UiU5n*hM$^&tCTibsYoQ}S-IZ^4539iQy!IP!2xfk1#YO)~+2y1Kfg z;mf}dKDl^Nt*^poOifM6s;V*ocemYQW@wuBFXv#_u3i3u znLDf(@`UiZ~KGx_8l7mVE_L8%K!Kae*tQf)u*zEKvn<%002ovPDHLkV1g8zAnX7D literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/text-x-generic.png b/gtk/stock-icons/18/text-x-generic.png new file mode 100644 index 0000000000000000000000000000000000000000..4910645dc20312d790adcaef2d25d9ff9f064ebf GIT binary patch literal 748 zcmVG|)^V@@f}`Ld4kBP+bHJ6_sMajemkTx|c43i)2V8D|fEDFQNSp z1Qm59T~=(bS7SpA-o1C z$CkUJs_t%o4~N5VzFb>h1AKjbT|1qQ0f@WHwXKbB-@WwSr8iz*t~7)o2#7;|z?~2R zf9~#b`}Qw9eE9o~r{TmWUthi2cXtsH4@FVT{4*MU@xl9-7v@hlaZF+es45y1RY4R` z!K#Wg&6leX^}@m4qqjf2eC6iK%F4*yB@{&w78d3|y?F7hS7Ho47z`v?BBhctm6U13 zs4PjTCW^XYrl=T*@Z`xp z&z>DJH#ZkkO6BSK`HyxU++FK*I-NLasw#*G0J+IT7aFrCxpU`N9AhTF6q?PZb-Ue< zS65fRiqrWhDhdK-mfzJdS8!)}`2vfJ=c!WS)a)rnqf#H-zt7UrlEmXti)JDf#l*lA z#c?-8oJQj$DJ2?>S)4v~u8f7`d6)Vasi9Vj)pM(Znd1)ThP#geULexiBSW*8D{h7f znNA(`Y=KN5#3>v=RBIs1Vpygz&vXJ}I`z*Kk&lzh#+u~V-4w$>$#m|h8p5>Li)JGr zlG8E;F%-q{OjnQpJe2I*EmOm0+{hy%n{ ztHoc3PlHvJk3E_kGXx;iK03HlRS{LCs*+n(X{*&j+wFELN2C3FJ9njf)b*p@5xstI zx_Y_#y*~YZpTTgz!Qp}5+xbn(GVQn9?G#1CH@7x7zW?F7b3gt3<6<67`0wRYR#sKD e6GS#d#Qy~<gDb=^{cI)xN?$s%garG!qPCB7#IaOX<62@ zs=$4o=gEzML^K+e04Oiz!=`CesDgh+DRo0IKLvoTY*quvFtY~n8`-6bC-Q#52Vq+} zoi@CF2+xBs+S=Om;NT!b<4GolRN`1cazF_2pc9E~U8<;92+YozthE4BEKoKd5JH+t z(cAHOJcl>|;5Ch$NMx(YbX7CPRCeWFQC!k#+xDBjpX>N>c=%*vxOqhgQNl_OFky-a zN1*ANu+-rl9T#s`bJkA+03@(qNLeHV>SZ9fLWJY2H8JDh_Li1n0_TZ{mC~ogRdZ$Y+ z#ZF~_kLaNjA8)ryGv^|^ns-bs{~}V!xzq8Ze3))&QwD*+?e8N@zIlwnHMv6JgO*n3 zz4Kos2U^1q?D31{)%U|Axgxb?*C)@Xf2B+BANaisfpi( zzbsxIcwzNRuO9N#Tj=S5_B_ZB4`BfU-h3)QJ3YB5mZtN7*4>{yhZ|lD0<_2I})ZS}7veDq?oIe2!C7Dj1kOiCo0000< KMNUMnLSTaNB+Os{ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/view-fullscreen.png b/gtk/stock-icons/18/view-fullscreen.png new file mode 100644 index 0000000000000000000000000000000000000000..e2466d3f3b8f849d586b0df2d37d169d00685052 GIT binary patch literal 810 zcmV+_1J(SAP)>PG`HEM*Wc)!*9rzi2Ot6g)||t_>YwqA zW~m}L*cLPzZt|diQBc68i|<$Ca4KUzv;g2aD)h26y!!pmZR;kVfFw!S7$fhTyL^1@ zssF4$7?g6+LqLc{2mm~h03@37s61WVJXqE@fBEtAl_W{X7~?enG6o=mtaj5YuN|(P zdi%($yDYpVP3v(NtADhP5#c>!KmdrhUK@Y!S`v*cW^(%LkSOMwlQ z%SU61?_EnGz<2p4f26K@^fUwb74`n@Nb^AXc{xJ^6Y{Sl$0GM#Qd zx%=p^hn*v{vmdrwo%{Oq$ES}0^lh4sPo6qH?0)d>A%dr_(~fGmhLX z4Z!cPkpL!oLA+FCBG7+45YKKbpL*|}Dy63ArJ;L)0I!sqa?bZO;}c$5TIvY!B~cy- zk%$Pq_j^)AAS6PR2O#?5_U)yP20+!LZ~oA3x5>G2N$VgF!(v`83lyszTR86!hQ(a# z0M5CRi2l8LwAuzh8i3SlH8#dL^YvH#jg58PY~Iz*dl1w1_as2PKr!p}jWra4u-|Aj z+~VS*0^l_Ov|23zfPLlYO7p?}EKReb4%EPVVUaCqNkmwa&&O`M7)}jm%F%ZK=y@;g zCg%M7{A{sE*>LDB07MZNMk5KAmzO)c<<1KvNy6Q3SM_>5A}!|`ya2+1Er+o#@C%aD ojW~{_QmHs&jNdax{!g&|1DJ}H#pr@;8~^|S07*qoM6N<$f>1GxMgRZ+ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/view-refresh.png b/gtk/stock-icons/18/view-refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..4a93c025940357a9c5e78b90c2961f6450287041 GIT binary patch literal 1163 zcmV;61a$j}P)r zYiQMV9LAsT@Av=z&vo0`VeaPE=G>Z>k=a0LA>JxB)a*q{h$#j3Hi8h=#lyTsM!hbI zAQwd$2qDEn!|4dSO!Jb>q0_nT%z50IXXpC=|9`*Vw>OUZynEg}JP!{%1OP}R1p4|6 z0f=u*Z1PI}uCi$O>2Szy7DSFVoK;Fc%oV&5*YnR+N35^MPWRmffaWbn_k!%Bv|!TO zeQ4=y-apn*U$y<2&SkQFNflycVJK~&HN)2msdOG!ZcO3gwXvB}sqn51k+A}SFQp|z z1OTnwM^=;=13jD8G`za)Nwc^n<`+wf<_a#&q>ExAl@l{_Ma0Si+*BRmiDX*#pBzH5 z=wkD_4xAqRi)qDbMYABN{USpUH1EFXr*b%RYtXtc; zJotRqGEC1$@aJfX8W%;Vx-yJhK1)P^C5c`##vnI4bzHG}|K2YLN5BjQKmc3<8rZ~@9kY!aQ#_`TzfrX7#MD; zG&3i5{@w80p>wV>uP7!{9(F`sJcP=!AdFW8z_3`WAxHTKus~m*83YUlAL(JBx##d6 zVTV8O*{~Y6V@to}qPoliX&y;w>1%-9)m#KwK4D8QQ&}>WAzEYAPm1>$y zN^~!orbq-3%GOz1dvR4F8HyXL492n@r*Z%5-Ds$Z!SxliW(0!{u8vOOvv1FXjs9Tt zr?(y~G|%Hd(g51FBwBnO?6;T|$18%E%6J%^%%H8l98py;$4_3MVlKBYdFDVrc6=v0 z$4(1$b|QKs$%BJ1K%W5s-vo}3w7V>TNNGlLwt!pHSww<1TH=<71SL&-{>JKO5B`z* ze&^L;hQ{!tD9qH@Ems2Q6;AkN?H7iq?S*69_vVWrD}>uKS&U3%(9u+hx|ofD^CS5E z(seJJEuQyW_ZpKZNy!xT z$iA-&zVGf~Llt(=IlR2Bv2JN&4MLG1lm>jw@O+I-wuIE|LnJ4sR6dtK=~(vu@qyku zNF)R`Z#^~%qk8ZB_;x=4v~Brl@%{O^U6zpR!y%_#3K1g`G-l dp8fwR{tNf{DMXjQByRu!002ovPDHLkV1gV~GIam| literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/view-restore.png b/gtk/stock-icons/18/view-restore.png new file mode 100644 index 0000000000000000000000000000000000000000..e2ab564aadcbf1d02f3d15b8ae33c7ac2508deb1 GIT binary patch literal 901 zcmV;01A6?4P)CGh;Fh72(@I>pM@3j<`H5S z1y?1Zg@DbKV$d|JW@KsKQZ@ZungKxWcut-E>vSxEM00+AzS)^0I?emn|nht?#eozBhtKN*Lk{W4u=ddafZ- znXme;-otSaayh+IH-sl(YU0F!sfl9;@MO^T07M+m8eiLNh8QWfh5jfGpS4f}I1vjKR>-}T44pX;0Me>nysfEar? z45gp}+`d~y{`O4(xC}3&&z}7y847jPn3Uy6phB0Ay*X|JpmN0z$1KA?+UL~w_C)30 z9=pw`JbKuv$1KAySNt#lN)NxY%MXlcDa#RYXd!z)KXPW!F)LL7?>k*YVOJ8fvu~9xr6uHh%o+2VB2#v-%q!dcic!ccqlS7yHk1=GcyI{|Ln-(}Dq<5d>#2 z1m8x%88{#NMCnuTb zdF7|F$iTqB{&YHh@aZk`SU|fjU07R-S1KD9Nzexbg7SlpckfPqG&3`^*`C`r)AF6F z|LVlLw;GKp5WOA*!JR;<5{Qn}8nx%IeR1vQd_Mo6Q$*)J(f}Y+a+6ir#ie~;?zq@G b)d0YMStEg(w+JDO00000NkvXXu0mjfv>~sg literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/view-sort-ascending.png b/gtk/stock-icons/18/view-sort-ascending.png new file mode 100644 index 0000000000000000000000000000000000000000..a4f36893855f20dee8b7d5b768b7b86236eb962f GIT binary patch literal 758 zcmVobBv=-{;qb+Kfm};P3ADJP)5ApC4Zy zct|Axy{{ef^D7H4c_#A&Hd}E?^|P6Y7tewUh}Hu#0L{ybqwAVF4m$XpboDXM%bf_r z(9{e08-!@5OXI}EHRsawPeoh5n%ijqkD9q_7>gKBt+!K*Y;kFl^enXqVQB8?)eCZ@ zE=`xu9C_h&CH=&Deo`!+ONb&@ubu#u!joR@)_msH71FNGCYi4#c4lIvS{T~DHRIgE zrF_pEM}xYd1e4hN2XqaWgYIX_Tkc-kd*}aM`tJv&5D%btaNI8pm-p49CV-B7K>qsg z6i@G!?{rKJ5e|f6FqW;XuFnz2-5KW=E-f!#Z&3Zx& z-)zvQ4=@HW{Jwquxe0$q5Cj&vqgfbwck2U}y~LS?DexVf)Y z3&r-RZ(EnQvXagN{3VIV%48ZYM`QfLZE8BlOb@kNs zxkYVzT&jN7OVY%xrF$}P1Jk(KV{ctco$eQ5b6maIe|hSiqlA0Kgdu_=n>y{bY|a#0 zJ6ddW!-huj@x;=wwge#}(!x;rgc!RkP2yJ?H}%i<1pAtaBIlj&Ll9i%u-%?&eEIw7 z-_E6py6hwBt!v0!gqW5k6wuzmaX+D&L)}Ru-tOd&D{ttkehhrdL;a8LrTRwuT0a2r oEiQ_1{|IU+^Z=%T(tSDl3nNt__UG$|RsaA107*qoM6N<$f+b3N$p8QV literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/view-sort-descending.png b/gtk/stock-icons/18/view-sort-descending.png new file mode 100644 index 0000000000000000000000000000000000000000..af4dd59b41a204eee8b37c2da812fa7ec066af18 GIT binary patch literal 776 zcmV+j1NZ!iP)0-+a!jyV$-UIJ@p7(hl&U=9W1Ofn# z`m42q(dyCTGf_gw40N63+LwC+w~uIxC87WzNc1y-@B)m7sKIgxgf<73u80$Wa5$X? zNAZDo0G|RxdAOtb3pfBm_+p4eC>Kf5+tzZClE)x?gipunhPzv0K!m0S=K%grmh#Bs zZ4o5PWfqUT0j1x;lH8n`*xBz_6H7ANunYi}4G9&hWSMuVbIs4BB= z*uHl9W9NV@%YxtU*8#vOD~3oS+YC)BmKY1~uRa$H6$FI*;4}vSRdwqC;ZV|@*L%)4 zZ9aN$Y-QEnY5-VQbGl@0eTzp8TA6-@Je2u;MeDI?3oI2os)Z;TmMiGY{@fTqplW?MnC zt|iQ)y9 z?@K$EkpM2uW$RgpiBeLdvCWLLeznYW-U4R70KE7k-7KFOH+XK*!N>eDjY8p!CQ0R1Ux?j$jefC~^_L_AT@FFPwAFs`k*VIt}@P|S@ z9lpSL$K~!(e<*Yr0EUN$*-6pKJ3kD2As4SNc9n;a-ZwMhn z8~~J324ftCu9MBJO+MHk6aZW!W0RwUgE!wjP-W9m>2M@+C*05<42aa)8uzre>Pi8W zC; zZ9ZnYKRchPtv>U)QVI+JE#@*syQ6U`wZ8t5)nYx{+3uBpWHQWusY_AD&R+0(YOf7k zQJd*4>UO&2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Gtm%cE_HUhDhC(U$;fV4U0MT(c)4*KA)MK zB%41$bsPX7grMpPs;Z!)qeD!kQk7`q{#dxKW^j9?F1nCY9~BDgC+H>+uR^GzD2#JX z9mfIZJycN?27shesY)V|5VC*WpUy28-&)MA%=x_DowAEv#s5hnkq`i2S6f?iOXtC< d*3JXve*oWm=tg$B^-BN%002ovPDHLkV1n6G2NwVU literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/18/zoom-original.png b/gtk/stock-icons/18/zoom-original.png new file mode 100644 index 0000000000000000000000000000000000000000..5c859a170bf34ea4fdbe3506822089e62bd12e63 GIT binary patch literal 1117 zcmV-j1fu(iP)#`NFe1cAM?{zaGV}5D@?{0E8FB1_uZE z(9n?R+<)k`jF$PbCAeePk=GCNSA)&VPFIy(({yw4-cy=T>q#ZE2aYuA6Fm6atb7MDravs5VP^y8HuXzcDN zjmK`6+V}1&wS+?L05CW>$N_*GruBC3(KigIv&y0AI$iwgBJPaeK|Y_y=;$aEMZxs+ zBV4}x9TpeT*zWhUg9rB6^<3dC0JwSc<|?SxQ_~U%G?go6g(ngTXqtvvPb~_C0%qrC zVVWi;?@dCMWjGuT*lae*-?)v4@n*&tMn*;~0N{3;y~gc!%lSec9lLk4p6(v#x{j?| zx8m55V-P~%#PJhoXlQ_GTHs9LoO8&WS24!0?h!AS%js-3D~Jdd2?!yeC< zB_j|BU}tM9Mt>g@Utjumsdi)ShpGAbd@`9N0Fd%pW|}0WEte~_b$1^uIUEj|aR#GY zM#VH&ec=p^jZO5=LaO-j+0X1*P5MCSyj#|W_Q?8?Q#iORw_3}ZqX-a2OOzX+H|{}SyxTXgV^|Z2H~)Tc%0aJX1aQN zH_Xq>eqQgbJJr>--_hvvK~ZE{DVA6?I)U+MEK@O!b8eTX)8%%)TPc+i=}fLKIrHG5 zs;csOR-OmYA8gybv|KnY+mvRRb7#41XcCtv>bH1*ij9pWUkS7|ZT41Q+p@X7DV5I5 zr53f`$A8A-?8Q&8RssMRV_=Mdh@KnX(b1tqB9V%3$If8A*E8I(+3QKblHs6KNkl;mzgv3DNqDDbV2n5^dlvf{6kSUP1)62X{J2Q9gcmFON8ZfRr$=Uw?`JZzb{t*Y@ zojP?&|NivpPaH=c4uyi?WezHCVwU(0AK(J&xs|INj@|*f7sr>t?S@{w|GZ;+luM;>A76qy?*0n!}&ihIS(>(zqGf+J|7+)UivQ>cJH-% zw(RK44-TDNEtc|6E7cX5FW9uO_?YGwAJXE|BlqU?_3EczeMznDJFdm!@o@bM_Kcwn z3=H^Z?%q51!O{0OoE-cXI_P_ah<^KIlY;@vgQ!!_s ztHTHY_~mP(AGft_?K$?%*IuEJ^EovKnyNulHKwT={APePu4{xR39gjJ7oUAp4X+Ch zbaZv~0PvE@BnJTQxbnUDp@WX0Ylh=E6buAmnkIZcAACL^48uUMA%u<5jc{uoT4FKQ z|Jq(XUnso`02eP_9Si9CX7ng}RfgQn>t4}{s-SvLIZFc@Rc7YivRB2A4*9618cRn8fM;M~U;1J$nz zr&`VCa{0zerGlQG9`x<$gOu_G5I|5A1?5T^LMWc}JjHRH0ucd;gn~0?BrlW-=^M8u zP0pDtJuQNWps5;!5OpgMLck*rLI_CLm8tPGRH3Gc2v#=B0Dv31`Q!NuBh0p!Bv9yKm2h^k`~dX6|up z=k^XK8f}(7!(h6hqrva@RH4=`UA{ucPb7``g{&J0m{0t{;O+F-n2kh2!Q>>dXKD7w z>TNkqS zgN4Ohd~SAflKrb^2EYRV#u(~5SsUoCUAxp&DpiYZ+u7b62@P+IMq=|>`$0axa)>`a z;5vj`mL-UYd!7fPL2g-=0KihIR4tK6D49FArn5`Mw->Tc?gjk*O}Zh@;r}R+NGJfX lxx0HuXYZ?1UA?=@e*>9G=N0^5;?@8F002ovPDHLkV1kH*36B5( literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/application-exit.png b/gtk/stock-icons/20/application-exit.png new file mode 100644 index 0000000000000000000000000000000000000000..5b2526e92066c53881d82a05c6880519e6f4f103 GIT binary patch literal 1132 zcmV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V!&Fxv=cbU+ug0U~$PKhN0-XE&#~H z)|MYeM{Zty{+R^N<#O{Z7Aw&(xbR$aOM~lqk~*|Df8E^-*-Ifn*6%*8d-tjU(B9d3 z=H%(qV*h~ycN1H-q&Bj841fwC1|U+naU%|3UIu|$G7N<~JQ)a~tOt;-66gM5f$viQ zN~)=8xolZV#TP$I*ZH+vE>}0|hjdkrte6D_5dJ6bD_3?^(=@u?KmP!1d5OcQrGaz+ O0000D=$T=snEQ>AYTLhoa#{oc@Ra~{T8!S(8 zN%H2+ej)$1ZhyBcFZ(M{T>Od<4j{L1wBJ3}@tUeC2Zx77Tuf(DNr{JRng+C-6K11B zja558d~s}W;vL-kJd1g49>@tmcvn|f`R^mYZd&Q_&Lrlvr)t*Le4R-8iIua!IUza8 zEdXgC)M}3b-`DK5KccGgM4G&^qZ~$h;MAkB?mP)_gxOZ>SowMy^p~6BT!+*9-sZG+Pqf|r?cVLs@urA6sno`&m3{#5P9}IBD4hE8o9mNP%2_R)Mk0}PE?l}KFs5@+ z5Ruk2V&$@#@a-F)0YEZs{1{axKi>V(PsP*m+2&bQJp%&t^z6?8fDi}-Tr)Fqr>wlP zCZ(l!DvCNDi^kq#jJ-6cGg{;>!mOfXBhw>aW#_WGHhguwa$Sp~PRCALmVND)Z{NDI zv~9$2IBWsnp33smH?H5g{Me%&*5BVhAruxW)Umr)uPQGwG8s;FYJ+ov)>dlI=?5(n z0|OU3K7}k(1c~#&0k7J!MFN1Q>+4S*>Fl(cnww`l6&1ex{o3uPRxGE@kDdTP0#FFR zHFfKj8^8p&ZAnp8k?G89Th`*34qa|Hmjen*Od`Jp+cYTv(dYNirP66JYg*rNL;oR_ xO6C5oAJQc;vS1bzfb*ZYFXx=(4fkO+e*oTh$#FavdN}|9002ovPDHLkV1ipx=*s{A literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/audio-volume-muted.png b/gtk/stock-icons/20/audio-volume-muted.png new file mode 100644 index 0000000000000000000000000000000000000000..9566989416f27fbe25e2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6@_nC6 zrION6p-58LmyZauTVxA&c(UJr%HHI4&fhG7OZZHu)K5vVG{Akc*8NhJv6hpSij zyDmESPN{( z;F@iS0ImyLsX$$qLKtvz_MD%xZRaZN`+I4kX zTX{AJ!uyMhWdL9Rs4gsAULYbQ5-h5)Q3MS`XcR%B2sR8MP1-PoG|z=uom5Ky2!iQT zVK@OIFcIN=t@iD7t#&if(!vsp35^h3$K$A&GJZ_Wuyi=Z?{q^$9%o$as>%+s! zM*!;|KhA|}^{erTiBkcQiKo+$RLV+Ai)tnVG^x29B%4(v5;l|1o5{Jk+E3T6y;&ss z9YjR8FFV!oR>#EusskSkZ=P|Ptq5I3rxK*vrjoi3# z?!7yAPW}j7?gpp~G@6qL8^mi;F8i1Iqy9KYzdwVElmr2de+L5Ca2_-{0>IG&8&re*!etAFUS)XrKT9002ov JPDHLkV1h|d_H+OM literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/dialog-information.png b/gtk/stock-icons/20/dialog-information.png new file mode 100644 index 0000000000000000000000000000000000000000..4a356972d8e8d5edb3d4d9f20544b0fca5bb4a2e GIT binary patch literal 1229 zcmV;;1Ty=HP)P!%wNhKEK-Ko@8f6EP`}Xb5U7E=ce%pn;u^q%H8 zvr_}Wx(~nKSc$4{!C(#J)CvH`U<_n$B;$!+t{mMx^fU(mXhEy@G(U4@r{2(aa(xiu zpyxW<@@|*ljzv_Ms<1i{4ks+mxB!63VhE`%Dpd&p$S+Qq;rr9};?OXl&6caj-Wy>KQ&tiCNj!A9N;0g#%Xl;sP*X9oF+T4NGrZ@yAc&>od7Q>@+tSg_zs_u3k zO7&Uakt+@xynJhWI+c9!`OYRYI_>jN891Ckb&D~FBPJMJ!4MN1RL`Zu3869=o%Z?4 z&PJ0-CteyHy!ob3%Jk;jnk{#Potd12=L(pGyb;D`0-U{6fYufh#VR-vi~$S)&ImK5 z5SiAL&9^n%TX#ymj5FHMoQYGpB3Y;mjJ43(LTUqREmEEXV=c0&7?N=Zfz;5(K59~nA3m+RSKW-EAYWoM&G zCtP0iLug~MY)JyWFL$6V>j3~V2?uk5#7sFtOc1);(r^gs;?)B8{ovrxu|2<1f4^ne z`aApa#QmQ;JC?rj`o?yp8RvJ$N|cHVEXyTPi4;Dr@8+ETOo7g?=CgK00000NkvXXu0mjf=nFeF literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/dialog-password.png b/gtk/stock-icons/20/dialog-password.png new file mode 100644 index 0000000000000000000000000000000000000000..66c9fa83adb61b59f37889b7b3196eeaef41131d GIT binary patch literal 1034 zcmV+l1oiugP)ki7JzFFr)@MMS*S zC#%#;q-I)T!2~a{Z9>#qQHoF#(~y>!+mJA6CNp!+oXg(JhskA9g4iE6>t(Nx^)J?1 zgzZH{#LNr;M#s^P`;!musJT8po;lz5-7EkH0GOGGh_@te3j;BO@mcTbuBHc?kHstF zjgfFfT18uBGK=YJV}E_|&DVn`hlYj<+d((P%+%AgwvMV`gIJjlyI(Fqurs?(S~={)g`#JJfOLL}e`QWtNxZ&%cgl#>dB| zCMN#&3Rb={QJZjU>Z+Su<<{?SeYhWh7#SJi?HY%+HkjZ3FnHDTT{SyD!)Lzg9cXVq zcrSo(TU&Gd?f2e%>yJOL@XeV?)z|;!>ha^RG_1S3%`etUe=#&XdU1iZ=Hb!dTL+$g zIROZeFgFYhem{6^dTxr(51#W+o;v*`GgB(nDFMLPw&1m3(x=xg_V_kOP{#U zA4GHs8r5NlmKrFnbH8gwk_1VA`Er8jB~GPM0M3?xsT3p;smTkwpE2Wm-bwpZD~P~; z?!IT=I6P5zcT7veAf*_&T%L27k9i)Teds3+#7^D(sFdkwUBQpECXiXqVo%EsL@I&|rJPFg6FhKM zZ3UK;h40yL90$H@K`R@|v*3F+eAj~ST5yUM9LI)L$V0$DIDF4W_BKEXA`?VaB~(*pYKq5Gf8Y+J=S;1 zqSDIhiaO|W%M2i}vg*aPR$Lm*{}PzFWJqgf$K}9l7f`znB*PF4pmB04TQ8z9lG2oB zAV6jyK&EMuVVY!^1{sDyh9OBBf}|k`fgicX)0TMw0!JT3 z@~07*qoM6N<$ Ef>+7v8~^|S literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/dialog-question.png b/gtk/stock-icons/20/dialog-question.png new file mode 100644 index 0000000000000000000000000000000000000000..4701ccf0315612adc0775ce5a9bc6dbd77aaf280 GIT binary patch literal 1089 zcmV-H1it%;P)1O@ZH$Xh6l353tcjum+89VG?y}h3*_rQqdYHvfVm$OozR4Ws{k_jT z@5~DT2m%s9;D1X95D-A>0svnE@75O-d?MWLOyP2A0|2CaGeB!7075B2)3j!vJ^S-3 z;E96<@QcS&`_X{|zvgFW=NVE$Na?_&bRJoEPdZ0yKx1+66v!zlznz$pYEH#(LQLMaGR6%`e2TPZF59Jg;fKt;x&HI-=! zqqEbH)zyG)15!E=j|Wf+I+1YPDh0UR;OHpq?rs_YljI7J8pibf`#&$c-PV@0G|9z9 z$l_wiJ$oQaN?;ZjV`_C3j|>B{v=p+W1hT9Qa`$fN$B*Iidgb3~X=-k6?h=FmNJ;=0 zJ9uz_t*taGD{U1H(^iU9ir=0)$Lgvo=Iz+QpL%;qrKq%~nwX$jR%WxcmE-mG!vMfw zP=bIYDb52QF1EG3QgwCOJbPA?q}H0t%gZFmii!#zYic4%+Q}pnCr)U)wpRaj@?`wN z)~$Y$f`Ak9;NYME0HKG#{}?p-Q6>g?=fK|ui*7Zym8*7fT&OG|CGw{xtn zu5Tm51pr~Ev-n1c9}4&GZFzs^&Ucc1ecHW$zoZaIPftgGe?JO~il7n+sEZewR#+(K zEh}xzrekFWGDn71b)AE4dIy?5P*I8GQ{kx zhTkuqgu@rQfTu%EO;P~*KOa8{#&e4O+1^JFB#_~FBf zjg9)z>C;bxKsHGcT+eQ^7zh{;0#_<3zA!sFm@F^1?STQV%j)T2vaHOuIy(5lJ06yr5Dip|XoA3q)r0Nx-exnUo?&Tu1e zVb?DAEz%qfg?iRUWcyr~+oZthKi(gK7bW!3}Bvff); z%P;r)^UcgmF)%(p(Y>^E#bp>PNv)Rvtfkypsl|lNYg(k5xBz%PKzai3eVvu{v8}cG zE*ib#1y literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/dialog-warning.png b/gtk/stock-icons/20/dialog-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..1b45d8bc48d81c9a2e179714794253761b348b71 GIT binary patch literal 1014 zcmV7%Q6vzK>X8pBJvtFk-#fiV-;I?jT1qup5Q4t|13T=_7yuI`Q9N+|^Qia4NTJ;Fx zfH+t}aG(+t$rTbRio}UFAR!@&TCi|HP-vPKwMp7IZoFB4>m#)#;?{#M4f(*uB!1J67kjz$Kq&(B}(%xz_Cs|C{p10W}+ran%m;xqeFgI`Zf zPJIYKw$~n<&@c?1&zHnwqod=gWc+>GstO?-5$p**!CmV2pMSP+*)R-VDwX5|5vJ2= z34llX`%fy2VAtw$ecc9UKr9+Q2|#Jb(6)pvy1W=28_y*Z;S<*v?>NUEt@5ZY*^gJG z6AtN7mtULv^wcNC`%&IYNQFW{0Psd5z0Q)hxS@{VNVs^?mE>P4H=8dHD&TcGM#7SwT|>WD+_~%xI#)10;pGcJ|A2!>g+cE7VF* zaTj5SZhU0)^?8ZF4I1GB1f?$^dDHxtjt|Qswu;uca><#H}JUlQE zEfmfO(=^$JpiwFj5o9{^$Xi{0^&zXeCXQxp#+d-T96Nj*s)vC*9A3ABT*jtKr7F7o zzQFL%(Az}V_-SsMCd=pZa!)p!N+n|-mDg&@<6(=A4qMb{Fpxs%3%D@0SHobx3a1W4 zgH4ofx@lnr(7M%3&5>unC=_m*rpY>QC}Z*Xw8!gFn+;3khHR1mhycfOFmvHHzWJpL z#}<$PIG4y}ZL)1!cs*`!GLbMh2xn(!Wj4EiBstLkUipqqQz?s2W-O3H;2huzaQ^2N zFajp`>)@=F8ezSOe^wRt+YKpnP2DZr-t&dir{@&_=!=G5Q#g0Sv6^8`vcDExXfz0{ z{ddQWeINq< zmH>d(0n|xgY6&Y+5-||x8UQE&@N04ID*_$v(KSC2Yc*2Z)KEL4lhsmURxm545QSeeE4$ kyRN*+IxWlvU>$(-FFvDj1Q&>R=l}o!07*qoM6N<$g34XYmH+?% literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-new.png b/gtk/stock-icons/20/document-new.png new file mode 100644 index 0000000000000000000000000000000000000000..de7fa5dcb0895a6505a02e2f654865547ab585d3 GIT binary patch literal 773 zcmV+g1N!`lP)f4I6otQYXLe(-C1)K$ktha%iIl`3x}<|HJ;nYA5FG_6mepbxDT0Lf2Wc%)P*M=3 z#T##g3=WC{#G=A!SiE-d?7nv?-kXiFjmecp^YrfMn{&^-^G1MfeR=C**gv@A;=M-M z5T}H@6GHgb2p`_O+55HI?Uub>Z&K$4(EGge)z#(YkKcLw-O1eSTxn)_odg`u4~uGC zdB4A|$G<#!y!-4~d-b!`2Zy00z~5DM>9xhz<6BFY6k)c}veNya)9Kw?TU#sI?RF>uBm!VS*xelhO28P2?%+=Jh$M!84QVtR#g)rfLyWPt zG3bB2y4t!U{%vBL;&3n?G$b9#=(mFrLiM&z~O-|NIpA z=tQ7NL;(@NFd|q%2!RXdFEAR7s17O|XQ6dYPoM7i&L2BV)27tDOh5w(xg*8I#IRg` ztJUJ#wd;fs2qEywxmVd3+}C>l`^gbt3X_n83!)nqYiI(;7^h=Yi*WZ;+DSl}rJP3$ za2b-L3^p^|9VZfX{2Q=iK!hPA!w_UokzpoesRGH8JxAgMg~}c#b*6|%FoC-vMI?v< zi!Y$iWcf;JEGx16BE!IPeyY$?c+zCN zFc1>Y@^q)+_PlaDeeL!iO_6Z-=QCBWYYXs%n9kjyBkhm?p90-uQI=&)heL5(ZBZOI zyB_F7i|!N|=rkK=9zEH9a^vjTg~{y8vshtA96j30v^NQXy}gldZ~s=z%rt+l73!rk zbGNs)eq4U|aO?eMqY0<}1pcjXJRTRg-<_RlegWto%a%xTc&~ih00000NkvXXu0mjf D?C*7Q literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-open-recent.png b/gtk/stock-icons/20/document-open-recent.png new file mode 100644 index 0000000000000000000000000000000000000000..b997f727781c158ef760f74e4f7b545f4603bb11 GIT binary patch literal 1355 zcmV-R1+@B!P)knTLj~b3o@aC2+j~i5;T4g6G5eEOi+l# zFNP>Cav4rGFn++9Ik}{O0)vgqHpsY)ZjOx>c4^n1_O$1`uOEnJivB+QKRx;7`Skn= z{s{qpbgR}cbEU%kHNwcV2FX|~ijob0l1gc}0e;#n%ZD1jYrF^mUayz>d_ML_FkS|5 z09aY=*5ldqIHkS{7z|->a8T8Cejv?~wymzNZs;#5`CH}% zsR`5=60y`lbB^Y*O=p-`AnT$;i3AIEXH_86;6yAQPJ*Xt#IpPv=YDB90w-dHm>{d7vO57DUDPowlc8BnjIBXk_4d6ke&>BKCX zXjaw)$g(A+D9WVa(V=Av%N8BJeED)h^mshf=kw`nR=i%L6eJ%zb_JVU@@|4Mvnp9KqggPq}4DA50iH6)q$hvj!$%?hl zn{?jdugv>^xbh~G7!9KTK@WERuo0ghdk5~EB`8QQL0X24JKX^+udGI9mJNl4g`#7U zgE7uGR99D(Qoj#c_`G2OvyM#3bGW#3LXmJ`xE_)y;?ms~q=^&pMO7QNKl3wOxl>SE z`we#O+J$W&ZbL?TCi3(1N$w;E&#>8~a4beXIM(0(F9Z$g+we! z>TyJrFfQEv34{~$o?*D!-hs0DWmvUp70ebh3%hq#)J z8TR>vAqkDEP_;PRxn&4O?%`~3AA%$I&|W9wrDZkP?)?~?1B@|HN?@_bR1igQV44_< zsKfTDQ?sfTy}=bNLfXTP;6z8)STjnUt1)l-Qk>{Ij5A%wuzBMq%r2S-vq^>$S3oI+ zK`?+)3eGq*O*d1Ki>q6%Gz>Rgt%V2!Cxjry5@1||NwnZZX9Er${~Fo%DzN*LJ^20H zSqOpv0)P+#QINoO&J{(0n$$*x?k2s*Icci3kDn=*jDo({wT^NI%*kAd^WDGV$ZvbF z*!ULKmv6(&C#T`$sZ;R#{iv>90gdSZfJ<$yy!}cCLZJt3qSp)BP&>UT^P%OVCVoiJ zb%yFWZ=)**;U~8SKKwr@lm`djpb81=j(C!GLf$jA%3pr!xZVg^DFjMDZbobogYu%rsvUmeDB*7U6r352x9%Q}BI5J!tAd z*sM8oDwxi_CZn;!W=n^~Yyu$!j4`Nc5|ObO;_>)(PWaBQwzh-g_mtpqC;&zPxaZDY zpeMDZoTCVo*a$})KtK?LGx_%HmgeSWbzCWq|Hb1G@Yrwouh`?cKLOIZL>VV^aM1t& N002ovPDHLkV1g6Hf_?x1 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-open.png b/gtk/stock-icons/20/document-open.png new file mode 100644 index 0000000000000000000000000000000000000000..74ceaec095c3cd00f42a75c1ad98370474eedd05 GIT binary patch literal 831 zcmV-F1Hk-=P)_;Dd`Go@z5sa}|V=>0!TtutA&Gh8s zy!pnva7b}N2;_64$S3`yucq@oO| zR0@LjL{53Pm$!9tm8`K@=dly>yz=sClB7eD^!5sO1gVf68KqLG zX!&wkofx6h>9TdZ!OYAoNfJ}vxIwquM8w>eN;MEg875^;Yt?JgX}7LBRa8J`A3DK< z)5mDFci7&k;?*NZXbZtJ_P}v8sMc;>lWwoO>_kL*Ny{%REMl#r7vEugZ02D99tzb! zK3AaK-c8o)wa7YGb|L82@5{f8udUUHqBJg2jB&$lQ&o(qP_M7s#%7(7bmlh)=GF2a zf4zS3VrkSlYg0CIe#lKNiXvF&>`f!?hfHern}0Qd@c(gd%s)j}a;|Vb4oCn1002ov JPDHLkV1nWQm<<2` literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-print-preview.png b/gtk/stock-icons/20/document-print-preview.png new file mode 100644 index 0000000000000000000000000000000000000000..4f9e9e2dc6f49512fa8e7a2c69dbf6ef3809280a GIT binary patch literal 1165 zcmV;81akX{P)J+iU|3`o1_1aQJY3-*bLn z0T2<4F;ZV&pD~h-A5os<2v8_bjHSphK87k7-I|?VEgv%s-dC5jVGfk z0)dR`b+sEP$SY9B7!W}wkqibArEcH8#i1i#SI45!6+qJjLj$z7whDkr;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k`t;)*fAlyR?@@KAI-GN;D&BdL zq_r<%&rT%O?h1GB{z$D>BaUK371eIrAp`~n1{fI`-g9OTuvV)HfT}djj1U6(e4axO z93m4%-F8)R&XJ}mxm=DA0%nG)G+0qbc{+*3SZ!!NEZTL`tQSuT(0X$rmTz%Vpy?3Wfe~_2pMoRY*hV=JuEQ zR#lQD;iHc~42{ORHaA=E--n?812 zb~-6Z(qeSK(as`QlYk{ovYb*El>lpm*+kFPSJqPn_*OH~SN} zTAQ?!Hs{Wrw_2?pW@cu@2(QWum!5B3n79yKdFhI6Zf;7Nrici^Y=3w6uhH)R$2mt& zHfuL-d?NGn^NEk+I4V9|v?NI+j(bp5K>iW78w%ZtXeWsji$#m$IPxI`GeeeE7O7T$ z>Xw;t5QzweF?@6cGbDsyemnOl6S2B_k8i*Ej)Tg~c;?xsIaYjR+q3Nal%$=|+nZ-> zY!u^w4iO54K9VHanFlW-c<(6``Y9HV5uc1XAP)putrmqsKfkUu5D~nY+2UeV;y9w+ zZu9$Z8~j(bwh|VXs+gI1L9Wlu&AtBTo&QUQfFala0MXY}SVF$SYybcN07*qoM6N<$ Eg5W2l7XSbN literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-properties.png b/gtk/stock-icons/20/document-properties.png new file mode 100644 index 0000000000000000000000000000000000000000..e485bb032a359b22f6c6f542113872c0ec7697d3 GIT binary patch literal 1173 zcmV;G1Zw+VpImF~QB+CRVI} z;)~B36R^>Uh!`~>nxc`4Mv4Ji1e)-7+d{W{ce}gy&K)1NR0zcHVKSL-a&q#WGiL-K zdOql>*ZJbdM(~iWY{CDOF$S&mcM`pM+qTr{WHPBzsg!rEF91?+ZvSveYwOE*x83W- zqA?|<#9V6v1~YwGP;yIVVBoMg_0Q0$?9^0e_Z!`RUJt4O3Z>Gb`Sb4d8ygl0t-To} zW6F!cl=m34)}p1kRaaFd8U~IW-rv=gd~*Bt)WN>KKC82{Q!5Y%fd(M~oy$9b!1p!2 z@6WI^#vp`XVqyY2U|TKCt=jkfsw004e9_&V?C9+5{5_dWN;%C$Xsz))57%|k+Cxf- zQZ`ar_}a(wGys#CNv>WQCy}VK7T(pM+gk5QSONR1uHLTtR4U~wFvKh3{QBE3{M`Q& zQc66}=aqwJkS_Bs-=dfYj(>&U-lJW6zYG&6^TRVr^+B%jlT_)z-UT2Dh zQUibl$V_BSBod`*aWlbS2*+_yN+G3%ZQD3b7K2agk~Wl5#4F>hSn)8+moMjm`yZsf zex4{6iynY9#>jN~a;*N2xwvkT{FFl^9AWqFFBu#>%GZ1L0D{Zu3!E7lB3=<=@Ypeo z@Be2jV?YQ2Acu#C?VOXVsi=rkDwPC6uztfjM#o0!+3^;a)0cSsiM1$Ok;^;ert)Mb zvt^%_HNBx!V`HQ1dhXS+u`#02s7a5d35UZx_x!U=W*tJI00u+JEn$q$@X#q%cB~>8 z2#|AfHvvj1rQfoow26fc4P3Z%j%;y~^XD(J|N8?>W+vIX^;K$WYRKpF zNXwdeoHGnT;A9<|n_76U_k9*OHPQ3V+oaQJW>wDO?8pdxJ3nXs`~~dT(aW-B_faSm zuq+F~%{d|gq-BxM=TSZ>rt(uLOMwtbaWkO0 zZkPb%@(z}OSVR#DNTkqM5{iW)N+~R*z!)qf=2j{L2!SzXIs~vdnOnf?A00wiigOn- zC>CObLJEmC8gpHw&E%jcAE>f1eM>3j1K4(e37w!Okf3qiZ4`(zbowH}UGwSM%|oh&Rsc-Ej&g?M~OuOXx|`2IWj%1 z$>kg~GIGWWg#st8F%;ootoQHZ$6JSnPqb^JC=@(SpS{En{e$c~c$~WGFrV)HgpdN? n-1r^1u4`e;foLf3E+GB|yFmTQGYmeV00000NkvXXu0mjfejqqv literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-revert-ltr.png b/gtk/stock-icons/20/document-revert-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..e5fd61b98ffc7b182022f0a7306769f177c89d8f GIT binary patch literal 1211 zcmV;s1VsCZP)$-ADZQIYEn-0s5-+N}ix#yEZ(h`GF3kd)J6ek|t>NrsQiXIqvz%GdDzw`n69>=c_BV9$- z$8tDgKnJu{a)OWaKiA9G%W=?-T_E z;|cRiIeM)!xW2}F2T$^oAAOa!cRNwfYNm5FzPNG`MnDzJsrX^8mv(XRtrPtFpPy1* z*hLt6bQN)GBP^knAt-Y16J+uS=`cYh5CrT~W%^^!xNBh4Hl?n&; z{~FJOOJC`zIut}Yn zg*%z4PVvqg&yuE=@zJZC9b1GHtH`mBxpZlgJx||9u^4jU@)fRJ9tXgPpiar=Vm2UT zR`6v(;I@S zS*D~J*tCI!tJ${m8N#4|FC9EDMe-Gb;$p_fCh>DQ(ln#hY5|H7!Kt17P{2n#$*glC z7%*f>lfjLTFnWH3V{gBMn^&YH9l}b$%X^QIrckOBh@;syI90OD-9T2~Svx*@d7{5m zF1zkRV5I5O6~earzejI%2vy61a)q9t&e-T#+O0a>^Q#mJA&Agj2nYh7sHq5upU-=D zPh7e7_GvFz-d~*2P*qNijPQj;6~44#Bb`p0_Dq|4Bc!mfj9BPJ)O zbZV+8s+tNwZO5(`^6%002ovPDHLkV1n4dRigj^ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-revert-rtl.png b/gtk/stock-icons/20/document-revert-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..a5709e36057bc59af76096863f7114c4f387b82d GIT binary patch literal 1201 zcmV;i1Wx;jP)XhJX0!t?@!n-HjmP$3{hLP)$M@`w_mh6jTB;uFLejJ`=E zYSc6)YKSp4F%1|5QmrBwkc+gXDFsS^0-a8$o%@`#_x52LBQdy={jeU^mw&Cj)-U2) z4t_ipuGzC~@CW(qNUz8Ui8Klj{C^mF#81h#`?S^q(4qj7}IrQ$VYzQnRQ z&yX%m;j4gLT?3_T0i?hdwvC^fqITEIw7#>SyzetMcIQ!DMq`2!CR|Cb?+E8keaf6y zcCu{E3wSo9Z%h(&UqIM462NFsfhsHUeUx7+zfuuZDq;znXrvl1T!CXO{8W<9KX{S8 zz7S==; z?L}(?#*~4|Xbc8zAd^Wme0>mvAY|KI=sm*4-@c@#CZN6{M$5uV=FMM7=eDId;Sk?^ zwx8yX5gd0X+Q>4{XhRTaq!7fS9&IgcIBt~hzj}*{zkb2)*VeQAi6(?&fd%*hCR^ai z&FxfHhUxm`BTC*7mc13Ls&&)BwuOykd_h$tgc}YctS}P~hUxCw!>-+HS-D{mqEJK? z14@}9enFuW_}LQm^J{2puV?7&38LycwlU?KxR=Oq=;&2~hZiy9mx=n9Skfq2v9cMJ z%rHKlXFBbpRJlMP07KX-F)%Pj-iM@#ms<{k0BPA2)A!J~dwFKlW+rZqGIwqT!V57q zmd00-NW{aSFj`}@!Hc;3-Zx0^PXkQU?qwjgXa=Y?z6PC75R1C3@7&1oyWK=04%il% zOo_8+hPX8{ic&W7n(Eo{{AzwV-OsU}0o>&Wu)NL4;h&KLP|D!@8m%=#Nc>`+^mGz0 z?1F~xj-KKC`8;ha-oUL`$LP(woIY`dAA9rEE|BZ z7vjN<2aJqN@%H4A}$(|4C?mEdt@&;LVJsD>eF_pm&%HAQtm>@9tzQW7^9oNAQ zIY`Uq{#Xj>%*Ly1AeqWBcIO(7>#}ysdnh}OG&z)kKdf2i+ z_qY9o94G~qOe7NcYMO#?v%K?7Y8#(I1!vJl5(Jt+DF9<@rS9GyOEgs0)aZ(cE6EC~ zt7oy}r32i)bq#F#Xh&%t$V3TcA?VLOhsHF5u8Prv0h zH$<|=)mjV<4KlZ`gC(^c=)8W-LKLqYnKIPC7GX#QmMv P00000NkvXXu0mjfbd5T% literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/document-save-as.png b/gtk/stock-icons/20/document-save-as.png new file mode 100644 index 0000000000000000000000000000000000000000..d71fce09580fc9ff0db7831ff9935dc9f9d543ed GIT binary patch literal 1137 zcmV-%1djWOP)5>m}&?~Usk9TEiJwGdduy7_nf_#gH!Q|JK57e|F`$Img?Pm_?<#5{mTC7 zGtSeq7gb3)IAQ?By^kPD;o%~-PHJO|OvSs+@vePu>j3B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N) zbjjSlg;cc|%$Gxt3f$ zL0!|!RM$31*R{l}os9x%ySmUoWvA_E3lF9S$6s@E7h+yHX9oW25xyT_EOn8=%jXHG zFy~GmC7a1|{huBNFZGihzajGzX_K40+Vu3346T3Oo@sB#5uG5r!R&p*+3LFb3l*fn z^N^kkiJAyg`67-26>uozH1R4$Y05`yh{u9PM?9f}HjifAyPt9PUz&dUFm_}2RR910 M07*qoM6N<$f|$rPA^-pY literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-copy.png b/gtk/stock-icons/20/edit-copy.png new file mode 100644 index 0000000000000000000000000000000000000000..ab4361bcc897afd3e7c5069ffc8196d751b6c06a GIT binary patch literal 966 zcmV;%13CPOP)qcQ<8FzMec4pq|E)VkncS$(=Pb!`6uKIWNzq(og zCMG5ZjvPDkaIIF;n5F10n>*)Z{X=Wo`}ZH55s|?1eSkCHpMLh~r?ww|ZgdBNfB*<0 zph0t2C8*-8~9tUPrRYXLW5MI9gYy8SfJN<^oHuZo4_l7@RJvIFG>EoqJ zrD6{qI%F!9N&pxe8}kkzikx zw{DGOS>u~E+t$Q0Kg?viUfZ>O%jQi7oV6oqmINklu=j<89mSY{w}`TN!&PfFOFTeD^0boC@E-Sf*`ceRYHSlzahpdgtCZq(=;idiHmUh zfs6RSWo??8w426MA%6ZeX#$OAjA+}JY3mTmr8G@iy2WvBj$`Ly$9~_34_PLVIDf#= zInQ~{K_-(C0B~ve!u8?o#VOZytxP5(n3?c@z{~;wUV3Tx@XN1^R4!e<_yYiNT~`7C z0l-l9cikS#d)@Zfvb4JT<7dx3|8v)MrQb-ST zPYygiP-JEj08pqFV6bduz`h5TpkH>cu5{Q_Yl~yvHKCD_>TR->K*qZ~nTu$Y3IRSt=Iy#7% zX|r6p*q%s+6Nv=ZYBj;ENeIciE(8Eb+ZZh@6sTM&b0i!Qhf;^MG{jFvMn>*;97kod zS;KK0HFWtxUvpD)Pdb%WrfG`hm1QwEH>XY8^H%^E9UavI03B%akId!sw`OK$45bwB z-**7X_LOg?7RVwAL`Mh2o-@A_pgu=r7 z$FHY)+wz}z^2zVc0vXZW-OZogaAL@zY+s-GZ2xoF z_44|!CML(_d|{rNn<8WyW;EarKEuo`rNr#)ZE^EoQwmH^_4f9D_nA^rBd?+C;4vQqWx#%8Urzqj`q2?^F30Pk|` z{Mc`v5Z|fSbWgR4FiB{`1{>kTmyJlm7wmWfp{6}3tuAxrpRZ7DVZ5Nr8}CRj0?^R5 zg?Y{R)Aw_@4uI&_-=trLy!66>`#RCI|FfuXt)lYr2iV@OV|j5Non{?{P zF+^i~q1Fquy}2SA#al=p|2&R%KEmO)H2VS(_yQ4?Om|cd#A9eQ@DxBWh!FHgn)%j^ zH;u__Bg(R{rZhrbr@8>v&{~&@#o}9vtgkOm{|&P@UZbhWyW5tBYFcyf)Tu7mUOy|1 z;BLyy%xv2RnDBRx-`6cA)eT9Sh@e*Q{^i^=FMOj>-=1R#csw3JU^37W=p;ewL?oFt z5$y!LGY(plVR|5d<@5SgrBVhFj{{7quE)1F)^sG&qCB=dzW7n)3W03P zvY44cv=g-fB2rp&TdWNyPHe{-+qGERzJpw@l;z^e8oZV<3J@Cx-dJ8*=!wPKw>!H! zt>W_HL;heGp-@n*EHLpW;)GUwqqvl(m12>7{vd~%qk3s^k^X&qLNpqD`ME!;_uR)J z+bmpNEN*=`J@pT(TCH-VC8|x+M1F1_rPU>27Z literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-delete.png b/gtk/stock-icons/20/edit-delete.png new file mode 100644 index 0000000000000000000000000000000000000000..6e6f770a18ed6d86383e2f77427389f3f35ce8de GIT binary patch literal 1230 zcmV;<1Tp)GP)1v9*oT?vo|e*D4y7&S7(|d-D?)HkG(m3+C*vRR(h&6*_z%=Ox$(w?JH0S5 zL`eu312&+5pcIBFw9x5+IZx-b_g>43QbI`luD*O(>sfE|<$af6r37FB4jecTv?F`8 z-fA6_lH+T7dOY9rXm>i)>&rA7&7A9dKS?1kwQJ>Hr>3TA&ojh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+nKfn z85x;QaCi`@WC}+Nlka_o+38s%9gmKVD;VP;WooG7y7cw+nloowRUqIyadSg4%pcki zkN*)lems7k&+_q)nWeCFog@N*kn%tOGR9!rw!)ZSf&t$~K>Q8n5equ~gF4Fq0000< KMNUMnLSTaS=5zD_ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-find.png b/gtk/stock-icons/20/edit-find.png new file mode 100644 index 0000000000000000000000000000000000000000..c61861047390990a7c8babf3e5ede0efda730e65 GIT binary patch literal 1221 zcmV;$1UmbPP)qgt#uG?=4hOY=|9-jdNS!s6Ozx5-c?C_=GYQB<6r~3Y!~CLFXph_Nb|1^KxW2w#g8vYj zfF1noKrKk*LxaJnF0m9#x%%7$0Ydo$0dFymn zctQw52$88kIxYzBEtp@3%%)=H$6uc5U0`0qzrA7EVg(IKQ3A2bW*x5k=BHa{8h(|w zZCX30zprl|9~{^U0AKCfw+{n=I2B0AvTUE#zKFs7pkA`2i)b;oG6Pl*_5JJT1bmFP*001b4rW_gtzEMYool?{zR>jBMTt@j5-EkWDplc*nr)kwmX#Hr`SAzb-F4S{;G;w3Hk*xh zxm@z&#UKEH!^i5X(y8>hlEq8V>Q%3avMeV<;qVZRX*_#&ZeBW_!VPEZ6?~M(IWu!c zqS29ecI~wP4FCLF3Z@)5W?2>=KYF5jP1V|~!GPcD@!mG@{HR)`Qs`sxhtIaQxD~%Q zUu42V;g(#zURP`}XScStZw!X{oP}mn$bb4Y$FeN$?Cd0y4kx~m)9FFG`@m=+h;6f1w!T;1mtIwC0 j+cFY41whTDXn6l`sw*|dlm!|)00000NkvXXu0mjfi7!Wk literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-paste.png b/gtk/stock-icons/20/edit-paste.png new file mode 100644 index 0000000000000000000000000000000000000000..8cef4d21e1be04e5261f2bb123142cedbbbb8004 GIT binary patch literal 985 zcmV;~119{5P)6A+W5Pv|E0+=v`~@Z$4qm-*qDBKZ z1f#*kz{!9S4n~L)OvFHe5=3a}vb)`G_xqih*TZhN#lm}<%w(Q1 ze>9S1;nR&9*B?rf0syU6n}-kQkLGeqpPxMW5z=!OBVvxn<*3A=W_>?`ZaE=@B43WWk=V>N&N!sXrD_q@M*B7c>8vrT^fy(%Cl zCMVUo&D9QVjf`#GSk&>+q+KZR2xFktX)t(&QXKrX{IOK-5g%|s7r4}s) zt!@X{Tt(b6cPpeJKx1LC;085!@RNhg%-q3yk1+;-7$eR(wrtsIPaHpHYx7OA03u|o zHC$CHAxLjlBG7KPvDTuhgb*keix^`NAVd&RL05*`15|J#;5F*Xyaj75#+X&KS58BW zYdq2ejMBN|y~?r^jJ4$R`7T|>nAoGQqWCUgd>WvMo&D9XrfEv8R!2l|&Y@Asp$G)uT>#EGN~IFza+!LgPL`(l;JI|^7v>)?AjYD^X9EIwRiY{iv|241 zjRi`j65oDziotb*7?ins3%B?WQDfJ0m>$!fhRZ_x&UeZ(PqA2HVqyZ9b5tr7-g)b7 z#p1hwW%a=ew z;Abt$#K9MX)i(G4xKY*74M~59iV)UD<*MvcpuW_~ z-JNZP+7fr+?D~HLO9B*t{(%98cT{-2;21VS5FtjzM#ZUO6+{)goS$9ahBR_-`T-Xk zDRV$`ISB-?Alcfk4jVY_AQf2Z+AK4Wi!kEhN(Sn>&Wry6+f=Wn>HmO200000NkvXX Hu0mjfClS%m literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-redo-ltr.png b/gtk/stock-icons/20/edit-redo-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..767e27bc0a8dc5ee3b6ff30ee2fa7d4e1a6a9722 GIT binary patch literal 1201 zcmV;i1Wx;jP)b8&BCUxU1#JKmH5wxiCg!6)$%7Aq zX=;L~F*e$&fr5%lR754nCbelx%Qj_dOWWDEZ@b_1fwCl2;(7ch_jk|z=iCF_NfHDA z*0sU+==;uXH)d1w=|u5AWaPpi#NM@GuX7g&Bmh92{_LHB*L)D~1Z;pLsN3AJuAQ|@ zs06LB)oGw)x@Xqy1OtF0fQ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EZ!!1{w&{@Rhk%*U73nL9cv#o90MDL|8Z zpUBHcknizBX=srzHyz6pTMp-28xGQuhb|@n_zOn!5BhQ7seS+e002ovPDHLkV1j2( BIJN)) literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-select-all.png b/gtk/stock-icons/20/edit-select-all.png new file mode 100644 index 0000000000000000000000000000000000000000..cc00c1abba375755e4378ce5e114b13845d4abbd GIT binary patch literal 907 zcmV;619bd}P)6vuz(-uDIyC?AWeB%rB?q0q)u7OfgTR$aL3V%(b;lNvY0g*D=2gqTJ#F(!4R zn{G*raoI!-#->dffmDzxsimZ`tw2(y12fEf@808LK7dk-XLWNwe)*sOIrj)4XTCVo z<%;EVD!dW~q41DURh)C@4esRW)7k5pOeV-?vq|k-0J0wsf7w4U@b2M5&m}F*ErBrx ztsMf2Rxb-t9BD2$DcAm5xK=2Y(xV@Z&TNMU0Gm{F@7t%QbKj1RW{#)R>0dLMj0r$cMQRCJ8;~!?cvaLZiU(Dk_q08-kK#s= z@@7PLSGRroK#z-}sN>4)%=aT>BS(kd8@?HAvm1a?+41J56WlFqVvL|(5fMQ7TC)kMt5n;U)aVkB?^Uv8R8CmDU1WK!$kLsAyneK^ z-kVilb_0zOyjM=82YGRz6Xz>H=M+$^HC&pz&4=Gyz#6lw@q_znf?%-5Fm!f;Ffi3# z+@1l%iKnSCsJFg85LkO)1m~5ZHwHPN?K*9j$7u;qLk-Mg$SFHxR&kWhgz!3x_&! z)hgHatuE?@ hQT?g8G4(kh{{oY6nsYpT*%<%;002ovPDHLkV1mBru&w|A literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-undo-ltr.png b/gtk/stock-icons/20/edit-undo-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..0b96bf90f7edcab02ab1de6354c0e285fc4ecfe7 GIT binary patch literal 1133 zcmV-z1d{uSP)0kt)OJ|LwJ=wsUH%-or|_Z}Ce2vN#eeaSiB|NG8A`Tt;^ zQU?p5qm^yvTUiYdjbi4z^S@11#Bs2s5x=X|yl)#0`@#G|j}%lz02&+dV=e3}$Pd0$ zuyP(5nC;D1_CsP(j0g&%v1a|eI3k}cSX`m*;D{H79H8CZ7{|dX`wKY-K~oa}k66ho@X3dl3wQqQMf7qG$Nkr~@i|U-wFn1KI6uWS(h9j@| z6F0l;foo^7sJ+SB`Fap5uPT3{wD#RxHa!p;yXD|!Angh%S8y|iY!0$ngRg=Z!5A>4 z@!Wp#GQB2Jx!ET>7#hDbQEBbn9_mUZW*Rg*TrP!Ad!Ce;sqsEiZh)H+(rG1`hEz(K znNg+_N-_mr0O33f3F4Sgh4F(TogC>aoAvMz%kVf+R#mY!vT~~@nzZAiKVXL|C|LMB zBA|%xd#>a%hx||>Ef2*n8pX`PA=WJWe?N-$oGu8?ACfyK4ifoy zQs_9y#i2{kBVvP^=+qe5~P8S#RsiN{9e2JjaggOpZ{jT7PREoU_Ch&;>Doq4_h7YS(tSk=H z_+x!njqe2?t$T~!W7{9YOy?f4JKK1*qlKja=MM7X#czw;-t+Z-wt`2e4R%*{TQ zmpq83KOMrIt;8-L4eP}tc|oj&Lvs)7J+XfPxy2RUt&*Se00000NkvXXu0mjf`QsvV literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/edit-undo-rtl.png b/gtk/stock-icons/20/edit-undo-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..119e0185c5c36d4eaf658617aa3c1e5593f240d7 GIT binary patch literal 1128 zcmV-u1eg1XP)jSm{3 z0*MsU1Pwe8ix_GPX$lz9Lb#L`1X^3RwEMTa+jjr|pE*8six3**dzs0ZoNwlwGv5b1 z0L&l&XxopXwjZ%$IyN1j2?7s+h=v2g&h~w@lZY4qENkZ6hasf#APf=4B4Pgg#2)@0 zu&BNshWY+{HB*@_b&vpnIv4;ZiX}S57rbC%wn_Nx9j&|SOPiaY-bB=uWriSvxsTAY zAnE{29g>H9o0z{8ClCD|&^B>w)-n;Sddi`{zFnWZ*_AkRxO@ZAz-?}Vq>a!(K8q~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}L%PDTO#e=}u7;;eN=*UmFKlDUo7qYz(b+#<34jD@BmcW35dz6c`z; zbN>AE-J+zLI&sPDY;s=F4=Cao7%1`0x8HH^i4zPD4`GbY`uYvN{OSvoy7SqH2xrbb zO?~8WRyYG-og*I<`C)#Zcix@l>(8%JDGg#JW^{Cvsh2MFF?0eV7I8wMSioAB1vDZ; zKA&fKWtlhMdYe{jhsz&)L=?q5_2d&g{LlletS;keFJmRCej>ue#6%x^BO-WOv$fr1 zv(X^P1^n{sZ#1{JnLK`s2k*a+wY4>jF%ITdcBVJbT?(KHUI4Ha_Zzs-ncZw z?0fI?;pJI|sx_iGLL9s{eK7;GE(QVZX`FMk_xG@|MJe6Y(9@bQ3VHd3=h)nA&}y|9 ztW@wk!|&^BeEQi{NL>(yAx9=AICu6LthGqT?CIBJ{u5!h-RAX+uL8+M&ofkOL!3MN zEU1KG9LE$21)Q}wXK~IU;xZqbD2k%JcH0{s9#IUGl`$rL?1?vnTtKBTeF|E6B3aO3`fI%^e^A}xjRI{o~-}?002ovPDHLk FV1gz@z2yJ^ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-indent-less-rtl.png b/gtk/stock-icons/20/format-indent-less-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..e282f0e9b6b2f929eae371ba55a3e3cda3ed0b8b GIT binary patch literal 947 zcmV;k15EshP)fTL6A(4go^Y~>gJf_1_lN&JNqac?b`MA z^^01&uA5G0a8Rw_&#g_=4r{H60*E|JH$k@7AO^F8NTpJe$z(*kuF?Pj5=trf*&Igl zqX}LIF=2}iE0C=*0TUT0rO;kQ3tE0DMIM3P0?fB^FOJd|=0BLuoD ziWnLkLVh@(0QCSSs9_i)j^d=+0t7_$TcX<%wBw*!tKr_pMnAJ;OcEzfJdS)mk0^=~ z$wb&}woXPbAR$o7foV3ey}jL%)+4qJI6Xa+{A+CrEg>S^TpLgXh~pR&6BAfiI0F%Z z64mjn%~zBF1RUjnARNy_T(AEdkR)8!MX^}K($Z32K|8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F*%Q@cXFbJts2H5L#c=3f9-g)~R0&Hz= z@$GltWGa9-jyZhz2(vS@Bt9YTc5~h4fGC9^#NC)mrOF5Izeg#G5P{0T0OR8m`4yKq zYSkKA8w5~Fr+fVoB58}cB*A-+R+{Z*6Ri!_227ur2Ea?IL+84*S}jC8#u}7Xc`w?Y z7L-!Nam?ms1En-tYqVA^B<@RFuMVGIUS5{9wYAeWum$n*&_VFfi7kTC3g=um faq;E4j^6znxQMe}O2XV_00000NkvXXu0mjfIFrsY literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-indent-more-rtl.png b/gtk/stock-icons/20/format-indent-more-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..8313529b468af97120eea4c3adb0b567b2f072a6 GIT binary patch literal 948 zcmV;l155mgP)_jWhQCOc=&{fgb%UYmOA)T#5&Klg%`N-{ zS!=^EEEI|~b|0{?^cRi$4G>b7Lbut0!2t^SJW1j?^mq`r5kZQDqS!Dr78LJ2Q5dne z*W%8dIYb^Ed3<7mTD3;pj`6C9fQTUoEUIllv4UVkaEW8+@gYu3K7ojI9A-|B%6mmb zh@u>cOK{F*1_Z$Zs48I?va!Cw+}s?-n5;+La;Hz9p9`_K{>1MfCReFu(9OAAkB8*S?&hQYn+m<=D}kBSAz!l~S?9=;-k- zLCJ=!3gvQ{)zx)A{OA+z-CO3?>}{NLJp1%B^w;XB>cf%O*VmYtnZX#-4IhVtJ9qXR zcmJH{*SX)Q*Q$K}#WglJH@N!VyG*|R8s7UfvIx#OMn*=sc<~Y;A;u7-I~xhI*h!M$HNksN z;ys#pV%Ns|BeLxgbIM+8kL~4UBoi}7kpS;~=h5`-6ROoJ<#Hus*T!)ixAt4XF*_jD zN=PDd0kpsnzW&fG`&s!OKCbd=Uh8+@%5T1yz>vF WgnGQ_-t<2J0000G zuyUE{ZWnPdF@r#FdNb$iKHuNnBY^Df?Jf5Qy;nL6w}T+yHp4l`C`sPLMm^o#eSWF| z|MTK}XJezW{c!718bwAs4+41ab0H#v2Lge?V3;1f+kgDwspVrq_Zri0&iFhu?IX6{11)Ofj6UQ;ltwwIUaUA1a zzTX+3)|yVI%jx%1!Y~}~a6+XZq-jchrB1E3csWyr9xN;XB~==Bnie8^7PIE zt+kZP3zW+xy4~|!V7I2>|#c!W*=hT^?PX~p{b1Hv$z)sY9x zio-CZ(b&ulC41r~)1Ly0;4>fD{k*DR@|$d)bg2QHM=7lxKyj`}5GZo{`6q7YEC5O= z=fww?Kw}EW?RM+QQgtbfq6p{xe_p~%)dV681_R&z)>g(8jx(Ul&sAQ2KK#`9a&odA ms9XO6bdn~oi+9WmKz;)afd%qKOzxNf0000_! literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-justify-fill.png b/gtk/stock-icons/20/format-justify-fill.png new file mode 100644 index 0000000000000000000000000000000000000000..e9fee1b7ba29818226206f99dd0aa5ce9a0abd66 GIT binary patch literal 599 zcmV-d0;v6oP)U32zujN2O`))=l;S$!oa40DdwV0$&(_yp z92&rPez(__mX=o^JzPn{Ff`7&@gxzH2;FWs-Fm)Nn2k2RRus{@r7iup6v#{1uttONouZ$em7=yKgS`PrV z)-;Nh;%k-g|-|AW14{rMNt>0MoqvC(ln1+?C$K1Hf3>vxDt;CT5GA*s#L4VNK=$jxa*j*-`GcK&1IoP z1Zyqz`fZY&M{`XH!+>fvK@Bm*xxR6Ea+ti2J&Gb`Zq6{ul|sQ>%@m~+?e@>1BWF|0 z&)=mqRk~V-l}ed%IUaLtWO#=n_)L#1Y1m;n|8SOjUQ5$oX0$fO0ZdLzqLc>wxPypu zHrov6#j7)55EQo?jqguuNi7Y-5a&HI2InC=u)gu5p@X2fodKmZQGWI1>*wX&ot;&s lul)-!y|njcG74S-@(&|-?uaY9R5t(s002ovPDHLkV1ms?6yN{= literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-justify-left.png b/gtk/stock-icons/20/format-justify-left.png new file mode 100644 index 0000000000000000000000000000000000000000..6e7685023550e5a7310ae050c99af92c73b99592 GIT binary patch literal 659 zcmV;E0&M+>P)@Uq`llreZT5F_F!dlDR z{2W>hpygLN!h07f2 zY)WaS)X9CYep+FS83K&P1)w&D`tJsZ-w!d?(AV5mj^Lc5QmK$6GdBY}(n69X9*{(q9e=>3!LIk1?9zy{PiD(Oo#|xa}B$G1hv3 z>8WY1Ub1Qg=z5*uMTyRVVHi|vwf)CwoMurJ;YCn4Z0dmpE46Pm6NW*x2ULZrJ1;(c t{U3fsJ$dqU z*8%$D@L;uCy}fep?tP!8sf(&euRv8N!i+JrS}nivX8pmt_irBqs}7*u?kp`XUXJtg z3lf6I7z-#Mh{!~s4<2Wo)Eo7<@p^q3zyS!v;JpFD;m<>iF^E8n%HH00g7?q^ORvrB zTt=Z#;7qYZ2;PWF8~}mAON=o+pr9Jq-TB7RQEPB7B6#mf)0EOoX{2@pIDAC9ty*ij zb*GBP<2ow&T%HiZU$uV$t+mwa4R&^Ran2$f(@-FW!2H5ISynk2sH!AMLZy5bV=Ts+ zk(T-zCP~V;0Jw3vnwcq4sgzMw_8a@O+wBpkqBv*AM#@bJYX|{VWov7jX0u5@@FGI+ zf#vH<%+AeD2ke^yaI<=2j45EOnckE}W1re~4Qp*Le>$Y05JF&a@et}u6DZaU!caavlw){Dqs2VsmM_z9+np#4n682{<|pLpxw+u=MqfT&pOTm&c< zioNwUI=hpk=_Mnos2Kp0B>%Zq+kSXHJMX*hDRRQ5R=|kRYPGcXwPuqf|G5v8GllZ= vkDor={<68bV(fqa0$j&;UKUR!&j9%ibIuVyD>ToL00000NkvXXu0mjf`f@u| literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-text-bold.png b/gtk/stock-icons/20/format-text-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..50b6e52792d8d673bc84ff78ce5981a1c9c3d76f GIT binary patch literal 1008 zcmV(}GmIq9K|n5QGZog)s<%(S#sDLP$)!FkTS7@?VHm|A808 zzhFYCl$jnRF$4;&(-M$_2+S}o{o3!ey_i#*s4?!leX*YXzH9CE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F*D}z>xPDEO^&sJi3db&9@@Geho+DNTdMT|vN5fPF!W%=@D z^uPTU%X)gKRAx~H)xdp@Ycv{-xLUR4@?rsG!}<-ab=5v!02c7hv32v7=3-57-V^x_ zjpJDBje6>mBsp<@@Z6p>*{BN^EZ}aq3#yoAT3U{^T`L65)?2fy>FFB`eLrZ@G&$-P zK3v{6GBTnQ6B9eV_Z_O*mhLvz+?t-JnTXIx8uc`3oLFe``~L=+yKN~<#GGmX0000< KMNUMnLSTZ9&e|3L literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/format-text-strikethrough.png b/gtk/stock-icons/20/format-text-strikethrough.png new file mode 100644 index 0000000000000000000000000000000000000000..b880b23e730746bb27c53cc3411e169c8c6a7c8f GIT binary patch literal 999 zcmVO+wgl!-|Xy(m^9(qj)n1w8~|64B)$ ztD&su;&qBBsX&=aL;BK;IAA*CDCU^XoXg&8uhqleGjoOvqW!ekeBXclzyG)Xf7!Kb z*W9to7j_zL9#=}``5#}BBn_YV&-LuN+s(zX^E;O=TlUoQJMRvqQVAbCg8V0-KtPFN zeEdqTr>}d{i4!M+(Z;O5XT?gtsC}_qx;%z41_HDCAoRAwWob0wAK$+7Lnn1k|KnB7zcy5``$06>6MwY~A(( zTb|uP)M#LgL9&{u`b-}|P*X~Yq(xe$Ml8)L(c9P0xpU_k9yv=-Z$G8tEFhIZX~{01 zUg9($g3{ABYOPU9*tfrnwQE*UsocxH16?VY*3%PdHRDyxV5mi*mBw02xm@PVnGud1 zJI-T|tYgip2k7nV=k)Lh<#HKoEm~=`{2RlJ6(Wp}PY}nBgNMGOb#^Q5H!Ni7k|k)Z z>H7A2;y7k}d;+qbW=_xAAZbhufEK}wgqToIQ-Mky!G}wJim1dx88Cy zxm1p|Y~Vk?tO<)f&GK3@|V-NC=*@qodU7b!zoGm6a97E?vYWF73@g zO=e0a|K+S@^xRnv9PFa4Z2^71_TyZFF`8ma3rlXgk$w9QvT5T6%B2#CcQiS&X=DWN z1G9=ne)#b)r%w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Kf9AZV>U{pKV&y7{9l@IL z3Q%SnN?-UKd*+buoU=B>HC2T*FR$ELS+nGM9jhuCbk`Vm{gllRgUJoD)G|Fkhq<*& zeYsqASBn>nEAe7yyZyAc1z`uN2BfVG-T8qWF03l%&h+)HT`+A$n#E%?p?NPs?vtzEjTlOIL=7L*vxBa=mns=9-7YAAg_Y*YjT~Z`G^a?e60(dx<}L9nW@T zd`slN_WkkQ>ASNUX1x9E%1vpZwpLD_{eh#WzLa34qpRJ0bdN^@1OZt02~z>M2~)Cl zVlqW}Xnt$um(x8T77A0^7tVUn_g*@ok`c3gW$TjnkA2@;?JYi2O)w=SQz3M|!4QBv zvoAg<$de%@jF&&ITtrL=X}$H9SZ5HCJ|HKfMi<6BB~@_{Z_}-Zwz%Dq*7Cyarh01X zvZOw}{pH4*k-C62o}^;1&Ni5e!z30{u^8j=4)S?TYSji{cVvzCO^q$8dCp>ttsruz zUxW}OsaTS-p;9&>DO-|?rBXH|WdlL^esfV@8@f^fAyPW%;iBbM?6A(=4FtRkIIHj` z7Mwz-5m}W%XB-MGgJ~=f;xV_;-6u}}xc=DhN5kzxC(kZS^x!)TIY^K=qtjT&UxVQv XK_%`TYX)M%00000NkvXXu0mjf!q5XM literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-down.png b/gtk/stock-icons/20/go-down.png new file mode 100644 index 0000000000000000000000000000000000000000..d3cc065065ac18899d1fde34efb1656ca91d8239 GIT binary patch literal 921 zcmV;K17`e*P)3{Pn{)0t_x2_+)>iFLM5;nsTa>ubMT2Pdk}j&n8;e+q2$2?xx~R~Nhl?)6 zg-}e?W?@kf?7bG!#3n_AwCXA=qe(2*(!^lX{5SXH{+=`Qxwwf<^CMN?)yy#S%scbF zGlVroAkeZgfk5z2x^;yIMha$MyYsB3^5J4$Vj#%kEQ`QS)S5Dy-s@@!20ag)O2MoS z6c7k<^uzNV(sOey!1|SfLESQotfqwOj&@4<1Z&Jl# zQO0vuXn5vlmX)O<&1PX{guj~854t`jXNNjX6Oo#AQ@CT06;W1 zm-v*V(k6fbOSw?Iun!Xm6f`#<(5pI3oOHHXFi$9uUn-X=go$bm#~1;KKm=II1~Gw2 z$b_5JP@cmF05T8|0l?Ajgmd|i^QRx$x?|t#yW0XNW0!ORv-&DV z{C>>j#xOEHggU1IF}e#uS<7_xdN?@MYtQHM@1JYY#}_lr@W3B6oiE+(G#>bMc<}7! zeec*Lc4#SvucyF@EAb$MYxzqcCKLi+4^3aN{jC4txfXNW^ZrhYC|rcV1NXl*5*$3% z*zv=__q)dOztr#Cv^#Wcmv5A=VYc`u3gsNORX>hGzNq^~JFV;uzqR`az3F+vsT5=} z+?CQTKrg;B5_oSP>iG6j&#tlDQ2isDpA4gR6_5G@xWDQ#=pu(dUisRZ%lhp-hv~?2 z*h(!}Kh=B4eX12_-{{#c-;JLLx+mY2_JLP}m(tbJ^f5joP-U*H9q<)UueZ_N(~7Q^ zuC3DA|6=jrnOaG-;R_LuZy&Y{+S1t&+xrQ1zK~|wds2OwOeYm&>4)}jv;a+}H^iSi vum00000NkvXXu0mjfxhcHd literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-first-ltr.png b/gtk/stock-icons/20/go-first-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..c9ae15c918bae515facf3473cb2f1941ea7cd1fe GIT binary patch literal 1092 zcmV-K1iSl*P)v^`vnQsZ3S*RdHSQJ?5N-dT}UuJsceE(tN|MI!8VnzlA8%{6oC+}xi3%Q<%+o~cuMx!~r&xewQU-S;`yk$XE+ zJ5^khcer#qurAj3vc>qpuGM%dP(V;v`YE>R=hTAkmiR{$sq9`3BSxDREm%zBZOhCx zbLtSJX=H$EKqrn%se~Y+#lGyz0jvX9`V5wTfbogfhH3Me+c2MeT@E0gl$YjaOlzz0 zE8BHjsu-;k!#IkJ&O*>D0tgT!N{`t8x>$g0){I&4o-nPsSKlSC-ymVJVQ~RyN z)&VeO3Zf(Kt+j*agDYpCAVC>LjNaMix7W{{z4_7Gx4UAYER~UJ2_KX>uA6mTC)f8&%(D@TAS#UoK>u*U1L6ELc zDPRa0=G#9$;mD!>t(Pkl0EzEzm$q5crfpbr>(jna$lJcrFR8M%_Ipu;vTZ=E&L4h_%caJwf6VR24j;s;I(fJVZWy zHJVsNj0ONn;t0!-gbA^Wxo+0YuC`cfz8ZL+^KOWoDI!?#;ML)LLgYfiWQ^hPPa5(! zV&XiY6@@N#l*^8CIU;2l&(!hj z$sRo3PPFVv#$%##j6!zTdfnFaiaoWzcUQ+v@k+hExI|S|22cOaNH`=x##;528H&KM z_y_}|y;$tI3SsPUJ|+qi0GishxO08dc~5)5*ZsRYZkTcvZmqKL2@W5jA4<0z@wxiRTn)gj~GAK&|icb=-MYI14&PWJ|$ z(o$kftM!*2Nkxo7A&C>p;}LO`TzZqO_(dI>`l!XfnMAtw(7+e&Y&d`w6dcPCqj)X^ ziZs8AH40v^&ZzO;;e?C-AO{{JS-O{?d!v6lar!_x9>W@w1sEN;V5|vC2->w8XHscv zPK+P4C!>CwyUJP*xp8}mbYEkI^rM#OgXj$Fy!vwh*Dl9Tc#lad0kLd8eyV?^IPvLB z%BZ*x_dU+&L|wf=S}I{$H^r~7*iJP-*J>R9j>+o(10~G=9r+tA0UJna3`)`f0000< KMNUMnLSTYs!4Yl% literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-home.png b/gtk/stock-icons/20/go-home.png new file mode 100644 index 0000000000000000000000000000000000000000..80dcff07ad36df255c120269039cb0794abb84cd GIT binary patch literal 1270 zcmV$52iZ6mDO}#V`fg)IFMUiRCw4HXQoz8SRGv}Ot`#>>)z)E(qpT4Y}oweY4 zDS*uIaCLioyALn`maS}PTeNKXud7>HY5*D=8!c`j1t6dl$d{{FR48!3TX~0Rrbn!* ze16YXS)*pE+@Xq!N`JI(pm+A{s>j=p9qVpvY_vK$I-DDU1^|((VB6(3zsc%ZR$*0{ zM=$?G&)M(GXTEyr`Dgu~9sJl?yQco$XmsGm<_)cN9UUFcEuBi_D)>OH)o}Ph-1BV} z?u+&Fo%@#6$(M%@Nj96-moE3p=xE$|?e!fpKfEN_w0=|bEzg$-MkEq3jx1rtp$4C9 zt6Lz88k+R6_&F)k@?{z_NvCFZP!7s zE!(zlU%g<-1JNx{KCOFuyLE0VD?Jyx<UH;~whWhdk_wNAV2pTg%2s1)-+A{v*@5WgUySC5Ti@*Ozw&iWO^yHM7oO9;fL{%d z3}Koka{2$xTZhINH)!+>)?7k#8L^AQY2DwCNe4Vg&c#UF$~jiOF|_mLw(n_`H^{ZXI52P zot>TO&dyF=eeIR;#%AICUD&X+Hr^{1}U#BVmtIc94b&d0XWRy}OTH~=SPzpmFriRjt_fO)f^if?li>J0OWK+vVG*BE2 z5by^OG)i3q9+_?%L4lyfAw8Kw6u7pHX%;9d6|@MkcptIhC{uQtypv%#5hIyOptXwu z27)>QSX;Zd3Qr)$+kQJg1(p%Ov=vs?#_uyIF4BxmL20NOD_Dwl?5phwc&z}rDUHIf zQOH6TiuKN2YrXpp6LK#9T``i;{4?0EGV>s&6ysipY+jK8Vq-sJ=7Qk5)3ppFQ6uSI z%uuv^-xpL3jeI_?_J0~G(>mR(3-fj<@Aw0`!kBoxMM|b)rl!ZS^W2z40r7cCmDpwH gU2orB9RKnE0F#VUB?O!%>Hq)$07*qoM6N<$g4AeZ<^TWy literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-jump-ltr.png b/gtk/stock-icons/20/go-jump-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..96ee5cc9a18adeec27b6c732f17ed1bf1b80e6e9 GIT binary patch literal 1219 zcmV;!1U&nRP)g)gu zaQ(LEkw6zO+0fR)-8bAxYK^E~MsIk)3%_t4qK_WM zDFi`KN}N){yE|f=`<&faRy#L1IGSPc+}UbYQ>BFY2`%^{;;ZQm4X$~ln^LZLuU<}eSgeUuj`Q*3_i72eo%4-HisSI7|rj%?;QVir=}(CjkDPOa0e9n#g- z+9so6kDN#zl#y(o3}m|1P^O!d-$%00Ln$cHaoH*kbRX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iW6c%JPzYktkjw>4yn!k6`H;JbyLdDmIAeZ)z_G9);`GP zBII*fS^CCH@_5o%$~V1Jcz$^N>*s=mIEhHX#UGxPbpDo}ujkLydu`EV@s(>$gJ zE{h^A1g3h2Hkw1E*xH=s-TQk9+jHv9Aa<)iTE!^;$A%5)e||v5dw87QkJ2Cl002ovPDHLkV1n7pR1p9G literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-last-ltr.png b/gtk/stock-icons/20/go-last-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..118c423e5c52c199c7494b27cd4e30a902c974d1 GIT binary patch literal 1095 zcmV-N1i1T&P)?;+c7qm8x6_`YI^X-63-iHDJaacFV zWuJjaG8qs6f<)ll04fReT;1GiJhf;EEu8l_h-EpC$EC?DKO?ftD8$ox?bGeDJ)32B z16mRxOjehpVNMg~)HJ~vCyWgEW*nra4Izlc51gy1sCTn#>$fz2Se7Vz@>-V8qc;g!v@v!4#F;>{wC zOeZKFWeFkzQ51(;I?CQ14Tkzg3a8JFB!pLf*u3WP1hh1i!0%uDEOneC$&JWeq^iL zedL2J&$QFjgi3_?578rHh*8u#_#JZk3aVn&pm88LvL1UNV&wHGW~UzHmWS8M*FS&K zTF4h+jYL&a0s;aXI*jFq(4XtYl*BY7yb8os0*XB_DS!n6i=rFFrQB)EyXy(uJ7d1> zIeAo>z##BL7-LI7h&4jGXpqn4p^Fy)a$r_a%%E{=5h59{MniR@{CesLo$NoRVk$1a zugUi{Y&f2wgQMa6fSpq_ABpr7c*?s`0w6GvP{CZoP_ZA4Rn5|O;V&FLwGS?k_mmgg z6o%&RprFNsiUfeiqH=$a^&|`C8p>i75JB{YOfZ2(GEt4%^em*4v*gUBKjfD)2iaX$_fZuM=T>!dhQjNNdWy*T)*>-HNsHog>X7IQiA3P)y z@T=V$%`RkwZ3ydmkiZWS6gA=;i#lcH9w-P%;80piKnz$Yf{X?Oa&qvnb6VDPZ47rU z?2s6;aHZg(Ht>rYCNzKmymuAs_)sd<66FUXUon^YVSz#|FLtkYUoOtT>uH6V7&dUu z!m_X27O^-H4+99&M1qOE(q{$_Co-cQ*HSW&?_puD_Fsmr=gT`c~lVsXWU z|IxDDsQi8nu4gjf?4)a!)Y9o~@;qLlgV2c*RuVsmJ1PUd^P!2k`!51J`w>bG@`3;W N002ovPDHLkV1f#81I7RV literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-next-ltr.png b/gtk/stock-icons/20/go-next-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..29242042d1640390600496861a01c81770c4b302 GIT binary patch literal 937 zcmV;a16KTrP)meJ!=lf8 zRzQA-VK4&QQcAnIpDYXp!^7+ugRH*yHDyUk?Tx;JB+fnmG z+dkhy$nv;U=?Vcv0wAWM&LLNtM?i+<-kmRLPZwJ+|Mumj-VZ|EgReU`k%Xuf)n~Bc zpqN>hpeg4D)vHEW(gqQs+HXi9AcX}0DEW@;>NukRb#pCOM}NB5`(gdz!B>~B)__6) z#u&KeGN$j0K}j3+RwHa#2TRxxLV*MUWT3f>Tjp29BG1U34?X3M=dZUe{8M}fKz9vD z1ZD$xWrN~!89py!LCk}MfFKDW1f&okK``*~Xk-ukBKhBsp0^9L&J8PQy#@A3t;~xg zQck&`UDwk)8lMxIeF#Ya2@nhsK`Quf@EcSnv)T$J0wEtPImX9^%_kI@>9p*{R0j4}T3*npbMPL4FxxAml7$;>7O zAkze`hM$E7fFjDD@VxcNqRH%@$YwMc!~hY&009=&tUhRL0eCs{YBzT1%`Wqty26w1Zq~r>(%{UwF%gNPDX-wN4+_q00000 LNkvXXu0mjfzP`A& literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-previous-ltr.png b/gtk/stock-icons/20/go-previous-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..ac72c4ee0b7237f4d133ef42e3ee05684bf2057e GIT binary patch literal 942 zcmV;f15x~mP)|HdZ&T+?Y(eup8sT zg*Kwrg+UXhVu)2R8dDY;T{Iztq!A;ODU}u)hM_ae_xJ8~!8aALkeYZlZ}HuCzVq(6 z_W&Cp*$)i>9lgc4Ag(b4i_oI8Q@OMqS_Sb2pb44Elf`Gu`DIvA2ZUfzo z?74ICMo02PM<075(OCDWoE?0n=oHYh6|s4*Tqx?0l*LHgGNHbg7H+TBOl!#w_r{v? zwlLJydaOR#`lcQK^OAn|;wfQ9K@qrAF9cBpQixpPKpp+&lsgFl(La=Z5^r?9{BXx3 zN9vz#IcXhR(5_d+AGa<83ZOd;699yn!Z^mRU&7pE@vU!P3*J8QAtDATsM0e%FF*9e zzUS+oYCdMKIiuROdBpWr)Ym=$2#E+oWW@nP<=9r8@F(ZT%&eV`t~^#?a0ZFpkWRyC_?|RxDOcgzoemQx zT-|gJ?7w8*6{(ekAL(a5(3C&htFy`<0C+ z!c!P+^Uf=RFarYU%tgIZQT21PEFlc?h%l^BS>9dp^w?9!!|fn!KS78hQ>9V>3&4J) zP{5o%YFz7Ke{jjd#k;qzJK*Z-=9xdoe~`iAMXrutkY%-Ns0wSffBfR6<~DozlO6u2 z76|%U@i(4n0olA6)6pTW^{^hidr{Nw?duM?x;qM{ulS=(X4gp4gyD%kMkfZOY0mvr z+G+-iy_=Rlsehc=#jh>x1bv-lQVY=4CHnYL-dwt1*=w(?|1g?g*APy|W0Gi*v1Eu+ zT;zH*%KZF2W0MdVQ&;axNqB zrJ%FxbE&JTr?R4okTup8;3tw1b7`QjHy`q8fF-Cj zMpYI8mF#CCIJGnV9eDZQ4`XTjfUQ9g=GB*#llc@?kN2WME+DYd_0>+Z2OQ=27Xga2 z?88oML}p({3qQ}QDf)3yRa8M0GMC_;Lse1lQ8d@`&E5d^15g-7JGPXW0|f1ajC}}# zKKE{r6>st=^-7#gf=c;n?}K~|QmPdy zMu~Kcs@xoE!g(}RuOrq5I{{R30 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/go-up.png b/gtk/stock-icons/20/go-up.png new file mode 100644 index 0000000000000000000000000000000000000000..c30e6dde20d3e261bfc13422f915f71b0a263d77 GIT binary patch literal 906 zcmV;519kj~P)N3F^WDaaRhlEv*DKrp=>CGn2>6+`0Fj^K+4=P4lSK-|oCV{C>Z44m>1M zDfGj}j}%8!xBw@=h&Oc%y2I@QRnGu)oyYm#SbKl@b8Y=<;@zPtdF!0Me(KBW{r`pP zt*}g*uyddy8Jhe^bK|Rt&eo6or|aqu=DplV&tOg6g>KAt%(QpIxw7yxp$T=e z_Hel9Pw$zzGj;rxo?SzqpU$tOQs_(uc>r9)+RjFkC0iVQyY;<9ThoVTx^&gKT^z>? z3QT0jum;_*vo%}_Z||E~m^%7=_uip%r8@aLYE7`&vf6a|?pz;lF%}jFX&x|RH?kFM{6|v>kmtmZs z@5M>-ZY1tchl)4NB7QLlq$(P#v@tGehZ+H~f-)w=iUpK$qBtV_7LV7Q%6ikvy@OCm zysU~+I*oNNzE2Lwt=-ZmKh!Oc|1&NCA_4-T@iEpS7C=DozwMo!-~Js63PB^N2|pXX zw|W=!jfYqZ2qK^qO2jAxMQZijgP=mz*qEW7<7gED5wzR~Hio-#;t3!x%Dq**67G_O?2RW?ty51>X$eZ9nJ-MD z9TnNmybme_L0$c2&a28s#xDPzIr7KN--)O)thHca#ana>CP&1LUWO8+(4?{JLA9Y! zg+fmDmp$o+L60AVQBjE2tBunRPAuxq7h<*F{M0v_U)#SuxGB`;*79g4?q%B2zq!8v g6^%&d7-l>DUx72Kh@z%da{vGU07*qoM6N<$f(`Av`v3p{ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-caps-lock-warning.png b/gtk/stock-icons/20/gtk-caps-lock-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..d8bed342132ce30a56f8dc83e9466e91937e2e3c GIT binary patch literal 873 zcmV-v1D5=WP)&!7(L&;_uV(cn<1u1+R_C?NLaXGfi{{*Y^t@Xk+|s)qJbTeNf(NL!1E>k13;;r z4o2KgWn)~pAeknt_#0~6NT*^_N;=bdbMJfielE&PpiH$fp56WNot*RKd>`=7pno|Z z9&sEC0I1jNqqpwd`m}bhcKR@+2R+jK{JfZ(n+v*W=kD0p*k^w}dGb(+V7k?6xg<## z01qn^!!Da~ELT@oU7DtsiiJXDYiny)2f@4E=hY-hd>qHYK?=n%tM4b@xVyJ+pCExR zK@{Y9u7wa1z*j3Pi*F`Lk~JC)d1!?M;-2Iy<#OpJV0^SZSZi635WQXx&N-xM z3L;Y7Zr6ulIPHCY`MHRfEcY8rYiny58JP@~c>1FX)P(mQ-g_Dy9mT|n32bh*u>RXR zlv2dZ?7?rp_sNCtAN=ybyrQt#Y)T^HAo%@jsnlC}p6@jiKxQ*|?_sSS6glUhgJ7cU z%HIOuzB>RAaU83usj0kPUpym~ye5QT=DpAo5sWbqLcBx>0N#5DL04B+7SAO~;`=e8 zMx!COx3|OGXG^6hy1Ki&n-h`RD{?q?>~)-e;|v~e{DD@h1t}$%8O+RuLP%*h{rSj| z@}($>vPz}m2>_Ot7cT^X{x!?O_BCeggQhNMPMGJgoO|;P=Pbu-WS&w z7Vb5hO+`0v#z%GG_^J-V8DoqiA_)LeN_09M%+Ai?)X7uWe)bgi@Baj?^?=lS?~28u zG}b)gB3-Orss1IjK7KjWg&AY*fNWpb;k*O;S9gIBLKnJMBgpn*(9P7 z-UICmIx=hFyay2>48s>K4~Bt=SP1F}a_1E@Y`Ij@LW<$D`9g5_lK}vO0S3~v`^@yb zS74gi+3B2R$>Kk4;@m+gi7Yeg3kx?M2~LK00000NkvXXu0mjf!l0qJ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-color-picker.png b/gtk/stock-icons/20/gtk-color-picker.png new file mode 100644 index 0000000000000000000000000000000000000000..5fab3320d51d169fadaf3b138b684636908eeff2 GIT binary patch literal 929 zcmV;S177@zP)u{(I1BLI}CzoZJOWGzS7ZN~JObfQMWT`GVUizdt%UItc)zW?&!?aOk>jHMX`N zT(-$|i}9wmwkN$F&*7fE&xoe=>p15Y z6pTW}oUg1ByliE!XJT?KK)>IQfsLKd&KiZcf?HbgzU5vV8b0mF=L=xl0w@6?1o{C0 z=ZLJ2tv03a>-x{DWu^0HEQ+q(6^>eXxfx!D2~4TI*5 zIk;Ug&_<+yga}(49MeaR005Pivd4h~@4EG?+KEk@J9oeN`Wt9*PGjF`XwI7`5GdN> zoGsv$xPI=#YR#g??eFjR?0R~~@S#KRV6l+15IJUVPT6eVK5TC9zzrKW^OlZHJFAwu z!}S0FilR^e5Pf}p-b^ML4Lq?c)VcFT{{5Ar9Q`3>ANk}{irl>Z@B^!MSLV!)#G1o{aw~kuC~kj8Rop z?Qpp3?Z?`?_Ou3jcsiSxGczS_B)*Z1L4o|Vr>B9Tljum#DID801y@va8qYbqzspOt4uk5cnS{5{(8!c&n* zB%>$_tp&EQ%Px;6IG4}C`7?)Ix!=wvuu^(Wjh_Arz8D5YQRv{{ps4kmlK=o(+S^iQ zZql7k$3MEK&iCqPpGU_O1*oP0Xqtxbe}ge5-EHk3vYw=th%L9H00000NkvXXu0mjf D!}7sg literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-connect.png b/gtk/stock-icons/20/gtk-connect.png new file mode 100644 index 0000000000000000000000000000000000000000..f3e41a27a62d52cba9eb183e29ba1be72b4ae6e7 GIT binary patch literal 1073 zcmV-11kU@3P)VpQY5G(eloG3S11->2CBh1<`Ug;n4H5`ld5@^r zH47G5AXH^h)FP+=DYaNY5s$>7j@=|q9LghZ?WT5Y-)rBQ!=j<;BWlYmXLNo#XO8qS z{EuT82ETIU3Lh94P?E`{c<=ppV=Z3q$Me_cx0Orld}pNZ=^+5@{yWAPzW(OYN^T`f z7cX59XFvIfzMHyC>eFEHcw7R&*w|Qi#jFf9>eddw-)|FWtLD+j?e=gY3C0*63yzMC zD)D$+#A2}nRjcxW)u_GP+PdB8^R{4ZZ4GtHA|WLslJ{!V$6=F`lj79qska-pHNLYi z?CuNqqSfCj-7crhW|tYjm51v#16ed0RVF7V?O1H|nANCHL`PoaLk9t$)0CfT;lg%E7_z#fn!)U7&%xH~F=psG!9IGQ&HXMa!1VzH=}$|Y8- zS=_QLSe6CTG*PRX6lf1H)2c%i5<~iN&k z7yH8Da{lJ((XOs;*&pc#=L%Ceho+K24j!=gP1w(YZSfJ8+iFJfJ+3M=* zJ&-*iy*L1Q@{QNulD7OX&>rj!_x3{9b)++C3?F&{Bg0WlPfufJb{f0)?1u6LkO1&> zDw90=%CS$Em$E;n=hL~_Wb%)?RsUiCfqk7m-xkk}KX1_O+ePMY^FOh}2cqo$v?d~4 r{`RZWn&v*cFu$PPDV2F7(uaQmEpXkuxz#s700000NkvXXu0mjfy(|qI literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-convert.png b/gtk/stock-icons/20/gtk-convert.png new file mode 100644 index 0000000000000000000000000000000000000000..324a5bf576ce3c4bc77bc7b790113b4c9b86a2db GIT binary patch literal 1025 zcmV+c1pfPpP)56Jn|8M3MsCJWmelGkjE&C@_ZxI5N zx<#e{xB+wlpF4oItnwWyQ;Js~?cA+0v$91vnq+1^!mnf3<-@yM?b?RM_0dG^bjbtV z^$u930~i5f%l^&{phd-o{>G+6t&D zE-c@9W@+{pH;7Mx1Hcx?4>)YcrPO4{y1Tr1+-@>FE|gMOmW{`yu^}&qNH}aSErk(6 zOxb2E0b&aH5!mZ=dAq}K1dv+6ruvcbv1=Xk3(?%RUG# zrv^`*a?Q_8e^ypg^W@~0{flX^UJTGC;p`HWd*O8x0?yFex3{6HNw4;7+Bfl7PoH|> zEq|h<@u14x+;vPh20ZDCj5}K)W!lAxnHF~jQr9*7eygz-@30(ufA#7d*?46Kk6hD0&E4+0FRlG z;jeCP?#hkFiT^&q9}6L_Th^c#x_cq9Y7Gs!sssUGfD29IWq9c$-!2sz8BRt|98ZNh z_N9KRs!H~0ntBZm@lUnrwE>B)Yqv^t0=9FxZGAFnXD=>@SRkOqY^4=>y`nrb(@sDe zz-oC)Klc0AIJE&tPE3;g;6sw8i5ZC?<8hQ_t&p#OwHgp8MHZYL4+iD6D_4}7o3lhH zWCemjHI+!n3>ab!EnCx+(>((+qA*Y-<^D3S7iC#Y$70MWHFz)Rhavf&0GBmM8Q@C5 viwS7O8Jh-pzdJ3y{|9fSkggi)+p)g^l_q_?-5J0c00000NkvXXu0mjfb~4(I literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-disconnect.png b/gtk/stock-icons/20/gtk-disconnect.png new file mode 100644 index 0000000000000000000000000000000000000000..8ee838abc7a2df70e6294accfa56b5fdea08ef2a GIT binary patch literal 1169 zcmV;C1aA9@P)T6+(lHS#Sga4?BbESdZ7C&8pELK~x%X^8+L}(~{G4QGXPvdzUV9(H z{|{M~Me%rC6c-m$B9YM1Xf&9c#LPrQ9E-)4hO^bFR4TRc_p5(!Mp9#AqrArhuq;c= zjdgT%C;(_{|K`wNe_!Qaf9pem=(24)W?2xn zjsF-74-Yc{1UkJ?8K%w-=Yoi!01z{Sh`6q)t|myQ_X~yfOYbjGkw^r+y?wf-zNXH$ zThGpBm`I!#00I&sU}oWKUju-$EQ^Rp*Vfk@4jF1+X?Zz{ik2fkKTl_6W%=J^ z)pg|cmy0f%=y4qv_HNcKEo z8p>R}xPTR1T#`!MxaJa=87y6lzxIN7_x^k~X;4%XH@8B|oPm7eR- z{P_zYrGjBdm}VA5vKY@liyS2Zses--pCzD0}~VD&`h{B1Skmz0>(xG28OQynu8#dp_H<6)27Yr`+*o3=*O+0 zLAb7iKx-Jv;L*{$lyandx|KSK;4?#n!?=@^Z+-?i0kf}Wn@_#^%6={^ETk*lmoYdv z2m(MfRRn8>);^fbI~#W#sNTKXc8CD20l=F!o6s2y3zjS)&vnsz^9DcyG~F|11~Z^F z15DJ}c_FlC4}wGjR05#1q#jLn)SGK~)z%*4l2xU|40x^s5(EN4Geao_Ap`&ljvb4S zX3Qs@zSmGeb^dUPf`B0e;JEHI0Ki%!91c%A%*%VRNxlvEX=YG3ggXTbA86V4QU6^6 zQwHGJ=-8hlBZ=a&hs(IHzfTZNY3Tbta&vOYbu~h!pS!LsctZ*R1Wb$r*Lw%50PJ8; z2BI>Raj2)Kr=`4nbx^XZlm-U+NeGER2UxIh0USpoWP+==1%Peao;Z5+=u>U&u{V#OXnv`1S>gN@D~cec#HGuZ08(##`sKve znLF~JvTfT3vmhcp)65w?X}TKJK2y6mH8NQp_~|ksje@LjsECYi}RzHjFH?s1WqCE0mb_xZd3bI<)B_@7Ng z0Az8z(x#D-5qspwk!0`Q!d-nEHoUgF=Njw1*M-wQNxb*IqdZpn{gqv>zM-lzzoc#@ z;PCKpFfua2rSbBkPd&Nw@u(G{s-WOeR6TJNbLrCM;RA=>SuG+j%|m5H;OOXR2=LzF zgR|{8PD*3v+s#HJKp;sxB4BMm-wpk`ecJ;szI*6ETSQ(i6bj}lV4+Yj0J&V|h0aXp zZK`aInxRDzpLioi@ZRH`BZ?vr$Yt~KmMvR$?c4WeY4`5e_bTJ^8-D56Xy!hSo&x}5}q)^ZuJ9Z3A zOkG%;&1S=})iAYsRf53TAa;ldYp-3yc%{YZ@jA{1wA@(k?x8Jt_T%k~K z#bPmjd;eR{-o5pn55i_B>NW7*ixGo}#e1a{Hkg=c@&2)M^mJ!vCmvNWKBCy)51I&o z>+S6ofR1$M#{2FaN}n&EiOZ!ivDRXY!5V}2o>n`eQHxoV@8XuhUZQr4h~cll%Y<#k zS_6Pth}c@&YDRUPsmyp)#afFP10uK}MJh;PsxLpNA&YnBN(XWnve)!MzGi5N`s8;eCSlifV$Y;=ND0 zyK?rkFFyV4>7CC#0z}Iq+_>?g0)$aGT^=h*E|*Vx@3F?93l&(*{O32O-mKFMqbnj3 zdG8ks>mqPysF(oMDvb|6{^X-drZdx}i6$z3Sv5C6D@mj}UHe8=WzU{HGXFsq+rLGR V#p796=m`J-002ovPDHLkV1h+i3u*uW literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-dnd.png b/gtk/stock-icons/20/gtk-dnd.png new file mode 100644 index 0000000000000000000000000000000000000000..9c417e57381cde5106008a24627da5071407cb70 GIT binary patch literal 911 zcmV;A191F_P)y@?3jr;rEfP$(5 zimIZIGL0Z{b@lnB#3i4G5Z>%`IzOL=I)G-QDT6_u{ev#fJEBHntbiKpAH+N&81vNZ zd|ZF^wN)eXh0W}hPN!2VbpTNnXC2;pdUyM15zy*Asx`1N-z17MJ2Pu~y?$7G`SMZ` z!)J^}S38}~t&NQh<4PwHF@gf)-iQz*)V9mwDbOUN$jA6Jr9Cra_wVl)S6_c)*^2$V z-CkVZ+}!-dO^PF85G%NLf~_j28mlx)wZ=O}{T@H=?BKm;I2^c#4<6(zD=SO)_Ab5) zAG~u4C^(y7v1Q!=RjFZC1GAYU^H0+4b~!rEIUWZ_#mM;7$Hi8Au@0q-PmmKjq6z|0 z!Fx+V#wXu)5ro8fj`M_z&rS2fvS)to8FTZ8n*qR_wrrh4Q8dOXVF)ph`GoIp_xb5B z;qN%j-9dxBUc!y<{zOBh2nDJtk0=xotg-mSqeQgoM==)X93sLKGfmF5rtntS?G8A8 z*h7rP7<1C7CzcJy7($4IA`**043QX0wayrN!<>aF$AwnP(V)N>gS8ep!JH_BQel#~ zvi~M2n@Ey4#zC2zPFZecG`(-HI4zR{zj64ol+72O9jZ9t7JP*vxHuz>|j}LG3 zQB@9(#$0$h#U~E<4`7-$Xf3p>wo#%g8Wj;??ZuRH^V1v-a|A_DmfKV0A!3brJWw?< z8jtGLQZ9!QIvfsIm=;^X_M32$yI|;XB3J6Qq6Cb^d$A+DAwbs8u8wj zp~zW<)r2L^k*4WHZ@qEqRaPyF2xyGBB*7Sq2-WOYKx+-EWzCABK!myv^$cwC9Am^- zgH-+|wjIFX(V>b6Su-PRX8hlylzY<}%V0Rv8o2xW?)9&}{&KyMHX3=J^Y1G_YQ&i< l0q3lY#^b@Adv~q_`~zuM-yN1-kgfm#002ovPDHLkV1i^8u2BF0 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-edit.png b/gtk/stock-icons/20/gtk-edit.png new file mode 100644 index 0000000000000000000000000000000000000000..4ea97afaec21820095fd1a6b4e996a435c2c2339 GIT binary patch literal 1056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OKofxlTjWLK3qA+5lF^Y)UwXx)B z4B`l@Lm0orz*W=j>5#PRL;#3L{*$~2qHGiG8ZR_gjpc#8*BL1P_B() z%VTV}J|n1%Q5(CC_WbJ@8xZ%`V08}E(VqW1mOepwkT^|IP?N;TN1rWxB9(G2nZD^r ze)xu4@_H%C58V22zI}c+-`-eq)&0kCNr$YvO4eN=+gc&-t&w$>F~$-NPPuq>&gIG0 zr?wCkPQLTbfB%^zNmw7K@9d~LoRrzF+|2Tu&(r+bZ?rslr)KR%qj|d1mztw_ieLMI zcGs8m^85ex!~}m3fLC65`Di~*9*omuuLxpLoLH$AgZxnEbaS+v-PpMP=Y%7N@oW)A zck9+8*;rs>?jKxSSw4NoZ=ZccW@cv0sZ*yMz_+VkQH8(Es(;{((tSpI4>_+qZ9H4} o<|WCxOSzc8-u~;}uSA5e0Q{aAG?n8@3IG5A07*qoM6N<$f>VB1H~;_u literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-orientation-landscape.png b/gtk/stock-icons/20/gtk-orientation-landscape.png new file mode 100644 index 0000000000000000000000000000000000000000..f1f83665544f95c8def05a9419d32b96a21cc146 GIT binary patch literal 954 zcmV;r14aCaP)EEt=pcp(bG7=u@GBNwj5i2M~KCSo>hV*DtTJN*N| z5NiOv@PjLZNFiyrv_wS|XbD>zlWr=7J-cVmnHev3TXu^vCd}Pj%#-)`zVFPyL#|S( zB)j)wY;0_6BffVij+HGmT*(TUN~ z(LGxRA4N(D{2R}%!O+?eH6o1GOjo8~E0;@e6^q5wYfuNlo~NGNk!~B=F8=SBe_X$g z=ejnV%?0Ov{NZG&TslxJ7AH!jlH<6_r7zd#q-o0P>K&9)2w?$%wGf5@X{ym$69fUR zR*S{zZIU!)_paS0O%wOxrOD$*-hc0}(z{2_IYJ7QQb-|CN}`nPz${_lGd)w`?Ah;W z#!a4oZWsGr*$2SN$_m+RRzAM%2_vQQE?hW&vRp2|=&U;=+8(XJeBbA{Yu6b6aNlL{S4NC9dmo_wK6r^3)eN-TKy`N-3f!V(&|PSy))$+wZ;sVCS<-NhJ0V1(`QaGKYtU~b+Oj=oPPl5c^>l%^DHeb;rl*X z>vaXjn2x^7MoqaM`}h|c{MXst2Ekj-X$6azGyu}zZ1af~+S=jJZIP^;D2)qzg8+8{dnZd;5o z>)y645iI^$MQihu<7d=?pMSY>sB*co-S!w}?}IkHjG~J!0V{;?9QXH4`RvD{>m`1u cuV78fKRub5q!si}qyPW_07*qoM6N<$f{g>k?*IS* literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-orientation-portrait.png b/gtk/stock-icons/20/gtk-orientation-portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..42bf2265c340585fcfe8ade06854ff1cc9625cf8 GIT binary patch literal 908 zcmV;719SX|P)Z{Bhk1 zmV^+qj^hZ9SjHGa6<)T5d1HRQv{ft??NX_vJI@6`@!fYmn#s+)mCMd(KasGdJYbst zumwa>WY*Wq;@axfO%Uav7cJZw!(J{RS(xs-IB zZx=5t9xs(jv3*$Z#>CjR!*}0b=F&G`W8#?8r(Y*El;X;jpDCBiXss-zv>qND8r|91 znFHRGybSI-4h6=yGtYzL~+!8 zi7^Jpbuq>eMbSedV$4DCvR8&u3ba<_XY*vIa|A&^7=~oCIr6i4g5V#d?0J8!}mO-lt@eBc^eo3p@`!{+8D zx2sir-+v_hD2niXpKA3se{OBzIPU*b*w|~JlsdG`N+}wR#*-9^gTo;c;}fLQX_QhJ zK!^u*R7#Ofrx_m`Ck$2Zp$LKLOe_pTMn*;!p%x$y7GG^?>J67uWktDsQ&>< iYYW4VNzeTN5dQ*knVGDrBhn-Q0000Qc9!#0R_Rzr4QVgz5W3W z6eHC}cl8%}uc28qloxeliru7D7Xg!J-n&1}IpgB}$c<4EI-A2icjhx^zGuz=PiR39 zaQd6(=jVr-(VthMC>#>Ni3t4{fQW>NmFIa|%JVn;`tZM@sUybzh!Q0Y{2(@ zDHMvi<;wRrf^slhDwP(4Akf-V9(syB+8BeKooz5Pv{qnNh@ue8+&#I7fSK^?Z;uhj z2~NFu${Az4yQ?eLuYLHz@4@@mmNhX!DFr5iQVh@Yu-j;0Vc|L+KKuoq@5A$a5P&F- z;jD$R1``vLC=?1jdi*)Z%>K$s^+vf|p445X2oMouvsv6-UB&IMZzGq>K|~-ToeP0; z4oQ-rzrP<#Uw(nz-3B+C4V%yBpNUQUu}%x#2@-M0<#O{#6Vd9Y7pM@cj(x^&R@`=BMDa zBM~7{L7bpgtF?WoUG9FOPG{=E+Uv2QV=%@bPGS%d;yA|e z@Nnw73H#fQT0rX@oD(?b+I=Vp!zRw0p2Fs%O;oEDhzQP|dj&JoXJL#11aQuEan4x) z0-YoY8jW4U%v3D)92f-e%)N`tm*!e6q4mEGj4+HONfND{b=6w!{>0YS)&Y@Q{k#V< z#&osY^AP}qM~^pQt-GVM88!RkPwQ9K?yrqX`bng%vrPvl90L#{^0oK#p{EKTQTm-e ciFMBM7Yi189;4HIng9R*07*qoM6N<$f{kIRhyVZp literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-orientation-reverse-portrait.png b/gtk/stock-icons/20/gtk-orientation-reverse-portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..3c02a8d28a98dee533a242357cb90dedbb2bfdbc GIT binary patch literal 914 zcmV;D18w|?P)x+ATe!loep-}LP#iDMW3qax1kFVs$avzS3=5$+oyRTG3(>+%=oFZ}eVs1HIEh9?FF2JO($@S)u`WtAwSwHf(&?f!QQpB3gl znJ?a4TwL_>`Mgm{g)&-e1)z0|HX36L&RMKA7-P^n#yQLO-&@3S=;cn0n~Cws&cM%H zyLhoMna}4 z=E!C{(OU1HZePemh@y};-#CM(Jg#25%FfO|0QB@c!@0RRreB+(R;#g>j7L0p(({Vr zh?(gb`g(iOTBEh5ueX<(>DP&(2(SmHUL7Q6ts@B1+_-g}+bg$8r_-dwSas2$lzKrDVNJQ>soGGYblqv5b+u{@^ryOD{;2Je*h6_!50zw`}#3PH)`x* zBTGwADIpANOioNPJ9`#mlJ`72dzP0bCZ1?Wt3wf7lZSH#YX#>(#PQxc?=toB6yO*h z9>yAtF$uq9Z>A#=@DpZuB4PpB+dGn8g+`!Zbabr2&@?{OMAK}-S#fx+4l_aU+s4L& zGudpH?&#>i_dHt6-JVIwm;$&K+lT)?bPqQE^ny%KY6?m^IC6QtRC=-WYw6WgDwSN^ ogK*gYfLLn}$Mqwb;B!F!1LwA@xHhJ^c>n+a07*qoM6N<$f?6iIYybcN literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-page-setup.png b/gtk/stock-icons/20/gtk-page-setup.png new file mode 100644 index 0000000000000000000000000000000000000000..eb29a52190ddf632edf67ded1751972de4d96cb0 GIT binary patch literal 1124 zcmV-q1e^PbP)p}rV*vR`&q*52!!l?5R9 z57pY*s?9eS0I%)ZRpaJHYSV)Q(y)Vf0S$D(MQOUMsJKVV&t%T*+4Iq$Qc4IR)IYE- zEiGlyg=GhuS8u8Gdi}W0)Z891cer$2l#(c5b~cAB6zI6ner8p5^=3`e(sz;?iNvMS zjgLH5xvYFLJ2}>2ERJoPS7IhJO;2|ZvHE&x7@qqFpC3M~A3C~02r+q6sRGbasm_9B z2jyVj3D2>wU$9Ppzrz|F=&>fIW~_92*h&u%T4Up5RR zX8)B?DT!hFnI1hwB%G)D!DpEoI7r72JDAO+F|7chke~RfIE_t>l$VzyG$H0CR7zr+ zHmTmTxP>bs<}oYoecg^l-P#- zBzhI+Pkf4Priib5lsH~y+bD$)0%hEiY?wBEou`SEY{JQn zaq6p$pd1vSTLDJXgG`KM@r9NXjudGgyIdLK+Twk?)yHavH-unHDTFZ>5eg+0!EiCQ zub8zD@5C+4pp-ypIznh@@%5OVFw#jfJ#+v~(?zuUKHKXL@9h5L(uyzNb6x?b-LP$; z@_9#P3KL|fZjkCdPqOAPn@Hst^sdR z)dLqVbpG<$J1jFigmjI(s9L@$|JzuPJ~X7`2{n;Sx(K}rH>a2xQh5AvZrqUQo|Q;6 zHJMeS>v~Qm{ycQhG|{CJead9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Wd+5-i(1Q@i005EMFQseJ*RRkOSk(WCetM5@<~D2BmOi(wbp6`F g7hYKR#=l>{U)`|5ZQkolOaK4?07*qoM6N<$g3N*8Hvj+t literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-select-color.png b/gtk/stock-icons/20/gtk-select-color.png new file mode 100644 index 0000000000000000000000000000000000000000..af99760d01f648760297f4398992f97d5c5d7842 GIT binary patch literal 1234 zcmV;@1TFiCP)-~B0}rlMcdSxt(jyxneF?&d;F0^>xJ{{z;h1od)_O%VND1-fK391 z#pglOAb+Gv$6mec!Cq%1t*VP%MX)~7c-ndY($SBfd=U^pWhZ<#)YrGUr&94^?Y}?} zjWm)!yH}jpbM|$);o)*%jGzjtinT_MP0Y!Md-u_5)whm)_~b`y-)^12rrt`$FUw}l z{E;IV5m3d5a8f<>C=pLq=XLek96^x4$^ujbxq9_rc<|_q`}&)G8-b51hp#kFKqLrc z{@_98e)s_cC}4p(-~d7E*X)+;x=Wy1Z*Zd4!dQbdhGIS-;hZ3{qy=t462$}o#u$t- zsP|Yg#Bs#=+qUI5Ja%(pxW_<{=f|-*zWQYxXAMRK1rWa|)%X9IpsJ|%sP~{s97mEF zS;YnS-<$6K{S`C0^L*w$xSdMbaOPlvb{Jzs5CAWBiDM8{1hs;?rLsmv(9*>l)JJ0y z?cX6I>u*QLKd1iFE`|pOFrtKUyx=V=0NLz-8ly-vLaHG$rN~r_Oh+Q)iZs;;ovJ11 zlG563~uWb{>BvT)XAAJGby0k`+hcV#S0Wm!=Wv-BF%2YTdUYa zH-qOqPPYGIcYNQM3*Pw_Q#GY^`~yi>zqT{Yq@765#W&bux;DBY|J2sAg0)Y--*FDo zg_4r#Qd$EGDafw4hp4%d-`>8TnTZK%ZHLAo?fNt;*4-k@htHEEZ#~TB+jh&JpS~=2 z)OS5l)8tKipU6II{L%$2I%ZsoMCMWseY^t~6zMS3&J zkT0J{YG|_;u{rl2YH8JYA^gS?MIDkx>0VYs5?z!>DZWRTjKD->_+J>yzZ z{pVs`7mEJ-$#rHAGrNB`;}d_qdBqEl-Yo#{y@wsCa>@x+NG-cg*534V2Ml|kNZnzg w=AGVVE5^F?sgos|KNgF5W6Sf+=R|~m0N|1EKEJi}EdT%j07*qoM6N<$f`V{mRsaA1 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-select-font.png b/gtk/stock-icons/20/gtk-select-font.png new file mode 100644 index 0000000000000000000000000000000000000000..9c64f967765611f390950e66df1a8bf6a1b30c11 GIT binary patch literal 1098 zcmV-Q1hxB#P)>#muY8GXF5RKaLSjERZyQ6GpG zh=MW3sEMQ$9}I>NjF*U)C}<2&Xe(`{sVz1$Ok1Wi=j@9QGi_<)f%UeMm4C0b{{LTF z0CabE`}tzNwQ%!>2LLhdF3JEjCNnx!n;JcK>{ulB@82J5U)%b6wz=iyhQ=gD>xFVD zB|-??Z4d%*&S9*@S&Q;KW@l%Zm>7Fw@apJm?A*1zt+(&Ean9*tX*M!WYv-JH&gsa6 zx)jdoFe>RVD(f&R=~6hSwFwt$oHLPgPWSd5H#>K2Z}alGg5Q{E6s2&^UKzOL4Gs;{ z-#OSv2(mBd*~;0IhEALsPxvlOPM>FVmBXK# z&SITKNFe|!tU8Aj;H>4Nk3XSQDzSRiYHr;sVvVg3VI8p`V0wCnY&OF^sWksgj$@5M zC;<)vKn8%d7Ec9S?jInR%X8$dci6jUH$s3?ibP$K=1hj-tvMdrvWbzA>%4jB5U0tXNRN{K!~f^{SNwL7ZoMdPp}lFnlL)KWkIiNa_@Hk)C^ihIFTR#9J9k01DWzQ>;zFY(>?KhU;nC7U;I!uLI-k`)@N z@|Q~zDbdPIkw$q-AQnfipi88X2q}?L;;OG&>qs;- zu&!e*LEw{4H!(Igh7bZF?gZ$#t=~n)s#*mco;XP|ndIW7%dGG0L@9+addbM1 zwN}ihT1RN*Bb{8hE!t>O$rSgsw({HWe{lZ%1(J=8bnkrz1cXsIU+SVLQeMegKa4^F zm}QyeRw@5~SMTVN!}y+}rnZ*h(NUVy8ER{50I07`0Jta$RWZ^rFF%=|8XOw<>ZhO2 zJ(@@~;GCVmdh@PCDTxEDF$6)twUMEUB}GNUGqW>Xx!QlGFgBSNK&-Q~bKUY4*=@!| zH6X#=w#ceA7iFc9RnibR970M_9vvS0acF4hvZxZ{SKIQJuyXfd=KqBM0G@EtSH>nh Q)c^nh07*qoM6N<$g2GJ)k^lez literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-undelete-ltr.png b/gtk/stock-icons/20/gtk-undelete-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..103877e82b92cef85099f4bacbcbd8652f59febe GIT binary patch literal 1373 zcmV-j1)})5!p$Wl@_K`f~niO@_dRbmMU5CU<7xIhS{ zm8#w$kl=zV5CRoiD>O(^8UX^5ZmFr`WSmUnWt_y$#PK%kH`}+IkBj0;<-LD@7mxHj zf{&j7LLp$};Gx4_-8Qv7u zQ@)g*o?h4jC7=gJMt>TMwY>D`$bS65$M^kUS5LRpK`20A+ctK@q_w@3e4!Bh<=h3a zEgqAJL_4XO5AG8Nr^FUEG&*|7vZL=D|H6}c@9y29P*Tm!&hgr-XIWZWA`C+e!@#y} z1_lQ>_3TMDHVfQcS`H74jr!BqZkUr(sf;l`J}xg^x}@u_|Ct>-+UVW$sZc6I*_OrO zLyxnsub=t(1+v*JrBVriL}vmWg!FWG(b2X|)a!L~*Us)Rb#r#Fu@#_YS-Mhj!a}jc z@cv;!1ocXe-o8E_d1R1Utxnk~p*`5YAuvfij|cW z+B>@Oa{s_G4F-mOM$Orvxv7QLwl+M^#dSSA&&6>ZGMNlc#lbX8gb?y0&`^54*6>7# zDKgi8$MTK8G4k1yJXl*LVgyJfsn;8n9f#cJCik*g78f(r>kS45`orRCS-1_?7XZm5 zYH{&tyTSS!!#lH2^meUkX&ACOag_aszfYijyg-rLSfgCdQ>`}eeGlLF(Sc??m)Gx4 zr)1r!y{wW+)WihAD=#-xarNejU7gkbZ~x$Px>{+-sVh^gES~4y{99-@M@Q#gq!}ad zTyps$i+7fpp1B#$XYNSf^KK6G?RicBocRuk>>982?rAytwQoJ4ckE5b){`A#)tW1~i?>{BiWtZ%y9%T}r6YBYDW(6_IHCbK}-_AZ*5qgbYi z5dUlN3m|{-M;6*zIWaezfA8<-Ck=_OJ3E^Qe2(ZytI6>*MVQ}*PIFTem6{vsPz!hgIWa+yOrn1DVkwttjD2G&jsEi=-V9go=X6i+QO1t{ z8ms*nuTT7k;!2T7#6k*xzqYm^q>$@UO059WX~JX@b^hE+&g>ZJ6hZZX z=M=;z`yUSu9{nDB`VW%6dOrQ214oogMNwQ!VTcVpSChU~B)x3QcPFokZ1zD)hMbyY>(#*fKtt>U!LthYZ&&$p{Q|o f;>wlU)~@~+-Q0RJIz``Y00000NkvXXu0mjfI5e?h literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/gtk-undelete-rtl.png b/gtk/stock-icons/20/gtk-undelete-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..8ef12f8c46f10799c8ccad438950600e7ef94c6a GIT binary patch literal 1391 zcmV-#1(5oQP)QUH}-nH-t)}t%zRupLFN4e9{u!6 z@ADIY1OkAe(a|nb%KPfo`qxa;JkcJHW11!nyFs;D!?E2DB4KMv2z^#*Jv}os(*y*d zxe)X>XCe;Vc5IK|v|sMux933bt{#?G@;cGkp<83EvgvtPrio=)w6sQPiA95R z|9MZJpGm5bLqjZG&63S7Kk@O!4;~Xj0BFN&Hhw!axc|WMFMi%NP1AJTJ>s=jUl;$J zejB^dKuU>en#ALAPMo|~jvN}owrvvII{kfnck8J$)88E!K71Bpoo1!benMc3(+8in$E3{T>YE zW15EcwXgmM41%EOxL$iC9MSpwitv4pSS&`oElxDrg6DbEY8A?*GAnCo(&;q$#lI8k z$kILV5XJS1P=+kr1ggZ&9pz%NbW$lL2K)Qz>FyRvDH^s-aea+UE=TryflMYvVKq;+ zFiU59fv8#u7C*kIE@$PXK*oOf`1jKF)2EjLwUW(#*qPWqn#o8HN`Gn~mulmJBE(81HU z4)#CXv30Y*aOtwD)$90yVDl!;-nJw?T@8+m?PYuS77W868nx&hNU)kM1%G;STF%dv zX4*UX>Mx$;ngG}{F!apm(UAv_-#y`bp07gT2un*>x$^!mIWjDG?VXw>ZQ8>+#k=WWO8}V4CzOV8(nGyXbq7_m~DxjxaCW%M~a+!@O~mO6L+mft?uEv z0a|OMk_3L8Xe^{oeC3FH?b?~a)ivi2H-ShYQBoqMq@^WBX?1}eJ6mYq7N=3HlUr`! z`5J*hYmMjmn3h3tz3jg+^}e-QaOVxlx8%lo8X*KyNBFNS>MRm!#_Iv;)Tq_1jY+5;7NdZ zEc(QirF8klSEsCMwWhnfd;E}P5sg}0OI^ne+BkO4kM*r1_XS;vU0z|u7Rg1+n9C1L zojvpT+mn;1>1n*1f)#*1I5zeH7|!q*pPk zXYlQ-PBJt6)Rn^SpA;7VT-i|JhPB0K%&oQ7V({?c`>QqQ)Y|-a xKkZ$1Y=3_L_QHZR!l(cCX6n5g?*G3R@L!!Ccf#kl+amw~002ovPDHLkV1i-H!K?rP literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/help-about.png b/gtk/stock-icons/20/help-about.png new file mode 100644 index 0000000000000000000000000000000000000000..3e467cdba5dce9c33a9ff659f9cb63e9ab4a0dbb GIT binary patch literal 1169 zcmV;C1aA9@P)zFixn^5itF^Gz*0NY> zBhyg94>b>4(=GkrEFcV6JBo>~19`C!4H4uV;&7hlxvxGPR94p3_2K?--~an}UAuN& zfB2V>8Z^Mq4ZP5CfM`bp6YULbn*H{FLIH%sTYN2Fb9tb>QU*FIrFAct!r?8x*_yw{ zeKUnZiTmi8{iQx1h1tbBBzx%&vHdKW>fT>6Tk~JQyBRYxQJ}$dD}uQXtE51omlP=U zg1L*8GwrSgJ)`;OUoAE0nnX{8#G%T|@s!dSqt*t3>j6iBqXNP8D5ENr(v+9u$vu$N z)FfEyZlOviXbME&)R9Gx{5jfp{_zbz_|xVZ0bycXsk6r_;;Hi&KUVVmVDB9*3J?Pr z)X7FlmCKv4X|e#L6iNiocq~kxpR}}O^B7FlA!5*JTM36Uh}?>IE6sJKutX3A+Mmn_ z7N6M0;k!kJ%kup5NC^Ji{!vWwnViQ=Px1tckmY7_kiCDVvZ;*Qs`px`Aac+tR=fB`Z9 zWcb26V)tFhw?(PC8|OZJ&7Ho@gUdel#O=4@W4lmHp{#T??o5+xOstvdYt0yMObe+b zXKqI)FZYJdyls#6?!rUWDS)5$@wx>c1q)WB=9C;TDe1Y|9s3+{&ZATS5eFoWh>P)V zqW#7A7re(*{eq(iszrcgw1&)ipKfr(aauETYwoP1gs=cE9XG4Zi4B+{EF;$8AadUi_lR}7sCtqRO$*aDDo ziPn{YbiFVTTqka{Qzr*&u~MHkzjbZZV8~nkrP00u?L<3uAoz^TNz*x_6Rj(O;|T_y z4bU{R-{Q);%$!F_PJ76MC3Y-&#T#gT!uq`@90iDv{}RY8{nkrP-(dNe_A+yd?7_?D z*MUCXgqbl1P*qiUBA#swYvyEc0{m)p@Sy2$F0pR(hr3fUGRsmjGRtoCpX%;!DX~Te z8w@0=IoX>q!Wt3JuBu9yg?+b?E!(kde3PT?Oom_8BbWB6c$~)cVDTHvp6eb1IQxC^ zs#_!7pGDiMUyl6ICd3EOHa0EW?{D{Q4ODeB5II>-q`gsZyW>uw5LRerEI`rTsJET0 jC(_YCr2Qb9XEXi+wB{GtO1oCF00000NkvXXu0mjf@!3ID literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/help-contents.png b/gtk/stock-icons/20/help-contents.png new file mode 100644 index 0000000000000000000000000000000000000000..79219e7b73e0bed3c266119042a7b6036e3a37ce GIT binary patch literal 1512 zcmVP)d$LJ3yBpb%3u*340tt<72ob~!jUD1>jLAr+jkl)L7Dqp%9Y;!8 zQ!V4jpjgVp(V}8QWzb>ria~mPNl4f}WHKaZr(<^9E-@Ok3kuoi#5D|EAO1Dw=HT>KnjY zSO|H!dB6pSSTtH1o(YwHK78hZ;rWbNqW)vX57YN04c2T|@VOfXG8pV-^vZYS-2ecO z|Mc0tufMoIesTEkWD*G?vgm95H-d<)G?Dnj;luP~dq@0^?|$!>008@UuswsljHLDk z_A{>Y{gpk>J=RsRdRJ#zsp^{z6DE_0<>d?j5N<+3AV*~CXP;x`rAxHM<+NYF9^Gs< zwn!Vr7b6*9JyLrewdjRSJJuGrZtpB9MtO1y%;%p+X=)16b#-(VkcTEFFrg=?!0qAk z^c0Hzeze|u7af6(w4tDY&W5kF>P{YTi={Dn*>wLxExv1{b#p67UyPHvZy(z3xd#?= zoOH3T50ComqNYz4tDQ(_T=!H&*eH$Sy=8~hJj`k#LA zjmC91sH#fnr~e|Bg+*kU*5GT0Xj}W8$7RK)Ho5X$000sYL3GU;@!t9dX=Z8h(79h7 zI@P^)tpfG+8~~so9A>ZYfAy$$+t#;ozIkik_S@UISXz>d+C-IP+6uAAyjWO>Nv4(kO4@K+i)}F)>)3Mdw^11#MbXuTt12tOZ+B=Vlat-D zzs6qL+yqtCRaF~Gi+{K?C-*>4ahWD2C%`%Q8qSoL!!#m{kBsoFkoQVI2qe@CF|*I3 zTUdR0g7}9YB19tStgWT>$&_QMrh4l>js zW3lBh+o+y>5r4e{KAvG!6{%QF#ev2;o2qJP?0X5B=77|ZBb04x6Y2Sg1VEs8yj&R_ zVeXzC7|UefLRS~1(kc2NX_&Y8rbA`cR9I?nl-?{6OOKp#ZkmfP%-zwHmxuQ49c1+P zV`lU1h$|~hbvQ^-RS=mB(~DN)mD(D(=FFv3QpYi##Y;`gos%(S&pp={&%ZZ}Digoa^aBAKMc=@1XQJv8F+;_;M~7)#+3K literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/image-missing.png b/gtk/stock-icons/20/image-missing.png new file mode 100644 index 0000000000000000000000000000000000000000..14b45f6c0cc84dbda1b3c3a89b62421affa1713c GIT binary patch literal 921 zcmV;K17`e*P)rppd>87PpVxWyQ4sn83NI?4! zsGuMb7w!~l#Dxn@wTL!TOVx%@Ok)z7WHOWY-o5X*n3?D#!S=#ioOka1yzlv*`;Gu| z;k^qvR|!8-;km#Mg#THpigWHOgF87iH1bEGQ1C}aMr3Wg(!}6YU&5M@%!}~tJP|L^v%&Lo1qMyKl|m>6a)ohHoWtF zpXH@Hh%w}Pa^9Xt_PQvFx_VTga?1ik@x_FOGDK8C#f5@ulmF{Z(2KEFkw2-G(UAek&U z2da?GVlXvZ1Vl_zL$@zk3?vDXP7{ANL45i(QWxJxqq6mNAKGL6j42KV+(K@OSyz(mE z?%n9FT@c4eI(v5@B4`vrE{E6Ki;Y4M10-m*f_eT0D6hi8BF41c1F#OgJv$4k=w_di zq}H^?ZP*Sdf~x-e>veZ`(}-0SR7q+kkiLF%=H{`EjxO8U(uy&r>25V95%Qnc0?s+s*2+3F^QV`|q^>m-N;cg#Ha-1o vU#T>GBo(AK&fkl|IF3D3CtEYAaX|h7WQ38!Pm@<@00000NkvXXu0mjf900cz literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/list-add.png b/gtk/stock-icons/20/list-add.png new file mode 100644 index 0000000000000000000000000000000000000000..a06d38e657eab79c28ad5976d70602e0e47e2655 GIT binary patch literal 780 zcmV+n1M~ceP)>h-mF%o+Ejb2EXBB|j3} zSn?Ujyrr2z0Yv`_fBKy7%9C%^w_ftu+Qvf~p0~ zzTTpaDTpReVrH z9(^v6Dio7K_4nO_xYbJI5JvYS2yT#5t(3Vq|1u)NPe1-byOWtXDVm8V$K6~hCWWf% z15={NeA>CU|Ha*`s~8bMtQhfb;2LtF)-c9+fOaRd&EIye$5DL!q$yEkwvJui*<4va zZT#7{R^E8V>ge(t%NjPc4N+|!Tv9Vpejausa*5`V#I_nG4feIhe9DLW<77e|L$iCko7!; zLR37nU^+JwNFg@%R_Cv~U+y&z`v9eLk0-IQwwc6K8j zzKOO*;WMr^_^FdZX;Fn{+IqS=sapk1KK$`ob#-T@95Qt>Q;{`_Zan6t-MUdww@N{h zj-sv2<;ni;wi^r+W3cz*@TFoH9_+3$%na$2v`7X^;z6|ZFJK_&{=KYnIgGD iQCX{7|Mb{%e$FR~Tykw^zZK#D0000#(5QV?mXZJbNm+8cw%*5$de35KA5K_A3N@gImtet<9j1s_CE zLPSMSB3^=sIvK|hmBhrvOgBB#(|!83&)((3X%YjHq#pOC7Hh3qRnk2A)_dKV+H1$x zKQ=G^@ul>|VAKP`?Mn#~QPIHZ=CgWw|4aU!(bl^*!@T~?lgn~+{s0gAON?fBU_#(- zDi}l3>*5a|pu1<;{(R>9H>@bKw6w?r7f0;6bb)cP3|V$pfNCwtFlCR7rP-|W%NZhz z5hjBXgL;GBk>|*4OdLgblna7W#Z5*G78^{`5g5UWwYaS=^RK+h-nZXm=p5IsUAaA; zfcKvH+Aij*JL&zoMfTwjh_zS%4d64M`{EqlP40w;_Zea0@*eL|&HpSwP@O&~!MF|T1evb>kuiu`b2opDynR`#vj zF^53|Nt|Fra9+`=W*bzA3lU$hU8h>I+`oG#=nR6t;n)8v6-(+2zg_O|&DwS1f*}OO zs^(2s+kH;He~xV9C%AqVYdj%@8-QZWExtL880~nRZefW>A6mc&s7@tkS%!%$d)_bbzJiK12i&!5Be<5+^Z9l2DzkvcA5`2Oph6Yc)o04iogIhgk@?0AbjsQi^&0 zg=4f@EzX}`!-!$m!o3_he1uA+La9^&pkBX^Pe1>RuHVM1LH%^fd8QQS0wIK)H^SMo z-}1$o??@^&$|mK|!GjbEF@wQ??d@$^trjS`)SzV3F&lu)domvg(@90vk`xTp#v|-p zIZmlqq+Bi|0-a8W&CMgZF>`b*sMm0000(#)j* literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/media-optical.png b/gtk/stock-icons/20/media-optical.png new file mode 100644 index 0000000000000000000000000000000000000000..cd3fcff89927fb2bfc8d7cda9ffb5ff2d4824351 GIT binary patch literal 1332 zcmV-41)@mydVZlkcmEMNNnPZ z;l*OBNJxCr7ZSO($P@P#DTEeiX({dWoSC-MIhQ$S@8v@W0%0ZVVJCZk$yzJ>TMUl} z2cX*9zX+YXIJ#Mp+E`dn)D#H#%K$LjvL>=w^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z5TeNFtE+YQo<#RrMw4R2;p?v-FEzR}uWRkj1yS};k#KxCnJw871XttDJ zRu@B_uc6s&Ak&NvTaX;8%Enp)DLF{4J}P8!k(PqJKXk7dk6Pf(rU)nsaz%E4LZ~Qe z%-s(p1xlj6had@|Jis9Z6ahgjMF>F1>l-}C;kAQWi&sFQJ{(w=6M3cIYO~)1NkTP) zW(pyf9@}9c1({}0{X>WD?z34$j1eiBug;H|d5l-O``zJM8tfoKGh@I13GUE54`{dA zH&$AWmX1av4h91y3A4l?Iqv|AqBH>Lbo8_ur|o$8)6LDBAt*9EyFIOMFRJs6ag0eQ k47sq=(bGi+{=X0Q7o2<3RB>cnN&o-=07*qoM6N<$f?EUf%K!iX literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/media-playback-start-ltr.png b/gtk/stock-icons/20/media-playback-start-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..22d1d5ff690351de8c2bb5afce80bede850893f0 GIT binary patch literal 742 zcmVlDJlb^~UqREhzB5NNDBblB_m@_0|reVK?L%d!dpwt(%Q!GG1PX0y4Y zM~arK52rTYpIAt(n`Ap|)b8|o{CRNQFLm?TNO-qP^9-qN6(nVD`0 zM?x(Qr+tJt`H5&4fG9#0MbUNyqEI&gHn;GVHCnBj#nM1i)01uSc%;qYv=1>I^EvEF z2mmU9HvvUqUCyMCSxK{lraGKHbw;(GXku?BU$@6%k@g1;`(RbIG1k`lJ38!BWlaG9 zqV<{PjDa%_oumUJhDo@=sLQq+S zjPb(CK*Yd^wp}1%>t{iNN`-9#7E>fHK?nf|fH6X?!GxL`y_(Htcqsgw#}iR4lV09d zG7)X*VWDIYfq|em7*K04skvN^jlD?lXe@%CKb8ios;m5cF5iYJfuIK3!4&;|J&Z=P zwzjrL;}frVJQ2bC-24#JG2cVQvvq9L(r!p)Owo)+v-Wmonnj`^e3_jcAx?h9=^ox` z{3JrEfDnS5PA63YZ3EUA4Aq}Lf8>eL_*iZw zH{f=A17iK=z!tD^B2r6czcSElHfseR-YtD!?CS1R`-wbS@%fTvSq;iT_5VGvd;JCc Y0SQ7UIf^X)(*OVf07*qoM6N<$g54fgLI3~& literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/media-playback-start-rtl.png b/gtk/stock-icons/20/media-playback-start-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..92b6ad1c05e03726032c2eff762d83eb338b98e8 GIT binary patch literal 754 zcmV_SUKtEycx1>K8Xit&_q%=u0syVGqqT;ijrB~jtI}V&F%%3V zuwbFXimkD+rye*C&j>V4lM{&qX{~JlXlpa;(pI|3S2kyJC>X}#MN1?vFHc^)e9jef z{R~LX`N=?vL?S#1RGUnvcF*#9x2_9rpruP{#Ow7sZ{NLEZztZ6?bxW8>z{(l1xj~! zw;hki7ko;-Z*+S++rss$-OFlfQB+i9fBf`8J$*K!tc(R_0<(MCQn^HghzRZN?Uflj z)h3YW+BNI)YnQJ;NpXptOn&B%DsA?5Wcyr2p<6B_OFN_uGYq#b9P2D|L$GoZJ(M zgqWtuKA(>}I*yIs>bre@Rek94qelxo?b72 zUPH$=jrVjlRaaGqL&18Fl}R_@x%3wSHi5VC%W=GxtWvM!BG% kVAemgum5kbzxo2c0KF*$+0L1on!hy4^Ku1vYgJ{cEa zw`v}`dkO=8dFk!<{r%Sd1aNt|+XK$OS^{uK5`KOC^;7%ISzmgGpC^k~ajngohpVeE zKPE;4u-k17cC~HmSp6gbP$reQ){Jd%Q^6UVl;=zfGm0}to5-zYg zZeeDW(s6rt8^SL=s5pcWR?EyBM z@X$Wj^Zx1acpO!j)r{v=Tx+ul4~Go?zXAIT6vlsR?{nsyllhlPQqaUCwgz%hC5jh%p``cioirFK7u?Pk*qaXmA zpg>xMlz$Tnl7WH9(aZ*EHspB731CJbMTGBFCliuQIP8|Pw7}S0MTLS$&2*&n%y`Mihe}1xj<3`*M zL(^VcGkY&zn(mu7CfVAOT&bjmnVH0PIwP$x{POD{xc_aEv;eaTY5`V2L`1)e?U1m|yn1ae;IZj3JXp zCyKr(7mGo@QqiPV6W{a5Sxe5CgY!`Bdmc%xCIdr5S}qiVUKGt{Php%<5JXVb@p7p| zPNZ+TU6XU&zjXJva9yO^#S`h5%4HL_+mnbesw&PA4T<1bi)$^Krl$j{BG%#(ZLEls%RWJ*^UOk27Kb}4ne{3u%PEX^+ zF|I1EF$bxN6UP*$r}597OSYaplRn&=@AWn^wH)XWkQLy!Aoyi_XJ^i|+m$odugCu2 zppiHhql$GL+`&N#moBMy;X?B2(IfX&t+wF>!8Z@%xV-|h3VPz|X&gTsJA3xC@oU#8 zkBp=?qoogK_uV`5`;#Zs8;#eV>)x6>wt8~h|EiEK`~LWT6fGLKJyb5|hbk2S!Z0Lk zHuw7QgXjCz`6${r)f`T;uLr6VO_)`f;9vu44m@5Esh?(F|G&Zh*Dv5t>P%^7i)kCM P00000NkvXXu0mjfSbwK1 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/media-seek-backward-ltr.png b/gtk/stock-icons/20/media-seek-backward-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..271397dd20f157814faa8c1314006f1d0675077f GIT binary patch literal 900 zcmV-~1AF|5P)$gLX0t7D99MYT5AN$g)J3a>Y{?12L=XKoH%i8%YP5MZYu!*=<4bU^&Ib60|2mO z8Ju&KOeO=5rzXEu0Jm-1cxMje62=&HoVe^g${Xw=<43CSse(Y)Z6%y@6^q46?u^_z zUs<{K03n3k`L_%UJBxs`SKoV$JH zRWJS(J{3X$0BCAb(cR0UB_+kIv7t#-S63qdg%NsT1UgRu(bw0#Gw)^3hPQ;@sM}R9 z|C!0qyq^clvOy{B=RN;eX=!P=dG9`5wXPaXO+7|sW#un9i)yVgLP+%=?`zdcf3suj zcKh8OJLT-`49VuQUOok_tgJ^vG*Jn@#0D57`oO8h# zqiu)U?iUvY8}8n_mr5iDDMnZrD-6(}Q7$KFX9tf?PiHy@6BqE<*eC#CrL|tXhn#ca zx-L0*ux-3*ZF&7qKi|K3DRGf{o+k()8bDyi81C#~J)Y-%lDI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otd5aK?yq8*7p9DtzZv*zK%b@`TAcD?0@=mJn~s zr5FBy_YDLStQ86FiXKP|p1Kx^acKw}f6%R^?`Ge9-gu9uwQA5w2IN#7PMv=ml}aU%Hbx7y9}$>XzS&vUp~^c4U&j>Eq1E6?+~YPH&E5Cqp<*VUUq0RST-RRRE_=%t>X zXG?qbymD&i&i;~#%{u_lXygR|c%H|;@2j(CKi&Pyt?B}?{vo?9JGObyL*S-bt#;UI zwW6tsgUwubE^39X4FJgJcah^bTr3vVnKPe^udO#LL&L*wODU<{Z08c-mI@!1D+B?s z;yAX9F%|%k^lL=djDP9BbX`}6VVFDhap_#{ zncQcG4;{Al?;q1jDQS!*Fh9B>^|k~-YqK^#KR@`}%CF}K2M1ptKQOMI>+KbPt^O%2 zwm|fFJ+iaKj0nRJlI4;5A9vp0``X^2u{YmR%!2E`-$llDUFE8G@ zd}UFvl&Y_92Uti55)eckw~CaCv~AmnRlG3J|NO*HH*WlR@rw)GSY1{9J9e3jl>wdx z2mnSK2tnJYr>F0{_`>ky%F4>Q3m4Dx@^Y2(`93WK!@xW_@PT4u4B56F%+7rH-u?R< zAAGrRDf;eOSuk@fNEj%U4%Av30Fjh3BBBU@PF}+jJC4IMCucvGf)8E$zHX1?9tlRL0{^JY1YW0UF51OVXs zTWqtm^s-3;*7|vU{cpEkzpL{3UM5N9BpezV0E)$;avX<`9zA~B^SmRqT5Yry1lJRw nul|>S<^S>pR4Nsd_67U{*oIv;bO87*00000NkvXXu0mjfs9T-D literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/media-skip-forward-ltr.png b/gtk/stock-icons/20/media-skip-forward-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..1811f1e3f6bb4602333ddaadb6202f7638e57c92 GIT binary patch literal 838 zcmV-M1G)T(P)T2NO$#Nl#J>au+l69;4$0Iepf;QLmUWk<8wF{kJ|`j~wmZqb z;_5wGDV9|H3ANR3#OOwiKg1u3Mw2+Bb>f?uckgwP37Gh_D)w951NVNMbH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n>cxvH2M_H(Ek@p+cWmjv_n2f7>pjgwf6zQ}A6G6@PNm4N%TQduR(&O+ cTABOoZ*Y6X*~C*k0ssI207*qoM6N<$f-|=lzW@LL literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/printer-info.png b/gtk/stock-icons/20/printer-info.png new file mode 100644 index 0000000000000000000000000000000000000000..07214dd082ecc85ace0ac6e29273796b3bfd044c GIT binary patch literal 1110 zcmV-c1gZOpP)1wkod444^g_wd!XQ;Csd7`K#$X7xJ0udoASx2~Mt3G|A>9&P83{(?l6XTj z!3C&`VWmb%z(@!tRp?EoOs6e#>HPnk^SPK-sS>}<$w|(6^1bi*-Xj1af~v}i6DP8Z z&D!TiWG~=F#Bl%efN|bkXbZA0jE;_0MMPDV0O0uX<7RYp)Yp=Qq4xId-UIs&(YL10 zs49pc_mC7t#F%n>LfS=Y@y?OYuV?e-N0&}F`5$1gY!utKZ)5P0LBb%w7>h9$Yc0kY z0vnJdjr$^2>_nVttuQwBJH=v=IEoQtFs3EjdrvNxqrbm@#hn$vVzDRy#z;+7@!pfo zX6aegLl{LZxyE3O#W_bdn?+Di#h9>mFCzeCWMsq_3I%3L^SdO7nVGqxogJN$&1SJS zXu-r1TCi5AHyjgFe`>W_mHE=GT|l9?w^sp?;o;$+P$)DH9X|A4dnSIptE<}|JNl|I zMsVI^tpyCB@sw)9cUNcm^=5@?;%L@q{VIy4t@_)kFFyJBjp5Z9 zZrQ4ZOP3^yA_8ld-v=v>T9D@t9z)_RI|loBu(yL>ZqD<^dyI`VWIRj-!E%1DYg>#Bm$O7+4A$0?sQpCTsNcbdWkQ zA`A_zW<#!>>A6K}r5a%vN+y%hS~V91-g{L=CZ{JDAHUV|O_k+&Y&s~FYlPi>ET)dh zQjKyoVaLO(Sg1FtEH+t8Jz->}p@9a=sgJ^lJ9kQabMf1M)(nX;8kK5Jd*pbXZ-Kzmt-r2^}3-Mn;}N(WOqIErcI##e6?rV#B&FQiVq9Fe1!V zQ-aXqk_Pj$W!C#?0udny0=l}o85r0^yd`Fdw=^=aeWzpQ)0Bhoaba<{tjYgQ!=Ek~bjaF>!*@2T>t<807*qoM6N<$f|KhRO8@`> literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/printer-paused.png b/gtk/stock-icons/20/printer-paused.png new file mode 100644 index 0000000000000000000000000000000000000000..7a7de7c8bde8916834d8f260625a0c2074d692c8 GIT binary patch literal 1107 zcmV-Z1g!gsP)>VmQub7MiNFiCL1{MrUT=|iD6{o zKY%r<#1IoTfeHhI2{0m((xxr6YN5sUy?5Vz_v0J~udS7IPxjt}v(C!OT3Y}_1m~QL zjg2+evhWA3^dJf=P82(pU~#B4OMk8ChT&`D<0TPs&N&Rg)vH(4`1rUDO7L{`jL|#F2h$yxE{BI_{yFQqO>&Jmxn-~V*(W6HK;1UAeq}|bhHzczuaa={+5We+u>&NIW9AlSSy_F7=lO^dlqj@PIOk|L`n(Im!Grn^eI6Q)Y+lXT9Kp)-CZfg&f<>pnw?hX;Lzd2bocDW7!MIa zD}{&#ps}$L=XQqJzKKYt>I2Nq&a$+$NZ8VaH`X_Bz3v&g`}0M0p_OEe(=16*ES z7Qp$wDc2b~T3T92lDMv+fFNjX2yy`(uXm8ki$@e~jl9UavZ z6BF5mi|4;-Ewp~PXHU2N_@hr%SPiL0Ax0at)>Nwz-%ea-W@d(bK2Hz?0Jc`EsTV6R zel+60H!(303c%Unq0f4HdOkmTb4HN08w?%;Xr9cwOXaGua5)$2MDVnYiny1 z3I%exT)Oad!8~~IaPs@f8zcJCr3)YUzW>#gD_64p2M;K%mF(^7p}&70y}dmgJaiD7 zWmL*#E{|MhXlRJ8t}e=@GUv{o24jsz%Z^ z(zTgwoCB>DGf!q{X=$MvRnc0bmBtAurBI@XYLRJfZn2e0pjcJvJ8i#R4!4gMM`U}jJ4J|hy3~1BJ=ZeSZi^ct`)&q zOBjVjVMG{)gi(dCTB*;~3Q7w}k`UKothLT;lJPyC)zz2${L?S5oGKwrQgT6nXb>fc z7BZWmwBW>%&*!PtYGhd^TSN)bghZr_?>din`LE?{+Kg=fze zxpVg}O-+qVPfwHC3}XyNMDRRA>uYWF@7s?b_^|DMIOp&@!|tx#Oite5@gI-L=NnK; zxHEN^a-~e6(9ZDiFgI`B#5m{d{QSHUC8TLu2a_#=Tdlploik_N<=*f2So>#Y=}QqlaSm^L$X_jMEkO`qj3J65thH#Z$>nmyaqQwGNtDR7 Ze*s0Q+{z-`qd))v002ovPDHLkV1nWJ93}t& literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/printer-warning.png b/gtk/stock-icons/20/printer-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..79b4a08f55ab1831e54e436b839404d28a04e5b9 GIT binary patch literal 1117 zcmV-j1fu(iP){FB5LAqc`y5h9u9oXfjS^Sa%+d++Z&y|`{}A)OcJaNwNJ^E}_@j{t}W zsw&&JZ%^JW7Y-Sb7Ql&!;laxRCUVj7m`$#0Z*LzF5mi+zz_xAMOnZB~D-`of5{YC> z>xxy>%&al03L?lPlA?$hbL-YkIu9Rg8Oi6D0NHVd1-N+eq5x=#xMw_l=IOWKU_66oJUml@r!yH6@kB)} z=X5f|K1d)j!u7s>u3zsX3}c80MhwRDa8X2U?W4?__vF3TW&Q_f$Ax0iqJ=a*(THy? z#&{Ux;dvg$7_4V07RMflm~s<|Oyz{0p3CHNIl>@BjKP>n*v>hss;a1~ubc8`3NV+; z34k$DP*t3BB$G*|KQtXb2rA(kgXeifQA9i*N1a1eF-8iL85WS{=4O}8W*Hc|y;N+- zz`&rUQ)x*ilX#w;@NT?jeQUXSb4W)EqcSjbYblVeuC7)#KL$b-S>853 zWq$7wwstA|zul=9&YzQmhdPTU48x$|u?8&`ixP%0QmHh_WSUGWLpqfql}a;X#=}IV zh>ot~yuUobmHyi--Ex-Y^DK*J71;A#hcq@mu0a?C);XuDNMHXodV8zIHI4Nhb7~TN)K*WaBrIvLyfAl!14mBMP@9&CPAQg(q*6(mo1aI=lc5j`e7cXF z=BZglRxeIN1bs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)!i6D5B7_^dRt|z9 zpoyeL0+A?orAFa`5DrD5SPX}>f~Dt{wj0~9EQGZC@9xZafe_S&_ii%Z_sn}U5Ac|5 z-VFBW*70W&HtHZ06>r7F#xixtZV@>wOZrsP&5|bSyD1DPb!7e zr|NDP4s*Q}iB-f@b#2YhCjl^e3`{Lq^72Agva2>HC&y@OYX@UYt$XiX2qCd|_vZjW zxw$#$>g*bh+4iDf@W(USNHo9SPr+bNC4^X+k&$7%wrZu_)7@j}xlur_16=$w?%oKyz~|PM$c)7-J}X zu>_N!m`qNm6Q*JE=y3GltINyx696csh=|nveuV8GSABBzYU8?DvuA2^<`zNMHAt!C zf&B;BwWjNP6e(l+Q`6V3dh>Oml;W{?Ox2w}OLb@J+B5(}M5=0QWd%SJ9G3GUC%ms| z8bYCvjNFc}^z?Kv#$cERgcM^HK{pHoL_|_b+=<*pG#UjFQ(P%Urlq}=oRsuU@~Gs} z@U2_rsqPf+n>v-6n_Jk~x?hktDHrKu(#h?11BCqStSsN0xkYfhQ>m@B4g0>Vmc6}w z^$yFiPphu39wicD$Hc5Gl{YCj(cRsXoSK>nuh#>IxQCvJv z#bR-q@$?KdTxif@vG`40H+CF8bhrUP!+nu#W`RIJ@_F;0FYW5;N{K}7m>HQFWI9YR z##l5OeI+9^!;_Vr1tOx>mR5xNLqnd-%)YVX$E@A6Yj5qEHEZ_ZRPcP67H0g0*6B{e&oN8sHtIM{JX({ zLDulwMg9D_db)DyigY*}=~+P;Fq0yQu&NFD7R2Q;1EVBkfB_}Yyd13mxjsmB5zq^8EtJ30#+q*8^3 pZrm0MD>kg(aO%PRzeF-Z{sx@~7o42BvQz*7002ovPDHLkV1jI5aq|EG literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/text-x-generic.png b/gtk/stock-icons/20/text-x-generic.png new file mode 100644 index 0000000000000000000000000000000000000000..de7fa5dcb0895a6505a02e2f654865547ab585d3 GIT binary patch literal 773 zcmV+g1N!`lP)f4I6otQYXLe(-C1)K$ktha%iIl`3x}<|HJ;nYA5FG_6mepbxDT0Lf2Wc%)P*M=3 z#T##g3=WC{#G=A!SiE-d?7nv?-kXiFjmecp^YrfMn{&^-^G1MfeR=C**gv@A;=M-M z5T}H@6GHgb2p`_O+55HI?Uub>Z&K$4(EGge)z#(YkKcLw-O1eSTxn)_odg`u4~uGC zdB4A|$G<#!y!-4~d-b!`2Zy00z~5DM>9xhz<6BFY6k)c}veNya)9Kw?TU#sI?RF>uBm!VS*xelhO28P2?%+=Jh$M!84QVtR#g)rfLyWPt zG3bB2y4t!U{%vBL;&3n?G$b9#=(mFrLiM&z~O-|NIpA z=tQ7NL;(@NFd|q%2!RXdFEAR7s17O|XQ6dYPoM7i&L2BV)27tDOh5w(xg*8I#IRg` ztJUJ#wd;fs2qEywxmVd3+}C>l`^gbt3X_n83!)nqYiI(;7^h=Yi*WZ;+DSl}rJP3$ za2b-L3^p^|9VZfX{2Q=iK!hPA!w_UokzpoesRGH8JxAgMg~}c#b*6|%FoC-vMI?v< zi!Y$iWcf;JEGx16BE!IPeyY$?c+zCN zFc1>Y@^q)+_PlaDeeL!iO_6Z-=QCBWYYXs%n9kjyBkhm?p90-uQI=&)heL5(ZBZOI zyB_F7i|!N|=rkK=9zEH9a^vjTg~{y8vshtA96j30v^NQXy}gldZ~s=z%rt+l73!rk zbGNs)eq4U|aO?eMqY0<}1pcjXJRTRg-<_RlegWto%a%xTc&~ih00000NkvXXu0mjf D?C*7Q literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/tools-check-spelling.png b/gtk/stock-icons/20/tools-check-spelling.png new file mode 100644 index 0000000000000000000000000000000000000000..68591e6229ad2c306e717a2e6465495317442a1e GIT binary patch literal 1126 zcmV-s1eyDZP){qW+(*3vPZ~*Pr|P z1OH!iN0UmWL|a>%on2Q~1JLV4Qd_o%j`wuG4FKhH=jKfc>?a_^2oMZbMB*Hb-IqCf zo+ki6#pCmp))j2|TLy0xQUU@k0N8OHOGKKjl^}k&)=g{#iTWV$b0GVL z=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; zqDl-9aQRMdC;)(zlA$GC27q0@=RGb%5eeov0LW`q9bjq*2ubI?YWav{ZRYG}FBko4 z`3MU!0RYqQ4pso-hF$(QC7yfxHKo+C3z6w_$Y#{7;PnY@Tdd!aGp&rJfk7!dW31S* z&#ZUkU!^XtA)5{EJhOJaQJ-BmZN>V1W_SPI@!MUQ05B1ucQ^MWJ8?NXf|6xH%VrS( z1X!E3mF}A6s!w61+;Go=pZ`77rWuhdf3Kg$Y-+}b<0#lRM20PG?H;@|INrt^4;tUC z`v~m-VcB;;!Y5Yk` zTz=yfY4GTX_j&Iy^r-{z03b0ix?PCoRqR(4pe_kBrUG~Vt9)+voCFxUPL=9{SFA1Y zvRH@Vt$eWi`74F1PsEppg71%CDguO-4(8tBF@5UiiwqyW1{`K8HTEr&jOf} zHbcB2ydT!SReE8e7ORjZLLjO)U1?(R$o+%a9A`i7N;y*hvO(^ z@W)29a}%+eWv0&MoA$rbz2VIy0LVX=K-J$f&r4G{lgEDXAs|(NAl5-zG^(EgYIq7z z4rUnunAO+*_0k-HTUdxk!4MSCAf~YZ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/view-sort-descending.png b/gtk/stock-icons/20/view-sort-descending.png new file mode 100644 index 0000000000000000000000000000000000000000..0bd1edc788796acd50020e5535316fceca62df82 GIT binary patch literal 923 zcmV;M17!S(P)3`OIcImXC!4iNL$WE^O=#NClY~GM{GrOGprkSW^yVmDw6!(lzTGgnOI0gVsKUS*$*kMuO?!nDerC&qJDR6mcX8g$Sg(@OT21cW%5{p4Zwy7@@ zrhX|Qf4Dx@xBXvbSl>JFjH;HObMyD+sT4cl4cu|FxpZRua9lS`Pu%WzfYMwRGUSAV zDBl5c5`-Rt5QBs{uL3~aw(_OI9?5VuMV=qnFN7Gq5%_He_K5g9xB>t$O{&LRlzeKA z0DvbDlKIpexjMctMaM!f$BX79p*f*uOY#0o-?fN6p z+I!byH;a=8RuV-z^`fx0Zsm9Y0|2ZIb?!Vl zy|K6NXyGhLL-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~l}FwPP>5{1O`rk0cW_F?~{+ zVB_IYHXgpqQi{yxp`7yjlQkRNtZtJ#u(Gz+IZttql=Jy~^ox#;$;!H#AN%|IH(%-L zb!wWL5k-*+Jf9&zCK`*8tJkin@4o+`@zajaW<-lFBTU)bXeAsqeRmO9QLC8 zDQS8p8ke3NzS;kS$K&D2LJMX4&Fl4wzXgMJ8HKGRBxB$x7bbmvY z@|KvtDlS@T9gj@T#O6sK=tr;D`=H48w-e2tsi>~qzNw*cy5)(T%-y&-vAS;kHuB#W zeZ=FrOaZ`VvoXKluV*W2K5Bd*5J#!002ovPDHLkV1nUyVe0?@ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/20/zoom-in.png b/gtk/stock-icons/20/zoom-in.png new file mode 100644 index 0000000000000000000000000000000000000000..6ba22de967130a075b8d50b743089547f0dcac27 GIT binary patch literal 1268 zcmVXEvOPE-cG>W42^5yV&N;g2wBH#q82# z%iPVTb03-0y16(rvrVVP_zivn1;oro`Djb~QlRbob``?_K=lt@2p6C1z z!4r|Wlee~RUNe@8y=xifraVPiCW@ldFpRiO*^MH%`bi!} z^=f;=96?y@67`LZT}|sY@as3O$2qrIA`#W7Y zO~d&3I4sM8%b5>Pfd`gp@xsDFrDOY6gE9VgXJ@B^P>9aElq}QQw5hGt79}Ci%GfCN zmVt8)SJS4uA7CD5a2P8GgSXr9Ll8ii>%^%Oz+jZ6$y!s;Ua% zaF|JwC^{St$+B%5hG8HYjbe0c6p|z%l}f=d4D|Q+gL8)b`~uX})IfH~V3bi&5C{Ny z;esVy*W>ZYL;SSTtg#-YPsVQ^>=`@8nTv`k2ngq)s(ZJV%6+mSPL zL6FEe0EB(MC$HVM+3iT=zKbzx>84InS_+I&P-=lv3dR^L+k$P|$YioG3h8K+^!M?LcLxumn8>fl+v88lb)Nm%mbf&;r#adqqDNpaa|MyRUpES5?|Tf$%%;( zRaK>EG|I?=fU`g#;OXfb=oAHEM@ex}wa4QTMN#0>)3YR*Or{OfJXc<} zM6JKM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z*&W{`_jgwbbnz?EwRY{$x{aIp=*7_l=Z2L`PV;#DE}x9Yth9+Xuri|I@M{ z2q=|HFboa4W{4%VOsPN~06^I1t9*)KSXZLa+fK_e^|Dqb=}a1yWx+6vhnAu!P*oMK z+B!s{xAasxlWASL^b!Cd6siF0>RjKPIeQ+l$w^(3B;;nZD3ujd(=*>%^nlh2%@$jVG$NN3ZSE#^^HOVAA!x}ihU zH2{Fu+h`p=`mHe>KAn2p*AnEMv&C7)=55=an4V6a?%)1Q%iDwdN=~QKu4y`GsZ!U#{PXZW$Z9 z(nc9Ey&ey@+w3N#)Krubximhm?f>v&+vi^%Do8eQlu;^ELic!lP1k0orY2-r7GklO zMHU3y3Iqb~vEL(ujM6=xhWZt5x0^9Wc|KntsZ=VbYTC)>rpG=g>dHN$Tanh5CQmju zTbRk@Uc7VT+Rw5q3uJ-)`N9SQ0mtQN)NiVMB_XE7D4S|*Z63cc{9C*-3V{y)`u=)X z&C%wjhPnrdbRkuRJ~ST#fdIp!MF7ybGf#G{+4*#D-|WB(&-0$XE%^@r`hN20i$NmG zrzimUd_Eoug)E>N9RRW{3*m6sSl+c}XS1j7h$KqxOg5Jy_#c{sc0RRXhhU>$0C4;R XT}CxZC#vlH00000NkvXXu0mjfz&=A} literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/dialog-error.png b/gtk/stock-icons/24/dialog-error.png new file mode 100644 index 0000000000000000000000000000000000000000..d02063d9614ae7f33dd0d1e1c0b338eca5a7f5aa GIT binary patch literal 1363 zcmV-Z1+4msP)T2QpaQW4_aALEUYu$+=O$~l1I;9%qzXVM%eb+zk*=<<|9SD+ zweNo!-b93!na)GJE5HJ{IS4<7uN^ybuj7 z?a;x4hZD0e&a~U-KP$4<0=+N@mmd;3ClcQ9{wtrGoqgqCl7w!%Exug#P8AVB2jKy* z{+^hK%d?Ck%ZevvW{%_`{PY`3ODBO10}(Ja(0Ma!nSE?_diu4GRIAqObi|cPI*g$V zK*YJ*>j9WLM+CpsZs(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4~MZSJw17Gsb-4 z`wPxLec^x`bo9Ns7eK@eVc+0h@>3wUq+(tDisjFj|8Rx?Au%#~9R(#z*DhSSa&0W; zA)as%MFihhi2XH){_6sc;~DQiu}a+316P0z*+$Aj=ZVLvczDEz=M^C@nP@tQLhEkdKMKiPy`s&BarzB!sMaQC4_;G^stXe1yDLfq{ADl3ShJXu|^n%P~jMs zJ}?h*Qlw2yv&|v~I1M&FwAP4p05$h9Ru^@IC(>yB zeBb#GN=gd0BnwK*wDJWRBMe0#QXtYG6Ty%M83Gv#L>@pfxD+Q7>9Lb1dmHy3QD1w& zH6cJ^<{t(NK>YDSc%cBh3;{2@=}oRV(}Xb*vn9Bv59Y@nj7+E`1VH})_anI8_i`vG P00000NkvXXu0mjfgL_Sx literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/dialog-question.png b/gtk/stock-icons/24/dialog-question.png new file mode 100644 index 0000000000000000000000000000000000000000..129792750bc8c53614b4788884b830cda422f5b9 GIT binary patch literal 1393 zcmV-%1&;cOP)6vorUe{@7i*B7Jz0lbL&F&i9ymZZbeL zY5SHe<%7?74H{baz{h5GG6$(Dj!9 zIsUs&By=3WwxJIWhUewx8p+eAzXh+iK?i`4-|u6 zq$I%Q8qYDuK}ZOQ_5Lxo`Hehi=(4I5fOx9)@q4@y`7zvKEr@9 zYZjanCjhT^d;=ZF!Pb%z%%3+8Ss5Al^2m|#jRiCK{(U&r)zD|n!kEiNJ)NDOeoy3A z%o+etMMZ@Gpf#>q)y!pO9Lma)_Tj@Ei(oLwRaI5o*4DpWEf-9L&y^ zymKcvuUmH=fXU1h+pfsLAj0v4gtxsrc1XEtlMEFXv+{VDm15~Q%*;GIJj@vx8N6Y` z29{E?VrF^$I)|1mV`t+=Ik;;Vf9rC+3!)beTXaZR0KjiWMd!G@oI}~!PI&)*W@c87 z!U;vu%y<(77Bxc<`O^iHWZVQpvY`jg97=g@qq>0>ZYt ztfxW_4v#)R(A)b-OQR>;(&+6>^!I%_xOd-i0P<1k+75sciG&28#$u6=+%82f=ZjW8 zU$8tbMaH_K9|LgJ-_T>HNYgZa@!~}>I)30xe_zj;VzD4W#2I7EFm%xt3bjFT-2L+M z>u|Z<~5m)@l}=NL2t5XmVSa>Z@YCCP=T9Wjq!++tSjxE1R7WNT=B&0W?h`BFKFc zgYSh~n?twn6-BCDu*2OoD1H^ZLB-TS6|oku#igPMwKlg5jit^JL29`iZ3~c2r&)Gp zMznTx^~R&oH`dozr7a|TVWZ z1MwP$J1yKVR;16PDtmgnGXPK*-va2g4g9>%OxF0_ZWx= zO_&yeGr-nueD>OITzPi@wkg2~uuQ^Ghk?nsiTtVomy-~WL^1%Jb@36?G>v648Ic?v zoo;UnPA(NnqSY(e@qr42O^^UMC#;oibi8sE9WP%+sceCBf{+_!aUxNHPh~7$SP|j2 z){!U1$6u_AkMX&=ISIfsHa2#pxxpJ;Dz3}Zduz16y9!y4o@irnA{chV6otSD zkP-+q+9*{xe!fkz*{6bW$KbEmuV0#*%jp~dhW8&h)f3YUU;-!txCY=hZJuDWv$Kx*`FWA}m!5MQ5i)NgA#%B#0RVphX$2dN5ZUdu00000 LNkvXXu0mjfr7Bbh literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/gtk-apply.png b/gtk/stock-icons/24/gtk-apply.png new file mode 100644 index 0000000000000000000000000000000000000000..fb7528ae611792298170df317b302ead23f16a9f GIT binary patch literal 1477 zcmV;$1v>hPP)S_O=GN!<|t!Mjx<@5 zj+!*dnnR`7jEbUWka7uh5kXznJ2=9!vMjsbciw&gv8MjOcjleN%yQ{j|5KO76zKOQ5WM;e3f%E-VXLEUL2|1i{?A7 zqfB7)DKmZr0O?T(A`-ys_Hr>OP1!LqY0}f#X&?1Jk!w9)`X1dS5KRXeq|^LBge@F(*D>K}oe00s*eXBz)r z^>pmWrzR!H;#}Kd-s*E8HgqC{TSvteyO<sIb)4wDS42Gz*Lq z7)UOJWHy6a3n5-Bhzuu)bu&{IQE*5gt8pHHNjy_XUX)@M+vjZ=6K2hZY6CQ2oGxFuk((GFH^dZ|C2Cp^ z^6Q>jq=e0d%ju@#(*@9Jbf4^AQQINgz`*>rr;rMzlpO3`R+LQkuClJbZvCXb^GgC5 z*TVMV1}Otz$XFL(%-AUT4%xS=r(L^6ZhZo6YMg~l7&uqQif)41KI+vNiQY8B}PXk z^PR`mul9Mpn31>`mt1Ai)y^u!4a~qmF^u+|`HTx6&)xUFvq>(5WXXnlpMsc7-g@bV zZL%A!y7cI5H9!jC4tE8vyX)9ULn5We%o5{cG8r4-V^!_@;1eEXMt&@cD|bjIDo#~S zk>@NaHJl^cdmvcu_qTNUFqIEY7bUg!npB6gGBW9jscN)-9BcM8u#0!g7)d_v)414q z*AZOzoP{xL9{F5a+IDCiX_)Ty9a*)P5CM+tKIhy+02xx#H*jRmjNemr^=xF7(3C0KmKXrjXPxkUt|okP6POq?=UjS#x+MjbDXRrUj+|g8?A`f&l~q7yv*A zK-+V^F@I3j^RYK2y&gKJ6DnZteD)*DB7G#*#l}U4U%qg~*Ib7g)!WpvpdbXh-S7b* z04e~{Q+uBU0MSbz^@9IL6bfyy3Qb2xQfuOy|DJ+w|IJOJwiNC!QF;RN+`E_!OO3V$^OfF3p=?oS*a58j>tNooc)mEL1X f@=Npp-xL1=Ix&fHmQVQb00000NkvXXu0mjfX@I|Y literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/gtk-cancel.png b/gtk/stock-icons/24/gtk-cancel.png new file mode 100644 index 0000000000000000000000000000000000000000..48a5389dc831105edca2a98c806f1735b72a3f72 GIT binary patch literal 1632 zcmV-m2A}zfP))E`SKg$LB`FVOKUZ0lyvaGeUm3*y~ni&Ff zaxxPkmM`75&Gs)`DB^8xg6U~lxMPR5;3rYbD*Pj89gP|fVzCn?D^?Viy!2A4bl*N_ z^`=b)B9;2|Bh!4Q7Sz|uXapSr`BU4T3~62Jo|;;d|Mb&JkB>_y9vA*6pH!)vH@$ta zSmxV?@z-V1=vxJW!2a@s2W`g2tW+!}mu}gTqOZ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vHEC2ui07*qoM6N<$g45wNg8%>k literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/gtk-dnd.png b/gtk/stock-icons/24/gtk-dnd.png new file mode 100644 index 0000000000000000000000000000000000000000..7c8a6ddb6e1986b197dcc0645f12710f512e1248 GIT binary patch literal 1199 zcmV;g1W@~lP)4nfGA+F5+aCAd?V4s=sO`?f}f%qh$hrF8l#`U51`}io}$*Go4=Ow9|9h%ZGDjdLuEqGkbPs&pG?Q|Nphte+j_&`1qlhMvvTl z?%?w$@;sP|i1Du@IH&sS-Cu6KH-6=;h@@AqUe(FT$*|+ePd=R*pP7AZ%PUJ+vo&Y) z3k_?w8rE#hSz~_A8uPQg*=)^ObD?34`8jJXw(T26z5G-K9FbuO|0tkQzh7oB^_m3RNFI;%{JR;HM_dmQiH8qt?Oic8c zcmOlAU?vq`A+P25iZ1}no<6fcvYyZv$E0cM>eV>AaN*J!3tYQ$xd1UU5fSrUDgvl? zB+Z1`2Q!!eW*FVIU=Xsv;K4!Mu%pxI@WS(lnVz2Z6<^KHojZRf&+}_vefjl8RZYxH z9KhS}ymfl))YzL@$in(+$EBSFjRdVYw4z9)XgMVkYP;%4q=YoEch3legM+NCt!ZD} zpN+medfZ1k+L~YZc6xexg8?F_C>BAquY!maa$ta!A0q@qtBN4ZFD~%t(Ie6FNf&Of4Z0zhxd*$ZjN0Zn6=7_5*P8G`vIW_~7F(%{ztqO5mW62wL@BKuYWh6;T z9s^Mtec-0f@tuAl*#q-nhzxc!j6dIc3jMVNn*aO^;pbEo%^q$zop zBOOJMz#hF{u zR1~Kk?<2f(S?d6&|YgJU6P@!w%~`2KonZ>YkQG+G7<(6>50~$d;R17fg!GD)vjKwSaTJ$U>E}>UU(3^eVdd z|MtEq^gKyQQKk1qFUy`<2i+zdERg5V`o>R^rvDCsC3(@;hhUxyr{kUq}^yXbY$;7t5hodm(c|WBhPZ8s3J47 zk2Os@D?Nbb(&CL<-`%)$_|S{5nqeXc|6>?tBH|zZ`S8y2;=(ro{{WzMea$H|in{;+ N002ovPDHLkV1fvvOYi^y literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/gtk-no.png b/gtk/stock-icons/24/gtk-no.png new file mode 100644 index 0000000000000000000000000000000000000000..a8d8fad18712f422f3e0b4f8c186c943b56b4c02 GIT binary patch literal 1236 zcmV;_1S|WAP)*<$E%=`=^}NLku&Q7~ z!-j&j8cqQi*cQ0yU{hf8GuZmi1Q$UUkc9Ao34$|8lB{;R-IHM$9yh+<2dK+(SQN$n z;ds28rs-B~?ezk_2_d}%?q3NmLfgX2zSi&eljLl&u<%;a@Au*)(d{HrL8}FTolKaF z$MR@6bZMH7(gzQ24Ab;->D+e#+`0slX-qS{`3Ot`>n-0u*X?%CuPiU0KK_mQeXti@T2lqE_8oWoR=>c+9@^?E^?rmvUQ?wl66aTRg^Z%UBC zhe;ftJuw&r-5|go9H5RLKT2cLR4jssz#QrC-3<7cPY&sg<1HPD5Z~;~W z-~VK=xcKhMv16TTcUO6>7FsE=7K#G$9P%8=b0`WV&v6ZEYq5KKbdDXo$V+EKL90nKQHDGF4YqJjWDwVDW8r0LY-R*7@yvcy=6j7GGhNVlVC~A@PA=4&mJW zbln3yW6(jsVO_gNMRC``=8QmKb7bvSYV9~vN=z7Hw4P<|HG#qgv!K)Jw8lgcnbtBa z%kjwCEolf0z%_XIj>v+*X$8y6?Y3v~93wIdKE+hLsmP)f&hv0d!mTVT?`PT1ldAga zQ}}_o{j}i9$lA+0SytXHOQhdNg&}DDOi=|uYY0OmNw`;*Y)>XOwf5^4TzTqqeFtO! zr4v!(s(LkZj*jo^(DRhi8kE8*MXfcp=TQd%WfU>=Jh@?Q{YRD++g0`D7JUCX>=s8J za5I7j;Ah}+7+L4WrE}dwk@yh2Tq#PeRc#D~F{E0vrd4|8*ud( zxV;aDKmoYRAjVY*AMQC?CgvD zdL4e;gPjuo0)`w-wff1K>>tTN48(83+DUk25nk%TDGvq!79NgZ=K%iPhOM9A7Dri+ y8)S`a&;6?~bIy$B9I6_fZG)l-Sn|Zc2lyNIT33sc8dR+S0000j;T@Au#LNN0-q*6ii!{P0k&hyY4Ry~^}l zfzf|V;nk1^VZPw$YD>APE=CajZy87~H)I*^_dNrrKVHPW0{Z!hXYwn3pL*B=f~YEh z2+p~85k;0LiYOFUPz@QgX-QNW9`5%$awor@WRlL>N}bx(i$ONX*|?f;;zl*-N+qeHnIM!*_T zK`KlL7(>}B?@Uh75T|tC+Kdm1tgH8Mzd!Q*Cz~%_y#D0&j$7`%?`W?-aC@6Pe}2?F z_NxmEnK&8=0R+5P?Ygt&P21trUtS ze*4FZ{NRa~y<2u9P?uPI0B0+;6)JjAsl3=#AO>r|S%ZkdT8oPe#gZq4u;Nghh#+Fr z2c+x+X{y9Fpa@GVo)8oxfyfGpg(MOZXGk2xPS7BPpr|TAmHKQF{yDuM3x(o@oqFq~ zv-O>K$Xge$e0oc5RzBL@=9i19nVBy#UnnzQNGX-mih~dc3aSBBMOn4VP4!vg*ioB_ z5lDaW;)uOAGj~Q{&_F)yIsVh*9)5o4K+l$Y4)>&&uP(Yjy)(m();d1WQcDt9jV&5k zA##=a$5wC-5^J=jsfN02q?1=?<*^q>?MttXjJ4k!A6_TZk38_R19MB|vpu(W-Zt>r zeg67#u#tf+iSqWu6iJd`3{|OCVJh8RER>jAPcj zjdg1f)z-exEiGM}>-@}jKUdSb|f75ba(ZvtU9eCt?tteP)p?tjDWamBOof5 zmtvAFTd$8_xD+Sydz)=)oSpdFSV#+Q%{f~oGi!)tP2eh5YNB{r;07*qoM6N<$f`+QbG5`Po literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/24/gtk-yes.png b/gtk/stock-icons/24/gtk-yes.png new file mode 100644 index 0000000000000000000000000000000000000000..aa8dd94bf013b8fd236a03d05477dc14e5fabbd3 GIT binary patch literal 1362 zcmV-Y1+DstP)icX-q$F%0L1DmMV=F6S6tlP`H;Q;8Swu5m|q>UTtxH3M&5j9ZFS>Lce(qu zqG)X7w&($r(GR_!pN!5&2WS10Pv_S}Ag`aQP3GS5_Zw zu5Em4Wo5P7>#dokc2}B>767yPl+ol|&xidq81zTSXD3h32mRmpP<~`AFLpj;dZ}qI zU*3HedzSN!X0!dXUbpw&t=n(jzI*3hdt-CMbUI7YC|VdR7$Z36C>l9c3(mjL#A^a`?{^p<)DdU_AKVYe~#?~8Kc|sqhv(qC;zqqR4;bZO=S@WkGTN~fMaciZ0 zGXGo(*FubtD5=yF)KjUa(vm89Lh^*@329D~?o;>29;*x>Yuji&>vmqm56BsVh{`MJ1|e9Z8j>kqXa6*{7ZNq}g`eZg1)C@rmDt zxVLDL(e36^^QLQwnZJ08tW&fG63&ES}@qEz?|T-sDWTfhXC* zt9n1r&1TjV@n(iCpp*;LIE)cQ7Qzcp*Wy4@P>lo=unsCSrO{|fo|{cU?_X`QM!97& z)5{8FsveVpW}eEFh!Mnq$m^-8_ZLkySQLwpv?MFQSkqffy^>u{n@R*5u|^OvSSt(P z+t&aQS$IelO^^~Kqa?F{n7SgBcs0R`J+SgB#xSfZyW!f7ihyDV8V zWcLanChks#v%Sf{kE@xg%L=TiTa+zCvfPjrhO7`WcUf6or4{n5pqi;phJHL5&i2H_ z-K$AH++ncwKv$4-TVZQutDUJ07|RvF))^af%}HqyB*AHiqfahE|7h~J`6T>$=jZyT zFP%j`OHb&BE#>0v&bljBZZ{DLpmE`tcsa?SaX}Cu69?+(A9zmwc~Or0;kRX$p8VT! z-5sJ;I|Wo^a$bJ3oFtDx;&QXP*T<{>N;7{L;TX zeGz_twio}{f6mKsp9$cBlwG^f;^0$8(|w-0&3Il-Q-AzLc+lB&Z?@O%T4UMt@`h;v zl=C#557TIJ8vElf!v3tUe?RvL6urLw1y?e` U8hOz6RsaA107*qoM6N<$g3C;toB#j- literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/application-exit.png b/gtk/stock-icons/32/application-exit.png new file mode 100644 index 0000000000000000000000000000000000000000..73a39f8ff2d4c69eda34144bb042e2ad5a306761 GIT binary patch literal 2006 zc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ua9=M1-+Yk8`Fn*xO4%rb3a9@XKRu@s+Cr<9ozx^>hjl2!acx zt8h3R3II@A!x#f*`&jz10vUqV8q5qs#wcCwkfyK0Fw8&P+K4ULHyUxQYo7PTQ~*+< zXUN{vN}o;AGys6IROs*aISc|pm4Vh8Wb6ch*>cXnhs5H`?ch!JN5vc%C$%yguIqm` zRT7HGyQi$Vrj<_9Bt@E}$nygCzPM-lySr3X21FJ_1f?~!t{9Br{Os&CXYrZ)wWi~h zX&L5uv6T)-A0HjZpHHPgZ?pH1nQxEDj*}z>0HoQ7Zhv;?(O@rWbUV+6j_XPy3pG{% zz+{QY>gqW(==!O?I&~NKM@4U01;`jWU;X^ z*@F)Q@J)z`e-i{{S+cSA{-eD;f)Fkn`e&J|a${qI4+~)TAGQF@zPkX_{?|(Y$h01f zvg{A!`_BVlNckZ4{cQl%K~G2GJJu7I-w`7^%gau?sv1&Co|&1+*4NkdLC*yLHvsq# XKJe_rX@i6x00000NkvXXu0mjfd>*#7 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/audio-volume-medium.png b/gtk/stock-icons/32/audio-volume-medium.png new file mode 100644 index 0000000000000000000000000000000000000000..c9c62ada1ca32b75ee47f533bbc557730eb0e295 GIT binary patch literal 1694 zcmV;P24VS$P)SRB_{y&|)Q0Q-P>hB;uh+Ra0eAv0&j{ilT}NiA7{K zkwB%3tg>K}Wy5oqiVa30L6%7hv?;c~CVqVHd%u}GGlzw3NQ31jj=F-8Mx%4| zzxV#;%(*&efdBPDkE)-TnDFxXd{Kv*L|e2jT)3bC@NNO*qlhOiPWbtT_eF#_loN8q z$&8ME_4&s1^t9bAfOr&fX}Q$rh5lqdh|c?d@UuYp=c5P%=gyrIy9MwbMXWnI@ZrXW z$|DCrpoLpE0gFPVQjq}M=NbWKkf6-7)^?T4L(x!qIIwI(BIA|IRr=+pVvk!>N-#Hft5`C^v#`tn z^fv#txFbj!PkP4<Dq|59GIQQoOy zv0%FUyN?c*3rDaA?WimIbFrB3D#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# zZVBh7l#!SnC86V#5@K!ipX&nIEMN@8bunM7)&2ooj1_?Hjd;LTtJO1Q-+#C*m!qK3 z0DB(9bz8Gl9OtwY8O0W8i4-C*U@4Q~TQf7S9R+U0nbGofAOsPv8S~=br>5#$EV2NC zxahFfLc$OdhOov!f&gMnG+z9T=aTgz(&P+oYeS`8r&~8~z6c^Y91|cP0c>e#h`$M3 zx_+CZ!Mq7MiL|8TCRHm1NrW2%w@@&1%=!-} zPJHXr#*~hWsDnV*%!UM5A)?2aU%PbS!uM~^&9T?r9a`UqxNa0mo(FLph}ICLB4$%6 zvJi7L=Qz#v@H~jMV9yJwqeGuLd-nBnLGWa0XowG_>ValnJ`7;XLl3D_=gz(COik@r zGcd5p%VbP2JIn04kvWxG=yn#8;@-efE_1vSFcvXue>rna_!p3zRf(=ed-h+ zOexS3)FpsXDq-fxk@j~N3eUf1-@f-RbDXeo;|2*cv*Uo67f_x?J9C7Q2#n$s3RW#& zu7-z)r~f!Q`q}S_{B|voHwO5rLi#PW1nmO!$gW+ucVwjaCD;AIo}D{C*S}^B?Ch*H zm5NwvquMMk(UO7`)(QclvRTocovKo+;q;j^fBVJcgIKm|bkP6{NzQ~7NmIPs?AoCi_h`F^bd%*MifMCi9mJxnN8fB|?b zf$T&!>jDtW&$kzVdv*fr`hcEgK&}RalfcXyz_qKu1RQ4?M7GWMjR9)&z&xVl6QqR8 zot|ctQbYsLJ%ASiYBHBwco2y+i{)h8TdzwQXjG%ynpC%G)8FxJn3|*58XV(;eL!^p r6vRBD04W3ZW^{OR%S51EDs}t|eWA#AGyPQ!00000NkvXXu0mjfT?Ly~ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/dialog-information.png b/gtk/stock-icons/32/dialog-information.png new file mode 100644 index 0000000000000000000000000000000000000000..14d7063a9efb18702adf938321ba15ca20830cf1 GIT binary patch literal 2439 zcmV;233&F2P)7>j_b1adTp=weO`8E?!D(ce7JYl zP9#X+N@wQI+;h(JKmY&pcH!Mz3kzm`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git a/gtk/stock-icons/32/dialog-password.png b/gtk/stock-icons/32/dialog-password.png new file mode 100644 index 0000000000000000000000000000000000000000..781bf4f4acf1bad370081baf6654310b9856e001 GIT binary patch literal 1715 zcmV;k22A;hP)h>yR+V1+iN?1+W^GzIM&( zXF5B&9^ANLQ+WCE6^J+vEHjFw0#d2-`1s?G@~KqnNcQ6Nz5@pi47;u?JkPWEU)wyD z`=0lH{_crE;|CSCY?zs~(kdvGOR88ds6hDvGn?t$6n}W;1Ag)4L%II`J>Q#W;tK`; zwfpQ3-#PIXGqYu8RVkP3bncR#nx3>1*)*pzWBlobQTu6XR8LH%?L;=MP7j^rza;;} zd;0f$d!etzOS#9zT98J&`_mX>w)=5n$!At~Akh|czo2U=R%nAs8$*-R!a-Z*yb&%gTRv)@@XWf;Jb{lEY1 z;do=?qlxAgYYmf>l3Q9@9s;np=CdvU#LT>Tb62#vxp{p^N&<)gh*PIe<=#L2_g@eZ z4j%kLIFng1?=<9jUT|(?_~})vRzA3H?fMu9Rw+f%c)aJK&6}gg&YUUMR^F8~h$Zq* zJOJ6+x;#umM5GKsN@;_@NA}|6n@3)GJ!|c2GLt!E`T^8T4-5>*Lx)}(%g^TDB>+T% znJomNA=cd*KJFsqx-Q+20ndBRdH{garJwwiAcX`Nth7Rk zhXs*k%Mt_}Jvvo7dK4OXZs`;-gNVQ{|BmCER^VrO)pFOIG!bJhn2ek&1n6oU{^mbk zYi+M6as(L`RHc&{#3V_A)hETF`%2}CU9z^#4kMhBb4T2EoMLf zWY%>=p1$YtXZHHR9eCqC2SN~}6hbQ>P3@a{R&KewM@R?JsDnr(3?jhyHOgfLrF={d z0c;hdltKs~>^RPS-}u85jvRX8y~DpTfO;ND768n(8t8W!V90RfE=0E)jb;8!?h?)p zk79iMBF>GTgXNH&DJOKnZ#D(L#guiMF6lO12wF|SZ#H>9q043P*!dLZ@+DlpoJV1< z2;a2$h;K6#ihc!PV28^~YJf;+u$1vw1Ge4MjG>YDk-0$VY?1i#*EWjA#;70=h-wC) zDGqRr*Ut7b{(1J_$X==-DuFHccA}}NQ38P!BCKvGLMBV#I3PRG-P4Kg9tMmBqy#L3 z?ffcYfC&r+&F^dsv~>vdb*+OAG(sU!UBNa2_WuR8<=SL#X#fHakUs*YvJl}FFxrPP z3Q8#$t)NX%?R5aH6|`0`+OOSfXcg4PRPU7z;Dj}9UvnEksHYT5fE8e}pil!~%U}}# zMuCk2Yad1hFgmD$PzqXCssL0Cl=5ru11P1y8er}OvE({`NC=>CbqIw4VqD>wEQol4 z0YtW@2~>N*AVDC3s*y%jH?WJA-F1IOZmKZ=yC? zu(t*TQJnzz*08|!i}2O}s4E59T5+oY7<27WU?Bk7nM{TNBxVY>>1JzytJNCQGd2Mr zkvsqg)e>?fIkpVCRUXO_zPO?L)S;DzOSCh{sR@^oP{@=tJDAh002ov JPDHLkV1m5MGz0(u literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/dialog-question.png b/gtk/stock-icons/32/dialog-question.png new file mode 100644 index 0000000000000000000000000000000000000000..0045111b1456aaef1f9a674c69c62d4c20b545f0 GIT binary patch literal 2117 zcmV-L2)g%)P)oxSDCjC{iQgL0Rz`>VLCx0Kv}zkuVk>6-v)M+on{8~;?2_n@B2Z(D z-L~OJ8?ln8t5KJ!wp8k3w-J?~i&8`s#R`a0tbABu_?UTT-h0pfm=_svux7U>Il1rG z+;h%zo_o$2!Z2Zge1Mn$5Pn7J0Jsj|JU~Z3r(wng2@&~#8Na#^fwd-jWDYQ*Jt08< zN$W|^0iI`oL>&VK`3pAGuzLY80Tc$THsKY-lXUhli(CQnXyCN2(S z7=REFB^q35gzPX!RO?48D+OYPWm)*Stu54e@#5h-q0r_mpdSDXA0R-a_AzIz%*e=2 zN=^pu-DCLu{K%jKUo?~>Ixzg28Bhukf~KXUn6oEO{$ug+{jpaCKzGn?*& zgfScl2o{2cX##FHq}L0?$N%qy6awh&g|4gw**3IN#KE9&#l?*t3rG;bV5NwN`ZqT< zRUtinm5h(qx~E5q1q)z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oWJIWfI~tEH8mBARoh#a z&%XWkhbR;zz5oSrAG-CXO=Be-+JkDf0*iHgCDucJ) zbyTYrOiczkWf;Ez;Kx9$XvYBzRZbLvj*3R<)tL22!cSE8~F?uGed@SjX4R z9#UZ&a0r&;VzWEwmhA$zz@b3AmF#q@*&+a*9TjEE0X4E!a+K0qm0jzDg&g|8Vs z^p%EIYg0%9n?~Yxl+KGU*b#gQN%)C%>`E)X$AXbhK8jC|hZip0e>|x(8*`pymLW8D34`{2K@G_csq?d_;pg zM1TM&mvA)KL3q@Kf=0D!RmG#TUeip!cDGQ;ZNXVD7F8%7Kln&K|En>-mzvFna9E@7 zEw_-4*svXf7?dBHSKz(BH1X=0f8gx<6@-Hx7;}EOLll$(0;3AHMY#A+9|ZS>$D=Es z*O#j|JAZiho!?#Arsz8mNJgWtMQ3O9Mx)L>SEHqA3tu(*aP7gzG0Yyiz~$>5oHFl@Sa>wv2LO0I zchNXA%(xe3W@hl-cL7^LdOpu;Po#SI?ZzldZ4K@ACQpT?d1fZ^!%siH^iDpXXN`y$ z!06=o_@TaK!LnW9l^U)zG`w*xh%pa?`SVJ_3@9~N5Q1)P!8^O_?6%@*n{CbOynNaurJ<*l|^N z`{=H%tgMJ)vDm+Q?X%VCNaW;nB!W)23+1{T7*g#mmpeV{@~sD$0hb4U{C+?6EQhXL zz4jgemxv(O*Vh?`{AEAF8uYNo6u|0;kofIkAL-wvu@*LBmj?NI>k5X0TP@zRj^2*5P}Hv#aysw$S3mnHrO?c&9Y d48Xa4?%!;+C}EegNwoj~002ovPDHLkV1l?EeS!c0 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/document-new.png b/gtk/stock-icons/32/document-new.png new file mode 100644 index 0000000000000000000000000000000000000000..9db523d7a978fef17bc0da0bf9f86fc1c63c1732 GIT binary patch literal 1343 zcmV-F1;F}=P)(spuuQjN&tN_7)|ui1RsrWlkf*jBsfzcB&abY@-oRp zBl9*1`VaI0f*;8k0eRAC0t!{oRDpKd&OK-O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document-open-recent.png new file mode 100644 index 0000000000000000000000000000000000000000..3db076bb47b1be39df09f91cbf21b7e801c8aba3 GIT binary patch literal 2821 zcmV+g3;OhlP)Afrub3B1T{r&@Q@r_OxnUs#HAf7%#Nl zv)gmlqJON?u3`%~8!j$d>aHshfr>3EfrLOvhFl9I`}cGC zo#%Pp=K?qR8X6k3Kp-G*R(}5c`8ptem)!3ZAb?cQp@cvIY}~l9U~p(~u4$yFDpaum zk5VG7NjV^O+2P9Y9NqQit}{xhFTsPsp!t6SxKVk{nl%eYl2%9|M|4qX>T<)Hl_lBfNX4Rw0&`c9*ibnf8TwmY z%2ku9CNXW=RLaUqm6XynfB0$g{#cI|^pVu{4|(z240`uc^cVq&>+R`9Af6At-4p=iIDq;}fa}gze|z=)i9~GY%vm$+4Xaie zXU~T8H{RGyDAdcuZ4d?UX93t+kCa z?Pp~woqn}x_nto)w{KmC_-z0QSnJoXog0pfd~nAdf9P7dVwJW3z5Vi^_x~JUsf`7T z=P-NfA5ooOhb1hOr4Uk}6vX1AT<*WZZ$A8(ga7gY)zy{Uv$S6I^z@piT2ATdRPy=Y z+j|2y*4CE*N+}_P;E5-m$T}Z7_vx(Zw@({TNwss0myAvrimfW=%p-FoCF3S9Tzfcyp-@Rf*6`&*_fq5mF+hhE2CqTwKKT+is<+>w?J2$~K)Yru<9&@~;G)5XM!a)yV)fU?|fH_4Pa89)a?GG#n8 zWm?T${<;Z9Jf37q$s7ifEf^$7nK5RRFT}JIrY%hKxp%mwcs`q-+QPCGi}7Y;^6r6m zS+U|^Bwi4=0Iy$O&?Vqu}{IwO$? zN+~P_$y6H4GDiVqYb)Ys4|axA?<{({?+erVha+2LVnp!=IU6Z=%wb;MBOE{bE8c3} z#-q2t$htXyMd(5&ufMjPty{P9!V8VO^2#<&pKfK#mMu7)uJND>#CW5%>2?OL3?QWd zl!`>7SeCj7ptZJ+i91J%qSi?McV+fa#_8xmHML;Am|1uahgyHZj^@AT(b+Gudd9P) ztQdWL7pa>$i$(Q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Ci z>NH6tqCf&j0@lsmh8m#zd_L#U(2yLbcKdtNh_3oI(io`x^OA Xm4nr_ylj^<00000NkvXXu0mjf2x5du literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/document-open.png b/gtk/stock-icons/32/document-open.png new file mode 100644 index 0000000000000000000000000000000000000000..4cfb248da183c63a336688f91c2e12010bf00f68 GIT binary patch literal 1269 zcmVgA=e(z7fBAL}jGa<_+u zj`j}>ya;0qh&Bjf2BZ*JTw1`-lRv?&d2f9A**8C?QYU0OeNAt1zb3F^WMV`Bz)H1v zB-9n^KX&YddH&D~oJj2BWHP>~?c?PB1RozhSx>~1#;sLP0^oG|np*qu6I(0oSTEgN zTnp2W*>*Pv0wH9U{-ov70)(&|pqUv$*f@|pBEsQbVHkT-sSkGoLIB3JjXMGi?j5d- zj*d1lB{nD~TL?jd2t))SEC?YRO-cz`9kW<705ejpm*y*8ezxKj=O5R~ZgIZ6P@J2b z{$cW?bML;kuDJ#STR5hMT$nYgwGs{=eiiY=0o$@{`$-yPW(X3v^T(~1C#SAooSM2g zI5c#|U)P@1yr8{`mU8#d8{Ug#GQNe`fH4}q;eI9|Fg103@8!$4x&ahhGr;Xlj)S!;pNC;RMf&qvIukbgN*e$MT5I^eh7=w9 z47AbE`teC(wdz#L!1EL=N#Jb&u)*dQ05Ahu8~Ak%wg`qh1fVsP(l8CHkk-V+h#VdL zmRn@O>Sn$&(AvPZB_vU2w+$1VP&XW>0zrb$pZ_Y$Y}zrPVKk#uDr07L9<@q!3tDfN z1&sTDWl(c#sJU+Ny${~}w7V-b?Yq(M$H&J#t2xyKDwPVRZrngD8bu-zhtZ}35Cp9i zb$17Ge0Vr0rTAoab{-247A_IdJ64lx34ubP05*)#w@xFTNWgWgkKBw;4S@)}rX|PO z;a$1%ojo%%lX$EZudI~N7wbnj96>&x#d2v8M4c5u#u)7AiK6bY%;ht}7(LC*j{+bP z@O_0sA&0)cJ+K1-RF<>QrVc@}Lr-7?0yfI!5~IH*<&sCmn)*G>mjpJ4?j zxC_enkv05hW~OUNu{Y}Z|ZZ*UWU zGKR%^XfXiY@1K49tkV@bB`pdH2Fz+1v<<~S0gS3rYPRm1$*Wg?`TEwccV>vFxDFry zU^f6gFc6PemMwfAfW3XME>)}Qxw%3O@XBlA&jF}!K3o}%M!Rykoc|2pqVnLuh`f6@ fUj?A>{|Df2l~r!E{^18v00000NkvXXu0mjfZ2L7U literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/document-print-preview.png b/gtk/stock-icons/32/document-print-preview.png new file mode 100644 index 0000000000000000000000000000000000000000..bb36e2dfb34b600be030e06bb908b2877854631f GIT binary patch literal 2237 zcmV;u2txOXP)Fd z*!#@?IiGy6qoYFr3cl%_QWXuZy7u~FFc?&4qd!;JJ>xHnnhDn6NP-?oW<;%Pb`%v9IesXL2C!0;xQ-_1I=HTbRtgJ5 zqgCbS%!L6cZR#)1+MfsQ$G?&!XhP(YE=W@68C z1MJzeM|ygCysoZA*$MBBF*L>F#A0!x6=4#GPjdT%&vP=B=bNjS@RcR4)Ynv&)e;UI zImz>{@8Y)g&$0NT5LeA~>FMe5Yid@yC51V?^d~)k^wCHCuYF_nO`dOlTwh-|{Y#5F z#Tp}?=Ti|0apd?2Ykv9^O%2sNvaXw@U9A+1Fg)gw&iRZN4b8D?Zd$Q`g>6kdyY-0O z*_&xwb!q*;lTZG7Pj`2>-n)0N{S-iVcen28>G9XBS+gP-3cfIB*6dliT#nX@=E`_B zOD2VIhrS(^+@N6oEj_AHw+O=!v4v!4Ibi>zgsJwj1<=*z4JM^rXvq_JQVT$AY z?ezp(-#x*@KmQivo{;Dp#c?!2SK~SgtxCF}M3K&U96gz4@x{}nu{Pwt{MHF)N^t!8 zWu3EM_{&qzCMO`o+LB)1ao>G4hu_=r#<% zyl2ytb=Tjw zZF|M&ty{O++WNx%4ULUI_}*=6i#4@1ZZ4N6))=FqAx3R&9kIrGJ{-uiW&1~b_r@z2 zOcxl-d1xh*QtcaqZ*2Kh5-(#RU+`(D4r7Wr-r0LX-SzF2#ope7?fu8!FFyYJKfK`p zWOLd1ZSCzQ9Er#Wi32#UgDtC=Z!DD&m%d}i!CHLd;~9(Z8$4eyrrf01l0olN5SDz= z5RC*$jgAryN2I;2%^W#=q~o*>h~$iKR6d_KCkBpBUbP~n(5795pC7|wDHaO2%BA30 zw6+Kq5y9G$F=N5=4W3_yu@DVA>=;a;#9;j*zV9m_KM7#1Rg<@uz|e4#bUKakeJr3A zjAt#`@eKP89cTXhxg6*prRbGq4}&1({4-exMb8j)6g3ge`-wgps)9s94!#AeO82#M zx`z|AR=AEsCNl(w|DYRw-!P{&HQ+gpZ(?q9=`uZRxh5(JBcAaN@mCw{PHGH5!7_e zX`p>-1%G^I3!C3QOl!1{r=R&JO|d4ah(z#>e;UA8>$t9Ks-jgiPi>~EvXX2z_sKpV z!P433u<5m9{AlA#+l>l|&;h$x}IckB#u39fue=ev~;CeM}7&DHz4nSREp;RP77>oLZll-R+clpQ>IDyOZwLt?R5#lXNoWbtK-Z*6O9{q3sN*ZIxOaXimI`@|!Z z&pbF{&!ep3CLxXG* z(Trrqv(HJnCx`;E@~OxJE*EwQ;LT}mTOF#bybEh*i0}_w=g$8FQTO$#vQS0p00000 LNkvXXu0mjfJS$y@ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/document-print.png b/gtk/stock-icons/32/document-print.png new file mode 100644 index 0000000000000000000000000000000000000000..7e50f1ac0c8500418a1b453b47ac4e2d344f1521 GIT binary patch literal 1564 zcmV+%2IKjOP)h-cV=z6UdJ{DkC&D@4Ka8lo8mX}OA$$-soE;pZ1N8{ijuzcEso|S-bh!qz{k4~0o2;+B z{5$>aA5*Cm0YKH*9i54IZ1)pCuEk<8z7zUpvb!E0GO<=eOCYtGXN0_ zGpmLCHNJJL1lM&z1Q07IA`mMOadc17bA}ax)*51kh)7^oMyZ=cAtIu+M!t~8-0UnA zYY;Jr2*eB~0ujKhz{C&{e1Bj7eSLkXR;o>tS+9mmCWclDN@*yiK?oz}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fZODd8n!jS_uqgPQ3j6!=0D@;SZes)ZY%H?LGZP>lq`~rs|x- zTFc;Ik$b;(FO4_?ZTiJTrGl!%7@@5#M_XGC6f)T?aU6lOlJy0QAQ+4%M2*BX66=eL zyjC~dXYg}N%12)vvr*+y&%5O>%XJEucnzYQ^7sGv4|u-UYS(V+{wPz$`vEs65t68Z z$rRXo;5b%&q@^uYGErk9nmqI7HlQFt23U*<*5HzSq5ty5xl4u?``U25g^8Tn7^lDc zB53&StD{2+JfY!o?tHC1o=R6#jd;{YhxbgL+qWJ#aIxMBKtH}ehctCSGNViXKI?-n zwhoA(eFUoGGUG)b@aXS1y>3qPdGGHT{`~KF+%cJQ_;3Qa-vBu7>p^E{YRdos002ov JPDHLkV1mM|?e_ox literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/document-save-as.png b/gtk/stock-icons/32/document-save-as.png new file mode 100644 index 0000000000000000000000000000000000000000..1de9ce84de47802f10cb46e37bcece261b47f5fa GIT binary patch literal 2143 zcmV-l2%z_gP)X*)~jZS!W{yZ4^+^N;&FOKBy5C%OOJ zckcTw-{p6XV#-p003xD#d+~bt|E#^QzpUSRc!gcnrXKZ1cv^%_UKhAM@knMU$qb#oa`83SW2+T)aM#W^a;>cJ z0Hj#`?yT8ePhZ^Cg69V;ExyWU%SVVZ0ZQZ(M-~NvH5_j*FmhCwf6EG%-F-WQZ}ldX zBZrrts1|?c0Yr)Go_j%yz2nBqlae*wC5M-)#npc5**wa*PZZyYBZxEyTL&3lK9?oU zOR26urgyE|Kg zZoK1B7A>94@s{U!^NCla-$I-fi?9^$$?zt5u93hvZfNOm?GU)jvR4-V0C>uLs%&c#2r z#rrupZz^pak|J&l%JZ;sOwabM#Bq#L=VyY5BgoI9*!LPIwyoy+yB}uh>5pJ*-8_Z(u3olZtYc9Y4dH(ip2Ny;KL`~K`4T7^3rJ++w`bGoVRJ%Q35Rs`W(2?$sx6ZQ#^ z*o2-p|9M^x7~>Jus%+W%IuG1)E!aUu>x#AO)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ggIITt~hVij8pRI~1!)OPzi(5i&+mbDs}N`IQA&U109L(>q9j;JXcJ;2b}sXJVI`o7~+h95Z3>*le9zP=c6{{;e- VRa+e7QAPj&002ovPDHLkV1i*o6+8d{ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/drive-harddisk.png b/gtk/stock-icons/32/drive-harddisk.png new file mode 100644 index 0000000000000000000000000000000000000000..b3552eb6f81b4b64dc1d6d794f44bdcb72869f75 GIT binary patch literal 2449 zcmV;C32yd@P) zU5s2umB)Wox9)fMe0jcXPq#DJPMjS(W8-|<+StivBl3_C4D+@E_8|y%0|JRhL}K1R zfFeLVz`m^%RyYu$C{b1$6i*Uja6C9R#$Maljz7lsbdP7oGu?e}_q|ocLr;5b2Nrh4 zo`>64SJid?=hUfl{(r%rH!(3WAuE-N;BR1)lamH8f9?9eiPOJk-#_bU`}XbKnJXSP zEz^}}!r1>MD5o8+l@3BFWi0ye?+zV0x$M*aX#meXC)vB#Y`OQ|j|k+e7`e&yB+8e! zEw_I$OtI`I*M?SVz*4g!|CghO4*feIJIA4J{^PFw`{g7U3(rP=xM_UnP_}VLpX0_B zjJV<2T5|)4wO}z=Kwz;zYC&MIR-lYw_QH~xdS#(dy}Gz}`{%a*$JCFevQ8#$1|TLU zCvyR04RcrDozjdy-6Jo~pODq+G>&j?i@P0T`_XpXd2V$wR%Hnb(&xA=vToa$7@hI$ z%*zam6Ji*+*x5zhp1!ZYxl6tHg~d|ua4d71nBSc}Kufo9q(lhN*0hr$R`T5erUg9i zz=IwX2Ud|R%wQMcOk8AOaJ^8@wIE4MX&Hb7^oIca>W6MD9I>_-bkS(m1xDbz0XZpF zLU-6rPcTGGKgz^NtB}HAoo@QGBRrIzWX|`6Ck)`{9nU5(}00 zsa{N}FF@vxW20^O)maLKBGqe4C4fSqU~j2`U6qQM1dP@tFZ6MIqg`U>GaFwZnGX5c zn=dgo_ILc#r@zR^+7XmeI_wehy|G`Ii=bd*^4tSm?T-OCj**^E2T)xpl z-PEfs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nlasX4Y|sy^)mjsVAAe7iB7hqiU^Y`pdH?kN+1S#f`mTU|CZpfcO8Xjytj}0IGik>AV}&dcI=} P00000NkvXXu0mjfOU}~g literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-clear.png b/gtk/stock-icons/32/edit-clear.png new file mode 100644 index 0000000000000000000000000000000000000000..c63bc7d9db4755168c1f1b4886cf522900c6d6b0 GIT binary patch literal 2149 zcmV-r2%7haP)tZK7^&J?OEIw^1yMkl8MyO#XYQPP&pqet)rUL4P=~LkJ105& zUCqu3fl?p0ZoRB>lEg?(nTN$4-X~yqx!fpAY=Fe)RlzTxXGM z7}u>ky?*N_JJ&6{jm52fXc{q9o94vm5eCNwhXV0-JpW|!2K^YW6U1c!Y~PL@7$AN4 zr@=N%eb2T{Uw2>F@PsC5WClkL%2cJKQN5nLaeS};uak#|S_*~rfB1f76h#p9S^=2L z4eZ{H6A{8{{qYq&H|kw$9(0PeA{m!Dn?^~fp0)lhi|)0G_nn|ETbhXL<$ z%!r`B-21uA-oNf!y|iPMgwd!yGg9K{xr6q=u|H94YGzaKW?HhXbTxNtY3zedAauR2 z`u_j`z&{QTdB)I`&onbqKBK>V`4=)-37->qD{*HZuhzp2Ti1P61Dg?rBEZ0I+*Orz ztpJvHwxuIe)I}_3%R^>rCY;{)lzv0Rxb4pbCq|~uy%I(H+HJ-)@;{dN;WzB0ffi{F_^}Z)LTT4Px z2luXhh}DZXGF~Yanlr7M^)nLILaElPh%g9H8U8;pu(`kCP6ET#cm`F`Ty_C#dhcQN z4I4B`OEOV8Md}in2}6LhpcK0K-@Kr|AM-kxEi@w8-^a22{XcSVr@MyAGn3Tf89ZAc zaTz9NPRV%X1TDE`RO70tMKQ*3di!>4+c2`FAM^hENNEkSe<$gc0+TmOxa<-f7`Oi- zgV8>o=HZ{@-kqGBVkRuxY|xBq5$9s8&5*GVK|kNmnyBs`Rb>g_p$L#n&V*ev5tPcq(o$&0N|joDiZqQtM9xhPGBJ~ym;e3e zXSe*2)IbI>VhP1@DDU(8J-e8^T!6HTHnA>Y+a>Kv*ZsMLE>0uogzObW=vZ6W)}0$)BJcdAEKYTfV)XpeXgP;dMOA6A zYymT;-4I^G1duw_RhdWaR5IEL`zRgWEU^ERUa-*nbWlvXsZK^1V=*EaV-RDoB8W8@ zF&HCQYcFIGf{>;u&M9sdoJ&(wmDD*LPK$mY897n_*uoa}&j)~d#n}!=TT?S$VDY_x zAn*x%A3q2P0uSF02z-yGrlw04sMTsjwTP&m5XCV`6cNRBqNq--77ixv!!i#5padApWg&xL{bf?*FjA? z5P|X0S$9+f5!1-i&T}I3gf&$ZM-oH5?x@F#vCXJ4a^<_gDMk#|^YMcMqCR50#-`)2kZN&3)_(6g4*aRwV_?aR>Q<2e;F)&LAf@X5Lc1BC1)apet**2`#L`&O3N`r^M zI9l76p~?pE^uCEt{%Ok*bGKDT-dftx-J1s4P6kgM)fMZ%sb1zrZSVOEM-INEwrQod z_dKATJ?r(*fjyeK1=_Lri<)og)%OnU)y^9}tHq9uYBI}p;nF+w;G55p&32~7RdQ3K z$9vvAYEL`oI#sCvA>gE=gJOA%)r%Hz+hh0ez1{_^=vum*(b8EK_1;QL+d@!fdUB96 zC*P%S^}RG@i%d_P;neZB>AmSrimeMdef%A&)k&82-HNpy#s-upPBVP!5QSV9Q{ide zJi@@ht2}QlhvS%IKwSVIxB*z1@y+6gZr8iJ3%ar?OG_M~fc1Sc*0)iTrY^3b#u6BV zT2JDrrecI32r!9KizC#46-$5+d0yjs$Q2|LTAg^|4W9Y%ByVkp$pJ{utI{hLX_=m; zt>F|w2GqyTgRheFF<}@x;#l$X_`Vv5iNo08=gH;N#BnHbNILHv0AdGBx3w`bF~Kym bx#xcX7exP)js-wq00000NkvXXu0mjf{0AO~ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-copy.png b/gtk/stock-icons/32/edit-copy.png new file mode 100644 index 0000000000000000000000000000000000000000..6962311e67ae44cc9a3d94c93016e54f7c83f5a8 GIT binary patch liter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stock-icons/32/edit-cut.png b/gtk/stock-icons/32/edit-cut.png new file mode 100644 index 0000000000000000000000000000000000000000..17c05a917671877bce54ab9df53b61ec5bc06cfd GIT binary patch literal 2659 zcmV-p3Y_(cP)eRe)jjui_j@yvEX%fR3rqzpOR{1mHhgwi5+FdR6d_RXM+y+2SS@30Tpx+qKHzDf zNEJmwP$Cp7Hbs$86pa3)C`hrpQVB`C5VG114qB{$Wh}+9teJW9db!_^(RfSP`p?w# zd;RY1bI(1e8vu|b2?M~7el&8)-FxnOVb|{Av5}FH#UeuWXaCJel7vNsZrgp^(p|fU zr|#Y}d~)#a!B?Fht3J;EL*>+dUu(T2j-u58?i)lTJv}}2-zL!0(?digIUn5;N71W{ zHm#AU!IyiNip8Sp>+AC)Bg5}hM*WtELI?pwM47E#yS4vwzw7PoRimS${yzy`e|Kc$ zj_Xtu-!DNtGgAnG#fP_U-n{j}dQ1S&=Te~?h#;LE9f3&kGl!lc&1PuNo;_DgO-+?V zgosG~9rOU?_S+AEyVo?S0uLp>hEnUuC zon74Ayx5yauXQ2&W}#3BqobqzpFm$I6hcE|bc=~}drNbR@9gO0WlNVafk=YCLPU6B z_jHy6$B!Rx6p>4q8Tovk2!!>Qzm~Jidac#A-9NnRZM8&u)xUziR?6>RtF+!?GwV03 ze=QRT`FsNr5qyx>+)>g94!WaW420nvWLNoZkhd5&?70d8BCy zRt)DHx;wkMsj1mVMqjE77yel(Mn^}vP$+~rufJuC>0I2r*mreyv9%V=j5JNf2QS3@ z!nCQRHOkfY!AX+vM?bo=#H{uLf{9}jUMYnT0<_lHaQTK>DGcw}wQJW~`}+F4i15YG z@7gtVjn;Z=mRY}k{RXaoLn(#vi7^2{ifQjneK%EldwUfC0RTSR=OGMw@BPHYIL*w? zh%pA4&9Gv{3hG$XLBR(_T88hr=bpxafdPmJ)uA668fs$AL(Vzw?C7H9t;@+;i^xRy z$H{-lv17+51aF1)9RN@)7UhC2NRov6`?u{2!H*bY)DurW?wxl~tYEFh+OBSHYHI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8pyM1Ot)aCB5kNR+*+d|%6}_UZjk~(Kbk!k<$a|Bkp+`sIbqLa?jOND1 zMpVirJhW#goDdWf1((5xfH=-!sP4+#N6g6YS93f3_W9z2M&d70R$$_eZ^PjMMTJF6{Mv(Sm(tv%|pNfX;4ZLh|Zn?0GRAlO@s8sha068k)>)b z7q4?cB9~={j5ZMwN!3=Nn8;R3liNSL^Zx+gyC2dYj+idVGAp@U4kj|>La_| z;wKA*LZCt+u;M2nBB$r(L~D(yR_PEG2oEw55B4}T| z8Z9l&(27LkI*Anieg>#*P1jN+lI-H1fF|F*C*{Cw(=YXD@tc z{FML0g3Lf(^uO~<_;9s+ru+H7J@4Dw+tr#iYw*fdtHfD{e7?3GAcPPQf(Q}Hr_a=U zhnZ-jsd_G57DJqppIC}J`A0HoQrI?86%Xj_?)xKVEZ!dVquTUk> zSF~oD7#pLbN00hasRXSQ+g#vu-ItKpVg1_(95AYWwg>OH9Y#h%| zO+jgm`p%VNWY$WssS)CN5&k9+&~vDUB5u7wT@!2ho)5Cld0A+LTDgd*qzyfoRq4)~ zivIqE;NikMVQucaA5hmvTDE6S-U5*ZIeT$|XhotGJ)K(m{LMe}zpp#R{{z-YJH?se R=Ia0e002ovPDHLkV1nNj5sUx; literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-delete.png b/gtk/stock-icons/32/edit-delete.png new file mode 100644 index 0000000000000000000000000000000000000000..45a1881980a6ac75b1551af0f4bb01b5eb5a2a9b GIT binary patch literal 2392 zcmV-e38(gnP)| zW+@N5AngOYi(`y}Ndhs7otX8E=jNVU-@B*Jt*Z8+XC@t(1R?EDI!EW!sjA<%zV-e6 z&aVV#n^;|4l{aqO&?gPou3ejJ^pF0wO}94C*Z;Czz~EknuBU zt?3^fvA4I+`lC%coo?Iny+2y`O&Z3(`rfx+x%K+%ubbnUC1Cy*0123@SFg@A`{9o= zS?^z6*PTlf&C^d^;2*#Fvbp-gi%d;Ui8x6_v(=#4XxcCe&EEdLxOMw&`R;q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lrxcSy^NRo6!mz1X&@q|mQ zH9`oKlDJATH#12gA22yl67_>77IV^7d@6vCxqv8+$>$4PUU`aqkR_ilP??-$b8C~e zwMQ6ZD3?lfyItz_I>kbPYPHJY;XdtF3*T{w;}~nLbsPtQJhLD<6M&Qw$8iu+qO~SY z609|3GZ|*4ry2D7D5+Rjm}hHii*~Dt=Q&^vaU2t;DZVcVf-FH0pn6A`zph0-9e@x5 zAtXvlG8vzIK1Vhi;QKzV>mr22V$s@+Xm=FKaq)bgLa~T8hC(inpY@Sa3O>U=0U(MZ ziBLia!T2yK6`t>r%jIxfMXTLLr~tq;_I;#mLy9BqtE;&|9-Hf^y`AW349 zBsm2l#HVvJik#7RZ8T|`GBr8P#KZ)RMia0{fbl#}ouvT{4ALmtjHBpxAAI;{vA(&f zXKOWEE|)153uvv0q6lLQ7K^dw)Ui~OG)+m81Z_0MVv*(LWoD{X^Y)#0#LnY7;h=vT zXe*`qaa%*c_JX~96eRG>$ zx3_WB@BG`&#>Rhw*MxWv=pHkE=F!Xna>q)|PS;1aTZO7z{W#Y|?7A7z_qSQ5644C-Hyn?QH!jilWWq6}N%mxbw3Qr=vEHQYlNP zBLQb3H&ONS*>kS%tr#U2uy)E?krP6=LJ$f>&tiA2Hk;9)d#}-GY#%$cl}aUUHk(5r z{TmtMOd#&;>}+t%N)E^#UnO7?r~;J}#(>kl3kwU`V@5wSt^6OXEn^?wJ+B@B0000< KMNUMnLSTZ=o0&WS literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-find-replace.png b/gtk/stock-icons/32/edit-find-replace.png new file mode 100644 index 0000000000000000000000000000000000000000..505254b45314cace3c75037fe5f217e2875be219 GIT binary patch literal 2406 zcmV-s37PhZP) zd2m(L9mhZC-21j{FL^9kT%bCDLt3Q`q6z5W0s&l@(t@C4wPS0h42o>iB4Bum2x6@x zYRkwXpn`;06dcAGlwm7N8>>>Pg(N^&UI+;x;pMIOoYOzvO9UnGPy2iG-tW$R_ulXK ze9!s)&i4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32/edit-find.png b/gtk/stock-icons/32/edit-find.png new file mode 100644 index 0000000000000000000000000000000000000000..d4229ee489686d6bbd63fef7444f4c5a7ffebd14 GIT binary patch literal 2104 zcmV-82*>w{P)@cD_sq!9WrqcD^Bjwm?`F0;wuih9g+B{ZTrmZr!v_uvINAi6|gO zQl*H(SfSM<@P-GcIQS|eE{{T&qcC|r!V(%~Zj@fKB(r&lQ-w8m(`LSb1mrPA_ zXJWP5jaEyJvZ|<%HyV>-WJx4Rl7v7Y$hUWP(Cr;<%=q|NKSk5O{{5b}&V5@DDB5{L zLqjIZOAQQGBYF7`r{o{{(Jp{>JL8tWYje-jAKfp?WJyF1 zeWRqF77dl<&!%rF+eqEGd7Zm>>4IJp6I;6HH+!yqT|;vK5J7$5VD&o*35jpN_Vd@L z9nRj^1IN$y>e8}Dit=;G!c3DXMX%A51VY{^-uL;Dd zT^-%o+j2{67F!4*H0Km09S#RRb*e7$AshIxd{YI|Y2$PU8csX)i*xSosMugAFIZTV zo*0uF!w_l}ji>}Itv9D8kw}+(@7(zdlV(%=qBX_EQfF6Z`dH6s$NF`pj_T@as->l6 zPAm`r0AmwenO?6?%CY897n`s7#siddTlq8E;!I-!0LYVkaLmUA9(X7HLwDT1_TkaV zp@evyKg(J)^slDoUX@CvTDCMp5d>iy06cImbgGLG%>{nz0TpWz9~Myt7)3hFbEJs zV!%kDC`P79dg8u!R9s+6k{E_bY-?*%13+kA3;_8EDaIHONI_Xve5^m<8K3rh?+%Z< zFkl>~W)P5yjAg)>08C&7Gc+m5a!|lnQ4~d?03!gHm{%Pj9zBTB3Eu=J2}GLHQVg!4 zfd`&(u5HNspobwauTqhIgfL43@C<=D6@fX1AUH+j{Xu~vl9Lh{pKn4P3W=k;cKuG6 zHvo-_`Om;WKLP-ho4tIYDh;3yJ!0GW@ARdJ4vRw><- zXkM_uM7upB7%R9FAtZ$x8J;r$qtW#F^z^jX;dDqF*FU#}k%i^$H?Autqk%<8;Yoyf zgk&CtSEF9X21LLA>cw-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uz z;;CYsVgS)foqF_p{=65QQ_{TP%l#n_Mq{2;-vt@qq*e)jrG=;xiC?L8hPF1(tHw;# zH+@WP-c$j$a+X%lq!M5OSgA>?ZlwNpbvf1gz1oFFj!AV2Kq~-6^>)YX>Hh#dx@_GH SL^5~)0000t literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-redo-ltr.png b/gtk/stock-icons/32/edit-redo-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..ee886fe8547016d402d3ae0eb05c3cfb71225073 GIT binary patch literal 1757 zcmV<31|s>1P)HF1&#NTRB76Qx4Lj(SPbTqG2ws)UJzXbNh1LFyxt zSqUBx5{MSH2*E=uOQ?29tTqu1sC8Ct35^2{#IoDqI`JjGtT*2E?(EL&%(?JjJD3Qs z?GULWjbfHaQvq+^T?}+0sy)|H}V7ef6f>HU`MSw zsu_Jx|0=i%Dafu3NYMKc27_1flw!Z;nwYx$x=Q`h5 zzr?)=kdr-N?Oo887b3c?&G7`M+naXFEy;)W%;sm$cmAPuT@o7-IN1XRK=nQYkxmg# zC{;h`*%#oJRl|i;@$iH6cV8vcVPmN}l$KR8{^5A2y`JVJp zNd^4A$C?{ku*qyi*dIs87lBj~iAWNXIq*msA=$`#ul!sayEQ&gA6i|4tQY?DYuZbi zE`PRb%RW5P{J5$K*9uM?QsVQ}5d}y{LZyazcN{lL19+^i6DAt@nJcd>MuH}ecE2#2 zQ3`~R2axv_Q zJ%gZ3@bjPiP8**XyX@0yPMkSCe+vMXC0Mm=Pp6^2^|~1=IQH9L+i@tkvvn{2n(1br zmoC9W36xM!Fi@p~2p!-Wlt-XE3fFZpxiEyy;oY>QW~Y0z^!H@hDn0nkJ@PF8G@V`) z&{m_j_k*PmfM-g@XA_Bd{433E;#%%qmT^bmrzSjGqFfSi9T%JnD5*dQK#2xMHAtnf ztG)x3f)sxlea9%=wnq%*|1rRk`VkaTi=0&j(ib5C3c+PZbNv=2bz9BmKZB+Mu(BR1 zb_F^Opf0c(rcn!x`J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Y4dVw6}fh0aMrKWhwIl0HgjMxON=Z zE|idMP~8tfbMLUS@nNJ#UQu#6>#5y`__pgx-`n^pN;q_YC4w2frS#`Ls>sp}Rdrz}jxZKN_lp(sE?0h) zIr1(vO_0auk(zfMn%W;`hcig?nKLj96K+%>V1o(z-0+;za4)Ds?D~;0ZjsiLOV3VZ zMouYgWle`uf^8(KroAtdntLWb^3g>4$}1$b5WAZ4rYq{R4+i`zC%%Ldc?){Zv2(`yBkR(Q++y=Y58z!?&0MnwA zt5EbcyfB+o(&=JJy7gB9;H|fo--3n)lI|MBqX(*&^9%R^2ni#D004UZ^$i*W-yqcq zf>4;9b}=&swsC6bla;G{o5my>oFAyWAJ*Z+P`~q2ygygOzC>cN8r$Pz-7b&Vq`8}z zgoU|uoMsZ)iYe9K0*sfp-1`tqHDC!q3y0yV?LAn#)^Yk6&WsKQd46)2nYpsP`pG{X zJa`Px0fgROXti(YZaq*JR{+Rh5PGo)ZPzY@0N})t$wU5T+Up9nGIJF-J|B~*RC)L> zL$2R!+s5v<--fJxOSeKa0zd$iO+l!k5VZDoxZb}E`PjGAb*;^K*4OH@y)AAlG5WbO zGo8(!A5nh(!plX&>4e8ySp;7K(GUPF^+L%FX&8`(0X6J|^Wvw~O2NQ|YN;%yh9{Lw zJXv{f7|;CbsCBus6M4emENGTylM_~Z4 zALxW@!A7N2f?X`a)HImsG|Za#T?5=2ilw)L0MI%=6!?Mh@tY!bch~pzag0|zmfr#7 l|3Xt+yhP;I{fa*-{{xFR6)NgmRVDxc002ovPDHLkV1j#rNV)(3 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/edit-undo-rtl.png b/gtk/stock-icons/32/edit-undo-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..5bad58ccb36c9c2907c82a5a6f9a4ae5b9f0bb9f GIT binary patch literal 1689 zcmV;K24?w*P)L4}EOJDn1ZB|O3 z8Y!*RqKc*;Nvb}W(jpZ|Ns9~(X#*$?6jD+`5Cy}omvz=3`+4u3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yBhBW&8SV!9^m>Tt00000NkvXXu0mjfz-&#l literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/folder.png b/gtk/stock-icons/32/folder.png new file mode 100644 index 0000000000000000000000000000000000000000..c5d829b503a5a193fb2b54d716a3409596fcb26a GIT binary patch literal 1336 zcmV-81;_e{P)V(*8yj1bDbaMsCXpZ_0cHR!Ru2fU2819(D~2Sp{J1`2hL!7XSe?1u zNQKoIH>&dSX=LBZP?A&EMklT*o zp<(cPs{>%Ikj)OWDNRiM@ZHww=}OwR?W9;NVl4m`GoTU%YXPMgah$BWAB1&OYd?Y( zE11>;P%6Q$o%;}k0fE4#DZ5XdD%M*Zfoe({VQ%&Yu3o!}APig7F0DG6^PfIN_AP_|{F8*{8h24)~&!c-0C-G`exXWN>5CMxK$Izwe z3olPyI6n*EsH z;D-=GAk~q^LUkUsS_wkPHrLlkr@O&Ss8mW)NOPto011I03}BiaNT)jyMGlACFFe_-yZ2@SVfP{eOInwuh2okFSnrZ-! z+rZ|&EQFMZ;{cj9sLgK>%?eT&?6_r$qKHXgZcPS=2uf)u)Fnr&G<^<42TOU5l z^D32a5V{bcIif?!Dgc9sm;Iu@e=}04G+e&|t&*jt&HugvI6+DXB#C0jsY9CbPk>=r zmNW{50S16t-OFTii{+y9V%f#92gUJH3AO>CV-QJ1QG`aLjwnp30AN`b49gnV07=ga zdI4~EcNb@ZE;h{+dV2=Z-Id))(_6=c6w>Kl#8J$??`hu;JpjV8td(}$>3h-jD30jc ziL+9g3DO;XAQEjgp=J?ES;mdOX3QXnP_KHI0CWQImS^t=(EaL(7f*DhjbqX z-u;AW&HAR(@V@x?!!JJp-~uQuFVF#C0Du}D9nBgB3*3h&m+N7vRH^|m0n7u4ns+F3 uxm;JdT#oPOzi2L(Gs@+%x61wh*YP*15~mhG1t91E0000L`E4QTROAM`;RO05Rb7E(}r@FBhxv|dTXcRZvUVX_5_f_Td7*UIbN&$N<@|c z5rD;{rV^7=MT-yJOBpV1H#}h+u?fql+zp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KH}bl^wY8P3udheI07(7~(pkBd TjxD|A00000NkvXXu0mjfr>OXx literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/format-justify-center.png b/gtk/stock-icons/32/format-justify-center.png new file mode 100644 index 0000000000000000000000000000000000000000..b087687dd022c5b9d5b2a68b4a83e3e7208926c7 GIT binary patch literal 838 zcmV-M1G)T(P)^yKkO{wxpz#ZgGkFZaX_W@6G$Z{pK42fT^h|H9b9TXJ%$j ztgZig5@>0;ptaWUG1z4;xP@1(p|*+1$;tPXoCJVG1hccVq2=t->(Q|@Bc}$3Y%my9 zA_5ToS!NLs5%T%GB6k)3dBScr($^J{Qj7eqc4AOd3y zf(Jqr2}fk<+tOhGNG6kHs^(b$1VEHhP)cnppqXMsq~=*EwY5|^7XZLCT8xO`x-RDD z(_okD7eWBDMO#}K{r&wlMbrxgUqhPy!gy(?)*3^@L#6de>gOf`L}0D;44Eegs_<(n zthEiHFpZeIva*6Ni(jF&@`x*e2w-L$>FR>xw4+!o`o#f)-(hxZJu@R3jUpC{?HK}Q z-jxrYNXX1vOp}sS)DoV`?Ju#>zrSD$E2WV6m_at1gE6Lt4;8&|oOT>Lehk*yzo7&0 zUk9r3?CtA8Z(nb@`?VNQdED#n|7{(p;J&)LiqD@Go3;faKu_;cL?V$Y68~=;u+}0R z4rBQAkmu8_`slXSHsph69Wcgt#=RLc}FB~`0G5$rNzhYq5%v$LTB?hglO zA9SE%r{eLGrQ?1VFG56~^nXu6wA+!o69Ii!LcbhxLk=|ayY0oE*X@8-05gl$8iitW zzRpYHinnCTQhnz$sZ>e;U}JqVlUvDAHk-AMq@$$M Q)&Kwi07*qoM6N<$f^m3?7ytkO literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/format-justify-fill.png b/gtk/stock-icons/32/format-justify-fill.png new file mode 100644 index 0000000000000000000000000000000000000000..166482fe167e7f09e7deea0c9eb290c323193830 GIT binary patch literal 749 zcmV|xOh@gj9JcwXVqCzj8yu_a% zUc6e5FU>)TN{K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|T3Y&yt>0UaQq-gYGh=A@6k@Sh(-Z$YI#3;>r$;Ir zqVt#zjbFocjO7K_cjpb8phhTrGM@W>FPlAQDs1_S;{M{8eK=UvKj zskFE7;`yt$0P+CrTJ|12cxM2RUaq2EK>(ltI0t(c-4A~N;jCUUDYlg~00000NkvXX Hu0mjf3o~~w literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/format-justify-right.png b/gtk/stock-icons/32/format-justify-right.png new file mode 100644 index 0000000000000000000000000000000000000000..f7183cbea8596350e990d17b49e00876dce163ba GIT binary patch literal 832 zcmV-G1Hb%v?an+8ZJ}bjU0~5L$Jxo7?|t8U-NF)+sa&l5nO--Fx z-}v<`5DZ?DQcC!^l%rI^DZB}rN5>~7CKf7p5&&XmOixdnE4k&jBctbr2M5mRP$(pr z86eu<&CDPo*tX57*%ZyZe>c+4h5?8lMsR_;6zy-p^R(nzIJ1OQG^MVrITOhmL{ufuU15cvdv8HQmX zbi|~V<`!Q5w%iE-sZ@%Ls&g6u0bn5ngb+0Wl(swqV}QY6W(Xm+LX__U02sT?!m=zZ zep-T%0^mA_2~bKQ7K@>?Gm2udSU0Y~e_oy$AR;)9gSNIdL?RKCI;1}JB{54(xYd&3 z<>D&+cD1zDC7^p@prZNe>MFi`{t77twqtQ4)X++yr?(f;Xvaa+03Cb{5D}D8Xl-pp zBof)P1pBT5W`R~TNkKh=NId$&}|fPL_R>ei|T^o8%I=_6t=L-(NC7CNSW1aPk)gHr^}nDp zNtISy-M~gVon`>YZ)|3*Rf}@DoQ_7Ljv4at*;B@`vhqV%mPPsedKLiE=`>SSbqDX< zz5OB{@4p`JA3(qez%Mn3fTB}GCNqmnCiC*q!^by>sKCsBWElX^JAUitH8T_(b+iun z+V4^pY67QL04xJ2)|wct0jfN64`AXrua0000< KMNUMnLSTZ{?|S+G literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/format-text-bold.png b/gtk/stock-icons/32/format-text-bold.png new file mode 100644 index 0000000000000000000000000000000000000000..094f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y|xT*X-FG?eAyPrY(d)m^30X zX`^YTYB+1@HZQD-9$HuvC{P4k3YxJ2v%)q1bc*bsZhFg8BMJxjjKlEsV2DwB^y>gNF|+>+Zgi&Y7KVs*Q!JVlQ#K5GOLP!Rzt$v19$_;GqL% zeC+IgK%}Fiqab0}_O)eSeP%{`+mc)^n5<^}kM@I5E>H0OdneXB|LYgN7e&zt0Yab& zC@o#OctNq)a)niEF3;Z3Fg!eTeD&%#`ha0zSP~)T6A)e!n%?Ew6gQklfYDlZ@PJ&g tSj+`Mkhz@O^|NQsR!2uiD?k~j{s*tGo_H$4R)7Ei002ovPDHLkV1fswW#Iq- literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/format-text-underline.png b/gtk/stock-icons/32/format-text-underline.png new file mode 100644 index 0000000000000000000000000000000000000000..2ee3f4ca9c6a7cab078db4e31ac6cbe3c8f95e55 GIT binary patch literal 1712 zcmV;h22c5kP)BY` z0U`jy!^3N9_0r+qjT^f=IvxT8+yO!|Wj^G2`7OsUzVpr;=Pz8i)Yh6C+`s=jb1p!s za`S5se_~VjGoO35=DMzTFZMpd5P&cYg4cfgo9^@H&%FqI&jn}%wazsUt<|pUx)(2< zbF|SYQ6L})B9fYrrqCE;Feb*Sl(MKz3f&l!J|{MNx;L3MYu4&hr>43R4kRxtKpSJM z(>Ozk!vuuHC@{w0c^;WehA4_?)a#4Mu=6Q!3}Pe&Ym8Azc-7c4R~&b zpS|)+{`l4bRD!| zD>Jhk|I6Pf6k7S$wQGz|9K+A$V;f4@HL;Dvo-7jq#qCE*BwZXkSBO$5B{)g|A(zWC zJ~7Gl>(?3D`&rtGZH$Z^qExBid0y;HDZ5q{H<6_9P7zR|Eb7>RYWj*OyiA6LQkjDz zV?6M&2YBI2U!b-FM?uP_E$e4nYQQ=B?| zhQ3d4WkdG{`XAp)xm;#+Y#hf)01HY<3PMCRkx-Tbkmd+TbJ#3;rEru&5Dt!v5k(QZ zb`Br{{r!EcSh0eMqm#V*?tA2N*`|$H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>AGwKyPS;-LWJ0mzbnBk7S4Y|8cRy(jm-@ z*j#v_2N9+nySK#vrf8>O`s5`95o&6K1;KdhBP`Hb!}VQ+T2I9VKe>!=XT9_yR39h&OokL;lr5_hugtt^gamJ{pV z_qccDrv0Kor3u`$3zZ&XKW7s>bMVPqAI(1Z;k2m@)@Neia~jX5J(~X?SG7;NB6`T7 P00000NkvXXu0mjfi8YXo literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-home.png b/gtk/stock-icons/32/go-home.png new file mode 100644 index 0000000000000000000000000000000000000000..05d84d4bcdd368024683ad51098576965e740eb1 GIT binary patch literal 2130 zcmV-Y2(9;tP)h>GqbkWh8P=zp{QU(AOuQ^9a1P@^KeoikOawYBhdh<8l>=}s!S?eRkgQL zAru-F5uPbkLW^2yOQE5pG!02y6d(o*#LJXNfEaA>W0zg8_ciz4(;sUdHkd~$wfEo5 zotg99?|kPwX9y2i)g`d*ye)ZzyJ}zYbT&jKSpboBOMI^24EQ%eI;J1%zCkZ?CPa0KUlnwr%suu z-l+PyeIpp!|MCxCox6O=k`T(vCH#KP#v#&QSX{; zCl*W@^RL2jMZ9UtCLN7NOg!Gnb%#H9r_Owq#}z-lf91-R*#Lm@a`~WG;vpy!FiKd_ zs7Pm5{7sCs>pIe>)coYfSor+~A{L9%^+ zb#=A)FBm}9d&LwyG^Zb*oIlDeo<4y`6i?*$cmGu<5>a#d>$NA)$W9%m5 zeDqkoJN-MecYpN_cP8$O?o39uaKPw@C-Jk(5_RzmZ28qMFniW4(R8hu zqVWib1OS4R5;sC26c!X%zh1RM<@V2+u=~T0_Ec6@=K1}8UH%a1=)pj>U_fpu$qh^` z8p9Kxoo$ZRALdX;kgqm1@|RaHasBZ_90;^=!?_dOaP9=R2U_{q$s-(zg!shC<8IlU z=Xp#~as9Go%Leww#61}(Eh&+J&%9buF>OO=aE5p2Xnt?qYK$5^8W%2}gJBIpbPv4{ zlyTA0){4i6kFefa^-DD%FK_(bk3ZSFbm`JT_hLfa?Jp%(ZEdZZ_fq-10}W^2A2Yt# z*}85G1`ZrV;cyrX4FdJ*cLaiM+h}cX#o)n%thH-aseuCrj{D@`p}#L#vSe^i5aM3J zXU?8oaq8ag|v5z8pm7Q*2Wo)|UC z`t62ws<5zN%(2rAdtO=c%3y!Wq{K}CqNJomPMJ32jX*H;d)u}xK|;R0ag*rmjKbqd z13(a6j}sB7O9MjOK126?0cM8R>&2h{vJ)HM*=l*cUMOwGHk`O{xTLJ?DF7_GjKbvR z=Z^-_Jjb?b9mo3Tw(Wns@b<8GOu}*;v@~ADm1~{I z%gu)rHii`xVD8-K(c0REU@(C6jC4dgA|Mb15twdg?x6r!Bn>k|X$58jV>DE>6Y&d| z;Namt0x-fb04Srt1h4_vO+rXQu%QznWgwo& zK-2ZB7&3G)j?@8{FMoL}pzFGL=9vi)mV`D2;BF$kRSCT_U<5M&2?17aN@i0J-RaOzY!r&3^RW&zh# zP@NHw0VtUSfj~(OXbm!{lL=vgl?%f?X9Ek`0NM}$3q*o@mSQ&m%pkwN!rHtU+#2X` zG<&r--8PQbp@;-rkAfBqNDVid`X|fI?gPu)hoBXs$CSj(a6BF(D9J23#Rnf0dUiFQ zH^Gl!{Qgvb@AgLZHgBGlP~(ks$3XX=n~{+@RXQC&G6qsE?yO|yu3V@0193W7gnJP> zgAE}P^k~>^TMfI1ghZXb=r;I#Fx^w2bHik}oFJG+t?6_$V(l<2g&ngzmdlp88Nl3* z70)nH60T+@AJ63Gv$X^i-L;?Ei%@=3CIhvmrUu+46$XI+0H*@ohJ=t`PXGV_07*qo IM6N<$f>0sh#{d8T literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-jump-ltr.png b/gtk/stock-icons/32/go-jump-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..366c58def3c41230dc3e29a2c0907b3b28e4d5a2 GIT binary patch literal 2038 zcmVSu%mh!u3wmHK%os zUz*i{=p49&s5;Eh(ZeLM=~IdyuDU|DfNKDs0pjEU9D?93yoNR}>kTN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(!>!aC(9&BN*q_oWWpH$s!EciB(*9l zI#Z^~j%PP-#wD=yl52Rg@+Z7{db4Naadn1nR0&ljNvpKjZpPdMsAvF?Gi)nQ)}rpN zQnt0&sjhZJ;%Z8zGDQ?cgkgxab_PJ2rX)#%;<)~7p*d%G>Mxr~5~mj}x{~R*Bw1V z$d-irj*U&O?93hti(TicHSb9rM`RtOUhu9_;6*S7tW^T5wuKzGCBC# zwr0Udv9&`{aagV=&FogMVUWcW)iEU&zx{p=3Lt$eu>D&}H$BXq^XJM>Gu`L7d|QjD zMf;@|kCUd2GN$!|8%NIws}Oe~3)7>egMRy}Ql)W`56k>_0S8t@-LD z+wWue>vttMP`-k}1xxL)h)INt?M~4$rH9jqix+;o8#A0j?8?^egW;HrG zYA46Wb@(9b)~@FlKy<|q%y(^*ZVm& zirXLbzs3jO22{O<2+B?rIYk>0di=r{0{M;{`C}2f@;WYEc`Y|B=;FG3p5Cy@T5E(f z_0$rdRHoTGe1I*F3^2I+1NOGH!Nde*AU^+m-0(2ftJY<{rU^S={dsLy!;YTr2&6$u zA&@H;X)cxOpgN26erY)i&zsMJOh|Srrn2ipMqYS5*c->`7@)->NvT8`h=3a4SPcx~ z&h%1x+zZD+WO6xj%^}&bN$e@>W~957bSfc=BI1VO+N}Dm^kL{f<=j680JA({kAo>d zn9X5*7Tctls-SU98b!EzZ6=+iu95ScX}=(+0ds02U}nwhEcG+Ht&jEOzUGs6M#l}v tX}ojl&rkRM&$MP|@SRVsHT!SLKLL8D(!hau-+cf8002ovPDHLkV1fp(@jw6o literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-last-ltr.png b/gtk/stock-icons/32/go-last-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..464701109b8b84d6ccb733856fb9ef11f7dd859f GIT binary patch literal 1967 zcmV;g2T=HlP)_Xb4|gNG)WcF?v4+c4Uq_J^ZRomt~_ z#{Q^()X=6?DpKl5hO{`9nmV;I6k11wSVCz&fNTgPCImvV+1-23$Lo)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;?nEhKFCiT$;H{e3&|urY!60R}YK@)#{0N4l?Fu@@eA zulrRL=a)kYH*=xW1nyF%5_q1*qT=NUQvuTH6kHL;C(2f%G_=sZ)3#s42ilFp`L%!C zmfX4Z*Tsbw{6VsYp;TamRu+~y2ZXNos2X-#2l?WPzWxC@;l8pHdtpJ4+TyNR;o?YM zB%fIkEuVik3S_Z;r?W})4t1wo&UsI-ijlub6?RYN`(A;EbZh{n8&beU;+*l2h88oi@MCV9m1{`uRFmg^G>wR4& zlEd)`iqjN1}A84CiN3gS|jD9pmhd>6H4(kr3XEbLZWXtZjEmkk?C&5C-6xMPQ^C*3F|*n-WK)7uwvoePnQw@~qD> zh+lrU)4Tt9ch|*K{Hein7aTzXmQBdA@f>n~5BM`1Og8Mm9O;IhA;)&ox@TmCPGQ~Jo8|3~Bbe*ip3%8M}t8NL7j002ovPDHLkV1n-w Bx#s`? literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-next-ltr.png b/gtk/stock-icons/32/go-next-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..fe3d2924ad1cd548e01cd614addbc79360ea127b GIT binary patch literal 1689 zcmV;K24?w*P)!f3I2fa;WSADEsy}kHcVn1JATaAGj|^Mo^y6T#-2KU6hGRs zrK_uZqsr9C@Mrwr6ES#SQ3A9M*s6{;8cCFFbv3!~Q#N zxh19$1tT{9UYFZt0^*N+nmYnp+n!n>ua7-%-pd}Bi~0>YmUzHx{bNX)9-(;jtycd+ z(m^F~g6!;wG~|u5H(!v|h9GltClCNn1oe>+w%m7nT!Li*a@-_pBcH-s1Fxzly4&q^ zGJE94wKse_)_f)#je=wIM1rQkcRUrYcAfm`HR~(a)s;6Qz+r%BR+vh^X#-IuW# z3*%3FZf*A(SKZ9YC@_=Eq97n5h!J6dVWkvO>O(kY6cB<1A8NxJ(Kq~tdit+1d-T%8 zs~fIr*!laN?~KkxqSObJaf3lbWTk(-HR$y5Na1~0WKAZCK!hSPN=qOBL<|uF0|NrV zg@eA#N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z literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-previous-ltr.png b/gtk/stock-icons/32/go-previous-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..7d1d1e8f6dd2e48186260494c7cda4ded82d78c0 GIT binary patch literal 1655 zcmV--28j8IP)=)hbvh#62&N;6?W_I~pU1+xY z{<$|dx#xM#bKZ~V03S452>h?Yt$}Cra6WYKY#tH-zOu`CWc}V)?!s?Z6W1aiW%H1Q z9GP`bC%zw_g{O$G{TQz9M+RlH5QQ9>dw0smSou3l2sW1V%oAXcyB$<0khy24_-QOj zPu#ieJ{@yjh}d&tTmAG+H*-wv&(XvCEeYBJfChze(4*lAJZ+@uU5UKPG|%m z0_sEtb7T`@F$V;)g2*z1h%Q#3Dmp_#(L19@&E7+)7yU;<6;nW+4j&m`&|BU3ap#XaD@h%pDt7|3Eio7ONBEM_?!fu>`}P zl$C1$YG@X7mIzo)O8 zeS8a|&c{KQj0@$u5FWrA_N0~- z^=N)kb92iVSLAd>469cM{)~i7BO%fNOMn>`b^`SRsR6b$p+BrO2(6EDG=`EMK`9!+ zy!ee^d3nyO?xi3QtliDcEO<#$)pK1eEe0#^V7Pn=k`xpYa43ZsB_M?Z30aexVHsdp z7^|UefYA5|bs2#z!&n1if?FmNF{Hkbdn;px=cf1K+4U8sZ1UCX~_ z7N;C}eDnwcjHAp&Ff+gc0s;h4OE3$zrut+9YYhMaW|~Y$Z6icN!)Ob-gg|u`c(B<# zg9t(3Lu)(rFe>C=*0@kFY#l$AmYKDEgS|bkbUrINP^P8+^AI|Y zieH9_ETYgrM;6c$HX_&vFcDxQf~mcm+PjSa6A}`Xfi)J|ge*wV6=%U;Jm_p5GM^iL zd*g5BuN@p7>NsqkUwX$)>-Dm^cdNGsUO_Q>4`4zju@E1d+X@1K7#1LFxjLJe0a%{s z`~Wi~IrQ$?*G-@+QnKTtR?ak)-74g&WqD4I>`&JxZ@;a%O=nV#s&n8F28$=rly1S| zhE{a-9tEoqQqg2Z;Cv67j8gDE&P9W$jPa0&e0-Mr!iwwf z)(h)zR)6bz8ImM!nfGb_Q&&4x!thlvdWaAsTzMP|0>z#9Fp=H2|2xr}|8W>i4kd>0 z2zFC@W9nSxz2C|t-`CQxMmNn_tj?DDkap(U*Z%c;QK^I*4sMMOOvl+w8k|};q-hxv z4|dD0m9YWp+((IM)1ve$vt-`wq8z@@M^7IRex>rj%6?nuUkJJ249wLSlB>CV5I|VB z+xg|XXTaahFV{aiv`OFpOp3p}Q_Qd}_h8|Iz)UZ04!2Pdf3mOKCA$Xx%3ypTPdI%y zTa(RoAv(4Mk8-3Q9SKh>!x0mdop}P)jA73MXY-IRZVsQMP;C=2B4Tzv90Ii*F63ac zdB~2f!LPz1wpu110B-G?+7Zv_<<$LuxFKI_{2RRtNV3}Do!tNc002ovPDHLkV1nv! B1&IIv literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-top.png b/gtk/stock-icons/32/go-top.png new file mode 100644 index 0000000000000000000000000000000000000000..e8cc25f788ac122a1b8db634eee61519a1f37d3c GIT binary patch literal 1970 zcmV;j2Tk~iP) zUh>sV;VVTA_B1j5dkxUSs*OnXiBulEPwz5 z;S~%F41mPD`_+xPW9{uw?i&TNY^-f5DNo>&E$ekfNtFsY0FBr&?qJI>p@A_LS~IjZ zFxuWQwK4Ei9DbPQe+<3unNYU?IQ9mh+!1rwDsqI_bIzvUR(;`lxDFoD_=1q4zmWkjpDP90D+ zWiuzt0V04c049V+gRKRLD#V$XtYxreuoYNlurLI`pbpS8aM5LGc%o7OqxJ-3xC+|a zK}V)~Pg&?Mu!T$G7nA~!Bf?Y$DoW!CxQ>Ucp8)_vzy%Q`h#&xDv;hLZamgs_zV!Mg z{k`ZvxdG?P&#p+sCudbz&?P|K@cv+|-`%JjihiEp;f$gC&}6!B~L^a)2(2P`O(n<9+tv_18GG&TmaJc ze9fI{zh__b?3S9(fBc)Aw;Afsr_dK(!kPZV)LefL7B(zpQU11dJK~QLARD*CE1pxF z5ytRvCUi#!(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MKwLQFg4uqU1OzTX8GVi6 zSTt1LjVrk`@J$BQUIUD=Fj^zX=aHaF2n4V8k{KDrfC z%I07oxC&zph!rezRE7$@VHYk9oJ7v{E7x(40vfGJsAQp)eqeD;WITa@)}JDgD|NS7 zn1=wA5CFQ)KtdrjN-6D#_gdVEZ%l4T_lp2T6DP)h0i;n}94h?aUjP6A07*qoM6N<$ Ef)%%?;s5{u literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/go-up.png b/gtk/stock-icons/32/go-up.png new file mode 100644 index 0000000000000000000000000000000000000000..6a83aa497c77200a8d4dfab5a948d1114984ea0c GIT binary patch literal 1646 zcmV-!29f!RP)fyF0ti#&+X4Kc*r4q)AAXM4;Fas*D{9Y8t1lNxFs>S}LK?fRd&X2=xJV zv+4s+JVZ#%A8FO55|UR?h^o*cC>RBa2TG+Rq(lZ6lh{dI+u7{S%+AdH`FPm1*J&ch zR;_ZSkw%)Cd(J)geCK`xe3ZeUY(E_QUj~DwZgV+^j~BcK_>JR>mOt`hrV{`@J|$}4 z+5Qcgo+IKv-lq0O-m=&UZSRx9kM$KfOIUIQ-@>S1fDoS(IFYq0x)uu4vf) z>pj6c*?u^MKA5>qDdxN9xj%L}Lzmt<*|emgXWQo8dPm3O=2LB-T^j1(RQ6=cxiUOx|?QY$CSJS3IUweK3 z$u*7nJnWrF&>g}1$UJmZ{zRnpbGthZn2t|xcZSM;#SL{8l{mnq@;Ufn2^>poX#O(% zz}J5sEXbe~z15Oj)%(g*!%+>1=c7O!{D{oMRnP6(@{GCfGri)HcODU!A>e=@;8F%) zg5nV8$KS>xw^6pQ+Ns@)^T1?0axz=U3LFH@46Zv8sIT1p5xeU7N4Gp{y6<^RjCdC) zMhQd-SZ07336TOA5Rj;-63&kO0WF!8a`W=9YT3Y#M%RDybL3&O1&G@zev4DPa*(I@ zk=c1P^$g4Kr+ppIny;+?wipfGqkt#CU>J^}ZH!n)P+FlJPeN-AwgP@s!VP~6Yg*cc zFs>d~Ltj|`pu6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@A-R_4=;&G!95F|ym z=|rN>0!S^uMu&%=RfKR(DlX^gvh^l5{Zo-u=FC>wmKI+y z7&OX+I93PHeYezqJO;=gsye!FkQB#~-)ztE(mB$L%ejFGb1(`MtuF6VWY-$qiAALj| zvK;8`=n(xaEpW`83*z-c=sIGpt;jAbqjy(Uav{Xe8=cNdG6oAb-E;y1gurC%*LP)R zV&1dQ3K0wvtEmYHg@BS0xRxxzwYE0av112egq+ee?I%o#zV44d7F{ycXrTL$%^hhW8G;(zbFgJ3Xd3Qb$T#x&0?2eh0;i{6V6 z(s};iK`9=KaiyXHP*w1*F2v8C#q?FH#9i6hB5Iniv{Y6q>yrNR0|1+o_PYi+V=Kyv za3Iik@~yXMe_I=qHBB_X_a4`;T%loE{{8xRyeSu$+zzDI96M%5W%-T3wQIO=_%O86 zQjmfIKvltFF}U*bXm(YVV8EP9et#}W9QkgT-A(170Hjht?E=ED$#PY`Z6C-|lst#m zi_q1pxJpPvoe(ci0wx8LuI2=Yl%5`cGZOh%ZhHFs2VQ-ZsenWk1#r8Czq#4&-nB~^ z(Dm~nuXpbALqpNzcZ85q1W8Fsv!Vku8}JHr*J)3i$zrQc&1Ybj&AVBtaxUA)L!w{4>r4jqz$hH>UP@XHsX(Mv^u5=;Uh zNfzWJh#S8W0Lclc24KSJ)GBRz($|(10-zX_zod|okqyRj;T`-x^xM; zZI3cS-reVPzI`|v)h7d*4p>OAXG}HC<4^}#Cm??86>3_ND2!yg$W9Px&SGfSd$9$ z77I!EBLJ&BD=V$d+s literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-caps-lock-warning.png b/gtk/stock-icons/32/gtk-caps-lock-warning.png new file mode 100644 index 0000000000000000000000000000000000000000..dc108d355e859f242e02fa508322e24ac68983ec GIT binary patch literal 1062 zcmV+>1ljwEP)&!6vsd3zBkj(^hpV{rPT;EKw63=ttBEwGfk?3K;pt!LSn*3(=9u9zQ3SGZ9+39 zru!EYH^im23s;5}BvluNjh)f72}9a>Gw;VeE()~;X4*l@M$h)0`_AW{@44q3_^+Eh z&7rxux#Mc|m{@xNoImPred+oq*Z*T7o|k*35~OJ~p``BuUc)m&&RXpk zM=yJxcjTEoL*Mt^u9v%d+|+!kmJdbf1L*DTqqDPf)301EQK?h_>Z*F%!si*2`F?tO zy0R01+whAb2fjLxcdfjs%Gkr;04D}dFfcH<>ALXa4-Wy_MC7!AabwcofLl*3LGf16 zH96BOD%S)CTk3AAlS!hJ|EdP;ZTpf*&D+3`s&=;6U=OSC#*MFUyfrg3lWQ4Zety2) ziFLrB7ggyNk!?~%QA89)s48I?k|fEamDM50u&BQ8d9vSE-?Rjfrs<(1v11?w;ISK2 ztLs#&>sV{Kf4@Q$MUR(|+9PVY6l0F&zsYyB1Q12hq==kH$hSH#wsc2VgkFctH81rB zcLh)^7Bj`-mq#5(&mx>`6g-Y&;y6ZCsn_eIY1*I`)lJ( zt2zc8Y()J}4OnWm8fls|%fb;OGM>$5Uu`-If*{CNtF?Y>`3x8mkxV0id`F&qzJp9A zL%CdLb#;X>3~AC+UJ!JxP?-36e0)6JIwv-(dv$g77|0bdyrQa2pH8V%Vr69o$8m_` zge2K%57EQca`wS4u?VbhlOPC!EF=R8mwdgyH=W5eg4>yuCJ0L_ScJu}Y=Vxk2T) zS40_9Xxr^ymVQ}cxwO1Zf)@6VeIOHY9Nz_Qx@x(gXx~n{Z?$r{)Jo7N*=Z5I1Kczs zya?n}Re3&U5xP{gdm|;vw}SjCBDLodT&b$Hi;kF|9y~)+RMqcPbiYw`_cFQ~qmB?; g%Q85>^S=Rq10c$=Rx2o{+yDRo07*qoM6N<$f&c^kp8x;= literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-color-picker.png b/gtk/stock-icons/32/gtk-color-picker.png new file mode 100644 index 0000000000000000000000000000000000000000..b6c1b90ebe5c62f9492ff7f369177e787471f83e GIT binary patch literal 1496 zcmV;}1t!{pgq9;3R^QwF}Uv$NB(v4t|hvWtdg z%O2-UEINHYG;@CatEenh?A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Cg->lmD z+7%UnEJL%5nhWH&M0mn@3_ zB7zu$DGExF^zi(=UNp@?2;mN}-)gSjhHry^5f%=v+LX3@O4kR@W#cR}Hb!hp|1lTn zIHB##)ml=P5sHH2l;YuHu{dvvxv4lVUs;z>Ha^xlO7T&7hjT7(BkG)T`l!!%v z^!s2fda(uTigj!KBH^q>ih|VdGgIZn`*c#*WtGw!7T$WPvn^Y1NL~Ye4SuZZyy}$< z243|_6hS}=YvsaLi~$i;gd{>ThGZ?tT4I(Fvy7>=`baf>;(h!ygpZCwxP7Ynhd1Ga zcc8i7ri#0?J&q;Z-+|Xs)3|8}+mExX|IIARi(W6wjUlCkjd9h{RM(a#V~Ez`t)+I3 zBk#k9P1Bq-&Ehnrf9}KYK88o{ex5oCM0;tAo+-E)B!zi|M@coSQtF+C&_7qz5@abN zjWGmkSz61vF`NRARP``Mz2|-UxM@y~V!U^t`o@QF`#t#R1kS3}`Jld7waWlz267DH z)74RHnyIE`N`9V_U#eCM@TIDri7*E<1wB#q$EwxClx7b?I6esBlZPqYeW3b}ci{Fr z@UKtdv|1h2s&;Fh0F@^kR2-`_-?#_k5nQAJgVP=yDoiTXNeP=7j06f+ zKkxw-=P;YY<0(uZ!^vzVSOZNv`mXrbIUQg0m5Z+19kVu>q*IAaC+g0%e%ayl-}32a U7G#?6umAu607*qoM6N<$f?J8WmH+?% literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-ok.png b/gtk/stock-icons/32/gtk-ok.png new file mode 100644 index 0000000000000000000000000000000000000000..c7a9cc1b52cc89551e04290d8397be647c0f7f28 GIT binary patch literal 2133 zcmV-b2&(sqP)W(2su|E_;*P56DMG3k>3u3mEwmZ8syF1_Sy!Re|yzgv>VON20 zlPCAQpXWK}-us+G_!LGemEv?dZTs(he05zgT=VTlYmERP5J1f@3jijGd0v5G?$e(J zfzi=*1OUF32NIo&HeR>9!^AvCSqoSZ7#sPPaJC|N^K>qe&rd(7KVis>bUOMiD3cj7 zOoW2@!`^et0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tn{O|`qLU(sJj4{z3pmm6y zJ9pvWcMd{pUE@LvV=SySFeaKdjKIsqkekujm=$HMi3q*Dy?E%MFGr~cSZm>VF1Bvo ziuU$)IF1XzHpEhe1p?J!$kyOXYi0o<1YSG&8eV_nBz)h8=XtQ!f{37$!XJ;lfIpAD zgYSL!`*`G$O;D-?W@;JS)w7!iU%jA|4vrmv5yy_dh%gMR#idq0kx1Z^o1frUzaGNH zix=R!UL-?J3tLMCYQe3wh{qH7%e!MZb@~)KIy$OlcKI;IARdcDDTUuX|69z>%|ZxS zfe(KC4w%l(;oHiP5v8VCE_d_w52>3_Q=n#D^1@ zygdomb(>n=ObOR@@sGcMfFKAW7XFtDs8t{`CU4zBNtGI?Ykd*2kWylLW(M=~_v#8) zYZtT#J^)zs{kok0JXbO1GJ{H~W>?V9n+0Xzu4EF{*lNnv&iZ~qAYu@gi%wXoKY^BOsTi$aV2Tyl|WX3f-weCYaQhCIYC71d9k|AP+>+04_mfuz2Bb^FpEZ?69WVk zi;E@*f>2uE+_ev{eQVvi^`IqZSeyLs}+RrXz@vm!F z8Dz&~X}<8|>(~GN^7Qo7mKFUm`HZ2p#zHPPo|`ZJgaGiSO`E!(c;fMWU?ju9V5NS| z8nVlf6%K=}nH?P+d-w9?%by~X$;1F8qKx3^DZZdti;>7=GBK)bY~H+CYOU%2;Q}e8 fy>#i42B7~7#((ga=H}zt00000NkvXXu0mjfy)-N2 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-orientation-portrait.png b/gtk/stock-icons/32/gtk-orientation-portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..900eb7617a563ec2765698d047ab62176b1477a8 GIT binary patch literal 1664 zcmV-`27md9P) zTWlRi8OMJ!JG;j|KF)C*uxZ@XNo7Ywp%q{!iuwR<5R{a@v}q&p63SE5NTg3ZfYch3 zLREnThziM3kV*VNYAGO*;3O3n2_uLNuCSXLo0Yhdo!<*GP=C z+S%*>yZpcZd?NsQdwXSHU!Qs9`>%9{dH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I(Yi}CSsEsDQ!O6M1PzkVEe zBn-nkyV;%TM!JB&^Sl7~!|A?np9gd?Ke~E5qyU%y|8R>~0^olkoX>pN%j8%90000< KMNUMnLSTY#A}59b literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-orientation-reverse-landscape.png b/gtk/stock-icons/32/gtk-orientation-reverse-landscape.png new file mode 100644 index 0000000000000000000000000000000000000000..2dc5aa91c66a597e9fbfe8f5ee82cd5ef63d9cba GIT binary patch literal 1611 zcmV-R2DJH!P)hdxj$>Ni*0NbOvnm5!3I$((KfaV0ipoOLkJ4QQfVLhWGQXs{<<%yit$^i z(kDMul^a!+@=)Ng= zjrL0S?)mw?@0>G3h!&kXb&BuYxkFgxb>hT{kce!<4@O2t7@za9);3Ixib42m)_D60 zI#`Dg#w}xtvU~BE3?kzp$$&F935Q42W3|I!hL|`Jz)*5C83n5l)W+9lR6fC7=$8p$k zBn!c;L&fnY;- z@B7H*@(6+eL;$k@5kZK^jxiS2Mw^I`h{s`!K_SRv^XAQxne~-xfA0VI;YVl2#>Nf} z4Sj-yWM;UYS9Tm3F9QTA1t!i<;Nr!LSWGVh0364GPX z_j71#Z-KBdyLqp^di`?$f9B>+kB^TZ8XO#)9~c-AGAaZr7e&drwH7ho$K-pH z82|Nn39jFZ~Z5O#lAPU%h!$)@u!wfdCe!GULZ`>G5N&Pka2)5cof8qlFvOZQPXGYUP5cqrYz8U_5U2oQ7=oEa zEEY4K=Y3Tc0k1J61R)3l^mO+i5sxFE&lfp<^kQZd3I%N2x)m=xzaP`nQ?RgL;vzbL z>$;emo8@;eoHuneK;=x7Qt0T|fL*(G;q>X#Xl`zX*80)e8w1C6uz&vnIF5s4G6^Cs z+m7fFB}$o#U9)mDRP=!;h@(ed!_!?)Bb`n|3RxEkW(E-WUV0WH;&fxjM!fOUH!yL20+;@D3A3{^WhjXV&wk}u96azMdVBkz zQ~+xMW~w9Z705N>va&Lm8M#~z@pv3Bz4#KEo10;bDSvB>!M3g2(A(RGASe{kqbgeK zIsa4&s-Th*g+c)*fBrMvymsIyuw|?^$&c1U7uIp8lELGVdLJf6{3KceTZmosy z`?zuA25!A~3u_Z=%LtUT;&~p+M4-m8!}*2ntXtz`)S~_oN`#-`fhYsVx^b|bbNB5QZ1KOfTZ^cmKv9dqEZ!mcDoI-urLQ&dz*kRWBxw zSXyhOGnreNh1?Ga0B_&Ez5U?97xsbC8Y+X;x|-EcVaN)HLDoDxckaTa+qZ9jgk&=5 z186E%1Q&nB=d>$*G$oTspGq%w?ARf-*7X0NKuT#RCnq%k{a^3XsaC?-C0+mk002ov JPDHLkV1mRW162S3 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-orientation-reverse-portrait.png b/gtk/stock-icons/32/gtk-orientation-reverse-portrait.png new file mode 100644 index 0000000000000000000000000000000000000000..fdc96a1baee3a2dda065e42c8f9278451aa6d8cb GIT binary patch literal 1632 zcmV-m2A}zfP) zU2I%O8HS&kJ?D6xuCsO}>}Kt7(ZoqmK(t-kwOS-fs@i@mDkA2o6Ou+XK$ znIFto=3Z%l0ED%c(b3U$S3kV;&)&^j?%lFwo6Tf0!t*?^pDwb+B88+_Dw;RndP9DA z?dm_edb@`X?LTy@DTtFNPo@B#e|}`wFOK}&&dtqgYpt=LvH8AlC&tJ1??zv-KmN&c zua1t6uCK7XTzok`J}v;PwRbv>W82!=gfT`~YcQtP<2WvNjn({Z-b|=` z8$;mxl>8Ea6UVV$cgG!%2F2h}A;j;8hliae0Ftu3{?SKCt{ewr49x&bA-H_y3KuSZ zK%^AAzP_7#zI-o!5a7Blfc)3H?-*l@SXBd+=D7|+h^E17W(1{D2>_)cwr<(RgAaa% zQmIHfoyHi;zt6ubV-+{60;(kl(9^S#bUNKYd9zkYM<$b@yQiBdQVl-R%m)^&1+>=W za@}m++)Jp!s_2?EAp~IbyQwVqo*_lU~STkiIGzB&Byj45Y-B37QDjL zp51$J92aAnGbdN0Qz=DXzK?y6f18Dc1?ru0@w?VqZr{Gm(9q-b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iORsqSLXMMjb+W$=c4dghLokwD%1poj507*qoM6N<$ Eg8AH|CIA2c literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-preferences.png b/gtk/stock-icons/32/gtk-preferences.png new file mode 100644 index 0000000000000000000000000000000000000000..a9644f9757c81d8286a81d389bcb13a4d121fb93 GIT binary patch literal 2558 zcmV z5ztnKi5)dgZL95!P3W{*XNrzI)`}HKP^v^8dA~M~-N0s(?C#xr&*>jA7Bf|#o$>s6 z?l<@MJ$~Q!`wnoEM@mTmplKS@G>zf=Jd=P=?tU_J@~)!3f&-xM16%=s-Fu#XbdUbb z=q~N)*LUyUaog1IH+yc#^ZNRF?)7@DXS7{gIcKjKaRUSbqzo#G@dkD=USz_nEDn(QAeg7aKQhk~3$fi_Wf&MANd?PMe;1f8nZv;71>xJbyER zUDr_4G*(qrCG~2pl86q)O+)6d$fuH3t0}>efX=Q?dF1`Si9AWS5;L>0NA!|n=&gS?T?D0R9Kc}m98$~X=!N? zLLmK?47gp%=<4Z`uhzXRj982dqM{cMy!cUleFgV=8?5hgg8eseUDt)K>tgb*uC6Zb z?-_j1G|dJnB|m=bxCjIS03ElHLdMtqLT?XqUgn#JN~9I@CqQj^ob z7|GAheacKLe)W@&PyL~xp;=DlnWkyX=krOY({?u)9cS0}vDfRhs`u^PYE$jC4!gZt zuhxF*^?EIj$HO#DbLhHmNXxq9aMLZM^x=3VPY$)GI2?+z{2GplDJ9^#uA4PA zda2#%a5G)kh0}>NV)Rlh7L%)rN|1Zca+-I?owRt#5;6<}03PLxs^W&Rfpd26q-g^QOiatVpJu#N&ib91wtI?i=nH}~&rOw)vEnqZ8R)%EjX1V#Vk4nb(3RsOme>XvCAdY`IuhR?Zj^iHeE}zI(^+3qEkZtW2=0Z%3n1Pj2o6cyM@VVi4uzRpD;C3!=k$Fq z96RS*tfoO5JlWl}U2L3d9#jvoC0;qV9*^rNGz4UMOpL@XNP zLWnccjNM1yw)svj6WXt|WK~hQkz|DRNA&1an_uku`D2W;SEG?Amgncm%#2Jr`O!&? zjD%5CRE)AU>o5@TqqD0Wjc1xfcqB|VMfs;?j&I(%Q}6%Qji{o&f;UXjaw#QMRaJ2S zLf3U!UtiC>Uaz&|=^c+V$U}^nl9G~w(a}*VEG)v>)$1@YMs0``@AGnG%z%Ht<(n_XZ`5*vqjlS1N%lJ=B@e5 zSIDxp<+w646`f=&pnrT+Bkb=WO z$!`c;CjsbK{P>C8f+@cnjmnwx)0wsXhqv*9MX7Yp+!S2y8pP@5A)LE3C^D1A;Z*T% zci%uA0qci{hbeJdqRhz5Aj`6FHFO0D4krro3yEKsY(A0;wjEhKGjGdV7ISQYX^^*Q zhTM8@HlLno!+6w0%#v7q`waN|1M*T&nEWF=HWW4@H5WtZEbBMBEph($07*qoM6N<$f+yejRR910 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-select-color.png b/gtk/stock-icons/32/gtk-select-color.png new file mode 100644 index 0000000000000000000000000000000000000000..7535272453ae0b7856003aade5f8f72d60303357 GIT binary patch literal 2072 zcmV+z2EB*a{o>;p!br? zvu@)Ct{d(n_Z|^#2bhpZjp?_ZqarnQz!JmKLMn=*GVn2yQlcnT5FCIJiFB5F&)Weg z0vd=W0D`ra#934`|i4Q0>I=E>lENP$d93-oq#|p+)5R41Irpn9|I@2(FLW9p6V+Zbw?-8o#w9 z1J@3qh#s3^FT6}T^BQ-4@o`pPKaM%^6o~CG@=67+KCfgz+f0(HATkI7s2BncNiwVi z#FpqC9;ej10$B(+=a2}JDy9Skma0inVOMBXu;c{*5ky=$Xr!UayhhO2^-s}Ai-^-e zPne={_8{}MNva~m;1PsYZHC(98#F`0LL)(Ylo;NYJ_9-q@hwO%QfUJ)w9;x{!zRqS zME;YOQPX`23aJaI6DG`?G|r!;Q9Fo;!MGHX65;X*S|?thS8`gDN=pPMf^VY`E%NQQ zsc;0UXLPUt5IwK1*>!Q~mOHrhgCEyY?~R3wOQ)Pl>QatRo#g1;5jJeT5nEk>o}NRG z{}rMq4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tPjs@QW X9!I-0GHxQh00000NkvXXu0mjfjq*A| literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-undelete-ltr.png b/gtk/stock-icons/32/gtk-undelete-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..9ba3ed2b1a7926b1c8b2b03fb1fb6aaa12c0ac05 GIT binary patch literal 2853 zcmV+=3)=LFP)45Ab;p1AzHK<1jmvOIN+Ky)tF>8+DO*a-Sg`9FPU@v06BlXHeyCdnL7N~bYP2a> zqWzG3Nf)DSTGT+11y038Mhd5~TDdlD%hoPYvLs8iHi|=XIOHsx?d`W8NI8ye#d#ke z@XqhNbN}~$&Jp~2j~E;rl%u1g!R;4&_wMapsMdcs48q@(n%t^M*{+oGT-TeHk~5}Z zzS^FQ9~>JSoBd#*!NEaobaXTX6oB|d^x&YzGI;y;?Ws_=9@T_=&~}|CJ37+sYwzl# zt+j=S6(I-$s`Wa#+#J_$Oj0f{mQ2e$tKd!Fb`O94cOHLZWMm{`0 zaSYQyO37lmav~&nZsPp8?<=(wU%MlEcvvzv7H-j}pT53cT8^;rMTZSnGACG724 z5j?zqK=kzVO2e>3z0nYk?E(Tn2t=h)k(wq%cUMM5qml5+m8;?Ub!+72P3u-vD)lF$ zvE&0QR`AoUn#VOVo|uR%S?8L+-#2NnHlVc zjb)j{VlgtE84`&E9i1Jd)9s{EN!~holJRpFczWpZkdW}$sd4??%U3S7G)Eu$xC#g$ z92gi#RUPN0efRB7?B2QER|ws*ERjkjDVG;HefkWS-@Qz&R>SvwY}=t!Dv_Paa_iO< zl}d$FGD$QVrLDDvN~K0q#1hG5T&`N#?G?+F%v3Jlp?$3AE?!j8c+37oBL2speqgUM z4O25Mi%29w#A>3wt(DG9C(Y3)07@ysa7kO5reT^UvF2tvySqpv5}2mRita8f(iyGH*A9~cFMuB8-8>AJ3T!w|Zr6R|8z!^AKQ(&-L1Z{AFySR^-_qfjVd zJ2v4GfaZ8Ji9{S-*O5ZdWLelKeBVQ+o<=Y zt6>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eO(Knf2n8GpEAeW(PY5oKOOaCuWDzpGye(l@Ai=hY~edqMa$zz9K&@^*((AD<^ zB9RoDu4qoIB+;^oWa}1Usf}3CKK!tiQduxF8<5Kf_@O}gS)>+_Oj(Gqf$DsiTgHRwK48j=DtB;J~A2@(EG~`Zv|8LtL zp2^Pt_^qFh?(N_IX}_cU5nY8L@0>ZtJ135#8=&iwcrrmMy@qw0x6|3%OL6AEP@)yP zTBTI<@kJVx4;agpU-AYiC9SP3OwY}ul!^dp2{1H7a9|Ma_r5tlv$3!B(R@Dq`H@5a zr{9`*D~QE)JjbTyBvGxuj~Dv_H}YE;KRwBzpS(b|qLEDR#)_`s#(NXg8WCLCgA_gp zxinjZ0lx3k-j=4NrGiuRkdJ(0Dk?Wsr*mvL0L0K0Y=BM*p;_*V@d!EeB zn5^FY7pkRekFdpBn$r)^D2}7NEE~4&#IXfO4v*nld#MEL2>b?yX;N?0kwVhl-A!jE z6P`GAM!Y+5RTT627aH~2#b4@%BV(xHVdS^Ig@5=MKij!ctgI{)chqaeAUo^H_hwtg z+BH4F+BGXkwswg^_6W&XiA`HqbNuyjuD(|$+Vh7PMiUXsB-R|Gt+h>cb#|#ny`het zJS8t(xhfV*#UJLfQ$GcAA8E&9W2j+}3=n?rAcwZD6HQGzdmRt^KmVuboWF3{DlXQA z&LXw!C_DPs(P((#(N~X$cisD}%JdAVWIPha;tAz?zQ|6`h%@8o#fh`$#q{*-%}S~8 z+|-ThF95T^^sidYp!qHOS8|P%IXy)oOLeanA>y`${f*>#*ZElYj%1fQIyLjN}=8KhTJtl={2t-ApW>pYQ zI<>`%3kwTV%RtrI+Ugbxg$CdQO8h#z`S37uWP}jVzcQGPZ0O6s+|;D+^L?Ql$2xiXxZn(~0)gAVoo6cukMH1*2;00000NkvXXu0mjf DyjQ9u literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/gtk-undelete-rtl.png b/gtk/stock-icons/32/gtk-undelete-rtl.png new file mode 100644 index 0000000000000000000000000000000000000000..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UHNWN=j5HMZ(Cf6M}W&?V`CC^mM3YWJuSt=dr$!% zFjYdmmhtGYdL4j=2ZtGac!-taGXMVg4m*c-5zOfA?j;xHdGBvm1xWsD6=<3WO~SSo7^j}!2bPMaT$#wRN4}n7NGk8kRo5BTI#TJjC<^Hy3f8$ zH zq*O$XYp^m$(GkH;`WW<_U@(o;;YzO^Z40WTvrd8B`1JrR#hFQjW!KH z(yk+a~rxn?7RD%5HqmL_f^|BY5CWaDmb zQvlNDR8m&kGE>C02Dw(Zq^hWMYjhyZf^h!;%#2c8!h28RlXb9PX-zd!g_NqV)4$0hzJ&}v!ZMOJc^>W?rP0FxeGuDcLPv$jPBXjmc6nG$DzfD z8KR1XKzkv!`-%#Mf}|I{c8>r3n6|oU41y6FiP!{?`YIF((wyCUug!lL55Ss~tAM0x z*qFNM3y7AMmIS~P)G(7QdqW5h1c;e67j;p^z&t?#mX?+zT3A>xfO=BBzFJXqtsfQ5wx6F|qu$KCw=yd0Z;VP@H-5B>002ovPDHLkV1kt>355Uv literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/list-add.png b/gtk/stock-icons/32/list-add.png new file mode 100644 index 0000000000000000000000000000000000000000..2761584e3a680490af3b8b0f733312707bcf8ae3 GIT binary patch literal 1224 zcmV;(1ULJMP)S#M+tV`wyE-F~*hyukC;e7EQ}xtS)q*)MdElOp$j!i?aYEOhf6 zvcIvv0$`k#)AMJ*NSG341`<#sl&qRjo;(0D1~(Eg!bot=8u&?@?TJ42`=}5Apb=^W zl~pzjW&}iFVMpTgpYD;0Iu_mJ7a8a9QDy+Rw6s)?OQ5v+pIc=h&~7%%c;=Gr?yrs& zGjRO;XU)b7K0T5zaAT+c5ONz8;<6^UJH56D#0Z$i;AE8zBg9d9BQBkK?=tO9L!2M( zT9;uvlxtT$Dm(zB2S%66ZFzTfcv}J4rI))92MIy%s8$si^ixZfXPvpa;Tfq+Cp#^>XoiGD!f&?3dm1TMCLpY9CP30i=t z&Qw6A46Hajm0lZn0w;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F^5DVl zZ_i~i|LEvw4?p*_y~5}7v+3k@%%x|clv@ipVVuS^WO2s~oHCb{67`F%SRfEUI+J!zzJHPr4Gzsm!WH_VLvNkdb)Ailj>>Or%lGbm z_CdoczPo*If7 z`o_#bB)c+p1tXu1U~Fv6F$|;c^5~V{j*N_a>G%76hGFCZm;fvQ z&T;?*fER#o(KJm9+O|yqsLuO4J7Tr9KlBHD--$#b>#D1xsH&<$C=>z!51?2AV3e*`bPl8>%~}bJ2Y}Dx@pvuE5&&pj zU0uz#?b{kdq0kP_SuKEYsQ~62N6cjBvzI5nn7A}GH8lf3csw3%S=ORMYneHVHIaP7 zmoo#vVzC%AO_QfmDFHx~7T_h2Shgq!z@pJ8(=<&alS!xay!g5=^D3gjzBp5+xlrP0O%f5{XEB142lMSu77gV!|XJzz1XiZAbk8R4JJw zCXw0YD@ABU3thM&hG4OW%%ZqOUOs7*>eKwoT z41lfHnog%&gAJ{inHkMY*Rm#IW>Uin$=B5pGvl=tFf%^*@xkclCqI1?eD-dVB!PsD zMnfkZ_uc28e)0I|=tyR>8AyiX<8SX@M$ukK#RbglD^-2|y3IBbknwn|A+1VM~-QN#MoZ7=jkJJJZ)rC8%3e`>)#c{U3 zf5#@1_welLGoGKHUv6)2Gs`lPwCfV!)>cQ2a2A3lNh;p^Kte^tT_vDOPxYBMpL&E4 zNK#2U01Cjb-DQ&kBXwG&4kCiwM}q;PlE2#9+p{>1B`|0X&2dFg33Odk)*1;U+Hv*d z=LCq3b8bD=2qB_Xam^K2o&pmw03r%isrLLP z0*&_pC{#s|`OMNZwKPr5%#744A*50OSemAY2Jk+BKWmps7T-6bC`$YN{&|7@5WoPy zd`+nlfafHC{r~+jX}ZrB#@pY))v<5ae{TH+h=4sH_XL2D00000NkvXXu0mjf5~j*f literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/media-playback-start-ltr.png b/gtk/stock-icons/32/media-playback-start-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..c03fd1bcee6f50550bca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(+is2o#gw$=g9*xGV zz-Ty~PDMn%%F0S_c4qdml`B>k*;7*IocX)upsTV%?A^ad3=Iycm}m<}M3^9i7)i|F z2p~|<4S8P#hT(8HG$QggH&+hk<-M|R&8l^aCQq4Cbo}_S<_gyiQQzx)rpfQ8`iE_w*BJz$qfnn6w z*Bi64vcdsO+ErEgd`ruzg7EOLG`~+f@&0?OUI)D%XAl4Y002ov JPDHLkV1i4IkIeu8 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/media-playback-stop.png b/gtk/stock-icons/32/media-playback-stop.png new file mode 100644 index 0000000000000000000000000000000000000000..6168a9a19ad2eef49d12fdf5fa2d7ba042cb5efc GIT binary patch literal 822 zcmV-61Ihe}P)o&oi&s^Js;X8yPjq)a zSBCD+P3zg?35k{WAKrg)`{~cG+U05m-6GP%Jk_NrisjYS)sLsAr_I&?s_L!0d&kvx z-+%jc8Nv^t0La}4>At_ayK85&+2?0xXY~#M08&7A2N>VH`6d=cA@IR9Oi}VJ^RNTy z2%+@r>yP~Tm!Iax$Hy9DBuU>2005XORD(ueNeBV|w13ND*+8iY0GR?yx`Kp|00?)- z!NGx-ArKCkOeU7mtpy+tADo<=xTru?B%26}WrO+rFU;#Z)b%{|rq1IUO;e+8YBY<~ z+qUha#Sm>>oF@SQ=U6NjB9h(_fQmxZMqQyQqjBn{1`~x)5;Fjf^hh_A`y&A7=gGrn zLEOEQxz{@BErSe9p$N(Evq{p0W@eiJ*b~oFNv$JsC9vkX-?Y zF;B{Ar{ElzKz@c)HG???kRhIk=&lSn02MJA*R^y`A2R`fomoU6U`l*crXtcy;O>vg z@o5Pp?SDDvfr-q3WX&=5K^L?`HvrgK0yQ&n_j{U4zIH$$?6V&La6~xoF|eBnA=)iM zN-C|+2jfhW>bVNienWI+=-h_^2f#x6y>{63diUQqU{?v96c7Fjx(@>e$qYE)aJZ-5 z@2ZTT6HW(W?>YGB`vhRMp9D%30A7aRhldAvb@U4Cv_@AAqjA>W9hj68FRTDbCwGuw zR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# zJ{R1v=xi_UyH4-$%Xi z0AQNBA|gn>$Q=Qcm6bVW&6?Hv?zXMVYU^rurlpOuKmAmu+0xpqZq(HRAh1#(qRxk$ zi3!2N-P;%Ye7@ajX=%OkfPf;1I@S0`03u=o(7vG{e@$a!eL?!9$w;3x*=lTRP=SUz zFcE|ZY%!P!R@iB4}3V=i;0>Gdx?`>XZ z(`~CVo}4OU$EG0=2=L98MzB(V0G3!#ia^W+2rSF8>zZavnVy9)DJjy>5a6b6cxDBY z!aYhU#eB;}V7J@N0Q93rk0!M=H@^}e7mvrsPcYj;A!==HhGGT93Lt_a1ttaJu&kzO zQfzE2($dCRZEYcH?ujSrnuA14!C;uZ|os(zxRF))XHo(f~4J zVw@mi5D1DH6h1u|;hgHa-drthfKsX>eg$F{3Ky=P z5EuXR(nZS`U%v9&+2WF-9(d~7MeN}#K;5=t!!Sa-cI^sH96zz*r5AIu{r>A;??13l z^ZBaH__zejEfVy-O*7@6n3E41kjR{lyq(F>bF+(#B=!CiimKx zDY#7ulZYAs)V=ZAn%9Zd_JfB?`1I-1h#ndvHr)=9umT!%4S?0b*Z0N)fJ4`NPQh(v z5m6n0rredQHVz&K#-!VSN_{5_l3>vf38a1lusk;EQW o@_Xj{ZH0w}`atsk+rMIe0WF{#r%w4jIsgCw07*qoM6N<$g0-K|2LJ#7 literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/media-seek-forward-ltr.png b/gtk/stock-icons/32/media-seek-forward-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..fdca6f03199eb43e844978d5eabff844643276b4 GIT binary patch literal 1441 zcmV;S1z!4zP)gV0gN#>{YubPX?}(tzv@P!h5%!C?$9bzt~_gou7v8x`gl z=z>Z{h@yrsBgzox5QGhJU?STP(I_}rGKPb$bz8^UwY~TFp(}1q7cj;4yrT@^$m zh=8)PG8XRTX!)^1HEbV6%Iy>_i=_;$R%_l>{+6_G{^C-L#S#!gFd|Y$?Rzx*#2iRV zOB1r9c$4&cB{50baQ;G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;fNdW(h)5`p=fAmP({<*N6Y^ok6io%q+6+@&00000NkvXXu0mjf{V=($ literal 0 HcmV?d00001 diff --git a/gtk/stock-icons/32/media-skip-backward-ltr.png b/gtk/stock-icons/32/media-skip-backward-ltr.png new file mode 100644 index 0000000000000000000000000000000000000000..d49f015c729c3f385845cc50b02a7d1008bd76b3 GIT binary patch literal 1491 zcmV;^1uXiBP){y5}E_8ID>3EY%L`y~FY#+?fvSrJtq@=`IvGV1`>eBjf_zIjpea5wI+eyV%pCSZe5fB_g00U)+*OTtcw>#7hSfj~fdudAx6lJfF$x3RG?uwrHT=3p?mbmncdoTAA^ zFvemc0y8)b2C5N{$BF$hW&#s~hyVgirjew3B9VwGEiH9+ZrzzvUGv`7tgNg@Z=Z9g zJz>HGX^XXzx}IT}OiIz3RKS!CLmd#P=WqZpwlM%uR#s*$U%ot1Q&SWE;>dybFB>(g zXy(k>c79%-Y5L_j0#*P+1`h?GP(PUJ>gxU(@aKr-(?;w?Pd)-$Y>CBU!A+YsB`PZ` zZ>T@=?andbaM9g!=h?YAIp*gR%}6A=!OXrm0VbkUwob)>FdK&B_|+=8SYaF;5(