[gnome-contacts: 12/35] egg-list-box: Remove redundant check



commit f6ed22716b6461e476ad96d5b4f9e6ebf2fa2e7d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 17 16:15:06 2013 -0500

    egg-list-box: Remove redundant check
    
    A ChildInfo's widget should never be NULL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691979

 egg-list-box.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/egg-list-box.c b/egg-list-box.c
index 353f4d8..4200565 100644
--- a/egg-list-box.c
+++ b/egg-list-box.c
@@ -854,8 +854,7 @@ egg_list_box_real_button_press_event (GtkWidget *widget,
          priv->active_child_active = TRUE;
          gtk_widget_queue_draw (GTK_WIDGET (list_box));
          if (event->type == GDK_2BUTTON_PRESS &&
-             !priv->activate_single_click &&
-             child->widget != NULL)
+             !priv->activate_single_click)
            g_signal_emit (list_box, signals[CHILD_ACTIVATED], 0,
                           child->widget);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]