[gnome-boxes] wizard-toolbar: Only click buttons when appropriate
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-toolbar: Only click buttons when appropriate
- Date: Fri, 1 Aug 2014 14:09:12 +0000 (UTC)
commit 0454ec4dc734a11e1cd25fe77587541c1c0d1a24
Author: Lasse Schuirmann <lasse schuirmann gmail com>
Date: Mon Jun 23 17:06:23 2014 +0200
wizard-toolbar: Only click buttons when appropriate
Buttons should only be clicked if they are sensitive.
https://bugzilla.gnome.org/show_bug.cgi?id=729026
src/wizard-toolbar.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wizard-toolbar.vala b/src/wizard-toolbar.vala
index ed90f98..efd79de 100644
--- a/src/wizard-toolbar.vala
+++ b/src/wizard-toolbar.vala
@@ -13,12 +13,12 @@ private class Boxes.WizardToolbar: HeaderBar {
public Button create_btn;
public void click_back_button () {
- if (App.window.wizard.page != WizardPage.INTRODUCTION)
+ if (back_btn.sensitive)
back_btn.clicked ();
}
public void click_forward_button () {
- if (App.window.wizard.page != WizardPage.REVIEW)
+ if (continue_btn.sensitive)
continue_btn.clicked ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]