[gnome-mines] Added set_image() call. Fixes bug #781602 and #778408.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Added set_image() call. Fixes bug #781602 and #778408.
- Date: Tue, 26 Dec 2017 02:38:00 +0000 (UTC)
commit efd335c10dba10c03fdddec74c37468ae3bde423
Author: Daiki Matsunaga <matsu d 224 icloud com>
Date: Sat Apr 29 15:49:48 2017 +0900
Added set_image() call. Fixes bug #781602 and #778408.
src/tile.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tile.vala b/src/tile.vala
index 7a40b1d..e9e6acf 100644
--- a/src/tile.vala
+++ b/src/tile.vala
@@ -29,6 +29,7 @@ public class Tile : Gtk.Button
scaling_image.clear ();
scaling_image.set_from_icon_name (name, size);
scaling_image.set_pixel_size (get_allocated_height ()/3*2);
+ set_image (scaling_image);
}
public Tile (int prow, int pcol)
@@ -66,6 +67,7 @@ public class Tile : Gtk.Button
if (style_class in IMAGE_CLASSES) {
scaling_image.set_from_icon_name (style_class, Gtk.IconSize.DND);
scaling_image.set_pixel_size (get_allocated_height ()/3*2);
+ set_image (scaling_image);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]