Ticket #4131: 0001-Move-definition-of-VteCharAttributes-up-676999.patch

File 0001-Move-definition-of-VteCharAttributes-up-676999.patch, 1.4 KB (added by erikos, 11 years ago)

vte patch

  • src/vte.h

    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; 
    5757typedef struct _VteTerminalPrivate      VteTerminalPrivate;
    5858typedef struct _VteTerminalClass        VteTerminalClass;
    5959typedef struct _VteTerminalClassPrivate VteTerminalClassPrivate;
     60typedef struct _VteCharAttributes       VteCharAttributes;
    6061
    6162/**
    6263 * VteTerminal:
    struct _VteCharAttributes { 
    242243        GdkColor fore, back;
    243244        guint underline:1, strikethrough:1;
    244245};
    245 typedef struct _VteCharAttributes VteCharAttributes;
    246246
    247247/* The name of the same structure in the 0.10 series, for API compatibility. */
    248248struct vte_char_attributes {