Ticket #155: 155_remove_WANT_WIDGETS-rev1.patch

File 155_remove_WANT_WIDGETS-rev1.patch, 1.5 KB (added by slavazanko, 15 years ago)

reworked patch for git

  • src/filegui.c

    diff --git a/src/filegui.c b/src/filegui.c
    index 441adb7..4f0579f 100644
    a b  
    5858#include "dialog.h"             /* do_refresh() */ 
    5959#include "color.h"              /* dialog_colors */ 
    6060#include "widget.h"             /* WLabel */ 
    61 #define WANT_WIDGETS 
    6261#include "main.h"               /* the_hint */ 
    6362#include "wtools.h"             /* QuickDialog */ 
    6463#include "panel.h"              /* current_panel */ 
  • src/layout.c

    diff --git a/src/layout.c b/src/layout.c
    index 9f3616f..eb4bdd9 100644
    a b  
    5151#include "command.h" 
    5252#include "profile.h"            /* For sync_profiles() */ 
    5353#include "mouse.h" 
    54 #define WANT_WIDGETS 
    5554#include "main.h" 
    5655#include "subshell.h"   /* For use_subshell and resize_subshell() */ 
    5756#include "tree.h" 
  • src/main.h

    diff --git a/src/main.h b/src/main.h
    index 3f3c695..d0ef24d 100644
    a b char *get_mc_lib_dir (void); 
    116116int maybe_cd (int move_up_dir); 
    117117void do_possible_cd (const char *dir); 
    118118 
    119 #ifdef WANT_WIDGETS 
    120119extern WButtonBar *the_bar; 
    121120extern WLabel     *the_prompt; 
    122121extern WLabel     *the_hint; 
    123122extern Dlg_head   *midnight_dlg; 
    124123 
    125124extern struct WMenu *the_menubar; 
    126 #endif /* WANT_WIDGETS */ 
    127125 
    128126void done_menu (void); 
    129127void init_menu (void); 
  • src/screen.c

    diff --git a/src/screen.c b/src/screen.c
    index 74604f4..036795f 100644
    a b  
    4747#include "execute.h" 
    4848#include "widget.h" 
    4949#include "menu.h"               /* menubar_visible */ 
    50 #define WANT_WIDGETS 
    5150#include "main.h"               /* the_menubar */ 
    5251#include "unixcompat.h" 
    5352