[pan2/testing: 257/279] add "start minimized" option
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing: 257/279] add "start minimized" option
- Date: Sat, 3 Dec 2011 22:43:00 +0000 (UTC)
commit ac5527319359503b88a98bc8629dc84992216d8b
Author: Heinrich MÃller <sphemuel stud informatik uni-erlangen de>
Date: Fri Nov 25 14:45:58 2011 +0100
add "start minimized" option
pan/gui/pan.cc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 7e234b7..66c515a 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -185,7 +185,7 @@ namespace
}
StatusIconListener(GtkStatusIcon * i, GtkWidget* r, Prefs& p, Queue& q, Data& d, bool v) : icon(i), root(r), prefs(p), queue(q), data(d),
- tasks_active(0), tasks_total(0), is_online(false)
+ tasks_active(0), tasks_total(0), is_online(false), minimized(v)
{
prefs.add_listener(this);
queue.add_listener(this);
@@ -288,6 +288,7 @@ namespace
int tasks_active;
int tasks_total;
bool is_online;
+ bool minimized;
guint status_icon_timeout_tag;
public:
@@ -367,7 +368,8 @@ namespace
GUI gui (data, queue, prefs, group_prefs);
gtk_container_add (GTK_CONTAINER(window), gui.root());
- gtk_widget_show (GTK_WIDGET(window));
+ const bool minimized(prefs.get_flag("start-minimized", false));
+ if (!minimized) gtk_widget_show (GTK_WIDGET(window));
const quarks_t servers (data.get_servers ());
if (servers.empty())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]