[chronojump] genericWin row_add can be at beginning or end of the treeview
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] genericWin row_add can be at beginning or end of the treeview
- Date: Tue, 1 Dec 2020 11:27:50 +0000 (UTC)
commit add17f40a88a7d4b7d790c7327eb162e2de5ab74
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Dec 1 12:01:36 2020 +0100
genericWin row_add can be at beginning or end of the treeview
src/gui/app1/encoder.cs | 2 +-
src/gui/genericWindow.cs | 9 ++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index c7bc6d17..af37eb59 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -1204,7 +1204,7 @@ public partial class ChronoJumpWindow
genericWin.Row_add(new string[] {
uniqueID.ToString(), currentPerson.Name,
UtilGtk.ComboGetActive(combo_encoder_exercise_capture),
d.ToString(), currentSession.DateShort
- }
+ }, true
);
array1RMUpdate(false);
diff --git a/src/gui/genericWindow.cs b/src/gui/genericWindow.cs
index d7a63ec0..c9760781 100644
--- a/src/gui/genericWindow.cs
+++ b/src/gui/genericWindow.cs
@@ -973,13 +973,12 @@ public class GenericWindow
//remove selected row from treeview
store = UtilGtk.RemoveRow(treeview, store);
}
-
- public void Row_add(string [] row) {
- //add row to treeview
- UtilGtk.TreeviewAddRow(treeview, store, row, true); //insert at beginning
+
+ //add row to treeview
+ public void Row_add(string [] row, bool atBeginning) {
+ UtilGtk.TreeviewAddRow(treeview, store, row, atBeginning);
}
-
public void ShowTextview() {
scrolled_window_textview.Show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]