X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e691f46b2ec1b5dbbff2e51131e3c532e688a89..a23eb2cecbce3dbe97afdaddf220c8015f9948f1:/src/gtk/tglbtn.cpp diff --git a/src/gtk/tglbtn.cpp b/src/gtk/tglbtn.cpp index c5a05ec578..2a913203a7 100644 --- a/src/gtk/tglbtn.cpp +++ b/src/gtk/tglbtn.cpp @@ -21,9 +21,8 @@ extern void wxapp_install_idle_handler(); extern bool g_isIdle; extern bool g_blockEventsOnDrag; extern wxCursor g_globalCursor; +extern wxWindowGTK *g_delayedFocus; -// void gtk_togglebutton_clicked_callback(GtkWidget *widget, wxToggleButton *cb) -// Callback function given to gtk. static void gtk_togglebutton_clicked_callback(GtkWidget *WXUNUSED(widget), wxToggleButton *cb) { if (g_isIdle) @@ -64,7 +63,7 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, wxControl::SetLabel(label); // Create the gtk widget. - m_widget = gtk_toggle_button_new_with_label(m_label.mbc_str()); + m_widget = gtk_toggle_button_new_with_label( wxGTK_CONV( m_label ) ); gtk_signal_connect(GTK_OBJECT(m_widget), "clicked", GTK_SIGNAL_FUNC(gtk_togglebutton_clicked_callback), @@ -124,7 +123,7 @@ void wxToggleButton::SetLabel(const wxString& label) wxControl::SetLabel(label); - gtk_label_set(GTK_LABEL(BUTTON_CHILD(m_widget)), GetLabel().mbc_str()); + gtk_label_set(GTK_LABEL(BUTTON_CHILD(m_widget)), wxGTK_CONV( GetLabel() ) ); } bool wxToggleButton::Enable(bool enable /*=TRUE*/)