[gtk+] inspector: Fix property being "display" now
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Fix property being "display" now
- Date: Tue, 31 Oct 2017 17:41:04 +0000 (UTC)
commit 2740f5eeeee06ff1cef2bcbe7ca865f21ea8bb96
Author: Benjamin Otte <otte redhat com>
Date: Tue Oct 31 18:36:36 2017 +0100
inspector: Fix property being "display" now
gtk/inspector/window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index 8134d50..e771184 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -286,8 +286,8 @@ gtk_inspector_window_class_init (GtkInspectorWindowClass *klass)
gtk_widget_class_bind_template_callback (widget_class, object_details_changed);
}
-static GdkScreen *
-get_inspector_screen (void)
+static GdkDisplay *
+get_inspector_display (void)
{
static GdkDisplay *display = NULL;
@@ -327,14 +327,14 @@ get_inspector_screen (void)
if (!display)
display = gdk_display_get_default ();
- return gdk_display_get_default_screen (display);
+ return display;
}
GtkWidget *
gtk_inspector_window_new (void)
{
return GTK_WIDGET (g_object_new (GTK_TYPE_INSPECTOR_WINDOW,
- "screen", get_inspector_screen (),
+ "display", get_inspector_display (),
NULL));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]