This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] patch to globalpref.itb


This patch fixes a problem with the icon combobox not finding the icon
names because the names are relative to the current directory, which has
recently been changed.


? patch
Index: globalpref.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/globalpref.itb,v
retrieving revision 1.3
diff -p -r1.3 globalpref.itb
*** globalpref.itb	2001/05/07 15:43:23	1.3
--- globalpref.itb	2001/05/29 13:28:28
*************** body GlobalPref::build_win {} {
*** 84,90 ****
        lappend icondirlist $foo
      }
    }
-   cd $curdir
  
    set width 14
    # load combobox
--- 84,89 ----
*************** body GlobalPref::build_win {} {
*** 98,103 ****
--- 97,103 ----
      set foo [file join $dir "icons.txt"]
      if {[catch {::open $foo r} fid]} {
        # failed
+       dbug E "couldn't open $foo:$fid"
        if {$cdir} {$frame.icons.cb entryset "unknown icons"}
        $frame.icons.cb list insert end "unknown icons"
      } else {
*************** body GlobalPref::build_win {} {
*** 113,119 ****
      }
    }
    $frame.icons.cb configure -width $width
!   
  
    # searching for fixed font families take a long time
    # therefore, we cache the font names.  The font cache
--- 113,119 ----
      }
    }
    $frame.icons.cb configure -width $width
!   cd $curdir
  
    # searching for fixed font families take a long time
    # therefore, we cache the font names.  The font cache

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]