|
|
|
@ -242,8 +242,8 @@ class Interface(object):
|
|
|
|
|
main_window.resize(initial_width, initial_height) |
|
|
|
|
main_window.move(initial_x, initial_y) |
|
|
|
|
|
|
|
|
|
if self._images['main']: |
|
|
|
|
main_window.set_icon(self._images['main']) |
|
|
|
|
if self._images['icon']: |
|
|
|
|
main_window.set_icon(self._images['icon']) |
|
|
|
|
|
|
|
|
|
(menu, toolbar, accelerators) = self._create_menu_and_toolbar() |
|
|
|
|
update_field = self._create_update_box() |
|
|
|
@ -561,8 +561,8 @@ class Interface(object):
|
|
|
|
|
'Philip Reynolds', |
|
|
|
|
'Greg McIntyre', |
|
|
|
|
'"Alexander"']) |
|
|
|
|
if self._images['main']: |
|
|
|
|
about_window.set_logo(self._images['main']) |
|
|
|
|
if self._images['logo']: |
|
|
|
|
about_window.set_logo(self._images['logo']) |
|
|
|
|
about_window.run() |
|
|
|
|
about_window.hide() |
|
|
|
|
|
|
|
|
@ -729,7 +729,7 @@ class Interface(object):
|
|
|
|
|
|
|
|
|
|
if self._statusicon: |
|
|
|
|
if self._new_message_count == 0: |
|
|
|
|
self._statusicon.set_from_pixbuf(self._images['main']) |
|
|
|
|
self._statusicon.set_from_pixbuf(self._images['icon']) |
|
|
|
|
else: |
|
|
|
|
self._statusicon.set_from_pixbuf(self._images['new-messages']) |
|
|
|
|
|
|
|
|
@ -1374,8 +1374,10 @@ class Interface(object):
|
|
|
|
|
has_alpha=False, bits_per_sample=8, width=48, height=48) |
|
|
|
|
|
|
|
|
|
self._images = {} |
|
|
|
|
self._images['main'] = gtk.gdk.pixbuf_new_from_file( |
|
|
|
|
self._images['icon'] = gtk.gdk.pixbuf_new_from_file( |
|
|
|
|
find_image('mitter.png')) |
|
|
|
|
self._images['logo'] = gtk.gdk.pixbuf_new_from_file( |
|
|
|
|
find_image('mitter-big.png')) |
|
|
|
|
self._images['new-messages'] = gtk.gdk.pixbuf_new_from_file( |
|
|
|
|
find_image('mitter-new.png')) |
|
|
|
|
self._images['icon-error'] = gtk.gdk.pixbuf_new_from_file( |
|
|
|
@ -1398,7 +1400,7 @@ class Interface(object):
|
|
|
|
|
|
|
|
|
|
if self._options[self.NAMESPACE]['statusicon']: |
|
|
|
|
self._statusicon = gtk.StatusIcon() |
|
|
|
|
self._statusicon.set_from_pixbuf(self._images['main']) |
|
|
|
|
self._statusicon.set_from_pixbuf(self._images['icon']) |
|
|
|
|
else: |
|
|
|
|
self._statusicon = None |
|
|
|
|
|
|
|
|
|