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