[gtk+/wip/mir2] mir: use monitor plug names more similar to the ones used in Xmir
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir2] mir: use monitor plug names more similar to the ones used in Xmir
- Date: Fri, 12 Dec 2014 17:44:17 +0000 (UTC)
commit b9890b3d9ee8a8d3cbb31db6d4446910987f63ec
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Fri Dec 12 18:42:05 2014 +0100
mir: use monitor plug names more similar to the ones used in Xmir
gdk/mir/gdkmirscreen.c | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
---
diff --git a/gdk/mir/gdkmirscreen.c b/gdk/mir/gdkmirscreen.c
index 2b53cef..e29ddb3 100644
--- a/gdk/mir/gdkmirscreen.c
+++ b/gdk/mir/gdkmirscreen.c
@@ -327,35 +327,31 @@ gdk_mir_screen_get_monitor_plug_name (GdkScreen *screen,
switch (output->type)
{
case mir_display_output_type_unknown:
- return g_strdup_printf ("UNKNOWN-%u", output->output_id);
+ return g_strdup_printf ("None-%u", output->output_id);
case mir_display_output_type_vga:
return g_strdup_printf ("VGA-%u", output->output_id);
case mir_display_output_type_dvii:
- return g_strdup_printf ("DVII-%u", output->output_id);
case mir_display_output_type_dvid:
- return g_strdup_printf ("DVID-%u", output->output_id);
case mir_display_output_type_dvia:
- return g_strdup_printf ("DVIA-%u", output->output_id);
+ return g_strdup_printf ("DVI-%u", output->output_id);
case mir_display_output_type_composite:
- return g_strdup_printf ("COMPOSITE-%u", output->output_id);
- case mir_display_output_type_svideo:
- return g_strdup_printf ("SVIDEO-%u", output->output_id);
+ return g_strdup_printf ("Composite-%u", output->output_id);
case mir_display_output_type_lvds:
return g_strdup_printf ("LVDS-%u", output->output_id);
case mir_display_output_type_component:
- return g_strdup_printf ("COMPONENT-%u", output->output_id);
+ return g_strdup_printf ("CTV-%u", output->output_id);
case mir_display_output_type_ninepindin:
- return g_strdup_printf ("NINEPINDIN-%u", output->output_id);
+ return g_strdup_printf ("DIN-%u", output->output_id);
case mir_display_output_type_displayport:
- return g_strdup_printf ("DISPLAYPORT-%u", output->output_id);
+ return g_strdup_printf ("DP-%u", output->output_id);
case mir_display_output_type_hdmia:
- return g_strdup_printf ("HDMIA-%u", output->output_id);
case mir_display_output_type_hdmib:
- return g_strdup_printf ("HDMIB-%u", output->output_id);
+ return g_strdup_printf ("HDMI-%u", output->output_id);
+ case mir_display_output_type_svideo:
case mir_display_output_type_tv:
return g_strdup_printf ("TV-%u", output->output_id);
case mir_display_output_type_edp:
- return g_strdup_printf ("EDP-%u", output->output_id);
+ return g_strdup_printf ("eDP-%u", output->output_id);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]