mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
update cmake minimum requirement from 2.8 to 3.0.2 due to usage of version comparasion of if command
check valac version to decide whether or not to use new Gdk.Monitor class
This commit is contained in:
parent
19d60ad66a
commit
b2fae367bf
3 changed files with 12 additions and 4 deletions
|
|
@ -330,7 +330,7 @@ private class WfdCtl : GLib.Application
|
|||
info("P2P group formed");
|
||||
}
|
||||
|
||||
#if GDK_VERSION_NEWER_THEN_3_22
|
||||
#if GDK_VERSION_NEWER_THEN_3_22 && VALA_VERSION_NEWER_THEN_0_34
|
||||
private void get_monitor_geometry(out Gdk.Rectangle g) throws Error
|
||||
{
|
||||
Gdk.Monitor m;
|
||||
|
|
@ -441,7 +441,7 @@ private class WfdCtl : GLib.Application
|
|||
}
|
||||
|
||||
int n_monitors;
|
||||
#if GDK_VERSION_NEWER_THEN_3_22
|
||||
#if GDK_VERSION_NEWER_THEN_3_22 && VALA_VERSION_NEWER_THEN_0_34
|
||||
n_monitors = display.get_n_monitors();
|
||||
#else
|
||||
n_monitors = display.get_default_screen().get_n_monitors();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue