about summary refs log tree commit diff
path: root/src/database.rs
diff options
context:
space:
mode:
authorFelix Zwettler <f.zwettler@posteo.de>2022-06-12 21:10:01 +0200
committerFelix Zwettler <f.zwettler@posteo.de>2022-06-12 21:10:01 +0200
commitd9291c4832e416aae68d15cfbe1e5141a3637e15 (patch)
tree668a65608aef595c0620053f7f9cdc9d3cfa8fa2 /src/database.rs
parentf19023ce3917efde04ff37fb77c00f6bd56b2c13 (diff)
downloadFurtherance-d9291c4832e416aae68d15cfbe1e5141a3637e15.tar.zst
fix: #68
Diffstat (limited to 'src/database.rs')
-rwxr-xr-xsrc/database.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/database.rs b/src/database.rs
index 10e4bef..8a8b966 100755
--- a/src/database.rs
+++ b/src/database.rs
@@ -16,7 +16,6 @@
 
 use chrono::{DateTime, Local};
 use directories::ProjectDirs;
-use gtk::glib;
 use rusqlite::{Connection, Result};
 use std::convert::TryFrom;
 use std::fs::create_dir_all;
@@ -41,13 +40,9 @@ pub struct Task {
     Ord,
     num_derive::FromPrimitive,
     num_derive::ToPrimitive,
-    glib::Enum,
 )]
-#[enum_type(name = "SortOrder")]
 pub enum SortOrder {
-    #[enum_value(name = "Ascending", nick = "Ascending")]
     Ascending = 0,
-    #[enum_value(name = "Descending", nick = "Descending")]
     Descending,
 }
 
@@ -86,15 +81,10 @@ impl SortOrder {
     Ord,
     num_derive::ToPrimitive,
     num_derive::FromPrimitive,
-    glib::Enum,
 )]
-#[enum_type(name = "TaskSort")]
 pub enum TaskSort {
-    #[enum_value(name = "StartTime", nick = "Start time")]
     StartTime,
-    #[enum_value(name = "StopTime", nick = "Stop time")]
     StopTime,
-    #[enum_value(name = "TaskName", nick = "Task name")]
     TaskName,
 }