Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2014-03-11 22:50:17 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-03-11 22:50:17 +0400
commite545e62af53579e65ebaabb368f9beac88c1e593 (patch)
tree0d87e1c0e5440ff1c73f8608847aec858eb91f1f /Xwt.Gtk
parent9097b240c12d1711b4c8071272de6e7f76329745 (diff)
[GTK] Fix icon size issue in Windows
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r--Xwt.Gtk/Xwt.GtkBackend/Util.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/Util.cs b/Xwt.Gtk/Xwt.GtkBackend/Util.cs
index 059e7ace..7221d2d8 100644
--- a/Xwt.Gtk/Xwt.GtkBackend/Util.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/Util.cs
@@ -49,6 +49,11 @@ namespace Xwt.GtkBackend
iconSizes[i].Width = w;
iconSizes[i].Height = h;
}
+ if (Platform.IsWindows) {
+ // Workaround for an issue in GTK for Windows. In windows Menu-sized icons are not 16x16, but 14x14
+ iconSizes[(int)Gtk.IconSize.Menu].Width = 16;
+ iconSizes[(int)Gtk.IconSize.Menu].Height = 16;
+ }
}
public static void SetDragData (TransferDataSource data, Gtk.DragDataGetArgs args)