[gtk+] use the GdkDisplay get_setting vfunc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] use the GdkDisplay get_setting vfunc
- Date: Mon, 30 Oct 2017 21:04:34 +0000 (UTC)
commit f9dacd6de0f45ce531d0e0ef770b8cbd5e648c06
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 16:44:47 2017 -0400
use the GdkDisplay get_setting vfunc
Instead of calling the GdkScreen implementation, use our
own vfunc now.
gdk/gdkdisplay.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index f8989c6..febd9ab 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -2238,7 +2238,11 @@ gdk_display_get_setting (GdkDisplay *display,
const char *name,
GValue *value)
{
- return gdk_screen_get_setting (gdk_display_get_default_screen (display), name, value);
+ g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
+ g_return_val_if_fail (name != NULL, FALSE);
+ g_return_val_if_fail (value != NULL, FALSE);
+
+ return GDK_DISPLAY_GET_CLASS (display)->get_setting (display, name, value);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]