Re: GTK remove minimize & maximize buttons
- From: Gian Mario Tagliaretti <g tagliaretti parafernalia org>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK remove minimize & maximize buttons
- Date: Tue, 28 Dec 2004 01:34:50 +0100
On Tuesday 28 December 2004 00:56, Fleck wrote:
Hi, i wonder, how to remove minimize & maximize/un-maximize buttons?
I'm using Glade and can't figure it out, i tried gtk_window_set_decorations
with no luck :(
I'm also looking for way to disable resizeable borders
(gtk_window_set_resizeable() ? ) and ... with no luck :((
To disable minimize/maximize you can use the method
gtk_window_set_type_hint, have a look at the API here:
http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-type-hint
you can set the value of GdkWindowTypeHint to one of these:
GDK_WINDOW_TYPE_HINT_NORMAL,
GDK_WINDOW_TYPE_HINT_DIALOG,
GDK_WINDOW_TYPE_HINT_MENU,
GDK_WINDOW_TYPE_HINT_TOOLBAR,
GDK_WINDOW_TYPE_HINT_SPLASHSCREEN,
GDK_WINDOW_TYPE_HINT_UTILITY,
GDK_WINDOW_TYPE_HINT_DOCK,
GDK_WINDOW_TYPE_HINT_DESKTOP
The one that disable the two buttons on the decoration is
GDK_WINDOW_TYPE_HINT_MENU.
The method gtk_window_set_decorations completely remove all the decoration of
the window if set to False, better don't use it.
gtk_window_set_resizeable il set to False will keep the dimension of the
window immutable, the user cannot change it.
please help
P.S. sorry for my english
My english is not better :)
cheers
--
Gian Mario Tagliaretti
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]