use new icon for rename in group menu too.fixes #1782

This commit is contained in:
Nikos Kouremenos 2006-03-29 22:05:38 +00:00
parent 5a9dfbb20c
commit 5ff9b0fcba
1 changed files with 10 additions and 7 deletions

View File

@ -1178,10 +1178,10 @@ class RosterWindow:
add_special_notification_menuitem.set_no_show_all(True)
# add a special img for rename menuitem
path_to_rename_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
path_to_kbd_input_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
'kbd_input.png')
img = gtk.Image()
img.set_from_file(path_to_rename_img)
img.set_from_file(path_to_kbd_input_img)
rename_menuitem.set_image(img)
#skip a separator
@ -1294,9 +1294,12 @@ class RosterWindow:
menu = gtk.Menu()
rename_item = gtk.ImageMenuItem(_('Re_name'))
rename_icon = gtk.image_new_from_stock(gtk.STOCK_REFRESH,
gtk.ICON_SIZE_MENU)
rename_item.set_image(rename_icon)
# add a special img for rename menuitem
path_to_kbd_input_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
'kbd_input.png')
img = gtk.Image()
img.set_from_file(path_to_kbd_input_img)
rename_item.set_image(img)
menu.append(rename_item)
rename_item.connect('activate', self.on_rename, iter, path)
@ -1343,10 +1346,10 @@ class RosterWindow:
item = gtk.ImageMenuItem(_('_Rename'))
# add a special img for rename menuitem
path_to_rename_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
path_to_kbd_input_img = os.path.join(gajim.DATA_DIR, 'pixmaps',
'kbd_input.png')
img = gtk.Image()
img.set_from_file(path_to_rename_img)
img.set_from_file(path_to_kbd_input_img)
item.set_image(img)
menu.append(item)
item.connect('activate', self.on_rename, iter, path)