[glade] Fix bug 686418 - crashes related to setting 'can-focus' property in the runtime.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Fix bug 686418 - crashes related to setting 'can-focus' property in the runtime.
- Date: Sun, 19 May 2013 11:33:59 +0000 (UTC)
commit 020fc3b35022246566384ada6badcd62e89fcad8
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun May 19 20:31:25 2013 +0900
Fix bug 686418 - crashes related to setting 'can-focus' property in the runtime.
Not sure how this fixes things, we're probably taping over a deeper bug
inside GTK+.
plugins/gtk+/glade-gtk-widget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-widget.c b/plugins/gtk+/glade-gtk-widget.c
index e97e6f2..e094083 100644
--- a/plugins/gtk+/glade-gtk-widget.c
+++ b/plugins/gtk+/glade-gtk-widget.c
@@ -729,6 +729,10 @@ glade_gtk_widget_set_property (GladeWidgetAdaptor * adaptor,
id = "tooltip-text";
}
+ /* Setting can-focus in the runtime has been known to cause crashes */
+ if (!strcmp (id, "can-focus"))
+ return;
+
GWA_GET_CLASS (G_TYPE_OBJECT)->set_property (adaptor, object, id, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]