Try this for screen resolution
void getscreenres ( int * widthret , int * heightret ) { GdkScreen * screen = gtk_window_get_screen(GTK_WINDOW(window)); *widthret = gdk_screen_get_width(screen); // in pixels *heightret = gdk_screen_get_height(screen); }
--- On Wed, 16/6/10, Lohitha R <lohitha.r@xxxxxxxxxxxxxxxxxx> wrote:
From: Lohitha R <lohitha.r@xxxxxxxxxxxxxxxxxx> Subject: How to get Width and height.. To: gtk-list@xxxxxxxxx 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. I tried with gtk_window_get_default_size and gtk_window_get_size.. But I didn't get the expected result.. please guide me... -- Regards, Lohitha R _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxxhttp://mail.gnome.org/mailman/listinfo/gtk-list
|
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list