[hyena/gtk3] MessageBar: Fix coordinates in OnDrawn
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] MessageBar: Fix coordinates in OnDrawn
- Date: Wed, 27 Jul 2011 20:41:42 +0000 (UTC)
commit 2479525dbc25e0ab0dd65ade9540260852be7bd4
Author: Olivier Dufour <olivier duff gmail com>
Date: Wed Jul 27 19:21:54 2011 +0200
MessageBar: Fix coordinates in OnDrawn
Hyena.Gui/Hyena.Widgets/MessageBar.cs | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/MessageBar.cs b/Hyena.Gui/Hyena.Widgets/MessageBar.cs
index 99ec117..637ff16 100644
--- a/Hyena.Gui/Hyena.Widgets/MessageBar.cs
+++ b/Hyena.Gui/Hyena.Widgets/MessageBar.cs
@@ -124,12 +124,8 @@ namespace Hyena.Widgets
protected override bool OnDrawn (Cairo.Context cr)
{
- cr.Save ();
- CairoHelper.TransformToWindow (cr, this, Window);
-
Gdk.RGBA color = StyleContext.GetBackgroundColor (StateFlags.Normal);
- theme.DrawFrame (cr, Allocation, CairoExtensions.GdkRGBAToCairoColor (color));
- cr.Restore ();
+ theme.DrawFrame (cr, new Gdk.Rectangle (0, 0, Allocation.Width, Allocation.Height), CairoExtensions.GdkRGBAToCairoColor (color));
return base.OnDrawn (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]