Handling verticle scroll bug
authorepage <eopage@byu.net>
Tue, 28 Apr 2009 03:11:12 +0000 (03:11 +0000)
committerepage <eopage@byu.net>
Tue, 28 Apr 2009 03:11:12 +0000 (03:11 +0000)
git-svn-id: file:///svnroot/ejpi/trunk@35 df6cc7de-23d0-4ae0-bb86-c17aa67b2a9d

src/ejpi.glade
src/gtkhistory.py

index d07f595..3d9c496 100644 (file)
                   <widget class="GtkScrolledWindow" id="scrollingHistory">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
-                    <property name="hscrollbar_policy">automatic</property>
+                    <property name="hscrollbar_policy">never</property>
                     <property name="vscrollbar_policy">automatic</property>
                     <child>
                       <widget class="GtkTreeView" id="historyView">
index 0b019c8..4a4e5c1 100755 (executable)
@@ -3,12 +3,11 @@
 """
 http://www.grigoriev.ru/svgmath/ (MathML->SVG in Python)
 http://helm.cs.unibo.it/mml-widget/ (MathML widget in C++)
-
-@bug Columns auto-expand with large items but when they are gone, the columns don't auto-shrink
 """
 
 
 import gobject
+import pango
 import gtk
 
 
@@ -58,10 +57,12 @@ class GtkCalcHistory(history.AbstractHistory):
                self.__closeColumn.set_attributes(self.__closeCell, stock_id=0)
 
                self.__expressionCell = gtk.CellRendererText()
+               self.__expressionCell.set_property("ellipsize", pango.ELLIPSIZE_MIDDLE)
                self.__historyColumn.pack_start(self.__expressionCell, True)
                self.__historyColumn.set_attributes(self.__expressionCell, text=1)
 
                self.__valueCell = gtk.CellRendererText()
+               self.__valueCell.set_property("ellipsize", pango.ELLIPSIZE_NONE)
                self.__resultColumn.pack_end(self.__valueCell, False)
                self.__resultColumn.set_attributes(self.__valueCell, text=2)