Pergunta

I'm writing a application that resides in Tray, when user left-click it's show a window(not decorated, and positioned according StatusIcon).

After I run application and click in Icon the Window is shown correct, but after be hide (set_visible(false)) and re-shown I get a blank window.

I've tried a lot of things(I don't remember any more :/) but doesn't solve.

The code; TrayIcon::on_button_release is where window is show and hide through set_visible

Foi útil?

Solução

set_visible() is a convenience around show() and hide(). show() guarantees only the current widget becomes visible, not its children. You probably want to call show_all(), to recursively show all the contents.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top