From 2ba27999b537300f4beb92ca27830fbd4197740e Mon Sep 17 00:00:00 2001
From: Simon Schampijer <simon@laptop.org>
Date: Wed, 28 Nov 2012 21:14:59 +0100
Subject: [PATCH] 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.
---
src/vte.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vte.h b/src/vte.h
index ed3fafe..35fb0f4 100644
a
|
b
|
typedef struct _VteTerminal VteTerminal; |
57 | 57 | typedef struct _VteTerminalPrivate VteTerminalPrivate; |
58 | 58 | typedef struct _VteTerminalClass VteTerminalClass; |
59 | 59 | typedef struct _VteTerminalClassPrivate VteTerminalClassPrivate; |
| 60 | typedef struct _VteCharAttributes VteCharAttributes; |
60 | 61 | |
61 | 62 | /** |
62 | 63 | * VteTerminal: |
… |
… |
struct _VteCharAttributes { |
242 | 243 | GdkColor fore, back; |
243 | 244 | guint underline:1, strikethrough:1; |
244 | 245 | }; |
245 | | typedef struct _VteCharAttributes VteCharAttributes; |
246 | 246 | |
247 | 247 | /* The name of the same structure in the 0.10 series, for API compatibility. */ |
248 | 248 | struct vte_char_attributes { |