Statusicon/set_skip_taskbar_hint()



Hello to all

My aim ist to minimize a window to a status icon without any taskbar entry. On 
Linux everything works well, but compiling and running it on Win32 (MS and 
Wine) the taskbar entry stays visible.

For compiling with Win32 I use MinGW, MSYS... over Wine on Linux.

The other important thing is how I hide my window. First of all I overwritten 
the window close button. I minimize the windows with iconify() and then 
remove it from the taskbar with set_skip_taskbar_hint(true). Further class 
StatusIcon is a member of the class MainWindow, which I want to hide.

And while I'm writing I've found this :(
http://bugzilla.gnome.org/show_bug.cgi?id=537183

Any way, what can I do to get my program working on Win32 like it does on 
Linux? Does someone know a working example, so I can figure out myself what 
to do? (e.g. open-source application)


Greetings -- mik



bool MainWindow::on_delete_event(GdkEventAny* /* event */)
{
  iconify();
  set_skip_taskbar_hint();
  return true;
}


void MainWindow::onStatusIconActivated(void)
{
  clog << "MainWindow::onStatusIconActivatedClicked" << std::endl;
  bool hide = get_skip_taskbar_hint();
//  hided ? window->deiconify() : window->iconify();
  if (hide) {
    deiconify();
    present();
  } else {
    iconify();
  }
  set_skip_taskbar_hint(not hide);
}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]