fix icons

This commit is contained in:
Chris Jones 2009-07-14 00:25:07 +01:00
parent 05e5323097
commit d9e5174140

View File

@ -1808,30 +1808,30 @@ text/plain
if self.terminator.groupsend == 0: if self.terminator.groupsend == 0:
term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_ia_txt_color)) term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_ia_txt_color))
term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_ia_bg_color)) term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_ia_bg_color))
term._titlebox.set_from_icon_name(APP_NAME + '_receive_off', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_receive_off', gtk.ICON_SIZE_MENU)
else: else:
term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_rx_txt_color)) term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_rx_txt_color))
term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_rx_bg_color)) term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_rx_bg_color))
term._titlebox.set_from_icon_name(APP_NAME + '_receive_on', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_receive_on', gtk.ICON_SIZE_MENU)
elif term != self and term._group == None or term._group != self._group: elif term != self and term._group == None or term._group != self._group:
# Not active, group is not none, not in active's group # Not active, group is not none, not in active's group
if self.terminator.groupsend == 2: if self.terminator.groupsend == 2:
term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_rx_txt_color)) term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_rx_txt_color))
term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_rx_bg_color)) term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_rx_bg_color))
term._titlebox.set_from_icon_name(APP_NAME + '_receive_on', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_receive_on', gtk.ICON_SIZE_MENU)
else: else:
term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_ia_txt_color)) term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_ia_txt_color))
term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_ia_bg_color)) term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_ia_bg_color))
term._titlebox.set_from_icon_name(APP_NAME + '_receive_off', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_receive_off', gtk.ICON_SIZE_MENU)
else: else:
term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_tx_txt_color)) term._titlebox.set_foreground_color(gtk.gdk.color_parse (self.conf.title_tx_txt_color))
term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_tx_bg_color)) term._titlebox.set_background_color(gtk.gdk.color_parse (self.conf.title_tx_bg_color))
if self.terminator.groupsend == 2: if self.terminator.groupsend == 2:
term._titlebox.set_from_icon_name(APP_NAME + '_active_broadcast_all', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_active_broadcast_all', gtk.ICON_SIZE_MENU)
elif self.terminator.groupsend == 1: elif self.terminator.groupsend == 1:
term._titlebox.set_from_icon_name(APP_NAME + '_active_broadcast_group', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_active_broadcast_group', gtk.ICON_SIZE_MENU)
else: else:
term._titlebox.set_from_icon_name(APP_NAME + '_active_broadcast_off', gtk.ICON_SIZE_MENU) term._titlebox.set_from_icon_name('_active_broadcast_off', gtk.ICON_SIZE_MENU)
return return
def on_vte_focus_out(self, vte, event): def on_vte_focus_out(self, vte, event):