projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0e375
)
psppire-output-view: Use correct enumeration type in call.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 23 Sep 2017 17:46:50 +0000
(10:46 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 23 Sep 2017 17:46:50 +0000
(10:46 -0700)
gtk_widget_override_background_color() takes GtkStateFlags, not
GtkStateType.
Found by Clang.
src/ui/gui/psppire-output-view.c
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-output-view.c
b/src/ui/gui/psppire-output-view.c
index 2feaf90d62cc37135adb01d757f8c0d6bcd3c338..f30914135a6a1fff3e1e1ecf090fb20a6b9c6707 100644
(file)
--- a/
src/ui/gui/psppire-output-view.c
+++ b/
src/ui/gui/psppire-output-view.c
@@
-183,9
+183,10
@@
create_drawing_area (struct psppire_output_view *view,
{
GdkRGBA green = {0, 1, 0, 1};
gtk_widget_override_background_color (GTK_WIDGET (view->output),
- GTK_STATE_NORMAL, &green);
+ GTK_STATE_
FLAG_
NORMAL, &green);
GdkRGBA red = {1, 0, 0, 1};
- gtk_widget_override_background_color (drawing_area, GTK_STATE_NORMAL, &red);
+ gtk_widget_override_background_color (drawing_area,
+ GTK_STATE_FLAG_NORMAL, &red);
}
g_object_set_data_full (G_OBJECT (drawing_area),