Skip to content
Snippets Groups Projects
Commit 07644a2a authored by nkour's avatar nkour
Browse files

add some comments

parent 381fe7a8
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ def __init__(self, gtk_window):
self.notify_icon = None
# Sublass the window and inject a WNDPROC to process messages.
self._oldwndproc = win32gui.SetWindowLong(self._hwnd, win32con.GWL_WNDPROC,
self._wndproc)
self._oldwndproc = win32gui.SetWindowLong(self._hwnd,
win32con.GWL_WNDPROC, self._wndproc)
def add_notify_icon(self, menu, hicon=None, tooltip=None):
......@@ -225,16 +225,10 @@ def __init__(self):
# self.tray_ico_imgs = self.load_icos()
#gajim.interface.roster.window.realize()
#gajim.interface.roster.window.show_all()
w = gtk.Window() # just a window to pass
w.realize() # realize it so gtk window exists
self.systray_winapi = SystrayWINAPI(w)
# this fails if you move the window
#self.systray_winapi = SystrayWINAPI(gajim.interface.roster.window)
self.xml.signal_autoconnect(self)
# Set up the callback messages
......@@ -329,7 +323,7 @@ def load_icos(self):
states_list.append('message')
for state in states_list:
path_to_ico = os.path.join(path, state + '.ico')
if not os.path.isfile(path_to_ico):
if not os.path.isfile(path_to_ico): # fallback to sun iconset
path_to_ico = os.path.join(path_sun_iconset, state + '.ico')
if os.path.exists(path_to_ico):
hinst = win32gui.GetModuleHandle(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment