projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gfio: use appropriate gtk signal for draw/expose of graphs
[fio.git]
/
gcompat.h
diff --git
a/gcompat.h
b/gcompat.h
index 66fb781d1351cca1adb185e3dccc67de0184d067..cd9602ff1b170fd199cf9a15af17d7381bfaa030 100644
(file)
--- a/
gcompat.h
+++ b/
gcompat.h
@@
-29,4
+29,10
@@
guint gtk_widget_get_allocated_width(GtkWidget *w);
guint gtk_widget_get_allocated_height(GtkWidget *w);
#endif
guint gtk_widget_get_allocated_height(GtkWidget *w);
#endif
+#if GTK_MAJOR_VERSION == 3
+#define GFIO_DRAW_EVENT "draw"
+#elif GTK_MAJOR_VERSION == 2
+#define GFIO_DRAW_EVENT "expose_event"
+#endif
+
#endif
#endif