Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/purk/windows.py
diff options
context:
space:
mode:
Diffstat (limited to 'purk/windows.py')
-rw-r--r--purk/windows.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/purk/windows.py b/purk/windows.py
index 2e3c1fa..b48630b 100644
--- a/purk/windows.py
+++ b/purk/windows.py
@@ -141,6 +141,12 @@ class Window(gtk.VBox):
self.rawid = id
self.__activity = set()
+
+ def is_query(self):
+ return False
+
+ def is_channel(self):
+ return False
class SimpleWindow(Window):
def __init__(self, network, id, core):
@@ -215,6 +221,9 @@ class QueryWindow(Window):
self.show_all()
+ def is_query(self):
+ return True
+
def move_nicklist(paned, event):
paned._moving = (
event.type == gtk.gdk._2BUTTON_PRESS,
@@ -285,3 +294,6 @@ class ChannelWindow(Window):
self.pack_end(pane)
self.show_all()
+
+ def is_channel(self):
+ return True