Re: Can I make a gtk app without the titlebar, nor the border.



Nils Olav Selåsdal <noselasd frisurf no> writes:
Usually when you create your main window, you do something like:
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
change that to
window = gtk_window_new(GTK_WINDOW_POPUP);


This is bad, it turns off window management.

In GTK 2, use gtk_window_set_decorated()

In 1.2, use:
 gtk_widget_realize (window);
 gdk_window_set_decorations (window->window, 0);

Havoc



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