From 71d0297574532481ab24442fc7db9b99af5af7ad Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Tue, 13 Mar 2012 19:57:37 +0000 Subject: [PATCH] Use modes' names for the list. SVN revision: 69304 --- src/modules/conf_randr/e_int_config_randr_resolutions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/conf_randr/e_int_config_randr_resolutions.c b/src/modules/conf_randr/e_int_config_randr_resolutions.c index 908e283e7..ddd14670f 100644 --- a/src/modules/conf_randr/e_int_config_randr_resolutions.c +++ b/src/modules/conf_randr/e_int_config_randr_resolutions.c @@ -201,7 +201,11 @@ resolution_widget_update_list(Evas_Object *rep) else rate = 0.0; - snprintf(resolution_text, (RESOLUTION_TXT_MAX_LENGTH - 1), "%dx%d@%.1fHz", mode_info->width, mode_info->height, rate); + if (mode_info->name) + snprintf(resolution_text, (RESOLUTION_TXT_MAX_LENGTH - 1), "%s@%.1fHz", mode_info->name, rate); + else + snprintf(resolution_text, (RESOLUTION_TXT_MAX_LENGTH - 1), "%dx%d@%.1fHz", mode_info->width, mode_info->height, rate); + e_widget_ilist_append(e_config_runtime_info->gui.widgets.resolutions.widget, NULL, resolution_text, NULL, mode_info, NULL); //select currently enabled mode