select row when we add a new status message

This commit is contained in:
Yann Leboulanger 2007-01-11 22:23:36 +00:00
parent 85ed580b6d
commit 17fa45890e
1 changed files with 2 additions and 3 deletions

View File

@ -1058,6 +1058,7 @@ class PreferencesWindow:
model = self.msg_tree.get_model() model = self.msg_tree.get_model()
iter = model.append() iter = model.append()
model.set(iter, 0, _('status message title'), 1, _('status message text')) model.set(iter, 0, _('status message title'), 1, _('status message text'))
self.msg_tree.set_cursor(model.get_path(iter))
def on_delete_msg_button_clicked(self, widget, data = None): def on_delete_msg_button_clicked(self, widget, data = None):
(model, iter) = self.msg_tree.get_selection().get_selected() (model, iter) = self.msg_tree.get_selection().get_selected()
@ -2721,9 +2722,7 @@ class ManageBookmarksWindow:
del gajim.interface.instances['manage_bookmarks'] del gajim.interface.instances['manage_bookmarks']
def on_add_bookmark_button_clicked(self, widget): def on_add_bookmark_button_clicked(self, widget):
''' '''Add a new bookmark.'''
Add a new bookmark.
'''
# Get the account that is currently used # Get the account that is currently used
# (the parent of the currently selected item) # (the parent of the currently selected item)
(model, iter) = self.selection.get_selected() (model, iter) = self.selection.get_selected()