Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-weather-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Panel Plugins
xfce4-weather-plugin
Commits
c1533546
Commit
c1533546
authored
Mar 04, 2013
by
Harald Judt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat and whitespace cleanup.
parent
a8ad9a70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
27 deletions
+27
-27
panel-plugin/weather-config.c
panel-plugin/weather-config.c
+5
-5
panel-plugin/weather-scrollbox.c
panel-plugin/weather-scrollbox.c
+1
-1
panel-plugin/weather-summary.c
panel-plugin/weather-summary.c
+11
-11
panel-plugin/weather.c
panel-plugin/weather.c
+10
-10
No files found.
panel-plugin/weather-config.c
View file @
c1533546
...
...
@@ -465,7 +465,7 @@ spin_alt_value_changed(const GtkWidget *spin,
static
void
text_timezone_changed
(
const
GtkWidget
*
entry
,
gpointer
user_data
)
gpointer
user_data
)
{
xfceweather_dialog
*
dialog
=
(
xfceweather_dialog
*
)
user_data
;
...
...
@@ -1054,10 +1054,10 @@ combo_icon_theme_set_tooltip(GtkWidget *combo,
"<b>Author:</b> %s
\n\n
"
"<b>Description:</b> %s
\n\n
"
"<b>License:</b> %s"
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
dir
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
author
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
description
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
license
));
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
dir
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
author
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
description
),
TEXT_UNKNOWN
(
dialog
->
pd
->
icon_theme
->
license
));
gtk_widget_set_tooltip_markup
(
GTK_WIDGET
(
combo
),
text
);
g_free
(
text
);
}
...
...
panel-plugin/weather-scrollbox.c
View file @
c1533546
...
...
@@ -473,7 +473,7 @@ gtk_scrollbox_set_visible(GtkScrollbox *self,
(
void
)
gtk_scrollbox_control_loop
(
self
);
}
else
{
/* update immediately if there's only one or no label,
typically this is the case at startup */
typically this is the case at startup */
if
(
self
->
active
==
NULL
||
self
->
labels_len
<=
1
)
(
void
)
gtk_scrollbox_control_loop
(
self
);
}
...
...
panel-plugin/weather-summary.c
View file @
c1533546
...
...
@@ -63,16 +63,16 @@ lnk_clicked(GtkTextTag *tag,
* unit, use LRM (left-to-right mark) etc. to align it properly with
* its numeric value.
*/
#define APPEND_TEXT_ITEM(text, item)
\
rawvalue = get_data(conditions, data->units, item,
\
FALSE, data->night_time);
\
unit = get_unit(data->units, item);
\
value = g_strdup_printf(_("\t%s%s%s%s%s\n"),
\
text, text ? ": " : "",
\
rawvalue,
\
strcmp(unit, "°") ? " " : "",
\
unit);
\
g_free(rawvalue);
\
#define APPEND_TEXT_ITEM(text, item) \
rawvalue = get_data(conditions, data->units, item, \
FALSE, data->night_time); \
unit = get_unit(data->units, item); \
value = g_strdup_printf(_("\t%s%s%s%s%s\n"), \
text, text ? ": " : "", \
rawvalue, \
strcmp(unit, "°") ? " " : "", \
unit); \
g_free(rawvalue); \
APPEND_TEXT_ITEM_REAL(value);
#define APPEND_LINK_ITEM(prefix, text, url, lnk_tag) \
...
...
@@ -610,7 +610,7 @@ forecast_cell_get_tooltip_text(plugin_data *data,
align the values; Monospace font is enforced with <tt> tags for
alignment, and the text is enclosed in <small> tags because
that looks much better and saves space.
*/
*/
text
=
g_string_new
(
_
(
"<b>Times used for calculations</b>
\n
"
));
value
=
format_date
(
fcdata
->
start
,
NULL
,
TRUE
);
g_string_append_printf
(
text
,
_
(
"<tt><small>"
...
...
panel-plugin/weather.c
View file @
c1533546
...
...
@@ -55,14 +55,14 @@
earlier: */
#define UPDATE_INTERVAL (10)
#define DATA_AND_UNIT(var, item)
\
value = get_data(conditions, data->units, item,
\
data->round, data->night_time);
\
unit = get_unit(data->units, item);
\
var = g_strdup_printf("%s%s%s",
\
value,
\
strcmp(unit, "°") ? " " : "",
\
unit);
\
#define DATA_AND_UNIT(var, item) \
value = get_data(conditions, data->units, item, \
data->round, data->night_time); \
unit = get_unit(data->units, item); \
var = g_strdup_printf("%s%s%s", \
value, \
strcmp(unit, "°") ? " " : "", \
unit); \
g_free(value);
#define CACHE_APPEND(str, val) \
...
...
@@ -76,8 +76,8 @@
if (keyfile) \
g_key_file_free(keyfile);
#define CACHE_READ_STRING(var, key)
\
var = g_key_file_get_string(keyfile, group, key, NULL);
\
#define CACHE_READ_STRING(var, key) \
var = g_key_file_get_string(keyfile, group, key, NULL); \
#define SCHEDULE_WAKEUP_COMPARE(var, reason) \
if (difftime(var, now_t) < diff) { \
...
...
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