[f-spot: 14/41] call base.OnSizeRequested
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 14/41] call base.OnSizeRequested
- Date: Mon, 15 Jun 2009 08:41:02 -0400 (EDT)
commit a9d604f5c32e189ad0481506d67fc4fbd6046dd3
Author: Stephane Delcroix <stephane delcroix org>
Date: Tue Jun 9 12:24:08 2009 +0200
call base.OnSizeRequested
src/Widgets/Filmstrip.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Widgets/Filmstrip.cs b/src/Widgets/Filmstrip.cs
index 31424b6..542f91f 100644
--- a/src/Widgets/Filmstrip.cs
+++ b/src/Widgets/Filmstrip.cs
@@ -311,11 +311,12 @@ namespace FSpot.Widgets
int min_length = 400;
protected override void OnSizeRequested (ref Gtk.Requisition requisition)
{
- requisition.Width = min_length + 2 * x_offset;
+ base.OnSizeRequested (ref requisition);
+ requisition.Width = Math.Max (min_length + 2 * x_offset, requisition.Width);
if (min_length % BackgroundTile.Width != 0)
requisition.Width += BackgroundTile.Width - min_length % BackgroundTile.Width;
- requisition.Height = BackgroundTile.Height + (2 * y_offset);
+ requisition.Height = Math.Max (requisition.Height, BackgroundTile.Height + (2 * y_offset));
}
Pixbuf background_pixbuf;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]