Re: How to get Width and height..

2010-06-16 Thread Tadej Borovšak
Hello. To obtain GdkScreen which is associated with your GtkWindow, use gtk_window_get_screen(). But keep in mind that screen doesn't always mean physical monitor, since in multi-headed settings, one screen can stretch over multiple monitors. To obtain monitor size, you'll need to use gdk_screen_

Re: How to get Width and height..

2010-06-16 Thread Nicola Fontana
Il giorno Wed, 16 Jun 2010 15:42:09 +0530 Lohitha R 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. http://library.gnome.org

Re: How to get Width and height..

2010-06-16 Thread Ken Resander
, Lohitha R wrote: From: Lohitha R Subject: How to get Width and height.. To: gtk-list@gnome.org Date: Wednesday, 16 June, 2010, 6:12 PM Hi all,          Is there any way to get the screen resolution(monitor) in gtk..?? or is there any way to get the size of the maximized gtk window(gtk widget) in gtk

How to get Width and height..

2010-06-16 Thread Lohitha R
Hi all, Is there any way to get the screen resolution(monitor) in gtk..?? or is there any way to get the size of the maximized gtk window(gtk widget) in gtk. I tried with gtk_window_get_default_size and gtk_window_get_size.. But I didn't get the expected result.. please gui

Re: How to get width and height while resizing window?

2010-01-16 Thread Ken Resander
get width and height while resizing window? To: "Ken Resander" Date: Saturday, 16 January, 2010, 12:44 PM http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-configure-event 2010/1/15, Ken Resander : > #include > > How to get width and height while resizing wind

How to get width and height while resizing window?

2010-01-15 Thread Ken Resander
#include How to get width and height while resizing window? I used size-allocate event as in the test program below: static gboolean szalloccallback ( GtkWidget * w,   GtkAllocation * a,   char * data )    {  printf ( " sz