[hyena] [Hyena.Gui] Add ability to hide arrow
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena] [Hyena.Gui] Add ability to hide arrow
- Date: Thu, 26 Aug 2010 17:52:26 +0000 (UTC)
commit ff259e5ad515b0edefc98c13283dee6ac2c06a50
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Aug 26 12:51:37 2010 -0500
[Hyena.Gui] Add ability to hide arrow
Hyena.Gui/Hyena.Widgets/MenuButton.cs | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/MenuButton.cs b/Hyena.Gui/Hyena.Widgets/MenuButton.cs
index 6df820c..c5f790d 100644
--- a/Hyena.Gui/Hyena.Widgets/MenuButton.cs
+++ b/Hyena.Gui/Hyena.Widgets/MenuButton.cs
@@ -75,6 +75,8 @@ namespace Hyena.Widgets
box.PackStart (alignment, false, false, 5);
size_widget = box;
FocusChain = new Widget[] {toggle_button, box};
+ alignment.ShowAll ();
+ alignment.NoShowAll = true;
} else {
toggle_button.Add (button_widget);
size_widget = toggle_button;
@@ -114,6 +116,11 @@ namespace Hyena.Widgets
get { return arrow; }
}
+ public bool ArrowVisible {
+ get { return alignment.Visible; }
+ set { alignment.Visible = value; }
+ }
+
protected override void OnSizeRequested (ref Requisition requisition)
{
requisition = size_widget.SizeRequest ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]