[chronojump/chronojump-importer: 39/66] Hides widgets that were not needed when importing sessions.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer: 39/66] Hides widgets that were not needed when importing sessions.
- Date: Mon, 26 Sep 2016 22:21:10 +0000 (UTC)
commit 94ee562381bcccc0d700291cdb38880a1eab51a9
Author: Carles Pina i Estany <carles pina cat>
Date: Tue Sep 13 21:30:22 2016 +0100
Hides widgets that were not needed when importing sessions.
Now filters sessions even when importing a session.
src/gui/session.cs | 3 +++
src/sqlite/session.cs | 4 +++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/session.cs b/src/gui/session.cs
index f6c727c..1050f6d 100644
--- a/src/gui/session.cs
+++ b/src/gui/session.cs
@@ -679,7 +679,10 @@ public class SessionLoadWindow {
gladeXML.Autoconnect(this);
this.parent = parent;
+ // Hides and shows widgets only needed by some of the functionality
session_import_box.Visible = (type == WindowType.IMPORT_SESSION);
+ checkbutton_show_data_encoder.Visible = (type == WindowType.LOAD_SESSION);
+ checkbutton_show_data_jump_run.Visible = (type == WindowType.LOAD_SESSION);
//put an icon to window
UtilGtk.IconWindow(session_load);
diff --git a/src/sqlite/session.cs b/src/sqlite/session.cs
index f52b669..d1698fb 100644
--- a/src/sqlite/session.cs
+++ b/src/sqlite/session.cs
@@ -68,7 +68,9 @@ public class SqliteSessionSwitcher
while (reader.Read())
{
string row = string.Format
("{0}:{1}::{2}--Undefined::Undefined:{3}:0:0:0:0:0:0:0:0:0 ; 0:0 ; 0", reader ["uniqueID"], reader ["name"],
reader ["date"], reader ["comments"]);
- result.Add(row);
+ if (row.ToLower ().Contains (filterName)) {
+ result.Add(row);
+ }
}
return result.ToArray();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]