From e6b5bdedf81232eb4dd80104f3030be7c59a11fc Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Mon, 9 Nov 1998 19:44:29 +0000 Subject: [PATCH] Yes, two more bugs killed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/radiobox.cpp | 5 +++-- src/gtk/radiobut.cpp | 5 +++-- src/gtk1/radiobox.cpp | 5 +++-- src/gtk1/radiobut.cpp | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/gtk/radiobox.cpp b/src/gtk/radiobox.cpp index 2547f4e97f..c1f3fcc165 100644 --- a/src/gtk/radiobox.cpp +++ b/src/gtk/radiobox.cpp @@ -159,8 +159,9 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, if (newSize.y == -1) newSize.y = height; SetSize( newSize.x, newSize.y ); - gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y ); - gtk_widget_set_usize( m_widget, m_width, m_height ); + m_parent->AddChild( this ); + + (m_parent->m_insertCallback)( m_parent, this ); PostCreation(); diff --git a/src/gtk/radiobut.cpp b/src/gtk/radiobut.cpp index 3936fb8ad7..e42dcfd56b 100644 --- a/src/gtk/radiobut.cpp +++ b/src/gtk/radiobut.cpp @@ -60,8 +60,9 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab gtk_signal_connect( GTK_OBJECT(m_widget), "clicked", GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this ); - gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y ); - gtk_widget_set_usize( m_widget, m_width, m_height ); + m_parent->AddChild( this ); + + (m_parent->m_insertCallback)( m_parent, this ); PostCreation(); diff --git a/src/gtk1/radiobox.cpp b/src/gtk1/radiobox.cpp index 2547f4e97f..c1f3fcc165 100644 --- a/src/gtk1/radiobox.cpp +++ b/src/gtk1/radiobox.cpp @@ -159,8 +159,9 @@ bool wxRadioBox::Create( wxWindow *parent, wxWindowID id, const wxString& title, if (newSize.y == -1) newSize.y = height; SetSize( newSize.x, newSize.y ); - gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y ); - gtk_widget_set_usize( m_widget, m_width, m_height ); + m_parent->AddChild( this ); + + (m_parent->m_insertCallback)( m_parent, this ); PostCreation(); diff --git a/src/gtk1/radiobut.cpp b/src/gtk1/radiobut.cpp index 3936fb8ad7..e42dcfd56b 100644 --- a/src/gtk1/radiobut.cpp +++ b/src/gtk1/radiobut.cpp @@ -60,8 +60,9 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab gtk_signal_connect( GTK_OBJECT(m_widget), "clicked", GTK_SIGNAL_FUNC(gtk_radiobutton_clicked_callback), (gpointer*)this ); - gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y ); - gtk_widget_set_usize( m_widget, m_width, m_height ); + m_parent->AddChild( this ); + + (m_parent->m_insertCallback)( m_parent, this ); PostCreation(); -- 2.45.2