aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-task-shell-sidebar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-19 06:50:55 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:20 +0800
commit64f0ac1372b1d5179647bbdd11d9bbf80a2224be (patch)
tree9a6467ba9f3406c8a672d147ce20aa2844aea6fb /modules/calendar/e-task-shell-sidebar.c
parentd009b5b36522a8b4d29e8d199dc7a32159c34edd (diff)
downloadgsoc2013-evolution-64f0ac1372b1d5179647bbdd11d9bbf80a2224be.tar.gz
gsoc2013-evolution-64f0ac1372b1d5179647bbdd11d9bbf80a2224be.tar.zst
gsoc2013-evolution-64f0ac1372b1d5179647bbdd11d9bbf80a2224be.zip
Use e_source_selector_get_source_by_path().
Allows Evolution to not have to know the ESource column number in ESourceSelector tree models. Backported from "account-mgmt" branch.
Diffstat (limited to 'modules/calendar/e-task-shell-sidebar.c')
-rw-r--r--modules/calendar/e-task-shell-sidebar.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/calendar/e-task-shell-sidebar.c b/modules/calendar/e-task-shell-sidebar.c
index a688da41cd..e00159026c 100644
--- a/modules/calendar/e-task-shell-sidebar.c
+++ b/modules/calendar/e-task-shell-sidebar.c
@@ -333,15 +333,8 @@ task_shell_sidebar_row_changed_cb (ETaskShellSidebar *task_shell_sidebar,
ESourceSelector *selector;
ESource *source;
- /* XXX ESourceSelector's underlying tree store has only one
- * column: ESource objects. While we're not supposed to
- * know this, listening for "row-changed" signals from
- * the model is easier to deal with than the selector's
- * "selection-changed" signal, which doesn't tell you
- * _which_ row changed. */
-
selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);
- gtk_tree_model_get (tree_model, tree_iter, 0, &source, -1);
+ source = e_source_selector_get_source_by_path (selector, tree_path);
/* XXX This signal gets emitted a lot while the model is being
* rebuilt, during which time we won't get a valid ESource.