[gnome-boxes] No need to launch wizard on first time anymore
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] No need to launch wizard on first time anymore
- Date: Tue, 29 Jan 2013 14:25:00 +0000 (UTC)
commit 8796e6f0c2d0a5e63c8961be439547708a46dd40
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jan 24 00:39:51 2013 +0200
No need to launch wizard on first time anymore
Showing wizard automatically doesn't make sense anymore when we show the
initial greeting message in the main view.
https://bugzilla.gnome.org/show_bug.cgi?id=686936
src/app.vala | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 6518ba8..73dddf6 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -72,7 +72,7 @@ private class Boxes.App: Boxes.UI {
public CollectionFilter filter;
private bool is_ready;
- public signal void ready (bool first_time);
+ public signal void ready ();
public signal void item_selected (CollectionItem item);
private Boxes.Application application;
public CollectionView view;
@@ -170,20 +170,19 @@ private class Boxes.App: Boxes.UI {
setup_sources.begin ((obj, result) => {
setup_sources.end (result);
is_ready = true;
- var no_items = collection.items.length == 0;
- ready (no_items);
+ ready ();
});
check_cpu_vt_capability.begin ();
check_module_kvm_loaded.begin ();
}
- public delegate void CallReadyFunc (bool first_time);
+ public delegate void CallReadyFunc ();
public void call_when_ready (CallReadyFunc func) {
if (is_ready)
- func (false);
- ready.connect ((first_time) => {
- func (first_time);
+ func ();
+ ready.connect (() => {
+ func ();
});
}
@@ -261,11 +260,6 @@ private class Boxes.App: Boxes.UI {
open (arg);
});
}
- } else {
- call_when_ready ((first_time) => {
- if (first_time)
- app.ui_state = Boxes.UIState.WIZARD;
- });
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]