Re: How To Draw a window without an option to Maximize it
- From: Amitesh Singh <singh amitesh gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: How To Draw a window without an option to Maximize it
- Date: Sat, 11 Feb 2006 04:51:02 +0530
Hi to all
i have found the solution
*******************************************************************************
gtk_window_set_resizable (GTK_WINDOW(window),FALSE);
gtk_widget_show (window);
********************************************************************************
i have also tried to do the same using gdk_window_set_decorations ();
but its not working !! :(
Any solutions !
here is the Code
*************************************************************************************
static int j=GDK_DECOR_MAXIMIZE;
j=!j;
gtk_widget_realize (window);
gdk_window_set_decorations(window->window,j);
gtk_widget_show(window);
*****************************************************************************************
/*Gdkwindow.h*/
typedef enum
{
GDK_DECOR_ALL = 1 << 0,
GDK_DECOR_BORDER = 1 << 1,
GDK_DECOR_RESIZEH = 1 << 2,
GDK_DECOR_TITLE = 1 << 3,
GDK_DECOR_MENU = 1 << 4,
GDK_DECOR_MINIMIZE = 1 << 5,
GDK_DECOR_MAXIMIZE = 1 << 6
} GdkWMDecoration;
On 2/11/06, Amitesh Singh <singh amitesh gmail com> wrote:
Hi
How to Draw a Window without an option to Maximize it ?
Regards !
Amitesh
--
Cheers !!
AMITESH
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]