gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-


From: Benjamin Wolsey
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_start-311-g6a52b6e
Date: Mon, 21 Mar 2011 18:18:28 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  6a52b6eb12857c7c879927d8b73650c203d87a7a (commit)
      from  eb8ba6870f56218765d29df11c9520aef99bd5e2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=6a52b6eb12857c7c879927d8b73650c203d87a7a


commit 6a52b6eb12857c7c879927d8b73650c203d87a7a
Author: Benjamin Wolsey <address@hidden>
Date:   Mon Mar 21 17:56:46 2011 +0100

    Implement clipboard setting.

diff --git a/gui/kde/Kde4Gui.cpp b/gui/kde/Kde4Gui.cpp
index a43c5cd..302638b 100644
--- a/gui/kde/Kde4Gui.cpp
+++ b/gui/kde/Kde4Gui.cpp
@@ -54,6 +54,8 @@
 #include <QLCDNumber>
 #include <QSpinBox>
 #include <QSocketNotifier>
+#include <QClipboard>
+#include <QString>
 
 #include "Range2d.h"
 
@@ -88,6 +90,13 @@ Kde4Gui::~Kde4Gui()
 {
 }
 
+void
+Kde4Gui::setClipboard(const std::string& copy)
+{
+    QClipboard* cb = QApplication::clipboard();
+    assert(cb);
+    cb->setText(QString::fromStdString(copy));
+}
 
 bool
 Kde4Gui::init(int /*argc*/, char ** /*argv*/[])
diff --git a/gui/kde/Kde4Gui.h b/gui/kde/Kde4Gui.h
index 19eb70e..d058c24 100644
--- a/gui/kde/Kde4Gui.h
+++ b/gui/kde/Kde4Gui.h
@@ -119,6 +119,8 @@ public:
     virtual void setFullscreen();
     virtual bool showMouse(bool show);
     virtual void unsetFullscreen();
+    virtual void setClipboard(const std::string& copy);
+
     void setInvalidatedRegions(const InvalidatedRanges& ranges);
     void resize(int width, int height);
     void showProperties();

-----------------------------------------------------------------------

Summary of changes:
 gui/kde/Kde4Gui.cpp |    9 +++++++++
 gui/kde/Kde4Gui.h   |    2 ++
 2 files changed, 11 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]