coding standards, HIG plz adhere! :)

This commit is contained in:
Nikos Kouremenos 2005-08-01 23:17:53 +00:00
parent b9e37da407
commit 9a03441f75
1 changed files with 8 additions and 9 deletions

View File

@ -631,7 +631,7 @@ class StatusTable:
str_status += ' - ' + status
return gtkgui_helpers.escape_for_pango_markup(str_status)
# "too long status make the tooltip large than the screen" problem, reported by koorek
# fix "too long status make the tooltip large than the screen" problem
def strip_text(self, text, max_length):
text = text.strip()
if len(text) > max_length:
@ -671,7 +671,6 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
BaseTooltip.__init__(self)
StatusTable.__init__(self)
def populate(self, data):
self.create_window()
self.create_table()
@ -1039,7 +1038,7 @@ _('Without a connection, you can not change your password.')).get_response()
if rep == gtk.RESPONSE_OK:
password1 = self.password1_entry.get_text()
if not password1:
ErrorDialog(_('Invalid password.'),
ErrorDialog(_('Invalid password'),
_('You must enter a password.')).get_response()
continue
password2 = self.password2_entry.get_text()
@ -1350,7 +1349,7 @@ class XMLConsoleWindow:
#self.input_textview.set_name('input')
#s = '''\
style "console" { GtkTextView::cursor-color="%s" }
#style "console" { GtkTextView::cursor-color="%s" }
#widget "*.*.input" style : application "console"''' % '#FFFFFF'
#gtk.rc_parse_string(s)