X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/908eeca88dee75d5ac3ba10d539fb7e0f5387d2c..fdf20a26dba64a6d31dead1e1d19b2d755c0af13:/src/gtk/slider.cpp?ds=sidebyside diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index f14ae6394a..52e12014c7 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -100,7 +100,7 @@ static inline wxEventType GtkScrollTypeToWx(int scrollType) eventType = wxEVT_SCROLL_THUMBTRACK; break; default: - wxFAIL_MSG(_T("Unknown GtkScrollType")); + wxFAIL_MSG(wxT("Unknown GtkScrollType")); eventType = wxEVT_NULL; break; } @@ -304,9 +304,10 @@ bool wxSlider::Create(wxWindow *parent, } if (style & wxSL_VERTICAL) - m_widget = gtk_vscale_new( (GtkAdjustment *) NULL ); + m_widget = gtk_vscale_new( NULL ); else - m_widget = gtk_hscale_new( (GtkAdjustment *) NULL ); + m_widget = gtk_hscale_new( NULL ); + g_object_ref(m_widget); gtk_scale_set_draw_value(GTK_SCALE (m_widget), (style & wxSL_LABELS) != 0); // Keep full precision in position value