[evolution-data-server] Remove an assertion in ESourceSelector.
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove an assertion in ESourceSelector.
- Date: Tue, 18 Aug 2009 12:13:56 +0000 (UTC)
commit 920b4177d81a6ca73690a1c726175da5b94fdbe5
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Aug 18 08:12:33 2009 -0400
Remove an assertion in ESourceSelector.
Related to bug #541192. Something accessibility-related is causing the
assertion to fail. The problem is still unknown, but the logic is more
forgiving now.
libedataserverui/e-source-selector.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/libedataserverui/e-source-selector.c b/libedataserverui/e-source-selector.c
index 9597f9f..ceaa2db 100644
--- a/libedataserverui/e-source-selector.c
+++ b/libedataserverui/e-source-selector.c
@@ -523,20 +523,18 @@ pixbuf_cell_data_func (GtkTreeViewColumn *column,
gpointer data;
gtk_tree_model_get (model, iter, 0, &data, -1);
+ g_return_if_fail (G_IS_OBJECT (data));
if (E_IS_SOURCE_GROUP (data)) {
- g_object_set (renderer,
- "visible", FALSE,
- NULL);
- } else {
+ g_object_set (renderer, "visible", FALSE, NULL);
+
+ } else if (E_IS_SOURCE (data)) {
ESource *source;
GdkPixbuf *pixbuf = NULL;
const gchar *color_spec;
GdkColor color;
- g_assert (E_IS_SOURCE (data));
source = E_SOURCE (data);
-
color_spec = e_source_peek_color_spec (source);
if (color_spec != NULL && gdk_color_parse (color_spec, &color)) {
guint32 rgba;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]