[banshee: 35/61] [InternetArchive] Show intro text about IA
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee: 35/61] [InternetArchive] Show intro text about IA
- Date: Tue, 3 Nov 2009 06:30:47 +0000 (UTC)
commit 7cb8aa33c407b492fe7134f59bf7dc0e1dcc525a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Oct 13 11:31:13 2009 -0700
[InternetArchive] Show intro text about IA
.../Banshee.InternetArchive/SearchSource.cs | 22 ++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
index 1b4f481..bdc3b30 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
@@ -103,6 +103,8 @@ namespace Banshee.InternetArchive
foreach (var item in Item.LoadAll ()) {
AddChildSource (new DetailsSource (item));
}
+
+ ShowIntroText ();
}
public void Reload ()
@@ -197,5 +199,25 @@ namespace Banshee.InternetArchive
actions.Dispose ();
}
}
+
+ private void ShowIntroText ()
+ {
+ if (show_intro.Get ()) {
+ string intro_txt = Catalog.GetString ("The Internet Archive, a 501(c)(3) non-profit, is building a digital library of Internet sites and other cultural artifacts in digital form. Like a paper library, we provide free access to researchers, historians, scholars, and the general public.");
+
+ SetStatus (intro_txt, true, false, "gtk-info");
+
+ MessageNotify += (o, a) => {
+ var msg = CurrentMessage;
+ if (msg != null) {
+ if (msg.IsHidden && msg.Text == intro_txt) {
+ show_intro.Set (false);
+ }
+ }
+ };
+ }
+ }
+
+ private SchemaEntry<bool> show_intro = new SchemaEntry<bool> ("plugins.internetarchive", "show_intro", true, null, null);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]