projects
/
ptask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
97bd5ac
)
(no commit message)
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 16 Oct 2012 08:06:22 +0000
(08:06 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Tue, 16 Oct 2012 08:06:22 +0000
(08:06 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
0d815ce
..
759cf49
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-38,6
+38,8
@@
static struct task *get_selected_task(GtkTreeView *treeview)
gint *i;
struct task *task;
gint *i;
struct task *task;
+ printf("get_selected_task\n");
+
gtk_tree_view_get_cursor(treeview, &path, &cols);
if (path) {
gtk_tree_view_get_cursor(treeview, &path, &cols);
if (path) {
@@
-53,6
+55,8
@@
static struct task *get_selected_task(GtkTreeView *treeview)
return task;
}
return task;
}
+ printf("get_selected_task returns NULL\n");
+
return NULL;
}
return NULL;
}
@@
-61,8
+65,9
@@
static void refresh()
GtkTreeModel *model;
struct task **tasks_cur;
struct task *task;
GtkTreeModel *model;
struct task **tasks_cur;
struct task *task;
- GtkTreeIter iter;
int i;
int i;
+ GtkTreeIter iter;
+ /*GtkTreeSelection *sel;*/
tasks = get_all_tasks();
tasks = get_all_tasks();
@@
-85,6
+90,11
@@
static void refresh()
1, (*tasks_cur)->description,
-1);
}
1, (*tasks_cur)->description,
-1);
}
+
+ /*
+ sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(w_treeview));
+ gtk_tree_model_get_iter_first(model, &iter);
+ gtk_tree_selection_select_iter(sel, &iter);*/
}
static int tasksave_clicked_cbk(GtkButton *btn, gpointer data)
}
static int tasksave_clicked_cbk(GtkButton *btn, gpointer data)