[banshee/a11y: 21/27] [a11y] HACKING code style conformance
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee/a11y: 21/27] [a11y] HACKING code style conformance
- Date: Tue, 6 Oct 2009 00:22:30 +0000 (UTC)
commit 48c5621ac15192dd915c9ca5450dd08b2fffff99
Author: Gabriel Burt <gabriel burt gmail com>
Date: Mon Oct 5 16:17:56 2009 -0700
[a11y] HACKING code style conformance
.../Banshee.Collection.Gui/ColumnCellAlbum.cs | 7 ++-
.../ColumnCellStatusIndicator.cs | 2 +-
.../Banshee.Widgets/Banshee.Widgets/SeekSlider.cs | 54 ++++++++++----------
.../Accessibility/ColumnCellAccessible.cs | 2 +-
.../ColumnHeaderCellTextAccessible.cs | 22 ++++----
.../Accessibility/ListViewAccessible.cs | 20 ++++----
.../Hyena.Data.Gui/ListView/ListView_Accessible.cs | 14 +++---
.../ListView/ListView_Interaction.cs | 8 ++--
.../Hyena.Data.Gui/ListView/ListView_Rendering.cs | 6 +-
.../Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs | 10 ++--
src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs | 4 +-
.../Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs | 4 +-
.../Hyena.Gui/Hyena.Widgets/RatingEntry.cs | 4 +-
13 files changed, 80 insertions(+), 77 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
index 1afa4d8..97c61e5 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellAlbum.cs
@@ -57,10 +57,11 @@ namespace Banshee.Collection.Gui
private class ColumnCellAlbumAccessible : ColumnCellAccessible
{
- public ColumnCellAlbumAccessible (object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent): base (bound_object, cell as ColumnCell, parent)
+ public ColumnCellAlbumAccessible (object bound_object, ColumnCellAlbum cell, ICellAccessibleParent parent)
+ : base (bound_object, cell as ColumnCell, parent)
{
AlbumInfo bound_album_info = (AlbumInfo)bound_object;
- Name = string.Format("{0} - {1}",
+ Name = String.Format ("{0} - {1}",
bound_album_info.DisplayTitle,
bound_album_info.DisplayArtistName);
}
@@ -78,7 +79,7 @@ namespace Banshee.Collection.Gui
}
if (!(BoundObject is AlbumInfo)) {
- throw new InvalidCastException("ColumnCellAlbum can only bind to AlbumInfo objects");
+ throw new InvalidCastException ("ColumnCellAlbum can only bind to AlbumInfo objects");
}
AlbumInfo album = (AlbumInfo)BoundObject;
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
index 110a1d2..e0859a1 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ColumnCellStatusIndicator.cs
@@ -73,7 +73,7 @@ namespace Banshee.Collection.Gui
}
}
- public void GetImagePosition(out int x, out int y, Atk.CoordType coordType)
+ public void GetImagePosition (out int x, out int y, Atk.CoordType coordType)
{
if (cell.GetTextAlternative (bound_object) != string.Empty)
{
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/SeekSlider.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/SeekSlider.cs
index 3400a9f..8927882 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/SeekSlider.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/SeekSlider.cs
@@ -44,7 +44,7 @@ namespace Banshee.Widgets
public event EventHandler SeekRequested;
public event EventHandler DurationChanged;
- public SeekSlider() : base(0.0, 0.0, 0.0)
+ public SeekSlider () : base (0.0, 0.0, 0.0)
{
UpdatePolicy = UpdateType.Continuous;
DrawValue = false;
@@ -55,23 +55,23 @@ namespace Banshee.Widgets
Adjustment.Lower = 0;
Adjustment.Upper = 0;
- Accessible.Name = Catalog.GetString("Seek");
+ Accessible.Name = Catalog.GetString ("Seek");
- SetIdle();
+ SetIdle ();
}
- protected override bool OnButtonPressEvent(Gdk.EventButton evnt)
+ protected override bool OnButtonPressEvent (Gdk.EventButton evnt)
{
can_set_value = false;
if (evnt.Button == 1) {
pressed_x = evnt.X;
}
- return base.OnButtonPressEvent(evnt);
+ return base.OnButtonPressEvent (evnt);
}
- protected override bool OnKeyPressEvent(Gdk.EventKey evnt)
+ protected override bool OnKeyPressEvent (Gdk.EventKey evnt)
{
- switch(evnt.Key) {
+ switch (evnt.Key) {
case Gdk.Key.Left:
case Gdk.Key.Right:
return false;
@@ -80,48 +80,48 @@ namespace Banshee.Widgets
}
}
- protected override bool OnScrollEvent(Gdk.EventScroll evnt) {
+ protected override bool OnScrollEvent (Gdk.EventScroll evnt) {
if (can_seek) {
SeekValue += (evnt.Direction.Equals (Gdk.ScrollDirection.Down) ? -1 : 1) * 10000; // skip 10s
- OnSeekRequested();
+ OnSeekRequested ();
}
return base.OnScrollEvent (evnt);
}
- protected override bool OnButtonReleaseEvent(Gdk.EventButton evnt)
+ protected override bool OnButtonReleaseEvent (Gdk.EventButton evnt)
{
can_set_value = true;
- if(timeout > 0) {
- GLib.Source.Remove(timeout);
+ if (timeout > 0) {
+ GLib.Source.Remove (timeout);
}
if (can_seek) {
if (evnt.Button == 1 && Math.Abs (pressed_x - evnt.X) <= 3.0) {
SeekValue = (long) (evnt.X / Allocation.Width * Duration); // seek to clicked position
}
- OnSeekRequested();
+ OnSeekRequested ();
}
- return base.OnButtonReleaseEvent(evnt);
+ return base.OnButtonReleaseEvent (evnt);
}
- protected override void OnValueChanged()
+ protected override void OnValueChanged ()
{
- if(timeout == 0 && raise_seek_requested) {
- timeout = GLib.Timeout.Add(timeout_delay, OnSeekRequested);
+ if (timeout == 0 && raise_seek_requested) {
+ timeout = GLib.Timeout.Add (timeout_delay, OnSeekRequested);
}
- base.OnValueChanged();
+ base.OnValueChanged ();
}
- private bool OnSeekRequested()
+ private bool OnSeekRequested ()
{
- if(raise_seek_requested) {
+ if (raise_seek_requested) {
EventHandler handler = SeekRequested;
- if(handler != null) {
- handler(this, new EventArgs());
+ if (handler != null) {
+ handler (this, new EventArgs ());
}
}
@@ -132,13 +132,13 @@ namespace Banshee.Widgets
public long SeekValue {
get { return (long)Value; }
set {
- if(!can_set_value) {
+ if (!can_set_value) {
return;
}
raise_seek_requested = false;
- if(value > Duration) {
+ if (value > Duration) {
Duration = Int64.MaxValue;
Value = value;
} else {
@@ -154,13 +154,13 @@ namespace Banshee.Widgets
set {
Adjustment.Upper = value;
EventHandler handler = DurationChanged;
- if(handler != null) {
- handler(this, new EventArgs());
+ if (handler != null) {
+ handler (this, EventArgs.Empty);
}
}
}
- public void SetIdle()
+ public void SetIdle ()
{
Sensitive = false;
SeekValue = 0;
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 f376eb9..333ce65 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnCellAccessible.cs
@@ -37,7 +37,7 @@ namespace Hyena.Data.Gui.Accessibility
return states;
}
- protected override int OnGetIndexInParent()
+ protected override int OnGetIndexInParent ()
{
return ((ICellAccessibleParent)Parent).GetCellIndex (this);
}
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 6dcc84e..8b4d064 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ColumnHeaderCellTextAccessible.cs
@@ -6,8 +6,8 @@ namespace Hyena.Data.Gui.Accessibility
{
class ColumnHeaderCellTextAccessible: ColumnCellTextAccessible, Atk.ActionImplementor
{
- private static string[] ActionDescriptions = new string[] {"", Catalog.GetString("open context menu")};
- private static string[] ActionNamesLocalized = new string[] {Catalog.GetString("click"), Catalog.GetString("menu")};
+ private static string[] ActionDescriptions = new string[] {"", Catalog.GetString ("open context menu")};
+ private static string[] ActionNamesLocalized = new string[] {Catalog.GetString ("click"), Catalog.GetString ("menu")};
private enum Actions
{
@@ -42,7 +42,7 @@ namespace Hyena.Data.Gui.Accessibility
if (action >= (int)Actions.LAST)
return "";
- return ((Actions)action).ToString().ToLower();
+ return ((Actions)action).ToString ().ToLower ();
}
public string GetDescription (int action)
@@ -68,17 +68,19 @@ namespace Hyena.Data.Gui.Accessibility
public bool DoAction (int action)
{
ICellAccessibleParent parent = (ICellAccessibleParent)Parent;
- switch ((Actions)action)
- {
- case Actions.MENU: parent.InvokeColumnHeaderMenu (this); break;
- case Actions.CLICK: parent.ClickColumnHeader (this); break;
+ switch ((Actions)action) {
+ case Actions.MENU: parent.InvokeColumnHeaderMenu (this); break;
+ case Actions.CLICK: parent.ClickColumnHeader (this); break;
}
- if (action == (int)Actions.MENU)
- ((ICellAccessibleParent)Parent).InvokeColumnHeaderMenu(this);
+
+ if (action == (int)Actions.MENU) {
+ ((ICellAccessibleParent)Parent).InvokeColumnHeaderMenu (this);
+ }
+
return true;
}
- public bool SetDescription(int action, string description)
+ public bool SetDescription (int action, string description)
{
return false;
}
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 ce780fb..caf6e34 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/Accessibility/ListViewAccessible.cs
@@ -20,9 +20,9 @@ namespace Hyena.Data.Gui.Accessibility
Name = "ListView";
Description = "ListView";
Role = Atk.Role.Table;
- Parent = list_view.Parent.RefAccessible();
+ Parent = list_view.Parent.RefAccessible ();
- cell_cache = new Dictionary<int, ColumnCellAccessible>();
+ cell_cache = new Dictionary<int, ColumnCellAccessible> ();
list_view.ModelChanged += (o, a) => OnModelChanged ();
list_view.Model.Reloaded += (o, a) => OnModelChanged ();
@@ -44,7 +44,7 @@ namespace Hyena.Data.Gui.Accessibility
}
- protected override int OnGetIndexInParent()
+ protected override int OnGetIndexInParent ()
{
for (int i=0; i < Parent.NAccessibleChildren; i++)
if (Parent.RefAccessibleChild (i) == this)
@@ -53,16 +53,16 @@ namespace Hyena.Data.Gui.Accessibility
return -1;
}
- protected override int OnGetNChildren()
+ protected override int OnGetNChildren ()
{
return n_columns * n_rows + n_columns;
}
- protected override Atk.Object OnRefChild(int index)
+ protected override Atk.Object OnRefChild (int index)
{
ColumnCellAccessible child;
- if (cell_cache.ContainsKey(index))
+ if (cell_cache.ContainsKey (index))
{
return cell_cache[index];
}
@@ -79,7 +79,7 @@ namespace Hyena.Data.Gui.Accessibility
child = (ColumnCellAccessible) cell.GetAccessible (this);
}
- cell_cache.Add(index, child);
+ cell_cache.Add (index, child);
return child;
}
@@ -87,14 +87,14 @@ namespace Hyena.Data.Gui.Accessibility
public override Atk.Object RefAccessibleAtPoint (int x, int y, Atk.CoordType coordType)
{
int row, col;
- list_view.GetCellAtPoint(x, y, coordType, out row, out col);
+ list_view.GetCellAtPoint (x, y, coordType, out row, out col);
return RefAt (row, col);
}
private void OnModelChanged ()
{
GLib.Signal.Emit (this, "model_changed");
- cell_cache.Clear();
+ cell_cache.Clear ();
/*var handler = ModelChanged;
if (handler != null) {
handler (this, EventArgs.Empty);
@@ -141,7 +141,7 @@ namespace Hyena.Data.Gui.Accessibility
int cache_index = GetCellIndex (cell);
int minval = int.MinValue;
if (cache_index == -1)
- return new Gdk.Rectangle(minval, minval, minval, minval);
+ return new Gdk.Rectangle (minval, minval, minval, minval);
if (cache_index - n_columns >= 0)
{
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
index 778ce16..ed546d0 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Accessible.cs
@@ -61,12 +61,12 @@ namespace Hyena.Data.Gui
int x = ListAllocation.X - HadjustmentValue;
for (int index=0;index<column;index++)
- x += GetColumnWidth(index);
+ x += GetColumnWidth (index);
- Gdk.Rectangle rectangle = new Gdk.Rectangle(x, y, width, height);
+ Gdk.Rectangle rectangle = new Gdk.Rectangle (x, y, width, height);
if (clip && !ListAllocation.Contains (rectangle))
- return new Gdk.Rectangle(int.MinValue, int.MinValue, int.MinValue, int.MinValue);
+ return new Gdk.Rectangle (int.MinValue, int.MinValue, int.MinValue, int.MinValue);
if (coord_type == Atk.CoordType.Window)
return rectangle;
@@ -83,7 +83,7 @@ namespace Hyena.Data.Gui
public Gdk.Rectangle GetColumnHeaderCellExtents (int column, bool clip, Atk.CoordType coord_type)
{
if (!HeaderVisible)
- return new Gdk.Rectangle(int.MinValue, int.MinValue,
+ return new Gdk.Rectangle (int.MinValue, int.MinValue,
int.MinValue, int.MinValue);
int width = GetColumnWidth (column);
int height = HeaderHeight;
@@ -92,11 +92,11 @@ namespace Hyena.Data.Gui
if (column != 0)
x += Theme.InnerBorderWidth;
for (int index=0;index<column;index++)
- x += GetColumnWidth(index);
+ x += GetColumnWidth (index);
int y = Theme.BorderWidth + header_rendering_alloc.Y;
- Gdk.Rectangle rectangle = new Gdk.Rectangle(x, y, width, height);
+ Gdk.Rectangle rectangle = new Gdk.Rectangle (x, y, width, height);
if (coord_type == Atk.CoordType.Window)
return rectangle;
@@ -148,7 +148,7 @@ namespace Hyena.Data.Gui
public static void Init ()
{
new ListViewAccessibleFactory<T> ();
- Atk.Global.DefaultRegistry.SetFactoryType ((GLib.GType)typeof(ListView<T>), (GLib.GType)typeof (ListViewAccessibleFactory<T>));
+ Atk.Global.DefaultRegistry.SetFactoryType ((GLib.GType)typeof (ListView<T>), (GLib.GType)typeof (ListViewAccessibleFactory<T>));
}
protected override Atk.Object OnCreateAccessible (GLib.Object obj)
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
index 579ec4d..d3bd99d 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Interaction.cs
@@ -42,8 +42,8 @@ namespace Hyena.Data.Gui
get { return header_focused; }
set {
header_focused = value;
- InvalidateHeader();
- InvalidateList();
+ InvalidateHeader ();
+ InvalidateList ();
}
}
@@ -198,7 +198,7 @@ namespace Hyena.Data.Gui
if (ActiveColumn + 1 < column_cache.Length)
{
ActiveColumn++;
- InvalidateHeader();
+ InvalidateHeader ();
}
handled = true;
break;
@@ -207,7 +207,7 @@ namespace Hyena.Data.Gui
if (ActiveColumn - 1 >= 0)
{
ActiveColumn--;
- InvalidateHeader();
+ InvalidateHeader ();
}
handled = true;
break;
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 3e3544f..7acf88d 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -109,7 +109,7 @@ namespace Hyena.Data.Gui
Theme.DrawFrameBorder (cairo_context, Allocation);
if (Model != null) {
- PaintRows(damage);
+ PaintRows (damage);
}
PaintDraggingColumn (damage);
@@ -271,13 +271,13 @@ namespace Hyena.Data.Gui
if (HasFocus && !HeaderFocused) // Cursor out of selection.
Theme.DrawRowCursor (cairo_context, single_list_alloc.X, single_list_alloc.Y,
single_list_alloc.Width, single_list_alloc.Height,
- CairoExtensions.ColorShade(Theme.Colors.GetWidgetColor (GtkColorClass.Background, StateType.Selected), 0.85));
+ CairoExtensions.ColorShade (Theme.Colors.GetWidgetColor (GtkColorClass.Background, StateType.Selected), 0.85));
}
if (selection_height > 0) {
Cairo.Color selection_color = Theme.Colors.GetWidgetColor (GtkColorClass.Background, StateType.Selected);
if (!HasFocus || HeaderFocused)
- selection_color = CairoExtensions.ColorShade(selection_color, 1.1);
+ selection_color = CairoExtensions.ColorShade (selection_color, 1.1);
Theme.DrawRowSelection (cairo_context, list_rendering_alloc.X, selection_y, list_rendering_alloc.Width, selection_height,
true, true, selection_color, CairoCorners.All);
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
index 028f2ed..f54155b 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/GtkTheme.cs
@@ -146,7 +146,7 @@ namespace Hyena.Gui.Theming
double offset = (double)cr.LineWidth / 2.0;
CairoExtensions.RoundedRectangle (cr, alloc.X + offset, alloc.Y + offset,
alloc.Width - cr.LineWidth, alloc.Height - cr.LineWidth, Context.Radius, CairoCorners.All);
- cr.Stroke();
+ cr.Stroke ();
}
public override void DrawFrameBorderFocused (Cairo.Context cr, Gdk.Rectangle alloc)
@@ -156,7 +156,7 @@ namespace Hyena.Gui.Theming
double offset = (double)cr.LineWidth / 2.0;
CairoExtensions.RoundedRectangle (cr, alloc.X + offset, alloc.Y + offset,
alloc.Width - cr.LineWidth, alloc.Height - cr.LineWidth, Context.Radius, CairoCorners.All);
- cr.Stroke();
+ cr.Stroke ();
}
public override void DrawColumnHighlight (Cairo.Context cr, Gdk.Rectangle alloc, Cairo.Color color)
@@ -218,7 +218,7 @@ namespace Hyena.Gui.Theming
alloc.Height - (margin + line_width)*2.0 - top_offset,
Context.Radius/2.0, CairoCorners.None);
- cr.Fill();
+ cr.Fill ();
stroke_color.A = 1.0;
cr.LineWidth = line_width;
@@ -229,7 +229,7 @@ namespace Hyena.Gui.Theming
alloc.Width - (line_width + margin)*2.0 - right_offset,
alloc.Height - (line_width + margin)*2.0 - right_offset,
Context.Radius/2.0, CairoCorners.All);
- cr.Stroke();
+ cr.Stroke ();
}
public override void DrawHeaderSeparator (Cairo.Context cr, Gdk.Rectangle alloc, int x)
@@ -319,7 +319,7 @@ namespace Hyena.Gui.Theming
}
}
- public override void DrawRowRule(Cairo.Context cr, int x, int y, int width, int height)
+ public override void DrawRowRule (Cairo.Context cr, int x, int y, int width, int height)
{
cr.Color = new Cairo.Color (rule_color.R, rule_color.G, rule_color.B, Context.FillAlpha);
cr.Rectangle (x, y, width, height);
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
index a741e19..42cf7cf 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui.Theming/Theme.cs
@@ -120,7 +120,7 @@ namespace Hyena.Gui.Theming
public abstract void DrawColumnHeaderFocus (Cairo.Context cr, Gdk.Rectangle alloc);
- public abstract void DrawHeaderSeparator(Cairo.Context cr, Gdk.Rectangle alloc, int x);
+ public abstract void DrawHeaderSeparator (Cairo.Context cr, Gdk.Rectangle alloc, int x);
public void DrawListBackground (Cairo.Context cr, Gdk.Rectangle alloc, bool baseColor)
{
@@ -141,7 +141,7 @@ namespace Hyena.Gui.Theming
public void DrawColumnHighlight (Cairo.Context cr, Gdk.Rectangle alloc)
{
- DrawColumnHighlight (cr, alloc, colors.GetWidgetColor(GtkColorClass.Background, StateType.Selected));
+ DrawColumnHighlight (cr, alloc, colors.GetWidgetColor (GtkColorClass.Background, StateType.Selected));
}
public abstract void DrawColumnHighlight (Cairo.Context cr, Gdk.Rectangle alloc, Cairo.Color color);
diff --git a/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs b/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
index 4ef1a3a..1553728 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Gui/BaseWidgetAccessible.cs
@@ -121,8 +121,8 @@ namespace Hyena.Gui
{
int x_extents, y_extents, w, h;
GetExtents (out x_extents, out y_extents, out w, out h, coordType);
- Gdk.Rectangle extents = new Gdk.Rectangle(x_extents, y_extents, w, h);
- return extents.Contains(x, y);
+ Gdk.Rectangle extents = new Gdk.Rectangle (x_extents, y_extents, w, h);
+ return extents.Contains (x, y);
}
public virtual Atk.Object RefAccessibleAtPoint (int x, int y, Atk.CoordType coordType)
diff --git a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
index 93b95fb..19876d9 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
@@ -395,7 +395,7 @@ namespace Hyena.Widgets
Hyena.Log.Information ("RatingAccessible raw ctor..");
}
- public RatingAccessible (GLib.Object widget): base()
+ public RatingAccessible (GLib.Object widget): base ()
{
rating = widget as RatingEntry;
Name = "Rating entry";
@@ -440,7 +440,7 @@ namespace Hyena.Widgets
public static void Init ()
{
new RatingAccessibleFactory ();
- Atk.Global.DefaultRegistry.SetFactoryType ((GLib.GType)typeof(RatingEntry), (GLib.GType)typeof (RatingAccessibleFactory));
+ Atk.Global.DefaultRegistry.SetFactoryType ((GLib.GType)typeof (RatingEntry), (GLib.GType)typeof (RatingAccessibleFactory));
}
protected override Atk.Object OnCreateAccessible (GLib.Object obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]