switch to a version check in termite.c
This commit is contained in:
parent
5202019b41
commit
160fea50bf
1
Makefile
1
Makefile
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue