forked from AuroraMiddleware/gtk
Silence a few warnings in !HAVE_RANDR builds
This commit is contained in:
parent
2c8e635a62
commit
b96a05b81f
@ -735,6 +735,7 @@ free_monitors (GdkX11Monitor *monitors,
|
|||||||
g_free (monitors);
|
g_free (monitors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_RANDR
|
||||||
static int
|
static int
|
||||||
monitor_compare_function (GdkX11Monitor *monitor1,
|
monitor_compare_function (GdkX11Monitor *monitor1,
|
||||||
GdkX11Monitor *monitor2)
|
GdkX11Monitor *monitor2)
|
||||||
@ -759,6 +760,7 @@ monitor_compare_function (GdkX11Monitor *monitor1,
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
init_randr13 (GdkScreen *screen)
|
init_randr13 (GdkScreen *screen)
|
||||||
@ -1184,7 +1186,9 @@ _gdk_x11_screen_size_changed (GdkScreen *screen,
|
|||||||
XEvent *event)
|
XEvent *event)
|
||||||
{
|
{
|
||||||
gint width, height;
|
gint width, height;
|
||||||
|
#ifdef HAVE_RANDR
|
||||||
GdkDisplayX11 *display_x11;
|
GdkDisplayX11 *display_x11;
|
||||||
|
#endif
|
||||||
|
|
||||||
width = gdk_screen_get_width (screen);
|
width = gdk_screen_get_width (screen);
|
||||||
height = gdk_screen_get_height (screen);
|
height = gdk_screen_get_height (screen);
|
||||||
|
Loading…
Reference in New Issue
Block a user