Re: [gnome-love] Title bar
- From: Ricardo Amadeo Contreras <aztlan2k yahoo com>
- To: "Nix N. Nix" <nix go-nix ca>
- Cc: gnome-love gnome org
- Subject: Re: [gnome-love] Title bar
- Date: 13 Sep 2001 00:14:05 -0500
On Mon, 2001-09-10 at 22:53, Nix N. Nix wrote:
Could you please help me with this one ?
How do I create a window without a title bar ? i.e. one that can be
used for a splash screen ?
For a window without any window manager decorations, look in the
GTK+ docs for
void gdk_window_set_decorations(GdkWindow *w, GdkWMDecoration d);
a couple of notes on it though:
1) pass it a pointer to a GdkWindow NOT a GtkWindow. Usually all
this means is that if you have a GtkWindow (w) you would pass:
w->window
2) You need to call this on an already realized (gtk_widget_realize())
window, but before it is shown (gtk_widget_show())
GtkWindow w;
GdkWMDecoration d = 0; /* 0 == no decorations */
...
gtk_widget_realize(GTK_WIDGET(w));
gdk_window_set_decorations(w->window, d);
...
gtk_widget_show(GTK_WIDGET(w));
Of course, if you want something other than NO decorations, you can
string together some decorations like:
GdkWMDecoration d = (GDK_DECOR_BORDER | GDK_DECOR_RESIZEH);
etc...
Look at the GTK+ 1.2 API reference (GDK & GTK) at www.gtk.org and you
should be able to figure it out.
good luck
Ricardo
I'm trying to create a replacement for the Alt+F2 run thing that KDE
once had. It no longer works, because kwm (I believe has been
re-shuffled). I once believed that kwm was the only thing worthwile out
of KDE. Now that's no good anymore either. I did, however, get
addicted to the Alt+F2 feature bringing up a teeny tiny window where I
could type in a single command. Now, I have done it for myself with
sawfish, but the window still has its (unsightly) decorations.
I'd appreciate any help.
Thanks!
_______________________________________________
gnome-love mailing list
gnome-love gnome org
http://mail.gnome.org/mailman/listinfo/gnome-love
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]