Problem on hiding toplevel window
- From: Choe Hwanjin <krisna kldp org>
- To: gtk-app-devel-list gnome org
- Subject: Problem on hiding toplevel window
- Date: Sun, 23 Nov 2003 12:05:35 +0900
Hi.
I made a gtk app which hide main window on loading. But it does not
work correctly. So I made test code:
int
main(int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *label;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(on_destroy), NULL);
label = gtk_label_new("This window must be hided");
gtk_container_add(GTK_CONTAINER(window), label);
gtk_widget_show(label);
gtk_widget_show(window);
gtk_widget_hide(window);
gtk_main();
return 0;
}
When I run this small test code, toplevel window does not disappear.
I'm using xfce4. So I test it with other window managers. On metacity,
disappeared, on twm, does not disappeared.
How do I hide main window correctly?
My code is wrong or this is a gtk+'s bug?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]