[empathy] sidebar: fix assertion in empathy_sidebar_menu_position_under



commit 131b0099496470abddae9abda7fb50fedf6b4910
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Mar 17 14:48:12 2010 +0100

    sidebar: fix assertion in empathy_sidebar_menu_position_under
    
    For some reason this assertion was done the wrong way. I checked in eog and
    it's supposed to be done that way (#612557).

 src/empathy-sidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-sidebar.c b/src/empathy-sidebar.c
index 7960c4a..58f5d95 100644
--- a/src/empathy-sidebar.c
+++ b/src/empathy-sidebar.c
@@ -241,7 +241,7 @@ empathy_sidebar_menu_position_under (GtkMenu *menu,
   GtkAllocation allocation;
 
   g_return_if_fail (GTK_IS_BUTTON (user_data));
-  g_return_if_fail (gtk_widget_get_has_window (user_data));
+  g_return_if_fail (!gtk_widget_get_has_window (user_data));
 
   widget = GTK_WIDGET (user_data);
 



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