[gnome-boxes] libvirt-machine-props: Mnemonic for "Run in bg" toggle
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine-props: Mnemonic for "Run in bg" toggle
- Date: Fri, 7 Aug 2015 14:24:12 +0000 (UTC)
commit 7b42fb72259d028efcc516469d5e5913adf3961c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Aug 7 13:44:24 2015 +0100
libvirt-machine-props: Mnemonic for "Run in bg" toggle
Add mnemonic to "Run in background" toggle so users can quickly switch
it on and off.
https://bugzilla.gnome.org/show_bug.cgi?id=731971
src/libvirt-machine-properties.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 84495b9..0a99c22 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -691,7 +691,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
box.halign = Gtk.Align.END;
box.has_tooltip = true;
- var label = new Gtk.Label (_("Run in background"));
+ var label = new Gtk.Label.with_mnemonic (_("_Run in background"));
label.get_style_context ().add_class ("boxes-property-name-label");
box.add (label);
var toggle = new Gtk.Switch ();
@@ -699,6 +699,7 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
BindingFlags.BIDIRECTIONAL | BindingFlags.SYNC_CREATE);
toggle.halign = Gtk.Align.START;
box.add (toggle);
+ label.mnemonic_widget = toggle;
var name = machine.name;
box.tooltip_text = toggle.active? _("'%s' will not be paused automatically.").printf (name) :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]