[goffice] Fixed gtk_widget_send_focus_change replacement macro.



commit 616103d705a96f9a601b7768469e2e2300d44d35
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Mar 16 18:21:07 2011 +0100

    Fixed gtk_widget_send_focus_change replacement macro.

 ChangeLog                   |    5 +++++
 goffice/gtk/go-gtk-compat.h |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3949819..982f7fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-16  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/gtk/go-gtk-compat.h: fix gtk_widget_send_focus_change
+	replacement macro to make gcc succeed again.
+
 2011-03-12  Morten Welinder  <terra gnome org>
 
 	* goffice/gtk/go-combo-box.c (do_focus_change): Add cast because
diff --git a/goffice/gtk/go-gtk-compat.h b/goffice/gtk/go-gtk-compat.h
index 24cd528..5fd4b6e 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 (w);					\
-	if ((ev)->in) 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 (w, (GdkEvent*)(ev));			\
 	g_object_notify (G_OBJECT (w), "has-focus");       \



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