diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-03-11 22:50:17 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2014-03-11 22:50:17 +0400 |
commit | e545e62af53579e65ebaabb368f9beac88c1e593 (patch) | |
tree | 0d87e1c0e5440ff1c73f8608847aec858eb91f1f /Xwt.Gtk | |
parent | 9097b240c12d1711b4c8071272de6e7f76329745 (diff) |
[GTK] Fix icon size issue in Windows
Diffstat (limited to 'Xwt.Gtk')
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/Util.cs | 5 |
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) |