← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~linuxdcpp-team/linuxdcpp/trunk] Rev 385: Show preferences dialog on initial startup

 

------------------------------------------------------------
revno: 385
committer: Steven Sheehy <steven.sheehy@xxxxxxxxx>
branch nick: trunk
timestamp: Sat 2010-09-04 19:43:46 -0500
message:
  Show preferences dialog on initial startup
modified:
  Changelog.txt
  linux/mainwindow.cc
  linux/settingsmanager.cc


--
lp:linuxdcpp
https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk

Your team LinuxDC++ Team is subscribed to branch lp:linuxdcpp.
To unsubscribe from this branch go to https://code.launchpad.net/~linuxdcpp-team/linuxdcpp/trunk/+edit-subscription
=== modified file 'Changelog.txt'
--- Changelog.txt	2010-09-05 00:10:54 +0000
+++ Changelog.txt	2010-09-05 00:43:46 +0000
@@ -57,6 +57,7 @@
 [2010-08-26] Added Ctrl+F4 to close a tab. (thanks Bart Vullings)
 [2010-09-04] Show the filename when grouping by TTH in search. (Steven)
 [2010-09-04] Renamed Nick to User for consistency and grammar. (Steven)
+[2010-09-04] Show preferences dialog on initial startup. (Steven)
 
 *** 1.0.3 2009-02-01 ***
 [2008-08-10] lp#256236: Fixed a crash on startup when using auto-open options.

=== modified file 'linux/mainwindow.cc'
--- linux/mainwindow.cc	2010-08-27 01:41:14 +0000
+++ linux/mainwindow.cc	2010-09-05 00:43:46 +0000
@@ -243,6 +243,12 @@
 	WulforManager::get()->dispatchClientFunc(f0);
 
 	autoOpen_gui();
+
+	if (WGETI("show-preferences-on-startup"))
+	{
+		onPreferencesClicked_gui(NULL, (gpointer)this);
+		WSET("show-preferences-on-startup", 0);
+	}
 }
 
 void MainWindow::setTitle(const string& text)

=== modified file 'linux/settingsmanager.cc'
--- linux/settingsmanager.cc	2010-05-22 14:23:56 +0000
+++ linux/settingsmanager.cc	2010-09-05 00:43:46 +0000
@@ -44,6 +44,7 @@
 	defaultInt["use-system-icons"] = 0;
 	defaultInt["tab-position"] = 0;
 	defaultInt["toolbar-style"] = 5;
+	defaultInt["show-preferences-on-startup"] = 1;
 #ifdef HAVE_LIBNOTIFY
 	defaultInt["notify-download"] = 1;
 	defaultInt["notify-pm"] = 1;