Changeset 43


Ignore:
Timestamp:
10/30/2008 10:47:14 PM (15 years ago)
Author:
marcus
Message:

r28 | svn | 2008-02-20 19:55:17 +0100 (Mi, 20 Feb 2008) | 1 line

fixed apparent bug in cu_alert; XmSTRING_DEFAULT_CHARSET instead of blank prevents blocked SHM by insensitivity of menu

Location:
SH_SHM/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/inputs/filter_lookup.txt

    r40 r43  
    66! external filter lookup table (built-in table takes preference) 
    77! K. Stammler, 18-Dec-95 
     8ASSE-BH-Z GRSN 
     9ASSE-BH-N GRSN 
     10ASSE-BH-E GRSN 
     11ASSE-HH-Z GRSN 
     12ASSE-HH-N GRSN 
     13ASSE-HH-E GRSN 
    814GRA5-BH-Z GRSN 
    915GRA5-BH-N GRSN 
  • SH_SHM/trunk/inputs/sensitivities.txt

    r35 r43  
    22!      ================= 
    33! 
    4 ! $Revision: 20 $, $Date: 2008-02-01 17:54:31 +0100 (Fr, 01 Feb 2008) $ 
     4! $Revision: 28 $, $Date: 2008-02-20 19:55:17 +0100 (Mi, 20 Feb 2008) $ 
    55! 
    66! Sensitivity file for data streams 
     
    1919 
    2020arsa-bh-?   ...                ...                 1.67 
     21 
     22asse-bh-?   01-jul-2007_00:00  ...                 1.58946 
     23asse-hh-?   01-jul-2007_00:00  ...                 1.58946 
    2124 
    2225bfo-bh-?    ...                ...                 1.67 
  • SH_SHM/trunk/source/motif/cblib2.c

    r16 r43  
    12471247{ 
    12481248        /* executable code */ 
     1249 
     1250        if  (GpGetInt(cGpI_debug_level) > 3) 
     1251                printf( "SHM-dbg4: now set sensitivity: %d\n", !on ); 
    12491252 
    12501253        XtSetSensitive( w[k_widget_menu_main], !on ); 
  • SH_SHM/trunk/source/motif/cbutil.c

    r17 r43  
    16231623        if  (XtIsManaged(w))  XtUnmanageChild( w ); 
    16241624 
    1625         /*if  (xstr_init)  XtFree( (char *)xstr );*/ 
    1626         xstr = XmStringLtoRCreate( text, "" ); 
     1625        /*if  (xstr_init)  XmStringFree( (char *)xstr );*/ 
     1626        xstr = XmStringLtoRCreate( text, XmSTRING_DEFAULT_CHARSET ); 
    16271627        xstr_init = TRUE; 
    16281628 
     
    16701670                return; 
    16711671        } /*endif*/ 
     1672 
     1673        if  (GpGetInt(cGpI_debug_level) > 3) 
     1674                printf( "SHM-dbg4: want to create error message: %s\n", str ); 
    16721675 
    16731676        cu_alert_message( cuv_alert_widget, str ); 
  • SH_SHM/trunk/source/motif/shm.c

    r40 r43  
    33 *      ===== 
    44 * 
    5  * $Revision: 25 $, $Date: 2008-02-06 20:01:11 +0100 (Mi, 06 Feb 2008) $ 
     5 * $Revision: 28 $, $Date: 2008-02-20 19:55:17 +0100 (Mi, 20 Feb 2008) $ 
    66 * 
    77 * main module of shm 
     
    14801480                if  (Severe(&status))  { 
    14811481                        cl2_display_busy( xmv_w, FALSE ); 
     1482                        if  (GpGetInt(cGpI_debug_level) > 3) 
     1483                                printf( "SHM-dbg4: read aborted, status %d\n", status ); 
    14821484                        break; 
    14831485                } else if  (mg_dsptrcs() == 0)  { 
    14841486                        status = CUE_NO_TRACES; 
    14851487                        cl2_display_busy( xmv_w, FALSE ); 
     1488                        if  (GpGetInt(cGpI_debug_level) > 3) 
     1489                                printf( "SHM-dbg4: no traces read, status %d\n", status ); 
    14861490                        break; 
    14871491                } /*endif*/ 
     
    20062010                cu_get_param_values( xmv_w, xmv_cpar ); 
    20072011                cl3_set_theo_phases( xmv_w, &status ); 
    2008                 if  (Severe(&status))  break; 
     2012                if  (Severe(&status))  { 
     2013                        XtSetSensitive( xmv_w[k_widget_menu_main], TRUE ); 
     2014                        break; 
     2015                } /*endif*/ 
    20092016                cu_theo_arrivals( xmv_w[k_widget_draw], xmv_w[k_widget_single_draw], 
    20102017                        xmv_cpar, &status ); 
     
    27872794        /* XtSetSensitive( xmv_w[k_widget_main], TRUE ); */ 
    27882795 
     2796        if  (GpGetInt(cGpI_debug_level) > 3) 
     2797                printf( "SHM-dbg4: end of xm_call_activate, status %d\n", status ); 
     2798 
    27892799        if  (Severe(&status))  { 
     2800                if  (GpGetInt(cGpI_debug_level) > 3) 
     2801                        printf( "SHM-dbg4: call cu_alert\n" ); 
    27902802                cu_alert( status ); 
    27912803                /* printf( "*SHM: xm_call_activate: status %d\n", status ); */ 
Note: See TracChangeset for help on using the changeset viewer.