Skip to content

Commit

Permalink
OSD: Specify GtkLayerShell version to prevent an annoying warning
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Sep 21, 2024
1 parent 48d5d58 commit 1eb607d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scc/osd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env python3
"""
SC-Controller - OSD
"""SC-Controller - OSD.
Common methods for OSD-related stuff
"""
Expand Down Expand Up @@ -54,6 +52,8 @@ def __init__(self, wmclass, layer = None):
self.set_wmclass(wmclass, wmclass)
self.using_wlroots = False
try:
import gi
gi.require_version("GtkLayerShell", "0.1")
from gi.repository import GtkLayerShell
if GtkLayerShell.is_supported():
self.using_wlroots=True
Expand Down Expand Up @@ -114,7 +114,7 @@ def _apply_css(config):


def _add_arguments(self):
""" Should be overriden AND called by child class """
"""Should be overriden AND called by child class."""
self.argparser.add_argument('-x', type=int, metavar="pixels", default=20,
help="""horizontal position in pixels, from left side of screen.
Use negative value to specify as distance from right side (default: 20)""")
Expand Down

0 comments on commit 1eb607d

Please sign in to comment.