Commit c1533546 authored by Harald Judt's avatar Harald Judt

Reformat and whitespace cleanup.

parent a8ad9a70
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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>"
......
......@@ -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) { \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment