Minimize, maximize, close

View: New views
2 Messages — Rating Filter:   Alert me  

Minimize, maximize, close

by David López Luengo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone there,

Just two short questions:

- I want my main window to have the minimize, maximize, close buttons but I only get the close buttons, moreover, I have some dialogs too and these have those buttons... how can i display them?
- Btw, in my main window i have a button that display a dialog when clicked, but this dialog is shown down the main window and i want it to appear on top of the main windows, how can i do that?

I hope these questions are easy.

Thanks for your attention.


--
David

_______________________________________________
Glade-users maillist  -  Glade-users@...
http://lists.ximian.com/mailman/listinfo/glade-users

Re: Minimize, maximize, close

by Alexey Kurochkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2009-11-05 at 22:19 +0000, David López Luengo wrote:
> Hi everyone there,
>
> Just two short questions:
>
> - I want my main window to have the minimize, maximize, close buttons
> but I only get the close buttons, moreover, I have some dialogs too
> and these have those buttons... how can i display them?

Play with "resizable", "modal", and "type-hint" properties to see how it
affects the appearance, but in general these buttons are part of the
window decorations, and your window manager is in complete control of
them. It may or may not respect your settings, and under some other
window manager your window decorations could be completely different, or
disappear altogether.

> - Btw, in my main window i have a button that display a dialog when
> clicked, but this dialog is shown down the main window and i want it
> to appear on top of the main windows, how can i do that?

Call gtk_window_present() instead of gtk_widget_show(). You may also
want to set "transient-for" property of the dialog to point to your main
window if you want it always be on top of it.


_______________________________________________
Glade-users maillist  -  Glade-users@...
http://lists.ximian.com/mailman/listinfo/glade-users