[goffice] really fix gtk_widget_send_focus_change



commit d1679149030f9b5432ee4c5ed7f0add8d31d5d1f
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue Apr 27 20:38:51 2010 +0200

    really fix gtk_widget_send_focus_change

 goffice/gtk/go-gtk-compat.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/goffice/gtk/go-gtk-compat.h b/goffice/gtk/go-gtk-compat.h
index e11f71c..51dc937 100644
--- a/goffice/gtk/go-gtk-compat.h
+++ b/goffice/gtk/go-gtk-compat.h
@@ -114,7 +114,7 @@
 #define gtk_widget_send_focus_change(w,ev)			\
 	do {							\
 	g_object_ref (widget);					\
-	if (t) GTK_WIDGET_SET_FLAGS ((w), GTK_HAS_FOCUS);       \
+	if (((GdkEventFocus*)ev)->in) GTK_WIDGET_SET_FLAGS ((w), GTK_HAS_FOCUS);       \
 	else GTK_WIDGET_UNSET_FLAGS ((w), GTK_HAS_FOCUS);       \
 	gtk_widget_event (widget, &fevent);			\
 	g_object_notify (G_OBJECT (widget), "has-focus");       \



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