]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/taskbar.cpp
don't use GetThemeMetric(HP_HEADERITEM, TMT_HEIGHT) as it doesn't seem to work; imple...
[wxWidgets.git] / src / gtk / taskbar.cpp
index bfd2341e2deb5c70276a3e5a12a1c9ae135270ac..2b50819305649ea506370be54d534fb362ba01ab 100644 (file)
@@ -60,9 +60,10 @@ bool wxTaskBarIconAreaBase::IsProtocolSupported()
         Display *display = GDK_DISPLAY();
         Screen *screen = DefaultScreenOfDisplay(display);
 
-        wxString name;
-        name.Printf(_T("_NET_SYSTEM_TRAY_S%d"), XScreenNumberOfScreen(screen));
-        Atom atom = XInternAtom(display, name.ToAscii(), False);
+        char name[32];
+        g_snprintf(name, sizeof(name), "_NET_SYSTEM_TRAY_S%d",
+            XScreenNumberOfScreen(screen));
+        Atom atom = XInternAtom(display, name, False);
 
         Window manager = XGetSelectionOwner(display, atom);