]> git.0d.be Git - empathy.git/commitdiff
gtk_widget_set_has_tooltip can't take a value >1 even if it's still TRUE
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 May 2008 11:58:05 +0000 (11:58 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 May 2008 11:58:05 +0000 (11:58 +0000)
svn path=/trunk/; revision=1132

libempathy-gtk/empathy-contact-list-view.c

index 3443950de52a503a4ff16e7fc0ff57a80dc68a27..56d5eb1a1f9c3a63dd59993fbc249f10d5389dc5 100644 (file)
@@ -935,6 +935,7 @@ contact_list_view_set_list_features (EmpathyContactListView         *view,
                                     EmpathyContactListFeatureFlags  features)
 {
        EmpathyContactListViewPriv *priv = GET_PRIV (view);
+       gboolean                    has_tooltip;
 
        g_return_if_fail (EMPATHY_IS_CONTACT_LIST_VIEW (view));
 
@@ -964,8 +965,8 @@ contact_list_view_set_list_features (EmpathyContactListView         *view,
        }
 
        /* Update has-tooltip */
-       gtk_widget_set_has_tooltip (GTK_WIDGET (view),
-                                   features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_TOOLTIP);
+       has_tooltip = (features & EMPATHY_CONTACT_LIST_FEATURE_CONTACT_TOOLTIP) != 0;
+       gtk_widget_set_has_tooltip (GTK_WIDGET (view), has_tooltip);
 }
 
 static void