diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-29 02:49:29 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-10-29 02:49:29 (GMT) |
commit | a4fd5e5f9804580454a438e5f85e2bf4074ca403 (patch) | |
tree | 3a43a1e69204499c1cb8b65887925bb857a4ac2c | |
parent | cae6e9d4e52fa03ed0f3edd7f5e470914693ee21 (diff) |
options to add copy to a toolbar button later -- hooked in
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@775 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
-rw-r--r-- | button.py | 2 | ||||
-rw-r--r-- | ui.py | 9 |
2 files changed, 11 insertions, 0 deletions
@@ -89,6 +89,8 @@ class RecdButton(TrayButton, gobject.GObject): def addCopyMenuItem( self ): if (self.recd.buddy and not self.recd.downloadedFromBuddy): return + if (self.ACTIVATE_COPY_ID != 0): + return self.copy_menu_item = gtk.MenuItem( self.ui.ca.istrCopyToClipboard ) self.ACTIVATE_COPY_ID = self.copy_menu_item.connect('activate', self._itemCopyToClipboardCb) @@ -1457,11 +1457,20 @@ class UI: def showMeshRecd( self, recd ):
self.ca._logger.debug('showMeshRecd: heres the downloaded recd to display...')
+
+ #if this thumbnail is being shown, add the option to copy it now
+ kids = self.thumbTray.get_children()
+ for i in range (0, len(kids)):
+ if (kids[i].recd == recd):
+ kids[i].addCopyMenuItem()
+
if (recd == self.shownRecd):
self.ca._logger.debug('showMeshRecd: and since were still looking at same recd, here it is!')
self.showThumbSelection( recd )
+
+
def showThumbSelection( self, recd ):
lastRecd = self.shownRecd
|