/////////////////////////////////////////////////////////////////////////////
-// Name: src/gtk/radiobox.cpp
+// Name: src/gtk1/radiobox.cpp
// Purpose:
// Author: Robert Roebling
// Id: $Id$
#include "wx/frame.h"
#include "wx/log.h"
-#include "wx/gtk/private.h"
+#include "wx/gtk1/private.h"
#include <gdk/gdkkeysyms.h>
-#include "wx/gtk/win_gtk.h"
+#include "wx/gtk1/win_gtk.h"
//-----------------------------------------------------------------------------
// idle system
return false;
}
- m_widget = gtk_frame_new( wxGTK_CONV( title ) );
+ m_widget = gtk_frame_new(NULL);
+ SetLabel(title);
// majorDim may be 0 if all trailing parameters were omitted, so don't
// assert here but just use the correct value for it
m_parent->DoAddChild( this );
- SetLabel( title );
-
PostCreation(size);
return true;
GtkLabel *label = GTK_LABEL( BUTTON_CHILD(node->GetData()) );
-#ifdef __WXGTK20__
- wxString str( wxGTK_CONV_BACK( gtk_label_get_text(label) ) );
-#else
wxString str( label->label );
-#endif
return str;
}
{
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") );
- wxControl::SetLabel( label );
-
- gtk_frame_set_label( GTK_FRAME(m_widget), wxGTK_CONV( wxControl::GetLabel() ) );
+ GTKSetLabelForFrame(GTK_FRAME(m_widget), label);
}
void wxRadioBox::SetString( int item, const wxString& label )
{
gtk_widget_modify_style( m_widget, style );
-#ifdef __WXGTK20__
- gtk_widget_modify_style(GTK_FRAME(m_widget)->label_widget, style);
-#endif
-
wxList::compatibility_iterator node = m_boxes.GetFirst();
while (node)
{