[gtk] menu: Remove menu_queue_resize
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] menu: Remove menu_queue_resize
- Date: Sat, 12 Oct 2019 15:59:34 +0000 (UTC)
commit f9e100cb1e16ae4173a51015b1c19ee7fa22c5bb
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 12 17:24:42 2019 +0200
menu: Remove menu_queue_resize
The have_layout flag is unused, so this is equal to a normal
gtk_widget_queue_resize().
gtk/gtkmenu.c | 12 ------------
gtk/gtkmenuprivate.h | 1 -
2 files changed, 13 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index a80c484263..4b851d1937 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -266,15 +266,6 @@ update_scrollbars (GtkMenu *menu)
policy);
}
-static void
-menu_queue_resize (GtkMenu *menu)
-{
- GtkMenuPrivate *priv = menu->priv;
-
- priv->have_layout = FALSE;
- gtk_widget_queue_resize (GTK_WIDGET (menu));
-}
-
static GList *
gtk_menu_get_items (GtkMenuShell *menu_shell)
{
@@ -1115,7 +1106,6 @@ gtk_menu_add (GtkContainer *container,
gtk_container_add (GTK_CONTAINER (priv->box), widget);
update_scrollbars (menu);
- menu_queue_resize (menu);
}
static void
@@ -1134,7 +1124,6 @@ gtk_menu_remove (GtkContainer *container,
GTK_CONTAINER_CLASS (gtk_menu_parent_class)->remove (container, widget);
update_scrollbars (menu);
- menu_queue_resize (menu);
}
/**
@@ -1162,7 +1151,6 @@ gtk_menu_real_insert (GtkMenuShell *menu_shell,
gtk_menu_reorder_child (menu, child, position);
update_scrollbars (menu);
- menu_queue_resize (menu);
}
static gboolean
diff --git a/gtk/gtkmenuprivate.h b/gtk/gtkmenuprivate.h
index 3e6e41b566..35efe5d7eb 100644
--- a/gtk/gtkmenuprivate.h
+++ b/gtk/gtkmenuprivate.h
@@ -80,7 +80,6 @@ struct _GtkMenuPrivate
guint needs_destruction_ref : 1;
- guint have_layout : 1;
guint ignore_button_release : 1;
guint no_toggle_size : 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]