[tasks] Remove trailing whitespace



commit 547e4163152fcf1e182dfa3d2af6b32a0ffdac7c
Author: Ross Burton <ross linux intel com>
Date:   Fri Mar 27 16:59:05 2009 +0000

    Remove trailing whitespace
---
 src/gtk/main.c |   70 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 35 insertions(+), 35 deletions(-)

diff --git a/src/gtk/main.c b/src/gtk/main.c
index d157de8..c6966ea 100644
--- a/src/gtk/main.c
+++ b/src/gtk/main.c
@@ -73,16 +73,16 @@ select_uid (char *uid)
   GtkTreePath *path;
 
   g_assert (uid);
-  
+
   if (koto_task_store_get_iter_for_uid (KOTO_TASK_STORE (task_store), uid, &iter)) {
     gtk_tree_model_filter_convert_child_iter_to_iter (GTK_TREE_MODEL_FILTER (filter),
                                                       &real_iter, &iter);
-    
+
     path = gtk_tree_model_get_path (filter, &real_iter);
     gtk_tree_view_set_cursor (GTK_TREE_VIEW (treeview), path, NULL, FALSE);
     gtk_tree_path_free (path);
   }
-  
+
   g_free (uid);
   return FALSE;
 }
@@ -128,7 +128,7 @@ create_component (const char *text, KotoGroup *default_group)
     text = g_utf8_next_char (text);
     skip_whitespace (&text);
   }
-  
+
   /* If the task starts with @foo, put it in the "foo" group. */
   if (text[0] == '@') {
     char *end, *guess;
@@ -143,14 +143,14 @@ create_component (const char *text, KotoGroup *default_group)
       /* Try and find a matching group */
       group = koto_group_store_match_group
         (KOTO_GROUP_STORE (group_selector_store), guess);
-      
+
       if (group)
         g_free (guess);
       else
         group = guess;
     }
   }
-  
+
   /* Parse any date hints in the text */
   date = koto_date_parse (text, &parsed_text);
   if (date) {
@@ -163,7 +163,7 @@ create_component (const char *text, KotoGroup *default_group)
   icalcomponent_add_property (comp,
 			      icalproperty_new_summary (parsed_text ?: text));
   g_free (parsed_text);
-  
+
   /* If a group wasn't specified in the task, use the current group */
   if (group == NULL) {
     if (default_group &&
@@ -172,7 +172,7 @@ create_component (const char *text, KotoGroup *default_group)
       group = g_strdup (koto_group_get_name (default_group));
     }
   }
-  
+
   if (group) {
     icalcomponent_add_property (comp, icalproperty_new_categories (group));
     g_free (group);
@@ -191,7 +191,7 @@ on_new_clicked (GtkButton *button)
   KotoUndoContext *ctxt;
 
   text = gtk_entry_get_text (GTK_ENTRY (new_entry));
-  
+
   if (!text || text[0] == '\0') {
     g_warning ("Got clicked with empty text");
     return;
@@ -207,7 +207,7 @@ on_new_clicked (GtkButton *button)
                                                     NULL);
 
   koto_action_create_task (cal, comp, &uid, ctxt);
-  
+
   koto_undo_manager_context_end (undo_manager, ctxt);
 
   koto_hint_entry_clear (KOTO_HINT_ENTRY (new_entry));
@@ -222,7 +222,7 @@ on_new_clicked (GtkButton *button)
   }
 }
 
-/* 
+/*
  * Used to enable/disable the new task button depending on the contents of the
  * entry.
  */
@@ -253,18 +253,18 @@ edit_task (KotoTask *task)
     dialog = koto_task_editor_dialog_new ();
     gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (window));
     g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL);
-    
+
     g_object_set (dialog,
                   "cal", cal,
                   "groups", group_selector_store,
                   "task", task,
                   "undo-manager", undo_manager,
                   NULL);
-    
+
     window_bind_state (GTK_WINDOW (dialog), "task-editor");
 
     gtk_widget_show (dialog);
-    
+
     g_hash_table_insert (edit_dialog_hash, task, dialog);
     g_object_weak_ref (G_OBJECT (dialog), edit_dialog_weak_notify, koto_task_ref (task));
   }
@@ -337,7 +337,7 @@ on_edit_task_action (GtkAction *action, gpointer user_data)
     g_warning ("No task selected, EditTask should be disabled");
     return;
   }
-  
+
   edit_task (task);
 
   koto_task_unref (task);
@@ -355,9 +355,9 @@ on_complete_task_action (GtkToggleAction *action, gpointer user_data)
   }
 
   state = gtk_toggle_action_get_active (action);
-    
+
   gtk_tree_model_filter_convert_iter_to_child_iter (GTK_TREE_MODEL_FILTER (filter), &real_iter, &iter);
-  
+
   undo = koto_undo_manager_context_begin (undo_manager, _("Complete Task"));
   koto_task_store_set_done (KOTO_TASK_STORE (task_store), &real_iter, state, undo);
   koto_undo_manager_context_end (undo_manager, undo);
@@ -377,14 +377,14 @@ on_delete_task_action (GtkAction *action, gpointer user_data)
     g_warning ("No task selected, DeleteTask should be disabled");
     return;
   }
-  
+
   ctxt = koto_undo_manager_context_begin_formatted (undo_manager,
                                                     _("Delete Task %s"),
                                                     icalcomponent_get_summary (task->comp),
                                                     NULL);
   koto_action_delete_task (cal, task, ctxt);
   koto_undo_manager_context_end (undo_manager, ctxt);
