[gtk/kill-tree-menu: 14/51] menutoolbutton: Fix sensitivity handling
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/kill-tree-menu: 14/51] menutoolbutton: Fix sensitivity handling
- Date: Sun, 29 Dec 2019 22:14:38 +0000 (UTC)
commit 0d3b5e419b7dca741eb6bc9c27979efcb51fa010
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 27 01:46:04 2019 -0500
menutoolbutton: Fix sensitivity handling
We don't need to set the arrow button explicitly
to insensitive, GtkMenuButton handles that automatically.
gtk/gtkmenutoolbutton.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkmenutoolbutton.c b/gtk/gtkmenutoolbutton.c
index 19aba366ce..efbc6288b2 100644
--- a/gtk/gtkmenutoolbutton.c
+++ b/gtk/gtkmenutoolbutton.c
@@ -320,9 +320,6 @@ gtk_menu_tool_button_init (GtkMenuToolButton *button)
arrow_button = gtk_menu_button_new ();
gtk_container_add (GTK_CONTAINER (box), arrow_button);
- /* the arrow button is insentive until we set a menu */
- gtk_widget_set_sensitive (arrow_button, FALSE);
-
gtk_container_add (GTK_CONTAINER (button), box);
gtk_menu_button_set_align_widget (GTK_MENU_BUTTON (arrow_button),
GTK_WIDGET (button));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]