[vte3] Add patch to fix an introspection issue. Fixes RHBZ #881662

Peter Robinson pbrobinson at fedoraproject.org
Thu Nov 29 10:07:47 UTC 2012


commit dd2430722145943456dde8ea24e0f26c17be1259
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Thu Nov 29 10:07:36 2012 +0000

    Add patch to fix an introspection issue. Fixes RHBZ #881662

 vte3-make_VteCharAttributes_introspectable.patch |   34 ++++++++++++++++++++++
 vte3.spec                                        |    8 ++++-
 2 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/vte3-make_VteCharAttributes_introspectable.patch b/vte3-make_VteCharAttributes_introspectable.patch
new file mode 100644
index 0000000..d06318c
--- /dev/null
+++ b/vte3-make_VteCharAttributes_introspectable.patch
@@ -0,0 +1,34 @@
+From 2ba27999b537300f4beb92ca27830fbd4197740e Mon Sep 17 00:00:00 2001
+From: Simon Schampijer <simon at laptop.org>
+Date: Wed, 28 Nov 2012 20:14:59 +0000
+Subject: Move definition of VteCharAttributes up, #676999
+
+I found the element-type for the attributes in vte_terminal_get_text
+vte_terminal_get_text_include_trailing_spaces and vte_terminal_get_text_range
+strange to be of type "Vte.CharAttributes" and not VteCharAttributes but when I
+changed it I only got a warning. Then I saw that there was already a warning
+about "Unknown namespace for identifier 'vte_char_attributes'", so I moved the
+definition of VteCharAttributes and now those functions are introspectable.
+---
+diff --git a/src/vte.h b/src/vte.h
+index ed3fafe..35fb0f4 100644
+--- a/src/vte.h
++++ b/src/vte.h
+@@ -57,6 +57,7 @@ typedef struct _VteTerminal             VteTerminal;
+ typedef struct _VteTerminalPrivate      VteTerminalPrivate;
+ typedef struct _VteTerminalClass        VteTerminalClass;
+ typedef struct _VteTerminalClassPrivate VteTerminalClassPrivate;
++typedef struct _VteCharAttributes       VteCharAttributes;
+ 
+ /**
+  * VteTerminal:
+@@ -242,7 +243,6 @@ struct _VteCharAttributes {
+ 	GdkColor fore, back;
+ 	guint underline:1, strikethrough:1;
+ };
+-typedef struct _VteCharAttributes VteCharAttributes;
+ 
+ /* The name of the same structure in the 0.10 series, for API compatibility. */
+ struct vte_char_attributes {
+--
+cgit v0.9.0.2
diff --git a/vte3.spec b/vte3.spec
index 18d2bae..ef749e3 100644
--- a/vte3.spec
+++ b/vte3.spec
@@ -1,6 +1,6 @@
 Name: vte3
 Version: 0.34.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: A terminal emulator
 License: LGPLv2+
 Group: User Interface/X
@@ -11,6 +11,8 @@ Patch0: honey-I-shrank-the-terminal.patch
 Patch1: vte-alt-meta-confusion.patch
 # https://bugzilla.gnome.org/show_bug.cgi?id=688456
 Patch2: 0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
+# https://bugzilla.gnome.org/show_bug.cgi?id=676999
+Patch3: vte3-make_VteCharAttributes_introspectable.patch
 
 BuildRequires: gtk3-devel >= 3.0.0
 BuildRequires: ncurses-devel
@@ -43,6 +45,7 @@ vte.
 %patch0 -p1 -b .grow-up
 %patch1 -p1 -b .alt-meta
 %patch2 -p1 -b .motion
+%patch3 -p1 -b .VteCharAttributes_introspectable
 
 %build
 %configure \
@@ -87,6 +90,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 
 %changelog
+* Thu Nov 29 2012 Peter Robinson <pbrobinson at fedoraproject.org> 0.34.2-3
+- Add patch to fix an introspection issue. Fixes RHBZ #881662
+
 * Fri Nov 16 2012 Bastien Nocera <bnocera at redhat.com> 0.34.2-2
 - Only show the cursor on motion if moved
 


More information about the scm-commits mailing list