Commit 69f71372 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

ScrolledView: Use ConversationViewT

parent db199df5
......@@ -19,8 +19,7 @@
from gi.repository import Gtk
from gi.repository import GObject
from .view import ConversationView
from ..types import ConversationViewT
class ScrolledView(Gtk.ScrolledWindow):
......@@ -72,7 +71,7 @@ def __init__(self) -> None:
def get_autoscroll(self) -> bool:
return self._autoscroll
def get_view(self) -> ConversationView:
def get_view(self) -> ConversationViewT:
return self.get_child().get_child()
def reset(self) -> None:
......
......@@ -23,6 +23,7 @@
from .controls.private import PrivateChatControl
from .controls.groupchat import GroupchatControl
from .conversation.message_widget import MessageWidget
from .conversation.view import ConversationView
from .conversation.rows.call import CallRow
from .conversation.rows.command_output import CommandOutputRow
from .conversation.rows.date import DateRow
......@@ -46,3 +47,5 @@
]
GroupchatControlType = Union['GroupchatControl']
ConversationViewT = Union['ConversationView']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment