mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
const correctness fixes
found by Arjan van de Ven and gcc.
This commit is contained in:
parent
81be0b4311
commit
9b593427aa
@ -1,3 +1,8 @@
|
||||
2005-11-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* perf/treeview.c: const correctness fixes
|
||||
found by Arjan van de Ven and gcc.
|
||||
|
||||
2005-11-16 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkimage.c (animation_timeout): call
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-11-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* perf/treeview.c: const correctness fixes
|
||||
found by Arjan van de Ven and gcc.
|
||||
|
||||
2005-11-16 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkimage.c (animation_timeout): call
|
||||
|
@ -1,3 +1,9 @@
|
||||
2005-11-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-xlib-drawable.c:
|
||||
* gdk-pixbuf-xlibrgb.c: const correctness fixes
|
||||
found by Arjan van de Ven and gcc.
|
||||
|
||||
2005-10-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-xlib-2.0.pc.in (Requires): Require
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
|
||||
static guint32 mask_table[] = {
|
||||
static const guint32 mask_table[] = {
|
||||
0x00000000, 0x00000001, 0x00000003, 0x00000007,
|
||||
0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f,
|
||||
0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff,
|
||||
@ -1058,7 +1058,7 @@ convert_real_slow (XImage *image, guchar *pixels, int rowstride, xlib_colormap *
|
||||
|
||||
typedef void (* cfunc) (XImage *image, guchar *pixels, int rowstride, xlib_colormap *cmap);
|
||||
|
||||
static cfunc convert_map[] = {
|
||||
static const cfunc convert_map[] = {
|
||||
rgb1,rgb1,rgb1a,rgb1a,
|
||||
rgb8,rgb8,rgb8a,rgb8a,
|
||||
rgb555lsb,rgb555msb,rgb555alsb,rgb555amsb,
|
||||
|
@ -516,7 +516,7 @@ static guint32
|
||||
xlib_rgb_score_visual (XVisualInfo *visual)
|
||||
{
|
||||
guint32 quality, speed, pseudo, sys;
|
||||
static const char* visual_names[] =
|
||||
static const char * const visual_names[] =
|
||||
{
|
||||
"static gray",
|
||||
"grayscale",
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-11-17 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* pixbuf-rc-style.c: const correctness fixes
|
||||
found by Arjan van de Ven and gcc.
|
||||
|
||||
2005-08-24 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* === Released 2.8.2 ===
|
||||
|
@ -36,7 +36,7 @@ static GtkStyle *pixbuf_rc_style_create_style (GtkRcStyle *rc_style);
|
||||
|
||||
static void theme_image_unref (ThemeImage *data);
|
||||
|
||||
static struct
|
||||
static const struct
|
||||
{
|
||||
gchar *name;
|
||||
guint token;
|
||||
|
@ -7,7 +7,7 @@ struct row_data {
|
||||
char *text2;
|
||||
};
|
||||
|
||||
static struct row_data row_data[] = {
|
||||
static const struct row_data row_data[] = {
|
||||
{ GTK_STOCK_NEW, "First", "Here bygynneth the Book of the tales of Caunterbury." },
|
||||
{ GTK_STOCK_OPEN, "Second", "Whan that Aprille, with hise shoures soote," },
|
||||
{ GTK_STOCK_ABOUT, "Third", "The droghte of March hath perced to the roote" },
|
||||
|
Loading…
Reference in New Issue
Block a user