Data constness fixes. (#75754)
This commit is contained in:
@ -319,8 +319,8 @@ static GdkFont *gtk_style_get_font_internal (GtkStyle *style);
|
||||
* Data for default check and radio buttons
|
||||
*/
|
||||
|
||||
static GtkRequisition default_option_indicator_size = { 7, 13 };
|
||||
static GtkBorder default_option_indicator_spacing = { 7, 5, 2, 2 };
|
||||
static const GtkRequisition default_option_indicator_size = { 7, 13 };
|
||||
static const GtkBorder default_option_indicator_spacing = { 7, 5, 2, 2 };
|
||||
|
||||
#define INDICATOR_PART_SIZE 13
|
||||
|
||||
@ -446,19 +446,19 @@ static struct {
|
||||
};
|
||||
|
||||
/* --- variables --- */
|
||||
static GdkColor gtk_default_normal_fg = { 0, 0, 0, 0 };
|
||||
static GdkColor gtk_default_active_fg = { 0, 0, 0, 0 };
|
||||
static GdkColor gtk_default_prelight_fg = { 0, 0, 0, 0 };
|
||||
static GdkColor gtk_default_selected_fg = { 0, 0xffff, 0xffff, 0xffff };
|
||||
static GdkColor gtk_default_insensitive_fg = { 0, 0x7530, 0x7530, 0x7530 };
|
||||
static const GdkColor gtk_default_normal_fg = { 0, 0, 0, 0 };
|
||||
static const GdkColor gtk_default_active_fg = { 0, 0, 0, 0 };
|
||||
static const GdkColor gtk_default_prelight_fg = { 0, 0, 0, 0 };
|
||||
static const GdkColor gtk_default_selected_fg = { 0, 0xffff, 0xffff, 0xffff };
|
||||
static const GdkColor gtk_default_insensitive_fg = { 0, 0x7530, 0x7530, 0x7530 };
|
||||
|
||||
static GdkColor gtk_default_normal_bg = { 0, 0xdcdc, 0xdada, 0xd5d5 };
|
||||
static GdkColor gtk_default_active_bg = { 0, 0xbaba, 0xb5b5, 0xabab };
|
||||
static GdkColor gtk_default_prelight_bg = { 0, 0xeeee, 0xebeb, 0xe7e7 };
|
||||
static GdkColor gtk_default_selected_bg = { 0, 0x4b4b, 0x6969, 0x8383 };
|
||||
static GdkColor gtk_default_insensitive_bg = { 0, 0xdcdc, 0xdada, 0xd5d5 };
|
||||
static GdkColor gtk_default_selected_base = { 0, 0x4b4b, 0x6969, 0x8383 };
|
||||
static GdkColor gtk_default_active_base = { 0, 0x8080, 0x7d7d, 0x7474 };
|
||||
static const GdkColor gtk_default_normal_bg = { 0, 0xdcdc, 0xdada, 0xd5d5 };
|
||||
static const GdkColor gtk_default_active_bg = { 0, 0xbaba, 0xb5b5, 0xabab };
|
||||
static const GdkColor gtk_default_prelight_bg = { 0, 0xeeee, 0xebeb, 0xe7e7 };
|
||||
static const GdkColor gtk_default_selected_bg = { 0, 0x4b4b, 0x6969, 0x8383 };
|
||||
static const GdkColor gtk_default_insensitive_bg = { 0, 0xdcdc, 0xdada, 0xd5d5 };
|
||||
static const GdkColor gtk_default_selected_base = { 0, 0x4b4b, 0x6969, 0x8383 };
|
||||
static const GdkColor gtk_default_active_base = { 0, 0x8080, 0x7d7d, 0x7474 };
|
||||
|
||||
static gpointer parent_class = NULL;
|
||||
|
||||
@ -4917,7 +4917,7 @@ get_insensitive_layout (GdkDrawable *drawable,
|
||||
{
|
||||
#define gray50_width 2
|
||||
#define gray50_height 2
|
||||
static char gray50_bits[] = {
|
||||
static const char gray50_bits[] = {
|
||||
0x02, 0x01
|
||||
};
|
||||
|
||||
@ -6202,7 +6202,7 @@ _gtk_get_insertion_cursor_gc (GtkWidget *widget,
|
||||
}
|
||||
else
|
||||
{
|
||||
static GdkColor gray = { 0, 0x8888, 0x8888, 0x8888 };
|
||||
static const GdkColor gray = { 0, 0x8888, 0x8888, 0x8888 };
|
||||
|
||||
if (!cursor_info->secondary_gc)
|
||||
cursor_info->secondary_gc = make_cursor_gc (widget,
|
||||
|
||||
Reference in New Issue
Block a user