fix EOL spaces

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
This commit is contained in:
Sascha Silbe 2010-10-15 17:45:11 +00:00
parent c7a80a1e56
commit 131c28bb72
4 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ class DSObject(object):
return self._object_id return self._object_id
def set_object_id(self, object_id): def set_object_id(self, object_id):
if self._update_signal_match is not None: if self._update_signal_match is not None:
self._update_signal_match.remove() self._update_signal_match.remove()
if object_id is not None: if object_id is not None:
self._update_signal_match = _get_data_store().connect_to_signal( self._update_signal_match = _get_data_store().connect_to_signal(

View File

@ -46,7 +46,7 @@ def _property_change_trapped(window, prop, prop_type, format, mode, data):
'a property on a window' % error) 'a property on a window' % error)
raise RuntimeError('Received X Error (%i) while setting ' raise RuntimeError('Received X Error (%i) while setting '
'a property on a window' % error) 'a property on a window' % error)
def get_activity_id(wnck_window): def get_activity_id(wnck_window):
window = gtk.gdk.window_foreign_new(wnck_window.get_xid()) window = gtk.gdk.window_foreign_new(wnck_window.get_xid())

View File

@ -45,7 +45,7 @@ def create_icon_widgets(box, sensitive=True):
icon.set_sensitive(sensitive) icon.set_sensitive(sensitive)
icon.show() icon.show()
icon = Icon(icon_name='computer-xo', icon = Icon(icon_name='computer-xo',
icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR, icon_size=gtk.ICON_SIZE_LARGE_TOOLBAR,
xo_color=XoColor()) xo_color=XoColor())
box.pack_start(icon) box.pack_start(icon)

View File

@ -33,7 +33,7 @@ class TestMime(unittest.TestCase):
['text/plain', 'text/_moz_htmlcontext', 'text/unicode', ['text/plain', 'text/_moz_htmlcontext', 'text/unicode',
'text/html', 'text/_moz_htmlinfo']) 'text/html', 'text/_moz_htmlinfo'])
self.assertEqual(mime_type, 'text/html') self.assertEqual(mime_type, 'text/html')
# Mozilla's text in c&v # Mozilla's text in c&v
mime_type = mime.choose_most_significant( mime_type = mime.choose_most_significant(
['text/_moz_htmlcontext', 'STRING', 'text/html', 'text/_moz_htmlinfo', ['text/_moz_htmlcontext', 'STRING', 'text/html', 'text/_moz_htmlinfo',