From d90157ef1bd2d3f7a94f22c6d218e9d97ed385f2 Mon Sep 17 00:00:00 2001 From: kozec Date: Sun, 23 Sep 2018 08:51:53 +0200 Subject: [PATCH] Fix: this test code doesn't belong here --- scc/osd/message.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scc/osd/message.py b/scc/osd/message.py index 021d11a9a..9b08bd63b 100644 --- a/scc/osd/message.py +++ b/scc/osd/message.py @@ -9,8 +9,6 @@ from gi.repository import Gtk, GLib from scc.special_actions import OSDAction -from scc.tools import find_icon -from scc.osd.menu import MenuIcon from scc.osd import OSDWindow import os, sys, logging @@ -25,7 +23,6 @@ def __init__(self): self.timeout = OSDAction.DEFAULT_TIMEOUT self.size = OSDAction.DEFAULT_SIZE self.text = "text" - self.icon = "system/cog" self._timeout_id = None @@ -34,15 +31,7 @@ def show(self): self.l.set_name("osd-label-%s" % (self.size, )) self.l.set_label(self.text) - icon_file, has_colors = find_icon(self.icon, prefer_bw=True) - if icon_file: - self.vbox = Gtk.Box(Gtk.Orientation.HORIZONTAL) - self.i = MenuIcon(icon_file, has_colors) - self.vbox.pack_start(self.i, True, False, 0) - self.vbox.pack_start(self.l, True, True, 0) - self.add(self.vbox) - else: - self.add(self.l) + self.add(self.l) if self.size < 2: self.set_name("osd-message-1")