coding standards, HIG plz adhere! :)
This commit is contained in:
parent
b9e37da407
commit
9a03441f75
1 changed files with 8 additions and 9 deletions
|
@ -631,7 +631,7 @@ class StatusTable:
|
||||||
str_status += ' - ' + status
|
str_status += ' - ' + status
|
||||||
return gtkgui_helpers.escape_for_pango_markup(str_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):
|
def strip_text(self, text, max_length):
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
if len(text) > max_length:
|
if len(text) > max_length:
|
||||||
|
@ -671,7 +671,6 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable):
|
||||||
BaseTooltip.__init__(self)
|
BaseTooltip.__init__(self)
|
||||||
StatusTable.__init__(self)
|
StatusTable.__init__(self)
|
||||||
|
|
||||||
|
|
||||||
def populate(self, data):
|
def populate(self, data):
|
||||||
self.create_window()
|
self.create_window()
|
||||||
self.create_table()
|
self.create_table()
|
||||||
|
@ -1039,7 +1038,7 @@ _('Without a connection, you can not change your password.')).get_response()
|
||||||
if rep == gtk.RESPONSE_OK:
|
if rep == gtk.RESPONSE_OK:
|
||||||
password1 = self.password1_entry.get_text()
|
password1 = self.password1_entry.get_text()
|
||||||
if not password1:
|
if not password1:
|
||||||
ErrorDialog(_('Invalid password.'),
|
ErrorDialog(_('Invalid password'),
|
||||||
_('You must enter a password.')).get_response()
|
_('You must enter a password.')).get_response()
|
||||||
continue
|
continue
|
||||||
password2 = self.password2_entry.get_text()
|
password2 = self.password2_entry.get_text()
|
||||||
|
@ -1350,7 +1349,7 @@ class XMLConsoleWindow:
|
||||||
|
|
||||||
#self.input_textview.set_name('input')
|
#self.input_textview.set_name('input')
|
||||||
#s = '''\
|
#s = '''\
|
||||||
style "console" { GtkTextView::cursor-color="%s" }
|
#style "console" { GtkTextView::cursor-color="%s" }
|
||||||
#widget "*.*.input" style : application "console"''' % '#FFFFFF'
|
#widget "*.*.input" style : application "console"''' % '#FFFFFF'
|
||||||
#gtk.rc_parse_string(s)
|
#gtk.rc_parse_string(s)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue