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:
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/Util.cs')
-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)