Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Panel Plugins
xfce4-weather-plugin
Commits
c8b2decf
Commit
c8b2decf
authored
Jan 26, 2013
by
Harald Judt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Summary: Right-align clouds percentages in forecast cell tooltips.
parent
5325e179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
panel-plugin/weather-summary.c
panel-plugin/weather-summary.c
+8
-5
No files found.
panel-plugin/weather-summary.c
View file @
c8b2decf
...
...
@@ -631,20 +631,23 @@ forecast_cell_get_tooltip_text(plugin_data *data,
PRECIPITATIONS
);
g_string_append
(
text
,
_
(
"<b>Clouds</b>
\n
"
));
/* TRANSLATORS: Clouds percentages are aligned to the right in the
tooltip, the %5s are needed for that and are used both for
rounded and unrounded values. */
APPEND_TOOLTIP_ITEM
(
_
(
"<tt><small>"
"Fog: %s%s%s"
"Fog: %
5
s%s%s"
"</small></tt>
\n
"
),
FOG
);
APPEND_TOOLTIP_ITEM
(
_
(
"<tt><small>"
"Low clouds: %s%s%s"
"Low clouds: %
5
s%s%s"
"</small></tt>
\n
"
),
CLOUDS_LOW
);
APPEND_TOOLTIP_ITEM
(
_
(
"<tt><small>"
"Middle clouds: %s%s%s"
"Middle clouds: %
5
s%s%s"
"</small></tt>
\n
"
),
CLOUDS_MID
);
APPEND_TOOLTIP_ITEM
(
_
(
"<tt><small>"
"High clouds: %s%s%s"
"High clouds: %
5
s%s%s"
"</small></tt>
\n
"
),
CLOUDS_HIGH
);
APPEND_TOOLTIP_ITEM
(
_
(
"<tt><small>"
"Cloudiness: %s%s%s"
"Cloudiness: %
5
s%s%s"
"</small></tt>"
),
CLOUDINESS
);
/* Free GString only and return its character data */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment