From d9291c4832e416aae68d15cfbe1e5141a3637e15 Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Sun, 12 Jun 2022 21:10:01 +0200 Subject: fix: #68 --- src/database.rs | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/database.rs') 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, } -- cgit 1.4.1