projects
/
ptask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support of tasks with deleted status
[ptask.git]
/
src
/
ui.c
diff --git
a/src/ui.c
b/src/ui.c
index
78262bd
..
3a3f7bc
100644
(file)
--- a/
src/ui.c
+++ b/
src/ui.c
@@
-114,20
+114,14
@@
GtkWindow *create_window(GtkBuilder *builder, GSettings *settings)
const char *ui_get_status_filter()
{
const char *ui_get_status_filter()
{
- const char *result;
- int status;
+ const char *status;
log_fct_enter();
log_fct_enter();
- status = gtk_combo_box_get_active(w_status);
+ status = gtk_combo_box_get_active
_id
(w_status);
log_fct(__func__, "status: %d", status);
log_fct(__func__, "status: %d", status);
- if (status == 1)
- result = "completed";
- else
- result = "pending";
-
log_fct_exit();
log_fct_exit();
- return
result
;
+ return
status
;
}
}