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) ifeq (${GTK3}, 1)
GTK = gtk+-3.0 GTK = gtk+-3.0
VTE = vte-2.90 VTE = vte-2.90
CFLAGS += -DGTK3
else else
GTK = gtk+-2.0 GTK = gtk+-2.0
VTE = vte VTE = vte

View File

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