summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-12-10 21:39:53 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-12-10 21:39:53 +0000
commit14ee65b66a71fd8e9f873986305b78b135f0472c (patch)
tree9d6b1f93b0a4443bccb65397c06f20456feaf14e /gtk/gtkstyle.c
parent329c090ec18cf162db9d09b98f007f8979238116 (diff)
downloadgtk+-14ee65b66a71fd8e9f873986305b78b135f0472c.tar.gz
Data constness fixes. (#75754)
Diffstat (limited to 'gtk/gtkstyle.c')
-rw-r--r--gtk/gtkstyle.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 89d8dcefaf..fe0198af41 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -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 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_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 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,