[banshee] Fix build against gtk# 2.12.1
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] Fix build against gtk# 2.12.1
- Date: Wed, 16 Dec 2009 19:20:08 +0000 (UTC)
commit 8e29a44269cd4b2a27822e62815f5bc6e22dfb58
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Dec 15 18:10:59 2009 -0800
Fix build against gtk# 2.12.1
Should fix build on openSUSE 11.0 (BGO #602589)
.../Accessibility/ColumnCellAccessible.cs | 2 ++
.../ColumnHeaderCellTextAccessible.cs | 2 ++
.../Accessibility/ListViewAccessible.cs | 2 ++
.../Accessibility/ListViewAccessible_Selection.cs | 2 ++
.../Accessibility/ListViewAccessible_Table.cs | 2 ++
.../Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs | 2 ++
.../Hyena.Gui/Hyena.Widgets/RatingEntry.cs | 2 ++
7 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs
index 10dbc4e..f0e797a 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs
@@ -45,6 +45,7 @@ namespace Hyena.Data.Gui.Accessibility
Parent = (Atk.Object) parent;
}
+#if ENABLE_ATK
protected override Atk.StateSet OnRefStateSet ()
{
Atk.StateSet states = base.OnRefStateSet ();
@@ -73,6 +74,7 @@ namespace Hyena.Data.Gui.Accessibility
{
return cell_parent.GetCellIndex (this);
}
+#endif
public double Alpha {
get { return 1.0; }
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs
index 1638fa6..2b6704f 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs
@@ -48,6 +48,7 @@ namespace Hyena.Data.Gui.Accessibility
Role = Atk.Role.TableColumnHeader;
}
+#if ENABLE_ATK
protected override Atk.StateSet OnRefStateSet ()
{
Atk.StateSet states = base.OnRefStateSet ();
@@ -55,6 +56,7 @@ namespace Hyena.Data.Gui.Accessibility
states.RemoveState (Atk.StateType.Transient);
return states;
}
+#endif
public string GetLocalizedName (int action)
{
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
index 4a72c34..dc2f8c9 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
@@ -36,6 +36,7 @@ using Hyena.Data.Gui;
namespace Hyena.Data.Gui.Accessibility
{
+#if ENABLE_ATK
public partial class ListViewAccessible<T> : Hyena.Gui.BaseWidgetAccessible, ICellAccessibleParent
{
private ListView<T> list_view;
@@ -240,4 +241,5 @@ namespace Hyena.Data.Gui.Accessibility
#endregion
}
+#endif
}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Selection.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Selection.cs
index 9036788..caa6728 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Selection.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Selection.cs
@@ -36,6 +36,7 @@ using Hyena.Data.Gui;
namespace Hyena.Data.Gui.Accessibility
{
+#if ENABLE_ATK
public partial class ListViewAccessible<T> : Atk.SelectionImplementor
{
public void ListViewAccessible_Selection ()
@@ -87,4 +88,5 @@ namespace Hyena.Data.Gui.Accessibility
GLib.Signal.Emit (this, "selection_changed");
}
}
+#endif
}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Table.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Table.cs
index abfb6c9..ed43a8c 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Table.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible_Table.cs
@@ -36,6 +36,7 @@ using Hyena.Data.Gui;
namespace Hyena.Data.Gui.Accessibility
{
+#if ENABLE_ATK
public partial class ListViewAccessible<T> : Atk.TableImplementor
{
public void ListViewAccessible_Table ()
@@ -187,4 +188,5 @@ namespace Hyena.Data.Gui.Accessibility
{
}
}
+#endif
}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
index 1553728..dea5da0 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
@@ -34,6 +34,7 @@ using Atk;
namespace Hyena.Gui
{
+#if ENABLE_ATK
public class BaseWidgetAccessible : Gtk.Accessible, Atk.ComponentImplementor
{
private Gtk.Widget widget;
@@ -257,4 +258,5 @@ namespace Hyena.Gui
#endregion Atk.Component
}
+#endif
}
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
index 393c238..ddaf603 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
@@ -388,6 +388,7 @@ namespace Hyena.Widgets
#region Test Module
+#if ENABLE_ATK
public class RatingAccessible : Atk.Object, Atk.Value, Atk.ValueImplementor
{
private RatingEntry rating;
@@ -436,6 +437,7 @@ namespace Hyena.Widgets
return true;
}
}
+#endif
#if ENABLE_ATK
internal class RatingAccessibleFactory : Atk.ObjectFactory
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]