Re: Can I make a gtk app without the titlebar, nor the border.
- From: Havoc Pennington <hp redhat com>
- To: Nils Olav Selåsdal <noselasd frisurf no>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Can I make a gtk app without the titlebar, nor the border.
- Date: 12 Feb 2002 16:37:20 -0500
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]