New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System clipboard not working #13

Closed
BackOrder opened this Issue Jan 8, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@BackOrder
Collaborator

BackOrder commented Jan 8, 2015

The system clipboard does not work from/to Shoes on Windows. It does work properly on MacOS X 10.9+ and 10.6 (custom build).

TEST SCENARIOS
TEST (1):

  • Run the Shoes script below using Shoes
  • Open Notepad, write some text, select it and copy it to the system clipboard
  • Click on paste button in the Shoes script

EXPECTED RESULT Should paste the previously selected text into the Shoes script

TEST (2):

  • Click on copy button in the Shoes script
  • Return to the Notepad application and paste from the system clipboard

EXPECTED RESULT Should paste this is a Shoes string. into Notepad.

TEST (3)

  • Go back to the Shoes script and click on paste

EXPECTED RESULT Should paste this is a Shoes string. into the Shoes script.

Shoes.app(:title => "Copy and Paste", :width => 450, :height => 250) {
   button "copy" do
      self.clipboard = "this is a Shoes string."
   end
   button "paste" do
      para clipboard()
   end
}
@ccoupe

This comment has been minimized.

Show comment
Hide comment
@ccoupe

ccoupe Jan 12, 2015

Contributor

In Linux, the paste button works but copy button doesn't.

Contributor

ccoupe commented Jan 12, 2015

In Linux, the paste button works but copy button doesn't.

@ccoupe ccoupe added the Linux label Jan 12, 2015

@ccoupe

This comment has been minimized.

Show comment
Hide comment
@ccoupe

ccoupe Jan 13, 2015

Contributor

Around line 1462 in gtk2.c, two funtions: use GDK_SELECTION_CLIPBOARD in place of GDK_SELECTION_PRIMARY.

It's working on Win 7 and Linux. Try http://walkabout.mvmanila.com/public/shoes/shoes-3.2.20-gtk2-32.exe

Contributor

ccoupe commented Jan 13, 2015

Around line 1462 in gtk2.c, two funtions: use GDK_SELECTION_CLIPBOARD in place of GDK_SELECTION_PRIMARY.

It's working on Win 7 and Linux. Try http://walkabout.mvmanila.com/public/shoes/shoes-3.2.20-gtk2-32.exe

@BackOrder

This comment has been minimized.

Show comment
Hide comment
@BackOrder

BackOrder Jan 13, 2015

Collaborator

Confirmed working on Windows 8. Reference fix f1e6461.

Collaborator

BackOrder commented Jan 13, 2015

Confirmed working on Windows 8. Reference fix f1e6461.

@ccoupe

This comment has been minimized.

Show comment
Hide comment
@ccoupe

ccoupe Jan 13, 2015

Contributor

It's about time we got an easy one to fix.

Contributor

ccoupe commented Jan 13, 2015

It's about time we got an easy one to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment