这个值能得到正确的dpi,那么这个值从哪里来的呢?gdkscreen.cgdk_screen_get_resolution:return screen->resolution;gdk_screen_set_resolutiongdk_screen_set_property/PROP_RESOLUTION有两处使用上述函数。猜测是:object_class->set_property = gdk_screen_set_property;简单搜索了一下,没找到哪里调用。