[Vala] GTK_CHECK_VERSION in Vala



Hello:

I want to do this conditional compilation in my code:

#ifGTK_CHECK_VERSION(3, 22, 0)
this.menu.popup_at_pointer(event);
#else
this.menu.popup(null, null, null, 2, Gtk.get_current_event_time());
#endif Unfortunately, GTK_CHECK_VERSION doesn't work in Vala. Is there an alternative to do that in Vala? Thanks.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]