evolution-data-server r9362 - trunk/libedataserverui
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9362 - trunk/libedataserverui
- Date: Mon, 18 Aug 2008 03:27:00 +0000 (UTC)
Author: mbarnes
Date: Mon Aug 18 03:27:00 2008
New Revision: 9362
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9362&view=rev
Log:
2008-08-17 Matthew Barnes <mbarnes redhat com>
** Fixes bug #547952
* libedataserverui/e-source-selector.c (rebuild_model):
Don't display empty source groups.
Modified:
trunk/libedataserverui/ChangeLog
trunk/libedataserverui/e-source-selector.c
Modified: trunk/libedataserverui/e-source-selector.c
==============================================================================
--- trunk/libedataserverui/e-source-selector.c (original)
+++ trunk/libedataserverui/e-source-selector.c Mon Aug 18 03:27:00 2008
@@ -312,6 +312,10 @@
GtkTreeRowReference *row_ref;
gint position;
+ sources = get_sorted_sources (e_source_group_peek_sources (group));
+ if (sources == NULL)
+ continue;
+
row_ref = g_hash_table_lookup (rebuild_data->remaining_uids, e_source_group_peek_uid (group));
if (!row_ref) {
gtk_tree_store_append (GTK_TREE_STORE (tree_store), &iter, NULL);
@@ -327,7 +331,6 @@
gtk_tree_path_free (path);
}
- sources = get_sorted_sources (e_source_group_peek_sources (group));
for (q = sources, position = 0; q != NULL; q = q->next, position++) {
ESource *source = E_SOURCE (q->data);
GtkTreeIter child_iter;
@@ -353,8 +356,7 @@
}
}
- if (sources)
- g_slist_free (sources);
+ g_slist_free (sources);
}
if (rebuild_data->selection_changed)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]