changeset 1ebd4fcace5a in /home/hg/repos/gajim

author: Denis Fomin <[email protected]>
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=1ebd4fcace5a
description: Set 'ellipsize' to 'Value' column in ACE. Fixes #7446

diffstat:

 src/advanced_configuration_window.py |  6 +++---
 1 файлов изменено, 3 вставок(+), 3 удалений(-)

различия (28 строк):

diff -r 43cb2c78ccef -r 1ebd4fcace5a src/advanced_configuration_window.py
--- a/src/advanced_configuration_window.py      Mon Sep 02 22:48:05 2013 +0400
+++ b/src/advanced_configuration_window.py      Tue Sep 03 22:26:35 2013 +0400
@@ -26,6 +26,7 @@
 import gtk
 import gtkgui_helpers
 import gobject
+import pango
 
 from common import gajim
 
@@ -111,14 +112,13 @@
 
         renderer_text = gtk.CellRendererText()
         renderer_text.connect('edited', self.on_config_edited)
+        renderer_text.set_property("ellipsize", pango.ELLIPSIZE_END)
         col = treeview.insert_column_with_attributes(-1, _('Value'),
                 renderer_text, text = 1)
         col.set_cell_data_func(renderer_text, self.cb_value_column_data)
 
         col.props.resizable = True
-        # set max width only for initializing the treeview.
-        col.set_max_width(250)
-        gobject.idle_add(col.set_max_width, -1)
+        col.set_property('expand',True)
 
         renderer_text = gtk.CellRendererText()
         treeview.insert_column_with_attributes(-1, _('Type'),
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to