Ticket #2515: wtools-without-background.patch

File wtools-without-background.patch, 919 bytes (added by pavlinux, 13 years ago)

patch

  • lib/widget/wtools.c

    diff --git a/lib/widget/wtools.c b/lib/widget/wtools.c
    index 9054d7c..abbb576 100644
    a b message (int flags, const char *title, const char *text, ...) 
    372372{ 
    373373    char *p; 
    374374    va_list ap; 
     375#ifdef WITH_BACKGROUND 
    375376    union 
    376377    { 
    377378        void *p; 
    378379        void (*f) (int, int *, char *, const char *); 
    379380    } func; 
     381#endif /* WITH_BACKGROUND */ 
    380382 
    381383    va_start (ap, text); 
    382384    p = g_strdup_vprintf (text, ap); 
    char * 
    410412input_dialog_help (const char *header, const char *text, const char *help, 
    411413                   const char *history_name, const char *def_text) 
    412414{ 
     415#ifdef WITH_BACKGROUND 
    413416    union 
    414417    { 
    415418        void *p; 
    416419        char *(*f) (const char *, const char *, const char *, const char *, const char *); 
    417420    } func; 
    418 #ifdef WITH_BACKGROUND 
    419421    if (we_are_background) 
    420422    { 
    421423        func.f = fg_input_dialog_help;