[gtk+] modules: Avoid GdkScreen api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] modules: Avoid GdkScreen api
- Date: Mon, 30 Oct 2017 23:31:27 +0000 (UTC)
commit 24903e3fab64f60a385982e614e26d0ce1ab94d1
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 19:19:04 2017 -0400
modules: Avoid GdkScreen api
No need for this here either.
gtk/gtkmodules.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index a5dd189..4db4bc2 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -458,17 +458,12 @@ static void
display_closed_cb (GdkDisplay *display,
gboolean is_error)
{
- GdkScreen *screen;
GtkSettings *settings;
- screen = gdk_display_get_default_screen (display);
- settings = gtk_settings_get_for_screen (screen);
+ settings = gtk_settings_get_for_display (display);
- g_object_set_data_full (G_OBJECT (settings),
- I_("gtk-modules"),
- NULL, NULL);
+ g_object_set_data_full (G_OBJECT (settings), I_("gtk-modules"), NULL, NULL);
}
-
static void
display_opened_cb (GdkDisplayManager *display_manager,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]