def add_notify_icon(self, hicon=None, tooltip=None):
        """ Creates a notify icon for the gtk window. """
        if not self.notify_icon:
            if not hicon:
                hicon = win32gui.LoadIcon(0, IDI_APPLICATION)
            self.notify_icon = NotifyIcon(self._hwnd, hicon, tooltip)

            # Makes redraw if the taskbar is restarted.   
            self.message_map({WM_TASKBARCREATED: self.notify_icon._redraw})
 Creates a notify icon for the gtk window. 
recipes/Python/334779_pyGTK_Win32_Extensi_Empower_GTK_Win32_windowing_/recipe-334779.py