diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-20 22:35:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-21 03:31:51 +0800 |
commit | 0eaa11530b1c08bea188f4ca69a3dba1609c235e (patch) | |
tree | c24fa3e0f1747b205e2a56802648bd3021d2c51e /mail | |
parent | 4787411d06b714bf5e083f85cd4e2f874916ba2e (diff) | |
download | gsoc2013-evolution-0eaa11530b1c08bea188f4ca69a3dba1609c235e.tar.gz gsoc2013-evolution-0eaa11530b1c08bea188f4ca69a3dba1609c235e.tar.zst gsoc2013-evolution-0eaa11530b1c08bea188f4ca69a3dba1609c235e.zip |
Remove e_tree_root_node_set_visible().
Reducing API bloat. Do this instead:
adapter = e_tree_get_table_adapter (tree);
e_tree_table_adapter_root_node_set_visible (adapter, visible);
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 96a5aacb36..9cd9bf5980 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3225,6 +3225,7 @@ message_list_init (MessageList *message_list) static void message_list_construct (MessageList *message_list) { + ETreeTableAdapter *adapter; AtkObject *a11y; gboolean constructed; gchar *etspecfile; @@ -3241,8 +3242,10 @@ message_list_construct (MessageList *message_list) message_list->extras, etspecfile, NULL); g_free (etspecfile); + adapter = e_tree_get_table_adapter (E_TREE (message_list)); + if (constructed) - e_tree_root_node_set_visible (E_TREE (message_list), FALSE); + e_tree_table_adapter_root_node_set_visible (adapter, FALSE); if (atk_get_root () != NULL) { a11y = gtk_widget_get_accessible (GTK_WIDGET (message_list)); @@ -3250,8 +3253,7 @@ message_list_construct (MessageList *message_list) } g_signal_connect ( - e_tree_get_table_adapter (E_TREE (message_list)), - "model_row_changed", + adapter, "model_row_changed", G_CALLBACK (on_model_row_changed), message_list); g_signal_connect ( @@ -3292,8 +3294,7 @@ message_list_construct (MessageList *message_list) G_CALLBACK (ml_tree_drag_motion), message_list); g_signal_connect ( - e_tree_get_table_adapter (E_TREE (message_list)), - "sorting_changed", + adapter, "sorting_changed", G_CALLBACK (ml_tree_sorting_changed), message_list); } |