Ticket #3157: unify panel sort arrow's direction.

Fix inconsistency of the arrow's direction in the panel header line
across skins.
Change default value of "sort-sign-down" from "," (comma) to "." (dot).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Egmont Koblinger 2014-01-26 14:44:08 +04:00 committed by Andrew Borodin
parent a71f320e2f
commit 3f7baba96c
16 changed files with 30 additions and 30 deletions

View File

@ -131,7 +131,7 @@
[widget-common]
sort-sign-up = '
sort-sign-down = ,
sort-sign-down = .
[widget-panel]
filename-scroll-left-char = {

View File

@ -130,7 +130,7 @@
[widget-common]
sort-sign-up = '
sort-sign-down = ,
sort-sign-down = .
[widget-panel]
filename-scroll-left-char = {

View File

@ -131,8 +131,8 @@
menutitle=white;cyan
[widget-common]
sort-sign-up =
sort-sign-down =
sort-sign-up =
sort-sign-down =
[widget-panel]
hiddenfiles-sign-show =

View File

@ -122,7 +122,7 @@
[widget-common]
sort-sign-up = '
sort-sign-down = ,
sort-sign-down = .
[widget-panel]
filename-scroll-left-char = {

View File

@ -163,8 +163,8 @@
error=color15;color1
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color15;color1
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color15;color1
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color15;color1
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color231;color160
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color231;color160
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color231;color160
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -163,8 +163,8 @@
error=color231;color160
[widget-common]
sort-sign-up=
sort-sign-down=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show=

View File

@ -129,8 +129,8 @@
menutitle=lightgray;black
[widget-common]
sort-sign-down=
sort-sign-up=
sort-sign-up=
sort-sign-down=
[widget-panel]
hiddenfiles-sign-show =

View File

@ -179,8 +179,8 @@
error=rgb554;rgb320
[widget-common]
sort-sign-up =
sort-sign-down =
sort-sign-up =
sort-sign-down =
[widget-panel]
hiddenfiles-sign-show =

View File

@ -170,8 +170,8 @@
error=rgb554;rgb320
[widget-common]
sort-sign-up =
sort-sign-down =
sort-sign-up =
sort-sign-down =
[widget-panel]
hiddenfiles-sign-show =

View File

@ -1507,7 +1507,7 @@ panel_paint_sort_info (WPanel * panel)
if (*panel->sort_field->hotkey != '\0')
{
const char *sort_sign =
panel->sort_info.reverse ? panel_sort_down_sign : panel_sort_up_sign;
panel->sort_info.reverse ? panel_sort_up_sign : panel_sort_down_sign;
char *str;
str = g_strdup_printf ("%s%s", sort_sign, Q_ (panel->sort_field->hotkey));
@ -1582,7 +1582,7 @@ paint_frame (WPanel * panel)
&& strcmp (format->id, panel->sort_field->id) == 0)
g_string_append (format_txt,
panel->sort_info.reverse
? panel_sort_down_sign : panel_sort_up_sign);
? panel_sort_up_sign : panel_sort_down_sign);
g_string_append (format_txt, format->title);
if (strcmp (format->id, "name") == 0 && panel->filter && *panel->filter)
@ -4758,7 +4758,7 @@ void
panel_init (void)
{
panel_sort_up_sign = mc_skin_get ("widget-common", "sort-sign-up", "'");
panel_sort_down_sign = mc_skin_get ("widget-common", "sort-sign-down", ",");
panel_sort_down_sign = mc_skin_get ("widget-common", "sort-sign-down", ".");
panel_hiddenfiles_sign_show = mc_skin_get ("widget-panel", "hiddenfiles-sign-show", ".");
panel_hiddenfiles_sign_hide = mc_skin_get ("widget-panel", "hiddenfiles-sign-hide", ".");