Re: full screen, no decor...how?
- From: jflecomte idealx com (Lecomte Jean François)
- To: gtk-app-devel-list gnome org
- Subject: Re: full screen, no decor...how?
- Date: 27 Mar 2001 09:48:54 +0200
You have to work on the gdk_window associated with your GtkWindow,
with NO window manager
frame or decoration (ie no CLOSE, MINIMISE etc buttons).
GtkWidget*
create_window1 (void)
{
GtkWidget *window1;
window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_object_set_data (GTK_OBJECT (window1), "window1", window1);
gtk_widget_set_usize (window1, 400, 200);
gtk_window_set_title (GTK_WINDOW (window1), "window1");
/*first you need to realize your widget in order to have
one GdkWindow not NULL*/
gtk_widget_realize(window1);
/*Then you specify, how much decoration you want*/
gdk_window_set_decorations (GTK_WIDGET(window1)->window,
GDK_DECOR_BORDER);
return window1;
}
Hope this can help you !
--
--
J-François LECOMTE IDEALX S.A.S.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]