Window with no maximize button
- From: "aniket ray" <aniket ray gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Window with no maximize button
- Date: Mon, 17 Sep 2007 17:01:05 +0530
Hi,
I wanted to create a Window with only the minimize and close decoration
buttons (and no maximize button).
The code of what I basically did was:
windowPointer = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_realize(windowPointer);
mainWindow = windowPointer->window;
gdk_window_set_decorations(mainWindow, GDK_DECOR_BORDER | GDK_DECOR_RESIZEH
| GDK_DECOR_TITLE | GDK_DECOR_MENU | GDK_DECOR_MINIMIZE); //everything but
maximize
gtk_widget_show(windowPointer);
This does not seem to work as I still get the maximize button on the window.
I am using an FC6, with default GNOME installation (and its Metacity WM).
On the other hand, if I give a DIALOG hint to the window with
gtk_window_set_type_hint(), I am able to remove the maximize and minimize
buttons.
Is there a difference in which the 2 methods send hints to the WM? How can I
get this to work?
Thanks in advance,
Aniket
PS: On an unrelated note, is there an active mailing list for application
programming directly using Xlib calls?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]