[Xfce4-commits] <xfce4-weather-plugin:master> Reformat and whitespace cleanup.

Harald Judt noreply at xfce.org
Mon Mar 4 22:38:02 CET 2013


Updating branch refs/heads/master
         to c1533546f2ae4f0a70b01b2d881fc77dcc3af677 (commit)
       from a8ad9a7010e01f071f7cce797b06cd0d247c768e (commit)

commit c1533546f2ae4f0a70b01b2d881fc77dcc3af677
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Mar 4 22:36:30 2013 +0100

    Reformat and whitespace cleanup.

 panel-plugin/weather-config.c    |   10 +++++-----
 panel-plugin/weather-scrollbox.c |    2 +-
 panel-plugin/weather-summary.c   |   22 +++++++++++-----------
 panel-plugin/weather.c           |   20 ++++++++++----------
 4 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/panel-plugin/weather-config.c b/panel-plugin/weather-config.c
index c2468f6..9be3467 100644
--- a/panel-plugin/weather-config.c
+++ b/panel-plugin/weather-config.c
@@ -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);
 }
diff --git a/panel-plugin/weather-scrollbox.c b/panel-plugin/weather-scrollbox.c
index ed793be..88206e3 100644
--- a/panel-plugin/weather-scrollbox.c
+++ b/panel-plugin/weather-scrollbox.c
@@ -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);
         }
diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 1181543..2b86cac 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -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>"
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 8dfeb15..9a88bc4 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -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) {              \


More information about the Xfce4-commits mailing list