-  
+
   koto_task_unref (task);
 }
 
@@ -403,13 +403,13 @@ purge_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpoint
                       COLUMN_DONE, &done,
                       COLUMN_TASK, &task,
                       -1);
-  
+
   if (done) {
     koto_action_delete_task (cal, task, ctxt);
   }
 
   koto_task_unref (task);
-  
+
   return FALSE;
 }
 
@@ -422,9 +422,9 @@ on_purge_action (GtkAction *action, gpointer user_data)
   KotoUndoContext *ctxt;
 
   ctxt = koto_undo_manager_context_begin (undo_manager, _("Remove Completed"));
-  
+
   gtk_tree_model_foreach (task_store, purge_foreach, ctxt);
-  
+
   koto_undo_manager_context_end (undo_manager, ctxt);
 }
 
@@ -473,7 +473,7 @@ on_about_action (GtkAction *action, gpointer user_data)
                          NULL);
 }
 
-static const GtkActionEntry actions[] = 
+static const GtkActionEntry actions[] =
 {
   /* Action name, stock ID, label, accelerator, tooltip, callback */
   { "TasksMenu", NULL, N_("_Task") },
@@ -487,7 +487,7 @@ static const GtkActionEntry actions[] =
   { "About", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK (on_about_action) },
 };
 
-static const GtkActionEntry task_actions[] = 
+static const GtkActionEntry task_actions[] =
 {
   { "EditTask", GTK_STOCK_EDIT, N_("Edit..."), "<control>e", NULL, G_CALLBACK (on_edit_task_action) },
   { "DeleteTask", GTK_STOCK_DELETE, NULL, "<control>Delete", NULL, G_CALLBACK (on_delete_task_action) },
@@ -512,15 +512,15 @@ koto_platform_open_url (const char *url)
 #else
   char cmd[1024];
 
-  g_snprintf (cmd, sizeof (cmd), "gnome-open \"%s\"", url);  
+  g_snprintf (cmd, sizeof (cmd), "gnome-open \"%s\"", url);
   if (g_spawn_command_line_async (cmd, NULL))
     return;
 
-  g_snprintf (cmd, sizeof (cmd), "xdg-open \"%s\"", url);  
+  g_snprintf (cmd, sizeof (cmd), "xdg-open \"%s\"", url);
   if (g_spawn_command_line_async (cmd, NULL))
     return;
 
-  g_snprintf (cmd, sizeof (cmd), "firefox \"%s\"", url);  
+  g_snprintf (cmd, sizeof (cmd), "firefox \"%s\"", url);
   if (g_spawn_command_line_async (cmd, NULL))
     return;
 
@@ -532,7 +532,7 @@ void
 koto_platform_edit_task (KotoTask *task)
 {
   g_return_if_fail (task);
-  
+
   edit_task (task);
 }
 
@@ -567,7 +567,7 @@ do_message_received (UniqueApp         *app,
     g_debug ("Unhandled unique command %d", command);
     break;
   }
-  
+
   return UNIQUE_RESPONSE_OK;
 }
 #endif
@@ -635,7 +635,7 @@ main (int argc, char **argv)
   cal = e_cal_new_system_tasks ();
   if (!cal)
     g_error ("Cannot get system tasks");
-  
+
   if (!e_cal_open (cal, FALSE, &error))
     g_error("Cannot open calendar: %s", error->message);
 
@@ -646,7 +646,7 @@ main (int argc, char **argv)
 
   /* Create the data stores */
   task_store = koto_task_store_new (cal_view);
-  
+
   group_filter_store = koto_group_store_new (cal_view);
   koto_group_store_add_group (KOTO_GROUP_STORE (group_filter_store), koto_all_group_new ());
   koto_group_store_add_group (KOTO_GROUP_STORE (group_filter_store), koto_meta_group_new (KOTO_META_GROUP_SEPERATOR, -99));
@@ -658,7 +658,7 @@ main (int argc, char **argv)
   koto_group_store_add_group (KOTO_GROUP_STORE (group_selector_store), koto_meta_group_new (KOTO_META_GROUP_SEPERATOR, -99));
   koto_group_store_add_group (KOTO_GROUP_STORE (group_selector_store), koto_meta_group_new (KOTO_META_GROUP_SEPERATOR, 99));
   koto_group_store_add_group (KOTO_GROUP_STORE (group_selector_store), koto_meta_group_new (KOTO_META_GROUP_NEW, 100));
-  
+
   /* Create the UI */
   gtk_window_set_default_icon_name ("tasks");
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -672,7 +672,7 @@ main (int argc, char **argv)
 #endif
 
   top_box = gtk_vbox_new (FALSE, 0);
-  gtk_container_add (GTK_CONTAINER (window), top_box); 
+  gtk_container_add (GTK_CONTAINER (window), top_box);
 
   action_group = gtk_action_group_new ("Actions");
   gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
@@ -740,7 +740,7 @@ main (int argc, char **argv)
   selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
   g_signal_connect (selection, "changed", G_CALLBACK (on_selection_changed), task_action_group);
   on_selection_changed (selection, task_action_group);
-  
+
   hbox = gtk_hbox_new (FALSE, 4);
   new_entry = koto_hint_entry_new (_("New task..."));
   gtk_entry_set_activates_default (GTK_ENTRY (new_entry), TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]