[hyena/gtk3] Fix build with last gtk-sharp Gtk.Render is intern to StyleContext
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] Fix build with last gtk-sharp Gtk.Render is intern to StyleContext
- Date: Mon, 6 Jun 2011 19:45:58 +0000 (UTC)
commit 4c2f0621b26b1a9b32130bbedff4d1264674e02c
Author: Olivier Dufour <olivier duff gmail com>
Date: Fri May 13 21:32:30 2011 +0200
Fix build with last gtk-sharp
Gtk.Render is intern to StyleContext
Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs | 2 +-
Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs | 8 ++++----
Hyena.Gui/Hyena.Widgets/GrabHandle.cs | 2 +-
Hyena.Gui/Hyena.Widgets/RatingEntry.cs | 6 +++---
Hyena.Gui/Hyena.Widgets/WrapLabel.cs | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index 373b3cf..2c317a2 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -60,7 +60,7 @@ namespace Hyena.Data.Gui
}
context.Widget.StyleContext.State = (Value ? StateFlags.Active : StateFlags.Normal);
//"cellcheck"
- Gtk.Render.Check (context.Widget.StyleContext, context.Context, x, y, Size, Size);
+ context.Widget.StyleContext.RenderCheck (context.Context, x, y, Size, Size);
}
private object last_pressed_bound;
diff --git a/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs b/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
index 1128813..308dd6f 100644
--- a/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
+++ b/Hyena.Gui/Hyena.Widgets/ComplexMenuItem.cs
@@ -83,8 +83,8 @@ namespace Hyena.Widgets
//ShadowType shadow_type = (ShadowType)StyleGetProperty("selected-shadow-type");
StyleContext.State = StateFlags.Prelight | StateFlags.Selected;
- Gtk.Render.Frame (StyleContext, args.Cr, x, y, width, height);
- Gtk.Render.Background (StyleContext, args.Cr, x, y, width, height);
+ StyleContext.RenderFrame (args.Cr, x, y, width, height);
+ StyleContext.RenderBackground (args.Cr, x, y, width, height);
//Gtk.Style.PaintBox(Style, args.Cr, StateType.Prelight, shadow_type,
// widget, "menuitem", x, y, width, height);
} else {
@@ -110,8 +110,8 @@ namespace Hyena.Widgets
width = Parent.Allocation.Width;
height = Parent.Allocation.Height;
StyleContext.State = StateFlags.Normal;
- Gtk.Render.Frame (StyleContext, args.Cr, x, y, width, height);
- Gtk.Render.Background (StyleContext, args.Cr, x, y, width, height);
+ StyleContext.RenderFrame (args.Cr, x, y, width, height);
+ StyleContext.RenderBackground (args.Cr, x, y, width, height);
//Gtk.Style.PaintBox(Style, args.Cr, StateType.Normal, ShadowType.Out,
// widget, "menu", x, y, width, height);
}
diff --git a/Hyena.Gui/Hyena.Widgets/GrabHandle.cs b/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
index 28dd833..3835926 100644
--- a/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
+++ b/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
@@ -57,7 +57,7 @@ namespace Hyena.Widgets
//http://developer.gnome.org/gtk3/stable/GtkStyleContext.html#id545216
//CairoHelper.TransformToWindow (a.Cr, da, da.Window);
da.StyleContext.State = StateFlags.Active;
- Gtk.Render.Handle (da.StyleContext, a.Cr, 0, 0, da.Allocation.Width, da.Allocation.Height);
+ da.StyleContext.RenderHandle (a.Cr, 0, 0, da.Allocation.Width, da.Allocation.Height);
//Gtk.Style.PaintHandle (da.Style, a.Cr, da.State, ShadowType.In,
// this, "entry", 0, 0, da.Allocation.Width, da.Allocation.Height, Orientation);
}
diff --git a/Hyena.Gui/Hyena.Widgets/RatingEntry.cs b/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
index 93ad69a..78717b2 100644
--- a/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
+++ b/Hyena.Gui/Hyena.Widgets/RatingEntry.cs
@@ -274,12 +274,12 @@ namespace Hyena.Widgets
if (HasFrame) {
int y_mid = (int)Math.Round ((Allocation.Height - renderer.Height) / 2.0);
this.StyleContext.State = StateFlags.Normal;
- Gtk.Render.Frame (StyleContext, cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
- Gtk.Render.Background (StyleContext, cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
+ StyleContext.RenderFrame (cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
+ StyleContext.RenderBackground (cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
//Gtk.Style.PaintFlatBox (Style, cr, State, ShadowType.None, this, "entry",
// Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
this.StyleContext.State = StateFlags.Active;
- Gtk.Render.Frame (StyleContext, cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
+ StyleContext.RenderFrame (cr, Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
//Gtk.Style.PaintShadow (Style, cr, State, ShadowType.In,
// this, "entry", Allocation.X, Allocation.Y + y_mid, Allocation.Width, renderer.Height);
}
diff --git a/Hyena.Gui/Hyena.Widgets/WrapLabel.cs b/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
index 93ea92a..807dc4f 100644
--- a/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
+++ b/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
@@ -133,7 +133,7 @@ namespace Hyena.Widgets
break;
}
- Gtk.Render.Layout (StyleContext, cr, Allocation.X, y, layout);
+ StyleContext.RenderLayout (cr, Allocation.X, y, layout);
//Gtk.Style.PaintLayout (Style, cr, State, false,
// this, null, Allocation.X, y, layout);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]