From 33d41fccdda9fbd5c1e59951a27720748ce15026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 12 Jan 2017 09:43:17 +0100 Subject: [PATCH] Hide popovers and toplevels by default --- gtk/gtkpopover.c | 2 ++ gtk/gtkwindow.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 4a6c753c96..4d98abd820 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -220,6 +220,8 @@ gtk_popover_init (GtkPopover *popover) context = gtk_widget_get_style_context (GTK_WIDGET (popover)); gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND); + + gtk_widget_hide (widget); } static void diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 5f8e2464cf..ee9798ec9b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -1714,6 +1714,9 @@ gtk_window_init (GtkWindow *window) GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_DROP, dnd_dest_targets, G_N_ELEMENTS (dnd_dest_targets), GDK_ACTION_MOVE); + + + gtk_widget_hide (GTK_WIDGET (window)); } static void