Avoid to ignore last characters when we have more than 999 individuals (string length into button). It is not fixed for all cases, only more confort.

svn: r18999
This commit is contained in:
Jérôme Rapinat 2012-03-03 08:53:08 +00:00
parent 07f72de626
commit 6f14cc7bc7

View File

@ -145,7 +145,7 @@ class WriterOptionBox(object):
button = gtk.Button(ngettext("%d Person", "%d People", people_count) % button = gtk.Button(ngettext("%d Person", "%d People", people_count) %
people_count) people_count)
button.set_tooltip_text(_("Click to see preview of unfiltered data")) button.set_tooltip_text(_("Click to see preview of unfiltered data"))
button.set_size_request(100, -1) button.set_size_request(107, -1)
button.connect("clicked", self.show_preview_data) button.connect("clicked", self.show_preview_data)
button.proxy_name = "unfiltered" button.proxy_name = "unfiltered"
self.preview_proxy_button["unfiltered"] = button self.preview_proxy_button["unfiltered"] = button
@ -247,7 +247,7 @@ class WriterOptionBox(object):
import gtk import gtk
import gui.widgets import gui.widgets
button = gtk.Button(ngettext("%d Person", "%d People", 0) % 0) button = gtk.Button(ngettext("%d Person", "%d People", 0) % 0)
button.set_size_request(100, -1) button.set_size_request(107, -1)
button.connect("clicked", self.show_preview_data) button.connect("clicked", self.show_preview_data)
button.proxy_name = proxy_name button.proxy_name = proxy_name
if proxy_name == "person": if proxy_name == "person":