Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WINDOW/AW_window.cxx

    r6126 r6141  
    7575 
    7676void AW_root::make_sensitive(Widget w, AW_active mask) { 
    77     // Dont call make_sensitive directly! 
     77    // Don't call make_sensitive directly! 
    7878    //  
    7979    // Simply set sens_mask(AWM_EXP) and after creating the expert-mode-only widgets, 
     
    8787    if (mask != AWM_ALL) { // no need to make widget sensitive, if its shown unconditionally 
    8888        prvt->button_list = new AW_buttons_struct(mask, w, prvt->button_list); 
    89         if (!(mask & global_mask)) XtSetSensitive(w, False); // disable widget if mask doesnt match 
     89        if (!(mask & global_mask)) XtSetSensitive(w, False); // disable widget if mask doesn't match 
    9090    } 
    9191} 
     
    702702                    if (equal) { 
    703703                        fprintf(stderr, 
    704                                 "callback '%s' instanciated twice with different windows (w1='%s' w2='%s') -- assuming the callbacks are equal\n", 
     704                                "callback '%s' instantiated twice with different windows (w1='%s' w2='%s') -- assuming the callbacks are equal\n", 
    705705                                id, aw->get_window_id(), other.aw->get_window_id()); 
    706706                    } 
     
    13081308} 
    13091309 
    1310 void AW_root::init_root(const char *programmname, bool no_exit) { 
     1310void AW_root::init_root(const char *programname, bool no_exit) { 
    13111311    // Initialisiert eine gesamte X-Anwendung 
    13121312    int a = 0; 
     
    13171317 
    13181318    p_r-> no_exit = no_exit; 
    1319     program_name  = strdup(programmname); 
     1319    program_name  = strdup(programname); 
    13201320 
    13211321    for (i=0; i<1000; i++) { 
     
    13351335 
    13361336    // @@@ FIXME: the next line hangs if program runs inside debugger 
    1337     p_r->toplevel_widget = XtOpenApplication(&(p_r->context), programmname,  
     1337    p_r->toplevel_widget = XtOpenApplication(&(p_r->context), programname,  
    13381338            NULL, 0, // XrmOptionDescRec+numOpts 
    13391339            &a, /*&argc*/ 
     
    15681568        if (colnum>=color_table_size) { 
    15691569            color_table = (unsigned long *)realloc((char *)color_table, (8 
    1570                     + colnum)*sizeof(long)); // valgrinders : never free'd because AW_window never is free'd 
     1570                    + colnum)*sizeof(long)); // valgrinders : never freed because AW_window never is freed 
    15711571            memset( (char *)(color_table+color_table_size), -1, (int)(8 
    15721572                    + colnum - color_table_size) * sizeof(long)); 
     
    19891989    initMenuListing(windowname); 
    19901990#endif // DUMP_MENU_LIST 
    1991     root = root_in; // for makro 
     1991    root = root_in; // for macro 
    19921992    window_name = strdup(windowname); 
    19931993    window_defaults_name = GBS_string_2_key(wid); 
     
    22012201    initMenuListing(windowname); 
    22022202#endif // DUMP_MENU_LIST 
    2203     root = root_in; // for makro 
     2203    root = root_in; // for macro 
    22042204    window_name = strdup(windowname); 
    22052205    window_defaults_name = GBS_string_2_key(wid); 
     
    23892389        const char *windowname) { 
    23902390    //Arg args[10]; 
    2391     root = root_in; // for makro 
     2391    root = root_in; // for macro 
    23922392 
    23932393    int width = 100; // this is only the minimum size! 
     
    24282428    //  Arg args[10]; 
    24292429 
    2430     root = root_in; // for makro 
     2430    root = root_in; // for macro 
    24312431 
    24322432    const char *help_button = "HELP"; 
     
    25092509    //  Arg args[10]; 
    25102510 
    2511     root = root_in; // for makro 
     2511    root = root_in; // for macro 
    25122512 
    25132513    int width = 100; 
     
    26192619 
    26202620    if (!p_w->modes_f_callbacks) { 
    2621         p_w->modes_f_callbacks = (AW_cb_struct **)GB_calloc(sizeof(AW_cb_struct*),AW_NUMBER_OF_F_KEYS); // valgrinders : never free'd because AW_window never is free'd 
     2621        p_w->modes_f_callbacks = (AW_cb_struct **)GB_calloc(sizeof(AW_cb_struct*),AW_NUMBER_OF_F_KEYS); // valgrinders : never freed because AW_window never is freed 
    26222622    } 
    26232623    if (!p_w->modes_widgets) {