MohammadAG

Untitled

Mar 6th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. void VideoNowPlayingWindow::setDNDAtom(bool dnd)
  2. {
  3.     quint32 enable;
  4.     if (dnd)
  5.         enable = 1;
  6.     else
  7.         enable = 0;
  8.     Atom winDNDAtom = XInternAtom(QX11Info::display(), "_HILDON_DO_NOT_DISTURB", false);
  9.     XChangeProperty(QX11Info::display(), winId(), winDNDAtom, XA_INTEGER, 32, PropModeReplace, (uchar*) &enable, 1);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment