Skip to content

Commit

Permalink
Fix: this test code doesn't belong here
Browse files Browse the repository at this point in the history
  • Loading branch information
kozec committed Sep 23, 2018
1 parent c0ccf57 commit d90157e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions scc/osd/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand All @@ -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")
Expand Down

0 comments on commit d90157e

Please sign in to comment.