changed wxWindow::ApplyToolTip to take UTF8-encoded char* instead of wxChar* to avoid unnecessary conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,7 +85,7 @@ public:
|
||||
GtkWidget *GetConnectWidget();
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
|
||||
void ApplyToolTip( GtkTooltips *tips, const gchar *tip );
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
struct _GtkTreeView *m_treeview;
|
||||
|
@@ -132,7 +132,7 @@ public:
|
||||
void GtkDisableEvents();
|
||||
void GtkEnableEvents();
|
||||
#if wxUSE_TOOLTIPS
|
||||
void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
|
||||
void ApplyToolTip( GtkTooltips *tips, const gchar *tip );
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
|
@@ -50,7 +50,7 @@ public:
|
||||
// this just sets the given tooltip for the specified widget
|
||||
//
|
||||
// tip must be already UTF-8 encoded
|
||||
static void Apply(GtkWidget *w, const wxCharBuffer& tip);
|
||||
static void Apply(GtkWidget *w, const gchar *tip);
|
||||
|
||||
private:
|
||||
wxString m_text;
|
||||
|
@@ -209,7 +209,8 @@ public:
|
||||
PangoContext *GtkGetPangoDefaultContext();
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
virtual void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
|
||||
// applies tooltip to the widget (tip must be UTF-8 encoded)
|
||||
virtual void ApplyToolTip( GtkTooltips *tips, const gchar *tip );
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
// Called when a window should delay showing itself
|
||||
|
Reference in New Issue
Block a user