[gtk+/gtk-3-10] applicationwindow: Properly unmap the menubar widget
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] applicationwindow: Properly unmap the menubar widget
- Date: Mon, 12 May 2014 19:59:57 +0000 (UTC)
commit 77a8ce71d7e262ccba18991a256f08daa9f10a69
Author: Benjamin Otte <otte redhat com>
Date: Mon May 5 15:27:14 2014 +0200
applicationwindow: Properly unmap the menubar widget
gtk/gtkapplicationwindow.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 4684bb0..2180581 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -885,6 +885,18 @@ gtk_application_window_real_map (GtkWidget *widget)
}
static void
+gtk_application_window_real_unmap (GtkWidget *widget)
+{
+ GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
+
+ /* XXX could eliminate this by tweaking gtk_window_unmap */
+ if (window->priv->menubar)
+ gtk_widget_unmap (window->priv->menubar);
+
+ GTK_WIDGET_CLASS (gtk_application_window_parent_class)->unmap (widget);
+}
+
+static void
gtk_application_window_real_forall_internal (GtkContainer *container,
gboolean include_internal,
GtkCallback callback,
@@ -1001,6 +1013,7 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class)
widget_class->realize = gtk_application_window_real_realize;
widget_class->unrealize = gtk_application_window_real_unrealize;
widget_class->map = gtk_application_window_real_map;
+ widget_class->unmap = gtk_application_window_real_unmap;
object_class->get_property = gtk_application_window_get_property;
object_class->set_property = gtk_application_window_set_property;
object_class->dispose = gtk_application_window_dispose;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]