banshee r4249 - trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets
- From: abock svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4249 - trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets
- Date: Fri, 25 Jul 2008 14:49:24 +0000 (UTC)
Author: abock
Date: Fri Jul 25 14:49:24 2008
New Revision: 4249
URL: http://svn.gnome.org/viewvc/banshee?rev=4249&view=rev
Log:
Small code cleanups
Modified:
trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
Modified: trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs
==============================================================================
--- trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs (original)
+++ trunk/banshee/src/Libraries/Hyena.Gui/Hyena.Widgets/WrapLabel.cs Fri Jul 25 14:49:24 2008
@@ -40,6 +40,7 @@
public WrapLabel ()
{
+ WidgetFlags |= WidgetFlags.NoWindow;
}
private void CreateLayout ()
@@ -78,17 +79,10 @@
protected override void OnRealized ()
{
- WidgetFlags |= WidgetFlags.NoWindow;
GdkWindow = Parent.GdkWindow;
base.OnRealized ();
}
- protected override void OnUnrealized ()
- {
- WidgetFlags &= ~WidgetFlags.NoWindow;
- base.OnUnrealized ();
- }
-
protected override void OnSizeAllocated (Gdk.Rectangle allocation)
{
int lw, lh;
@@ -103,13 +97,11 @@
protected override bool OnExposeEvent (Gdk.EventExpose evnt)
{
- if (evnt.Window != GdkWindow) {
- return base.OnExposeEvent (evnt);
+ if (evnt.Window == GdkWindow) {
+ Gtk.Style.PaintLayout (Style, GdkWindow, State, false,
+ evnt.Area, this, null, Allocation.X, Allocation.Y, layout);
}
-
- Gtk.Style.PaintLayout (Style, GdkWindow, State, false, evnt.Area,
- this, null, Allocation.X, Allocation.Y, layout);
-
+
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]