80margin char and add a fixme about show() pbs

This commit is contained in:
Nikos Kouremenos 2006-01-26 12:20:49 +00:00
parent 4f21775305
commit ae88609125
1 changed files with 9 additions and 4 deletions

View File

@ -53,9 +53,13 @@ class MessageWindow:
self.xml = gtk.glade.XML(GTKGUI_GLADE, self.widget_name, APP) self.xml = gtk.glade.XML(GTKGUI_GLADE, self.widget_name, APP)
self.xml.signal_autoconnect(self) self.xml.signal_autoconnect(self)
self.window = self.xml.get_widget(self.widget_name) self.window = self.xml.get_widget(self.widget_name)
# I don't really understand, but get_property('visible') returns True at this point,
# FIXME:
# I don't really understand, but get_property('visible') returns True at
# this point,
# which seems way early. Anyway, hide until first tab is shown # which seems way early. Anyway, hide until first tab is shown
self.window.hide() self.window.hide()
# gtk+ doesn't make use of the motion notify on gtkwindow by default # gtk+ doesn't make use of the motion notify on gtkwindow by default
# so this line adds that # so this line adds that
self.window.add_events(gtk.gdk.POINTER_MOTION_MASK) self.window.add_events(gtk.gdk.POINTER_MOTION_MASK)
@ -492,8 +496,8 @@ class MessageWindow:
# 8 is the data size for the string # 8 is the data size for the string
selection.set(selection.target, 8, str(source_page_num)) selection.set(selection.target, 8, str(source_page_num))
def on_tab_label_drag_data_received_cb(self, widget, drag_context, x, y, selection, def on_tab_label_drag_data_received_cb(self, widget, drag_context, x, y,
type, time): selection, type, time):
'''Reorder the tabs according to the drop position''' '''Reorder the tabs according to the drop position'''
source_page_num = int(selection.data) source_page_num = int(selection.data)
dest_page_num, to_right = self.get_tab_at_xy(x, y) dest_page_num, to_right = self.get_tab_at_xy(x, y)
@ -626,7 +630,8 @@ class MessageWindowMgr:
def _position_window(self, win, acct, type): def _position_window(self, win, acct, type):
'''Moves window according to config settings''' '''Moves window according to config settings'''
if not gajim.config.get('saveposition') or self.mode == self.ONE_MSG_WINDOW_NEVER: if not gajim.config.get('saveposition') or\
self.mode == self.ONE_MSG_WINDOW_NEVER:
return return
if self.mode == self.ONE_MSG_WINDOW_ALWAYS: if self.mode == self.ONE_MSG_WINDOW_ALWAYS: