diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-10-02 12:59:59 +0200 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-10-02 12:59:59 +0200 |
commit | e37ff661ac2239b5342a9d3598d570206db74de5 (patch) | |
tree | e477a0b63c543a87af8b4559575d156716efef86 /src | |
parent | 87c05770789958e6786e6490eb1fa25cd116b361 (diff) | |
download | Furtherance-e37ff661ac2239b5342a9d3598d570206db74de5.tar.zst |
Long task names no longer go off the page in Reports window
Diffstat (limited to 'src')
-rw-r--r-- | src/gtk/report.ui | 5 | ||||
-rw-r--r-- | src/ui/report.rs | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/gtk/report.ui b/src/gtk/report.ui index 9d4d5c8..92ae072 100644 --- a/src/gtk/report.ui +++ b/src/gtk/report.ui @@ -155,13 +155,10 @@ <object class="GtkScrolledWindow"> <property name="vexpand">true</property> <child> - <object class="GtkTreeView" id="results_tree"> - - </object> + <object class="GtkTreeView" id="results_tree"></object> </child> </object> </child> - </object> </child> </object> diff --git a/src/ui/report.rs b/src/ui/report.rs index c7c1a75..a23bfda 100644 --- a/src/ui/report.rs +++ b/src/ui/report.rs @@ -158,6 +158,7 @@ impl FurReport { let task_column = gtk::TreeViewColumn::with_attributes(&gettext("Task"), &renderer, &[("text", 0)]); task_column.set_expand(true); + task_column.set_fixed_width(100); task_column.set_resizable(true); let duration_column = gtk::TreeViewColumn::with_attributes(&gettext("Duration"), &renderer, &[("text", 1)]); @@ -475,3 +476,4 @@ impl FurReport { format!("{:02}:{:02}:{:02}", h, m, s) } } + |