[Vala] GTK_CHECK_VERSION in Vala
- From: rastersoft <raster rastersoft com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] GTK_CHECK_VERSION in Vala
- Date: Wed, 25 Apr 2018 23:34:55 +0200
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]