From b49bc3bf13b06841372970f03dc50f8bd78f624a Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Tue, 28 Aug 2007 13:27:13 +0000 Subject: Fix for #2920 Only title and owner are displayed as link information. Removed the labels for this information. --- diff --git a/linktoolbar.py b/linktoolbar.py index 35ad3f0..c727552 100644 --- a/linktoolbar.py +++ b/linktoolbar.py @@ -49,7 +49,7 @@ class LinkToolbar(gtk.Toolbar): else: group = None - info = _('title: ') + title +'\n' + _('url: ') + url + '\n' + _('owner: ') + owner + info = title +'\n' + owner palette = Palette(info) palette.props.position = Palette.TOP @@ -59,12 +59,10 @@ class LinkToolbar(gtk.Toolbar): self.insert(link, 0) link.show() - menu_item = gtk.MenuItem(_('remove')) + menu_item = gtk.MenuItem(_('Remove')) menu_item.connect('activate', self._link_rm_palette_cb, link) palette.menu.append(menu_item) menu_item.show() - - #link.props.active = True if len(self.get_children()) > 0: self.show() @@ -80,7 +78,6 @@ class LinkToolbar(gtk.Toolbar): if child.get_active(): index = child.pos self.remove(child) - # self.get_children()[0].props.active = True if len(self.get_children()) is 0: self.hide() return index @@ -88,7 +85,6 @@ class LinkToolbar(gtk.Toolbar): def _link_rm_palette_cb(self, widget, link): self.emit('link-rm', link.pos) self.remove(link) - # self.get_children()[0].props.active = True if len(self.get_children()) is 0: self.hide() -- cgit v0.9.1