RE: border "close" button



how can I remove the decoration "close" button in the corner of a
gtk_dialog?


You cannot remove the button, since it's managed by the 
window manager,

I think you can remove ALL the buttons in the top right (min, max, and
close) by NOT including the GTK_DECOR_MENU flag:

    gdk_window_set_decorations (GDK_WINDOW(mywindow), GDK_DECOR_BORDER |
GDK_DECOR_TITLE);

See here for other modifications:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#GdkWMDecoration


Regards,
Martyn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]