[gtk+] Hide popovers and toplevels by default
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Hide popovers and toplevels by default
- Date: Fri, 20 Jan 2017 20:58:12 +0000 (UTC)
commit 33d41fccdda9fbd5c1e59951a27720748ce15026
Author: Timm Bäder <mail baedert org>
Date: Thu Jan 12 09:43:17 2017 +0100
Hide popovers and toplevels by default
gtk/gtkpopover.c | 2 ++
gtk/gtkwindow.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 4a6c753..4d98abd 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 5f8e246..ee9798e 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]