Skip to content

Commit

Permalink
made AvatarChooser ImageChooser Preferences and Profile modal dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
marianoguerra committed Jul 2, 2010
1 parent 6b9f545 commit 2a21523
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions emesene/gui/gtkui/AvatarChooser.py
Expand Up @@ -22,6 +22,7 @@ def __init__(self, response_cb, picture_path='',
picture_path is the path of the current display picture,
'''
gtk.Window.__init__(self)
self.set_modal(True)
self.set_icon(gui.theme.logo)

self.response_cb = response_cb
Expand Down
1 change: 1 addition & 0 deletions emesene/gui/gtkui/Dialog.py
Expand Up @@ -819,6 +819,7 @@ def button_cb(button, window, response_cb, response):
def edit_profile(cls, handler, user_nick, user_message, last_avatar):

windows = gtk.Window()
windows.set_modal(True)
windows.set_border_width(5)
windows.set_title('Change profile')
windows.set_position(gtk.WIN_POS_CENTER)
Expand Down
1 change: 1 addition & 0 deletions emesene/gui/gtkui/ImageChooser.py
Expand Up @@ -14,6 +14,7 @@ def __init__(self, path, response_cb):
'''class constructor, path is the directory where the
dialog opens'''
gtk.Window.__init__(self)
self.set_modal(True)
self.set_icon(gui.theme.logo)

self.response_cb = response_cb
Expand Down
1 change: 1 addition & 0 deletions emesene/gui/gtkui/Preferences.py
Expand Up @@ -27,6 +27,7 @@ def __init__(self, session):
"""
gtk.Window.__init__(self)
self.set_border_width(2)
self.set_modal(True)
self.set_title("Preferences")
self.session = session

Expand Down
3 changes: 1 addition & 2 deletions emesene/gui/gtkui/UserPanel.py
Expand Up @@ -165,7 +165,7 @@ def set_picture_cb(response, filename):
self.avatar_manager.set_as_avatar(filename)

# Directory for user's avatars
path_dir = self.avatar_manager.get_avatars_dir()
path_dir = self.avatar_manager.get_avatars_dir()

# Directory for contact's cached avatars
cached_avatar_dir = self.avatar_manager.get_cached_avatars_dir()
Expand All @@ -177,6 +177,5 @@ def set_picture_cb(response, filename):
self.avatar_path, path_dir,
cached_avatar_dir, faces_paths,
self.avatar_manager)
_av_chooser.set_modal(True)
_av_chooser.show()

0 comments on commit 2a21523

Please sign in to comment.