[evolution] EHeaderBarButton: Disable the dropdown button with the main button
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHeaderBarButton: Disable the dropdown button with the main button
- Date: Wed, 3 Aug 2022 05:29:22 +0000 (UTC)
commit 2fd7eca161662511a0e68de67ac7a4c4613475ba
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 3 07:27:29 2022 +0200
EHeaderBarButton: Disable the dropdown button with the main button
The dropdown part of the button should be insensitive together
with the main button, to make it behave like a single widget.
This could regress with the recent changes in the EHeaderBarButton.
src/e-util/e-headerbar-button.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/e-util/e-headerbar-button.c b/src/e-util/e-headerbar-button.c
index 23a57e1d10..70dad04173 100644
--- a/src/e-util/e-headerbar-button.c
+++ b/src/e-util/e-headerbar-button.c
@@ -436,6 +436,11 @@ e_header_bar_button_take_menu (EHeaderBarButton *header_bar_button,
gtk_box_pack_end (
GTK_BOX (header_bar_button), header_bar_button->priv->dropdown_button,
FALSE, FALSE, 0);
+
+ e_binding_bind_property (
+ header_bar_button->priv->button, "sensitive",
+ header_bar_button->priv->dropdown_button, "sensitive",
+ G_BINDING_SYNC_CREATE);
}
gtk_menu_button_set_popup (GTK_MENU_BUTTON (header_bar_button->priv->dropdown_button), menu);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]