bool wxTaskBarIconBase::IsAvailable()
{
+#ifdef GDK_WINDOWING_X11
char name[32];
g_snprintf(name, sizeof(name), "_NET_SYSTEM_TRAY_S%d",
gdk_x11_get_default_screen());
Window manager = XGetSelectionOwner(gdk_x11_get_default_xdisplay(), atom);
return manager != None;
+#else
+ return true;
+#endif
}
//-----------------------------------------------------------------------------
#if wxUSE_TOOLTIPS
const char *tip_text = NULL;
if (!m_tipText.empty())
- tip_text = m_tipText.c_str();
+ tip_text = m_tipText.utf8_str();
#if GTK_CHECK_VERSION(2,10,0)
if (m_statusIcon)
IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
-wxTaskBarIcon::wxTaskBarIcon()
+wxTaskBarIcon::wxTaskBarIcon(wxTaskBarIconType WXUNUSED(iconType))
{
m_priv = new Private(this);
}