[tasks] Handle the edit unique command
- From: Ross Burton <rburton src gnome org>
- To: svn-commits-list gnome org
- Subject: [tasks] Handle the edit unique command
- Date: Fri, 27 Mar 2009 13:48:35 -0400 (EDT)
commit dd51bdd3857cb00fd96ca82fc39ca2ce6d3658ab
Author: Ross Burton <ross linux intel com>
Date: Fri Mar 20 16:06:45 2009 +0000
Handle the edit unique command
---
src/gtk/main.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/gtk/main.c b/src/gtk/main.c
index 8b7a0c9..d157de8 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -550,6 +550,19 @@ do_message_received (UniqueApp *app,
unique_message_data_get_screen (message));
gtk_window_present_with_time (GTK_WINDOW (window), time_);
break;
+ case COMMAND_EDIT:
+ {
+ GtkTreeIter iter;
+ if (koto_task_store_get_iter_for_uid (KOTO_TASK_STORE (task_store),
+ unique_message_data_get_text (message),
+ &iter)) {
+ KotoTask *task;
+ gtk_tree_model_get (task_store, &iter, COLUMN_TASK, &task, -1);
+ edit_task (task);
+ koto_task_unref (task);
+ }
+ }
+ break;
default:
g_debug ("Unhandled unique command %d", command);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]