Changeset 269
- Timestamp:
- 03/02/08 04:32:23 (9 months ago)
- Files:
-
- trunk/compdLeds.sh (modified) (1 diff)
- trunk/src/leds/FSView.d (modified) (1 diff)
- trunk/src/leds/ProjectView.d (modified) (1 diff)
- trunk/src/leds/Scintilla.d (modified) (4 diffs)
- trunk/src/leds/SourceViewEdit.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/compdLeds.sh
r207 r269 12 12 -I../../Dool/trunk/src \ 13 13 -I../../Dante/trunk/src \ 14 -I../../Duit/trunk/src \ 14 -I../../gtkd/trunk/src \ 15 -I../../gtkd/trunk/srcsv \ 15 16 -I~/dmd/src/phobos \ 16 17 -L../../Dool/ -ldool \ 17 18 -L../../Dante/ -ldantfw \ 18 -L../../ Duit/ -lduit\19 -L../../gtkd/trunk -lgtkd \ 19 20 -L/dmd/lib/ -lphobos \ 20 21 -c \ trunk/src/leds/FSView.d
r230 r269 612 612 } 613 613 } 614 void onExpandCallback( GtkTreeIter *ti, TreePath tp, TreeView tv)614 void onExpandCallback(TreeIter ti, TreePath tp, TreeView tv) 615 615 { 616 616 TreeIter iter = new TreeIter(); trunk/src/leds/ProjectView.d
r230 r269 1440 1440 return false; // false : the event is passed to other listeners 1441 1441 } 1442 void onExpandCallback( GtkTreeIter *ti, TreePath tp, TreeView tv)1442 void onExpandCallback(TreeIter ti, TreePath tp, TreeView tv) 1443 1443 { 1444 1444 debug(treeView)writefln("ProjectView.onExpandCallback 1"); trunk/src/leds/Scintilla.d
r265 r269 1412 1412 private Linker scintilla_Linker; 1413 1413 1414 static this()1415 {1416 /* Assume scintilla.dll is in same directory as current executable */1417 version(Windows) scintilla_Linker = new Linker("scintilla.dll");1418 version(linux) scintilla_Linker = new Linker("libscintilla.so.1.7.4");1419 scintilla_Linker.link(scintillaLinks);1420 }1421 1422 static ~this()1423 {1424 delete scintilla_Linker;1425 }1426 1427 1414 extern(C) 1428 1415 { … … 1688 1675 class Scintilla : Container , CodeEdit 1689 1676 { 1677 1678 /+ 1679 static this() 1680 { 1681 writefln("loading scintilla lib now"); 1682 /* Assume scintilla.dll is in same directory as current executable */ 1683 version(Windows) scintilla_Linker = new Linker("scintilla.dll"); 1684 version(linux) scintilla_Linker = new Linker("libscintilla.so.1.7.4"); 1685 scintilla_Linker.link(scintillaLinks); 1686 } 1687 1688 static ~this() 1689 { 1690 delete scintilla_Linker; 1691 } 1692 +/ 1693 1694 static int countInstances; 1695 1696 private static void loadLib() 1697 { 1698 if ( countInstances == 0 ) 1699 { 1700 writefln("loading scintilla lib now"); 1701 /* Assume scintilla.dll is in same directory as current executable */ 1702 version(Windows) scintilla_Linker = new Linker("scintilla.dll"); 1703 version(linux) scintilla_Linker = new Linker("libscintilla.so.1.7.4"); 1704 scintilla_Linker.link(scintillaLinks); 1705 } 1706 ++countInstances; 1707 } 1708 1709 1710 private static void unloadLib() 1711 { 1712 --countInstances; 1713 if ( countInstances == 0 ) 1714 { 1715 delete scintilla_Linker; 1716 } 1717 } 1718 1690 1719 public: 1691 1720 void addCodeEditListener() … … 1911 1940 this() 1912 1941 { 1942 loadLib(); 1913 1943 super(cast(GtkContainer*)scintilla_new()); 1914 1944 ID = S_ID++; … … 2027 2057 * resources before the notebook is done with them (I think that's why???) 2028 2058 */ 2029 //~this()2030 //{2059 ~this() 2060 { 2031 2061 // release(); 2032 //} 2062 // this is not tested unloadLib(); 2063 } 2033 2064 2034 2065 private: trunk/src/leds/SourceViewEdit.d
r265 r269 740 740 void gotoLine(int lineNumber, bool useAlign=false) 741 741 { 742 writefln("SourceViewEdit.gotoLine 1"); 743 insertIter(); // make sure we have a valid iter 742 744 iter.setLine(lineNumber); 745 writefln("SourceViewEdit.gotoLine 2"); 743 746 buffer.placeCursor(iter); 747 writefln("SourceViewEdit.gotoLine 3"); 744 748 view.scrollToIter(iter, 0.0, useAlign, 0.0, 0.25); 749 writefln("SourceViewEdit.gotoLine 4"); 745 750 } 746 751
