[banshee] [Hyena.Gui] Add protected IntPtr ctor to *MenuItem
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Hyena.Gui] Add protected IntPtr ctor to *MenuItem
- Date: Thu, 22 Apr 2010 01:04:36 +0000 (UTC)
commit 7375325a3ae9d343961fef90a0f72d0a586860ac
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Thu Apr 22 11:00:50 2010 +1000
[Hyena.Gui] Add protected IntPtr ctor to *MenuItem
.../Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs | 4 ++++
.../Hyena.Gui/Hyena.Widgets/RatingMenuItem.cs | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
index a6191fd..5d3c9c0 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
@@ -40,6 +40,10 @@ namespace Hyena.Widgets
{
}
+ protected ComplexMenuItem (IntPtr raw) : base (raw)
+ {
+ }
+
// Override OnAdded and OnRemoved so we can work with Gtk.Action/Gtk.UIManager
// which otherwise would try to replace our child with a Label.
private bool first_add = true;
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingMenuItem.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingMenuItem.cs
index a4276db..32ee848 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingMenuItem.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingMenuItem.cs
@@ -60,6 +60,10 @@ namespace Hyena.Widgets
Add (box);
}
+ protected RatingMenuItem (IntPtr raw) : base (raw)
+ {
+ }
+
private int TransformX (double inx)
{
int x = (int)inx - entry.Allocation.X;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]