[Gambas-user] [Gambas Bug Tracker] Bug #979: gtk_text_buffer_get_insert () signal 11

bugtracker at ...3416... bugtracker at ...3416...
Tue Aug 30 22:53:03 CEST 2016


http://gambaswiki.org/bugtracker/edit?object=BUG.979&from=L21haW4-

Comment #14 by PICCORO LENZ MCKAY:

yeah works and now the attached example by Ron does not crash!

here the pacht, and sorry its a workaround but works:

--- gtextarea.cpp.old 
+++ gtextarea.cpp 
@@ -155,6 +155,22 @@
 };
 
 #else
+
+#if !GLIB_CHECK_VERSION(2, 32, 0)
+/**
+ * g_signal_handlers_disconnect_by_data:
+ * @instance: The instance to remove handlers from
+ * @data: the closure data of the handlers' closures
+ *
+ * Disconnects all handlers on an instance that match @data.
+ *
+ * Returns: The number of handlers that matched.
+ *
+ * Since: 2.32
+ */
+#define g_signal_handlers_disconnect_by_data(instance, data) \
+  g_signal_handlers_disconnect_matched ((instance), G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, (data))
+#endif
 
 // Private structure took from GTK+ 2.10 code. Used for setting the text area cursor.
 // **** May not work on future GTK+ versions ****






More information about the User mailing list