Re: full screen, no decor...how?



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]