switch to a version check in termite.c

This commit is contained in:
Daniel Micay 2012-05-31 05:04:57 -04:00
parent 5202019b41
commit 160fea50bf
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ PREFIX = /usr/local
ifeq (${GTK3}, 1)
GTK = gtk+-3.0
VTE = vte-2.90
CFLAGS += -DGTK3
else
GTK = gtk+-2.0
VTE = vte

View File

@ -227,7 +227,7 @@ int main(int argc, char **argv) {
#ifdef TRANSPARENCY
GdkScreen *screen = gtk_widget_get_screen(window);
#ifdef GTK3
#if GTK_CHECK_VERSION(2, 90, 7)
GdkVisual *visual = gdk_screen_get_rgba_visual(screen);
if (visual == NULL)
visual = gdk_screen_get_system_visual(screen);