[gtk/wip/baedert/for-master] applicationwindow: Remove (un)map implementations
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] applicationwindow: Remove (un)map implementations
- Date: Sun, 10 Nov 2019 09:22:59 +0000 (UTC)
commit dafd7ed6e8eec5ddc65977dc134d57e0734315da
Author: Timm Bäder <mail baedert org>
Date: Sun Nov 10 10:02:07 2019 +0100
applicationwindow: Remove (un)map implementations
These are unneeded these days since all child widgets are (un)mapped
automatically.
gtk/gtkapplicationwindow.c | 28 ----------------------------
1 file changed, 28 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index bd6a58de8c..47a72aa1fa 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -684,32 +684,6 @@ gtk_application_window_get_action_group (GtkApplicationWindow *window)
return G_ACTION_GROUP (priv->actions);
}
-static void
-gtk_application_window_real_map (GtkWidget *widget)
-{
- GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
- GtkApplicationWindowPrivate *priv = gtk_application_window_get_instance_private (window);
-
- /* XXX could eliminate this by tweaking gtk_window_map */
- if (priv->menubar)
- gtk_widget_map (priv->menubar);
-
- GTK_WIDGET_CLASS (gtk_application_window_parent_class)->map (widget);
-}
-
-static void
-gtk_application_window_real_unmap (GtkWidget *widget)
-{
- GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
- GtkApplicationWindowPrivate *priv = gtk_application_window_get_instance_private (window);
-
- /* XXX could eliminate this by tweaking gtk_window_unmap */
- if (priv->menubar)
- gtk_widget_unmap (priv->menubar);
-
- GTK_WIDGET_CLASS (gtk_application_window_parent_class)->unmap (widget);
-}
-
static void
gtk_application_window_real_forall_internal (GtkContainer *container,
GtkCallback callback,
@@ -834,8 +808,6 @@ gtk_application_window_class_init (GtkApplicationWindowClass *class)
widget_class->size_allocate = gtk_application_window_real_size_allocate;
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]