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 globaledgesoft com> wrote:
From: Lohitha R <lohitha r globaledgesoft com> 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. 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 gnome orghttp://mail.gnome.org/mailman/listinfo/gtk-list
|