diff options
author | Clement Lefebvre <[email protected]> | 2015-09-04 11:34:19 +0100 |
---|---|---|
committer | Clement Lefebvre <[email protected]> | 2015-09-04 11:34:19 +0100 |
commit | 11757da17e9fcdd33474aaa342bf4b6a2daf82d0 (patch) | |
tree | f8e01dcfd5ddf0f5cfa5ba2ac2d379d940975fc1 /libmate-desktop/mate-rr-labeler.c | |
parent | c2389563980d4293084ba4d972077029068ecaed (diff) | |
download | mate-desktop-11757da17e9fcdd33474aaa342bf4b6a2daf82d0.tar.bz2 mate-desktop-11757da17e9fcdd33474aaa342bf4b6a2daf82d0.tar.xz |
mate-rr-labeler: Show output name in addition to display name.
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r-- | libmate-desktop/mate-rr-labeler.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index e65ced5..673c03a 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -420,7 +420,7 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkColor GtkWidget *window; GtkWidget *widget; char *str; - const char *display_name; + char *display_name; GdkColor black = { 0, 0, 0, 0 }; int x,y; @@ -452,10 +452,13 @@ create_label_window (MateRRLabeler *labeler, MateRROutputInfo *output, GdkColor * translation could be "Pantallas en Espejo", *not* "Espejar Pantallas". */ display_name = _("Mirror Screens"); - } else - display_name = mate_rr_output_info_get_display_name (output); + str = g_strdup_printf ("<b>%s</b>", display_name); + } else { + display_name = g_strdup_printf ("<b>%s</b>\n<small>%s</small>", mate_rr_output_info_get_display_name (output), mate_rr_output_info_get_name (output)); + str = g_strdup_printf ("%s", display_name); + } + g_free (display_name); - str = g_strdup_printf ("<b>%s</b>", display_name); widget = gtk_label_new (NULL); gtk_label_set_markup (GTK_LABEL (widget), str); g_free (str); |