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:
authorDavid Lechner <david@lechnology.com>2013-07-31 11:27:49 +0400
committerDavid Lechner <david@lechnology.com>2013-07-31 20:08:43 +0400
commit28180f28bccc3c7bcd8f27dca5690b39cbeb306f (patch)
tree5279e0552a7eabadf0ccdb3d1a46e8b1bea82422 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
parentfa72ce4afbe989e8f0f6bf6a9959cd2187983cc9 (diff)
Finish implementation of mnemonics for Buttons and MenuItems
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rwxr-xr-xXwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
index 0f92fc52..f32e1cf7 100755
--- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
+++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs
@@ -84,14 +84,14 @@ namespace Xwt.GtkBackend
imageWidget = new ImageBox (ApplicationContext, image.WithDefaultSize (Gtk.IconSize.Button));
if (label != null && imageWidget == null) {
- contentWidget = new Gtk.Label (label);
+ contentWidget = new Gtk.Label (label) { UseUnderline = useMnemonic };
}
else if (label == null && imageWidget != null) {
contentWidget = imageWidget;
}
else if (label != null && imageWidget != null) {
Gtk.Box box = position == ContentPosition.Left || position == ContentPosition.Right ? (Gtk.Box) new Gtk.HBox (false, 3) : (Gtk.Box) new Gtk.VBox (false, 3);
- var lab = new Gtk.Label (label);
+ var lab = new Gtk.Label (label) { UseUnderline = useMnemonic };
if (position == ContentPosition.Left || position == ContentPosition.Top) {
box.PackStart (imageWidget, false, false, 0);