[gtk+] Stop using the GdkScreen get_setting vfunc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Stop using the GdkScreen get_setting vfunc
- Date: Mon, 30 Oct 2017 21:04:39 +0000 (UTC)
commit 6dbb1e20a66743ee088790cfe8ac6396d96033cd
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 16:45:36 2017 -0400
Stop using the GdkScreen get_setting vfunc
We can now call the GdkDisplay implementation instead.
gdk/gdkscreen.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c
index 3648f7d..9e25ac1 100644
--- a/gdk/gdkscreen.c
+++ b/gdk/gdkscreen.c
@@ -291,9 +291,5 @@ gdk_screen_get_setting (GdkScreen *screen,
const gchar *name,
GValue *value)
{
- g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
- g_return_val_if_fail (name != NULL, FALSE);
- g_return_val_if_fail (value != NULL, FALSE);
-
- return GDK_SCREEN_GET_CLASS (screen)->get_setting (screen, name, value);
+ return gdk_display_get_setting (gdk_screen_get_display (screen), name, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]