[evolution] Fix another runtime warning.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Fix another runtime warning.
- Date: Fri, 28 May 2010 15:28:43 +0000 (UTC)
commit 09b0180c00c494e40e449de9de17c5c12c8b3ccd
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri May 28 11:28:24 2010 -0400
Fix another runtime warning.
shell/e-shell-content.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index fba96d7..965fab8 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -254,13 +254,13 @@ shell_content_forall (GtkContainer *container,
gpointer callback_data)
{
EShellContentPrivate *priv;
- GtkWidget *parent;
+ GtkWidget *parent = NULL;
priv = E_SHELL_CONTENT_GET_PRIVATE (container);
- parent = gtk_widget_get_parent (priv->searchbar);
+ if (priv->searchbar != NULL)
+ parent = gtk_widget_get_parent (priv->searchbar);
- if (include_internals && priv->searchbar != NULL &&
- container == GTK_CONTAINER (parent))
+ if (include_internals && parent == GTK_WIDGET (container))
callback (priv->searchbar, callback_data);
/* Chain up to parent's forall() method. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]