Skip to content
This repository
Browse code

Add GetClipboard method to CWinSystemBase

  • Loading branch information...
commit 26976c680343bc1ca956dfcf214694948f39ee87 1 parent 06cf75d
John Rennie authored August 02, 2013
4  xbmc/dialogs/GUIDialogKeyboardGeneric.cpp
@@ -753,11 +753,7 @@ void CGUIDialogKeyboardGeneric::OnPasteClipboard(void)
753 753
   CStdStringW pasted_text;
754 754
 
755 755
 // Get text from the clipboard
756  
-#if defined(TARGET_DARWIN_OSX)
757 756
   pasted_text = g_Windowing.GetClipboard();
758  
-#elif defined TARGET_WINDOWS
759  
-  pasted_text = g_Windowing.GetClipboard();
760  
-#endif
761 757
 
762 758
   // Insert the pasted text at the current cursor position.
763 759
   if (pasted_text.length() > 0)
5  xbmc/windowing/WinSystem.cpp
@@ -235,3 +235,8 @@ bool CWinSystemBase::UseLimitedColor()
235 235
   return false;
236 236
 #endif
237 237
 }
  238
+
  239
+CStdStringW CWinSystemBase::GetClipboard(void)
  240
+{
  241
+  return "";
  242
+}
2  xbmc/windowing/WinSystem.h
@@ -108,6 +108,8 @@ class CWinSystemBase
108 108
   virtual void EnableTextInput(bool bEnable) {}
109 109
   virtual bool IsTextInputEnabled() { return false; }
110 110
 
  111
+  CStdStringW GetClipboard(void);
  112
+
111 113
 protected:
112 114
   void UpdateDesktopResolution(RESOLUTION_INFO& newRes, int screen, int width, int height, float refreshRate, uint32_t dwFlags = 0);
113 115
 

0 notes on commit 26976c6

Please sign in to comment.
Something went wrong with that request. Please try again.