[gnome-boxes] topbar: Provide kbd accelerator for "New" button
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] topbar: Provide kbd accelerator for "New" button
- Date: Wed, 28 Aug 2013 16:10:39 +0000 (UTC)
commit 3061b8573dd9c0d4bc4e28c9ad3d41f1c9a5ae28
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Aug 28 19:09:59 2013 +0300
topbar: Provide kbd accelerator for "New" button
src/topbar.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/topbar.vala b/src/topbar.vala
index 2784bc9..998414a 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -53,7 +53,10 @@ private class Boxes.Topbar: Boxes.UI {
toolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_MENUBAR);
hbox.pack_start (toolbar, true, true, 0);
- new_btn = toolbar.add_button (null, _("New"), true) as Gtk.Button;
+ new_btn = toolbar.add_button (null, _("_New"), true) as Gtk.Button;
+ new_btn.use_underline = true;
+ // workaround for libgd bug #698289
+ new_btn.label = _("_New");
new_btn.set_size_request (70, -1);
new_btn.clicked.connect ((button) => { App.app.ui_state = UIState.WIZARD; });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]