Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorerikb <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)
commita4fd5e5f9804580454a438e5f85e2bf4074ca403 (patch)
tree3a43a1e69204499c1cb8b65887925bb857a4ac2c
parentcae6e9d4e52fa03ed0f3edd7f5e470914693ee21 (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.py2
-rw-r--r--ui.py9
2 files changed, 11 insertions, 0 deletions
diff --git a/button.py b/button.py
index bc0576e..97512a1 100644
--- a/button.py
+++ b/button.py
@@ -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)
diff --git a/ui.py b/ui.py
index 61e9964..109c2ba 100644
--- a/ui.py
+++ b/ui.py
@@ -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