]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
added missing headers (patch 1774617)
[wxWidgets.git] / src / gtk / clipbrd.cpp
index ea30f41d243715f1ec5fb219b91765b8bf521402..483b6beca4889861019d77c3cc6e1c27cb973eb4 100644 (file)
@@ -393,10 +393,8 @@ wxClipboard::~wxClipboard()
 {
     Clear();
 
-    if ( m_clipboardWidget )
-        gtk_widget_destroy( m_clipboardWidget );
-    if ( m_targetsWidget )
-        gtk_widget_destroy( m_targetsWidget );
+    gtk_widget_destroy( m_clipboardWidget );
+    gtk_widget_destroy( m_targetsWidget );
 }
 
 // ----------------------------------------------------------------------------
@@ -441,7 +439,7 @@ void wxClipboard::AddSupportedTarget(GdkAtom atom)
 {
     gtk_selection_add_target
     (
-        GTK_WIDGET(m_clipboardWidget),
+        m_clipboardWidget,
         GTKGetClipboardAtom(),
         atom,
         0 // info (same as client data) unused