Skip to content

Commit

Permalink
fix more pylint warnings
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21752 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 20, 2019
1 parent 653894f commit bc110ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/xpra/client/client_window_base.py
Expand Up @@ -32,6 +32,9 @@

class ClientWindowBase(ClientWidgetBase):

#(overriden in subclasses)
NAME_TO_HINT = {}

def __init__(self, client, group_leader, watcher_pid, wid,
wx, wy, ww, wh, bw, bh,
metadata, override_redirect, client_properties,
Expand Down Expand Up @@ -238,9 +241,10 @@ def metadata_replace(match):
self.reset_icon()

if b"size-constraints" in metadata:
self.size_constraints = typedict(metadata.dictget("size-constraints"))
self._set_initial_position = self.size_constraints.boolget("set-initial-position", self._set_initial_position)
self.set_size_constraints(self.size_constraints, self.max_window_size)
sc = typedict(metadata.dictget("size-constraints"))
self.size_constraints = sc
self._set_initial_position = sc.boolget("set-initial-position", self._set_initial_position)
self.set_size_constraints(sc, self.max_window_size)

if b"set-initial-position" in metadata:
#this should be redundant - but we keep it here for consistency
Expand Down Expand Up @@ -422,6 +426,9 @@ def set_skip_taskbar_hint(self, skip_taskbar_hint):
def set_skip_pager_hint(self, skip_pager_hint):
raise NotImplementedError()

def set_type_hint(self, type_hint):
raise NotImplementedError()

def set_menu(self, menu):
pass

Expand Down

0 comments on commit bc110ae

Please sign in to comment.