[longomatch] Only set images after scalling
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Only set images after scalling
- Date: Sun, 18 Dec 2011 21:43:00 +0000 (UTC)
commit e58524b51639ef0747f1a9b98084b94f672cab26
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Dec 11 21:45:07 2011 +0100
Only set images after scalling
LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
index 43fbace..58df7e4 100644
--- a/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamTemplateEditor.cs
@@ -117,8 +117,10 @@ namespace LongoMatch.Gui.Component
shield = Helpers.OpenImage((Gtk.Window)this.Toplevel);
if (shield != null) {
- Template.Shield = new Image(shield);
- shieldImage.Pixbuf = shield;
+ Image img = new Image(shield);
+ img.Scale();
+ Template.Shield = img;
+ shieldImage.Pixbuf = img.Value;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]