tasks r430 - in trunk: . libkoto src/gtk



Author: rburton
Date: Wed Nov 26 12:16:59 2008
New Revision: 430
URL: http://svn.gnome.org/viewvc/tasks?rev=430&view=rev

Log:
2008-11-26  Ross Burton  <ross linux intel com>

	* libkoto/koto-group-store.c:
	* src/gtk/main.c:
	Set uninitialized variables, and remove unused ones (thanks Erik
	Hovland).


Modified:
   trunk/ChangeLog
   trunk/libkoto/koto-group-store.c
   trunk/src/gtk/main.c

Modified: trunk/libkoto/koto-group-store.c
==============================================================================
--- trunk/libkoto/koto-group-store.c	(original)
+++ trunk/libkoto/koto-group-store.c	Wed Nov 26 12:16:59 2008
@@ -286,15 +286,13 @@
 void
 koto_group_store_add_group (KotoGroupStore *store, KotoGroup *group)
 {
-  KotoGroupStorePrivate *priv;
   GtkTreeIter iter;
 
   g_return_if_fail (KOTO_IS_GROUP_STORE (store));
   g_return_if_fail (KOTO_IS_GROUP (group));
-  
-  priv = GET_PRIVATE (store);
 
   gtk_list_store_insert_with_values (GTK_LIST_STORE (store), &iter, 0, COL_GROUP, group, -1);
+
   //TODO? g_hash_table_insert (priv->iter_hash, g_strdup (name), gtk_tree_iter_copy (&new_it));
 }
 

Modified: trunk/src/gtk/main.c
==============================================================================
--- trunk/src/gtk/main.c	(original)
+++ trunk/src/gtk/main.c	Wed Nov 26 12:16:59 2008
@@ -64,15 +64,12 @@
 static gboolean
 select_uid (char *uid)
 {
-  GtkTreeSelection *selection;
   GtkTreeIter iter, real_iter;
   GtkTreePath *path;
 
   g_assert (uid);
   
   if (koto_task_store_get_iter_for_uid (KOTO_TASK_STORE (task_store), uid, &iter)) {
-    selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
-    
     gtk_tree_model_filter_convert_child_iter_to_iter (GTK_TREE_MODEL_FILTER (filter),
                                                       &real_iter, &iter);
     
@@ -296,9 +293,9 @@
 on_selection_changed (GtkTreeSelection *selection, gpointer user_data)
 {
   GtkActionGroup *actions = user_data;
-  GtkAction *action;
+  GtkAction *action = NULL;
   gboolean complete = FALSE;
-  GtkTreeModel *model;
+  GtkTreeModel *model = NULL;
   GtkTreeIter iter;
 
   /* Enable or disable the group based on the number of rows selected */



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