]> git.saurik.com Git - wxWidgets.git/commitdiff
Compile fixes for GTK 1.2
authorRobert Roebling <robert@roebling.de>
Sat, 8 Jan 2005 15:41:04 +0000 (15:41 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 8 Jan 2005 15:41:04 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/combobox.cpp
src/gtk/textctrl.cpp
src/gtk1/combobox.cpp
src/gtk1/textctrl.cpp

index 78127baff20acd2dd276cca0d64bc8867f92845e..627a4e3489e12997c191c78d7bb6bcd580d3cd6d 100644 (file)
@@ -219,8 +219,10 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
     // and case-sensitive
     gtk_combo_set_case_sensitive( GTK_COMBO(m_widget), TRUE );
 
+#ifdef __WXGTK20__
     if (style & wxNO_BORDER)
         g_object_set( GTK_ENTRY( combo->entry ), "has-frame", FALSE, NULL );
+#endif
         
     GtkWidget *list = GTK_COMBO(m_widget)->list;
 
index dc1e79cbd7d075d422837f70c87b8611254b4def..a970bf7dd527d9689d2cd5d31c2269dcb5589782 100644 (file)
@@ -396,9 +396,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
         // a single-line text control: no need for scrollbars
         m_widget =
         m_text = gtk_entry_new();
-        
+
+#ifdef __WXGTK20__        
         if (style & wxNO_BORDER)
             g_object_set( GTK_ENTRY(m_text), "has-frame", FALSE, NULL );
+#endif
     }
 
     m_parent->DoAddChild( this );
index 78127baff20acd2dd276cca0d64bc8867f92845e..627a4e3489e12997c191c78d7bb6bcd580d3cd6d 100644 (file)
@@ -219,8 +219,10 @@ bool wxComboBox::Create( wxWindow *parent, wxWindowID id, const wxString& value,
     // and case-sensitive
     gtk_combo_set_case_sensitive( GTK_COMBO(m_widget), TRUE );
 
+#ifdef __WXGTK20__
     if (style & wxNO_BORDER)
         g_object_set( GTK_ENTRY( combo->entry ), "has-frame", FALSE, NULL );
+#endif
         
     GtkWidget *list = GTK_COMBO(m_widget)->list;
 
index dc1e79cbd7d075d422837f70c87b8611254b4def..a970bf7dd527d9689d2cd5d31c2269dcb5589782 100644 (file)
@@ -396,9 +396,11 @@ bool wxTextCtrl::Create( wxWindow *parent,
         // a single-line text control: no need for scrollbars
         m_widget =
         m_text = gtk_entry_new();
-        
+
+#ifdef __WXGTK20__        
         if (style & wxNO_BORDER)
             g_object_set( GTK_ENTRY(m_text), "has-frame", FALSE, NULL );
+#endif
     }
 
     m_parent->DoAddChild( this );