Re: How to get Width and height..

Il giorno Wed, 16 Jun 2010 15:42:09 +0530
Lohitha R <lohitha r globaledgesoft com> ha scritto:

> Hi all,
>           Is there any way to get the screen resolution(monitor) in 
> gtk..??

If by resolution you mean size in pixels, you could use
gdk_screen_get_{width,height}() with the default screen.

> or is there any way to get the size of the maximized gtk 
> window(gtk widget) in gtk.

If you need to read the size after the window is mapped, you can
connect a callback to the GtkWidget:configure-event signal:

You'll get also a notification whenever the window is resized for

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