MonitorManager: extend the API with physical sizes

These will be needed in the new display panel designs to show
the diagonal length and physical aspect ratio.

https://bugzilla.gnome.org/show_bug.cgi?id=706322
This commit is contained in:
Giovanni Campagna 2013-08-19 17:37:24 +02:00 committed by Giovanni Campagna
parent bb2df9b2c6
commit 3a786542c4

View File

@ -813,6 +813,10 @@ meta_monitor_manager_handle_get_resources (MetaDBusDisplayConfig *skeleton,
g_variant_new_string (output->product)); g_variant_new_string (output->product));
g_variant_builder_add (&properties, "{sv}", "serial", g_variant_builder_add (&properties, "{sv}", "serial",
g_variant_new_string (output->serial)); g_variant_new_string (output->serial));
g_variant_builder_add (&properties, "{sv}", "width-mm",
g_variant_new_int32 (output->width_mm));
g_variant_builder_add (&properties, "{sv}", "height-mm",
g_variant_new_int32 (output->height_mm));
g_variant_builder_add (&properties, "{sv}", "display-name", g_variant_builder_add (&properties, "{sv}", "display-name",
g_variant_new_take_string (make_display_name (manager, output))); g_variant_new_take_string (make_display_name (manager, output)));
g_variant_builder_add (&properties, "{sv}", "backlight", g_variant_builder_add (&properties, "{sv}", "backlight",