Re: how to hide close button in gtk dialog

2005-08-09 Thread Calum Benson
On Tue, 2005-08-09 at 09:56 +0200, Gus Koppel wrote: > It's common convention that title bar close buttons of windows do a > cancel-close. Especially if inside the window there are both "Cancel" > and "OK" buttons as well. It may be convention, but it still confuses people. The HIG would love to

Re: how to hide close button in gtk dialog

2005-08-09 Thread Gus Koppel
Yogesh M wrote: > found it, sometimes it is neccessary to avoid > confusion. > > for example in a dialog i have a cancel button, now if > the window show a close button, it is a confusion that > whether the window closes or the cancel activates or both. It's common convention that title bar clos

Re: how to hide close button in gtk dialog

2005-08-08 Thread The Saltydog
On 8/8/05, Yogesh M <[EMAIL PROTECTED]> wrote: > found it, sometimes it is neccessary to avoid > confusion. > > for example in a dialog i have a cancel button, now if > the window show a close button, it is a confusion that > whether the window closes or the cancel activates or > both. You can wo

Re: how to hide close button in gtk dialog

2005-08-07 Thread Yogesh M
found it, sometimes it is neccessary to avoid confusion. for example in a dialog i have a cancel button, now if the window show a close button, it is a confusion that whether the window closes or the cancel activates or both. --- The Saltydog <[EMAIL PROTECTED]> wrote: > On 8/7/05, Yogesh M <[EM

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M <[EMAIL PROTECTED]> wrote: > when i create a new dialog, it comes with close button, i am talking about > the button in the title bar. how to disable/remove it You should NEVER play with this. It is against Gnome Human Interface Guidelines: http://developer.gnome.org/projects

Re: how to hide close button in gtk dialog

2005-08-07 Thread Luca Cavalli
On Sun, 2005-08-07 at 08:27 -0700, Yogesh M wrote: > how to hide close button in gtk dialog? > > I think you should use: http://developer.gnome.org/doc/API/2.0/gdk/gdk-Windows.html#gdk-window-set-functions but it seems that few WMs honour it. Luca

Re: how to hide close button in gtk dialog

2005-08-07 Thread Yogesh M
when i create a new dialog, it comes with close button, i am talking about the button in the title bar. how to disable/remove it The Saltydog <[EMAIL PROTECTED]> wrote:On 8/7/05, Yogesh M wrote: > > how to hide close button in gtk dialog? > What do you mean by "hide"? If you don't want the clo

Re: how to hide close button in gtk dialog

2005-08-07 Thread The Saltydog
On 8/7/05, Yogesh M <[EMAIL PROTECTED]> wrote: > > how to hide close button in gtk dialog? > What do you mean by "hide"? If you don't want the close button, just don't create it, if you need to set it to "grey" (unsensitive), you should use gtk_widget_set_sensitive(,FALSE);