1
Index: libhildonhelp-2.0.5/src/hildon-help-private.h
2
===================================================================
3
--- libhildonhelp-2.0.5.orig/src/hildon-help-private.h 2010-04-19 11:28:00.800342626 +0200
4
+++ libhildonhelp-2.0.5/src/hildon-help-private.h 2010-04-19 11:34:16.270369818 +0200
8
#include <libosso.h> /* osso_context_t */
9
-#include <gtk/gtk.h> /* gboolean */
10
+#include <gtk/gtk.h> /* gboolean, GTK_WIDGET_REALIZED() */
12
+/* Compatibility with older Gtk+ which didn't have gtk_widget_get_realized(),
13
+ * added in 2.20.0 */
14
+#ifdef GTK_WIDGET_REALIZED
15
+#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget)
18
/* --- Stuff that could come from GConf (but is not) --- */
20
Index: libhildonhelp-2.0.5/src/osso-helplib.c
21
===================================================================
22
--- libhildonhelp-2.0.5.orig/src/osso-helplib.c 2010-04-19 11:27:11.851593139 +0200
23
+++ libhildonhelp-2.0.5/src/osso-helplib.c 2010-04-19 11:30:09.131709183 +0200
26
g_return_if_fail(GTK_IS_DIALOG(dialog));
28
- if (!GTK_WIDGET_REALIZED(GTK_WIDGET(dialog))) {
29
+ if (!gtk_widget_get_realized(GTK_WIDGET(dialog))) {
30
g_signal_handlers_disconnect_matched (dialog, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, dialog_on_realize, NULL) ;
31
g_signal_connect (G_OBJECT (dialog), "realize", (GCallback)dialog_on_realize, (gpointer)GINT_TO_POINTER(has_help)) ;