diff -Nru gedit-3.10.4/debian/changelog gedit-3.10.4/debian/changelog --- gedit-3.10.4/debian/changelog 2014-02-20 14:57:10.000000000 +0000 +++ gedit-3.10.4/debian/changelog 2014-03-26 14:35:06.000000000 +0000 @@ -1,3 +1,11 @@ +gedit (3.10.4-0ubuntu4) trusty; urgency=medium + + * Add 00git_state_property_type.patch: Fix type of GeditWindow state + property, to avoid crashes with autopilot when introspecting it. + (LP: #1283966) + + -- Martin Pitt Wed, 26 Mar 2014 15:34:58 +0100 + gedit (3.10.4-0ubuntu3) trusty; urgency=medium * Fix snippets plugin with Python 3.4 (LP: #1282607) diff -Nru gedit-3.10.4/debian/patches/00git_state_property_type.patch gedit-3.10.4/debian/patches/00git_state_property_type.patch --- gedit-3.10.4/debian/patches/00git_state_property_type.patch 1970-01-01 00:00:00.000000000 +0000 +++ gedit-3.10.4/debian/patches/00git_state_property_type.patch 2014-03-26 14:35:06.000000000 +0000 @@ -0,0 +1,26 @@ +From 8169570aac438d5215a98528312810acfb6235ef Mon Sep 17 00:00:00 2001 +From: Sebastien Lafargue +Date: Tue, 07 Jan 2014 20:21:25 +0000 +Subject: Use proper function for retrieving 'state' property on window object ( flags instead of enum ) + +https://bugzilla.gnome.org/show_bug.cgi?id=721730 +--- +(limited to 'gedit/gedit-window.c') + +diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c +index e5309cf..82bde2d 100644 +--- a/gedit/gedit-window.c ++++ b/gedit/gedit-window.c +@@ -110,8 +110,8 @@ gedit_window_get_property (GObject *object, + switch (prop_id) + { + case PROP_STATE: +- g_value_set_enum (value, +- gedit_window_get_state (window)); ++ g_value_set_flags (value, ++ gedit_window_get_state (window)); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); +-- +cgit v0.9.2 diff -Nru gedit-3.10.4/debian/patches/series gedit-3.10.4/debian/patches/series --- gedit-3.10.4/debian/patches/series 2014-02-20 14:56:34.000000000 +0000 +++ gedit-3.10.4/debian/patches/series 2014-03-26 14:35:06.000000000 +0000 @@ -1,3 +1,4 @@ +00git_state_property_type.patch 01_gedit-bugreport-location.patch 02_add_keywords.patch 03_no_gnu_gettext.patch