[hyena/gtk3] GrabHandle: Remove useless IsDrawable check
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] GrabHandle: Remove useless IsDrawable check
- Date: Sun, 10 Jul 2011 20:12:13 +0000 (UTC)
commit afbfae95655d71338e3f7fbee201f3199ff8d6fa
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Sun Jul 10 21:51:07 2011 +0200
GrabHandle: Remove useless IsDrawable check
The check is already done by GTK+ before firing the Drawn event.
Hyena.Gui/Hyena.Widgets/GrabHandle.cs | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/GrabHandle.cs b/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
index 5dfab0c..15725ac 100644
--- a/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
+++ b/Hyena.Gui/Hyena.Widgets/GrabHandle.cs
@@ -52,12 +52,10 @@ namespace Hyena.Widgets
LeaveNotifyEvent += (o, a) => Inside = false;
da.Drawn += (o, a) => {
- if (da.IsDrawable) {
- da.StyleContext.Save ();
- da.StyleContext.AddClass ("pane-separator");
- da.StyleContext.RenderHandle (a.Cr, 0, 0, da.Allocation.Width, da.Allocation.Height);
- da.StyleContext.Restore ();
- }
+ da.StyleContext.Save ();
+ da.StyleContext.AddClass ("pane-separator");
+ da.StyleContext.RenderHandle (a.Cr, 0, 0, da.Allocation.Width, da.Allocation.Height);
+ da.StyleContext.Restore ();
};
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]