[gnome-boxes] libvirt-machine: Yes/No dialog
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: Yes/No dialog
- Date: Fri, 21 Feb 2014 23:35:57 +0000 (UTC)
commit 408b64ff4356d45146929d0081ac4133e75e92ae
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Feb 21 23:34:02 2014 +0000
libvirt-machine: Yes/No dialog
As per HIG.
https://bugzilla.gnome.org/show_bug.cgi?id=711262
src/libvirt-machine.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 485b790..eae4022 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -442,8 +442,10 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
var dialog = new Gtk.MessageDialog (App.app.window,
Gtk.DialogFlags.DESTROY_WITH_PARENT,
Gtk.MessageType.QUESTION,
- Gtk.ButtonsType.OK_CANCEL,
+ Gtk.ButtonsType.NONE,
_("When you force shutdown, the box may lose data."));
+ dialog.add_buttons (_("Cancel"), Gtk.ResponseType.CANCEL,
+ _("Shutdown"), Gtk.ResponseType.OK);
var response = dialog.run ();
dialog.destroy ();
@@ -598,7 +600,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
var message = _("Restart of '%s' is taking too long. Force it to shutdown?").printf (name);
notification = App.app.notificationbar.display_for_action (message,
- _("_Yes"),
+ _("_Shutdown"),
(owned) really_force_shutdown,
null,
-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]