projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor changes to correct compilation warnings
[wxWidgets.git]
/
src
/
gtk
/
clipbrd.cpp
diff --git
a/src/gtk/clipbrd.cpp
b/src/gtk/clipbrd.cpp
index 89f0c0161137be1ee486a028ab4912743d320ae4..3188efb47578de1f84c91bd85993253ed49289aa 100644
(file)
--- a/
src/gtk/clipbrd.cpp
+++ b/
src/gtk/clipbrd.cpp
@@
-42,7
+42,7
@@
GdkAtom g_targetsAtom = 0;
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
// (there will be a *lot* of them!)
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
// (there will be a *lot* of them!)
-static const
c
har *TRACE_CLIPBOARD = _T("clipboard");
+static const
wxC
har *TRACE_CLIPBOARD = _T("clipboard");
//-----------------------------------------------------------------------------
// reminder
//-----------------------------------------------------------------------------
// reminder
@@
-212,7
+212,7
@@
selection_clear_clip( GtkWidget *WXUNUSED(widget), GdkEventSelection *event )
/* the clipboard is no longer in our hands. we can the delete clipboard data. */
if (wxTheClipboard->m_data)
{
/* the clipboard is no longer in our hands. we can the delete clipboard data. */
if (wxTheClipboard->m_data)
{
- wxLog
Debug( wxT("wxClipboard will get cleared" )
);
+ wxLog
Trace(TRACE_CLIPBOARD, wxT("wxClipboard will get cleared" )
);
delete wxTheClipboard->m_data;
wxTheClipboard->m_data = (wxDataObject*) NULL;
delete wxTheClipboard->m_data;
wxTheClipboard->m_data = (wxDataObject*) NULL;
@@
-490,9
+490,11
@@
bool wxClipboard::IsSupported( const wxDataFormat& format )
/* store requested format to be asked for by callbacks */
m_targetRequested = format;
/* store requested format to be asked for by callbacks */
m_targetRequested = format;
+#if 0
wxLogTrace( TRACE_CLIPBOARD,
wxT("wxClipboard:IsSupported: requested format: %s"),
format.GetId().c_str() );
wxLogTrace( TRACE_CLIPBOARD,
wxT("wxClipboard:IsSupported: requested format: %s"),
format.GetId().c_str() );
+#endif
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
wxCHECK_MSG( m_targetRequested, FALSE, wxT("invalid clipboard format") );
@@
-588,7
+590,8
@@
bool wxClipboard::GetData( wxDataObject& data )
m_waiting = TRUE;
m_waiting = TRUE;
- wxLogDebug( wxT("wxClipboard::GetData: format found, start convert") );
+ wxLogTrace( TRACE_CLIPBOARD,
+ wxT("wxClipboard::GetData: format found, start convert") );
gtk_selection_convert( m_clipboardWidget,
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
gtk_selection_convert( m_clipboardWidget,
m_usePrimary ? (GdkAtom)GDK_SELECTION_PRIMARY
@@
-606,7
+609,8
@@
bool wxClipboard::GetData( wxDataObject& data )
return TRUE;
}
return TRUE;
}
- wxLogDebug( wxT("wxClipboard::GetData: format not found") );
+ wxLogTrace( TRACE_CLIPBOARD,
+ wxT("wxClipboard::GetData: format not found") );
/* return failure */
delete[] array;
/* return failure */
delete[] array;