summaryrefslogtreecommitdiff
path: root/ui/gtk/io_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/io_stat.c')
-rw-r--r--ui/gtk/io_stat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/gtk/io_stat.c b/ui/gtk/io_stat.c
index cd5cea486e..0d35cabb17 100644
--- a/ui/gtk/io_stat.c
+++ b/ui/gtk/io_stat.c
@@ -2238,12 +2238,12 @@ create_filter_box(io_stat_graph_t *gio, GtkWidget *box, int num)
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
#if GTK_CHECK_VERSION(3,0,0)
- gtk_widget_override_color(label, GTK_STATE_FLAG_NORMAL, &gio->rgba_color);
+ gtk_widget_override_color(label, (GtkStateFlags)GTK_STATE_FLAG_NORMAL, &gio->rgba_color);
/* XXX gtk_widget_override_color() takes flags not state */
- gtk_widget_override_color(label, GTK_STATE_ACTIVE, &gio->rgba_color);
- gtk_widget_override_color(label, GTK_STATE_PRELIGHT, &gio->rgba_color);
- gtk_widget_override_color(label, GTK_STATE_SELECTED, &gio->rgba_color);
- gtk_widget_override_color(label, GTK_STATE_INSENSITIVE, &gio->rgba_color);
+ gtk_widget_override_color(label, (GtkStateFlags)GTK_STATE_ACTIVE, &gio->rgba_color);
+ gtk_widget_override_color(label, (GtkStateFlags)GTK_STATE_PRELIGHT, &gio->rgba_color);
+ gtk_widget_override_color(label, (GtkStateFlags)GTK_STATE_SELECTED, &gio->rgba_color);
+ gtk_widget_override_color(label, (GtkStateFlags)GTK_STATE_INSENSITIVE, &gio->rgba_color);
#else
gtk_widget_modify_fg(label, GTK_STATE_NORMAL, &gio->color);
gtk_widget_modify_fg(label, GTK_STATE_ACTIVE, &gio->color);