On Thu, Feb 18, 2010 at 12:41 PM, Oscar Lazzarino <oscar.lazzarino@xxxxxxxxx> wrote: > Hi, > > I'm trying to get the size of a monitor via gdk, but I always get -1 > when measuing the size of a single monitor. > > With the attached code, I get this result when using multi-monitor > Of course the line screen_h = gdk_screen_get_height(screen); should have been screen_h = gdk_screen_get_height_mm(screen); Sorry for the typo. Now the results are (multi-monitor and xinerama) Display has 2 screens Screen 0: 524mm x 331mm -- has 1 monitors Monitor 0: 1920 x 1200 -- -1mm x -1mm Screen 1: 382mm x 302mm -- has 1 monitors Monitor 0: 1280 x 1024 -- -1mm x -1mm Display has 1 screens Screen 0: 873mm x 331mm -- has 2 monitors Monitor 0: 1920 x 1200 -- -1mm x -1mm Monitor 1: 1280 x 1024 -- -1mm x -1mm bust still I get invalid measures for each monitor... Thanks Oscar Lazzarino _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list