[emerillon] Fix comparison.
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon] Fix comparison.
- Date: Sun, 25 Apr 2010 10:58:50 +0000 (UTC)
commit aecb53697b3794d79df69b4e2e03f8e13001fd26
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date: Sun Apr 25 12:53:40 2010 +0200
Fix comparison.
After the change in emerillon_sidebar_menu_position_under()
gtk_widget_has_window returns FALSE where GTK_WIDGET_NO_WINDOW
returned TRUE, so executing g_return_if_fail() resulted in wrong
behaviour.
emerillon/sidebar.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/emerillon/sidebar.c b/emerillon/sidebar.c
index a7b0e32..f3de819 100644
--- a/emerillon/sidebar.c
+++ b/emerillon/sidebar.c
@@ -239,8 +239,8 @@ emerillon_sidebar_menu_position_under (GtkMenu *menu,
GtkWidget *widget;
g_return_if_fail (GTK_IS_BUTTON (user_data));
- g_return_if_fail (gtk_widget_get_has_window (GTK_WIDGET (user_data)));
-
+ g_return_if_fail (!gtk_widget_get_has_window (GTK_WIDGET (user_data)));
+
widget = GTK_WIDGET (user_data);
gdk_window_get_origin (gtk_widget_get_window (widget), x, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]