Changeset 6141 for trunk/WINDOW/AW_window.cxx
- Timestamp:
- 14/08/09 16:29:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/WINDOW/AW_window.cxx (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WINDOW/AW_window.cxx
r6126 r6141 75 75 76 76 void AW_root::make_sensitive(Widget w, AW_active mask) { 77 // Don t call make_sensitive directly!77 // Don't call make_sensitive directly! 78 78 // 79 79 // Simply set sens_mask(AWM_EXP) and after creating the expert-mode-only widgets, … … 87 87 if (mask != AWM_ALL) { // no need to make widget sensitive, if its shown unconditionally 88 88 prvt->button_list = new AW_buttons_struct(mask, w, prvt->button_list); 89 if (!(mask & global_mask)) XtSetSensitive(w, False); // disable widget if mask doesn t match89 if (!(mask & global_mask)) XtSetSensitive(w, False); // disable widget if mask doesn't match 90 90 } 91 91 } … … 702 702 if (equal) { 703 703 fprintf(stderr, 704 "callback '%s' instan ciated 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", 705 705 id, aw->get_window_id(), other.aw->get_window_id()); 706 706 } … … 1308 1308 } 1309 1309 1310 void AW_root::init_root(const char *program mname, bool no_exit) {1310 void AW_root::init_root(const char *programname, bool no_exit) { 1311 1311 // Initialisiert eine gesamte X-Anwendung 1312 1312 int a = 0; … … 1317 1317 1318 1318 p_r-> no_exit = no_exit; 1319 program_name = strdup(program mname);1319 program_name = strdup(programname); 1320 1320 1321 1321 for (i=0; i<1000; i++) { … … 1335 1335 1336 1336 // @@@ FIXME: the next line hangs if program runs inside debugger 1337 p_r->toplevel_widget = XtOpenApplication(&(p_r->context), program mname,1337 p_r->toplevel_widget = XtOpenApplication(&(p_r->context), programname, 1338 1338 NULL, 0, // XrmOptionDescRec+numOpts 1339 1339 &a, /*&argc*/ … … 1568 1568 if (colnum>=color_table_size) { 1569 1569 color_table = (unsigned long *)realloc((char *)color_table, (8 1570 + colnum)*sizeof(long)); // valgrinders : never free 'd because AW_window never is free'd1570 + colnum)*sizeof(long)); // valgrinders : never freed because AW_window never is freed 1571 1571 memset( (char *)(color_table+color_table_size), -1, (int)(8 1572 1572 + colnum - color_table_size) * sizeof(long)); … … 1989 1989 initMenuListing(windowname); 1990 1990 #endif // DUMP_MENU_LIST 1991 root = root_in; // for ma kro1991 root = root_in; // for macro 1992 1992 window_name = strdup(windowname); 1993 1993 window_defaults_name = GBS_string_2_key(wid); … … 2201 2201 initMenuListing(windowname); 2202 2202 #endif // DUMP_MENU_LIST 2203 root = root_in; // for ma kro2203 root = root_in; // for macro 2204 2204 window_name = strdup(windowname); 2205 2205 window_defaults_name = GBS_string_2_key(wid); … … 2389 2389 const char *windowname) { 2390 2390 //Arg args[10]; 2391 root = root_in; // for ma kro2391 root = root_in; // for macro 2392 2392 2393 2393 int width = 100; // this is only the minimum size! … … 2428 2428 // Arg args[10]; 2429 2429 2430 root = root_in; // for ma kro2430 root = root_in; // for macro 2431 2431 2432 2432 const char *help_button = "HELP"; … … 2509 2509 // Arg args[10]; 2510 2510 2511 root = root_in; // for ma kro2511 root = root_in; // for macro 2512 2512 2513 2513 int width = 100; … … 2619 2619 2620 2620 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'd2621 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 2622 2622 } 2623 2623 if (!p_w->modes_widgets) {
