lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6111] Remove platform-specific code that has become unnec


From: Greg Chicares
Subject: [lmi-commits] [6111] Remove platform-specific code that has become unnecessary
Date: Sun, 01 Mar 2015 16:33:36 +0000

Revision: 6111
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6111
Author:   chicares
Date:     2015-03-01 16:33:35 +0000 (Sun, 01 Mar 2015)
Log Message:
-----------
Remove platform-specific code that has become unnecessary

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/skeleton.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-03-01 16:32:16 UTC (rev 6110)
+++ lmi/trunk/ChangeLog 2015-03-01 16:33:35 UTC (rev 6111)
@@ -35671,3 +35671,14 @@
   authenticity_test.cpp
 Skip multiple-root test if multiple root not readily found.
 
+20150301T1632Z <address@hidden> [516]
+
+  path_utility.cpp
+Correct a typo in documentation.
+
+20150301T1633Z <address@hidden> [516]
+
+  skeleton.cpp
+Remove platform-specific code that has become unnecessary. See:
+  http://lists.nongnu.org/archive/html/lmi/2015-02/msg00009.html
+

Modified: lmi/trunk/skeleton.cpp
===================================================================
--- lmi/trunk/skeleton.cpp      2015-03-01 16:32:16 UTC (rev 6110)
+++ lmi/trunk/skeleton.cpp      2015-03-01 16:33:35 UTC (rev 6111)
@@ -109,10 +109,6 @@
 #include <stdexcept>
 #include <string>
 
-#if defined __WXGTK__
-#   include <gtk/gtk.h>
-#endif
-
 // Where a builtin wxID_X identifier exists, use it as such, even if
 // it's used as the 'name=' attribute of an entity in an '.xrc' file.
 // For example, write 'wxID_SAVE' here, not 'XRCID("wxID_SAVE")'.
@@ -1055,25 +1051,6 @@
     status() << "End test of floating-point environment." << std::flush;
 }
 
-namespace
-{
-/// Send a paste message to a window.
-///
-/// Design rationale--see:
-///   http://lists.nongnu.org/archive/html/lmi/2008-02/msg00005.html
-
-void send_paste_message_to(wxWindow const& w)
-{
-#if defined __WXGTK__
-    g_signal_emit_by_name(w.m_focusWidget, "paste_clipboard");
-#elif defined __WXMSW__
-    ::SendMessage(reinterpret_cast<HWND>(w.GetHandle()), WM_PASTE, 0, 0);
-#else  // Unsupported platform.
-#   error Platform not yet supported. Consider contributing support.
-#endif // Unsupported platform.
-}
-} // Unnamed namespace.
-
 /// Test custom handler UponPaste().
 ///
 /// See:
@@ -1086,7 +1063,7 @@
 
     ClipboardEx::SetText("1\r\n2\r\n3\r\n");
     t->SetSelection(-1L, -1L);
-    send_paste_message_to(*t);
+    t->Paste();
     if("1;2;3" != t->GetValue())
         {
         warning() << "'1;2;3' != '" << t->GetValue() << "'" << LMI_FLUSH;
@@ -1094,7 +1071,7 @@
 
     ClipboardEx::SetText("X\tY\tZ\t");
     t->SetSelection(-1L, -1L);
-    send_paste_message_to(*t);
+    t->Paste();
     if("X;Y;Z" != t->GetValue())
         {
         warning() << "'X;Y;Z' != '" << t->GetValue() << "'" << LMI_FLUSH;




reply via email to

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