[gnome-calendar/wip/flb/weather-forecast: 123/135] Avoid single line comments.



commit 660e1c61787b0fada642e1bdc433cc6c485741ff
Author: Florian Brosch <flo brosch gmail com>
Date:   Mon Oct 23 22:39:27 2017 +0200

    Avoid single line comments.

 src/gcal-manager.c           |  2 +-
 src/gcal-search-view.c       |  2 +-
 src/gcal-utils.h             |  2 +-
 src/gcal-weather-service.c   |  2 +-
 src/gcal-window.c            | 11 ++++++-----
 src/views/gcal-week-header.c |  2 +-
 6 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 77b9367d..2e8b7955 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -793,7 +793,7 @@ gcal_manager_constructed (GObject *object)
                                          g_object_unref, (GDestroyNotify) free_unit_data);
 
   /* load GOA client */
-  goa_client_new (NULL, // we won't really cancel it
+  goa_client_new (NULL, /* we won't really cancel it */
                   (GAsyncReadyCallback) gcal_manager_client_ready_cb,
                   object);
 
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 6e8cf846..45a208d8 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -552,7 +552,7 @@ gcal_search_view_constructed (GObject *object)
   gtk_list_box_set_sort_func (GTK_LIST_BOX (view->listbox), (GtkListBoxSortFunc) sort_by_event, object, 
NULL);
   gtk_list_box_set_header_func (GTK_LIST_BOX (view->listbox), display_header_func, NULL, NULL);
 
-  // gchar* -> RowEventData*
+  /* gchar* -> RowEventData* */
   view->uuid_to_event = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) 
free_row_data);
 
   /* don't fill the list with all events on startup */
diff --git a/src/gcal-utils.h b/src/gcal-utils.h
index 99e7bb09..2b2675ac 100644
--- a/src/gcal-utils.h
+++ b/src/gcal-utils.h
@@ -165,4 +165,4 @@ gboolean        gcal_translate_child_window_position            (GtkWidget
                                                                  gdouble              src_y,
                                                                  gdouble             *real_x,
                                                                  gdouble             *real_y);
-#endif // __GCAL_UTILS_H__
+#endif /* __GCAL_UTILS_H__ */
diff --git a/src/gcal-weather-service.c b/src/gcal-weather-service.c
index 8ebd93f9..db321993 100644
--- a/src/gcal-weather-service.c
+++ b/src/gcal-weather-service.c
@@ -1018,7 +1018,7 @@ gcal_weather_service_update_gclue_location (GcalWeatherService  *self,
       latitude = gclue_location_get_latitude (location);
       longitude = gclue_location_get_longitude (location);
 
-      // nearest-city works more closely to gnome weather.
+      /* nearest-city works more closely to gnome weather. */
       wworld = gweather_location_get_world ();
       wlocation = gweather_location_find_nearest_city (wworld, latitude, longitude);
     }
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 6715dbc9..cd13888c 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -515,7 +515,7 @@ on_view_action_activated (GSimpleAction *action,
 
   view = g_variant_get_int32 (param);
 
-  // -1 means next view
+  /* -1 means next view */
   if (view == -1)
     view = ++(window->active_view);
   else if (view == -2)
@@ -2073,10 +2073,11 @@ get_checked_fixed_location (GcalWindow *self)
 
   location = gweather_location_entry_get_location (self->location_entry);
 
-  // NOTE: This check feels shabby. However,
-  // I couldn't find a better one without iterating
-  // the model. has-custom-text does not work properly.
-  // Lets go with it for now.
+  /* NOTE: This check feels shabby. However,
+   * I couldn't find a better one without iterating
+   * the model. has-custom-text does not work properly.
+   * Lets go with it for now.
+   */
   if (location != NULL && gweather_location_get_name (location) != NULL)
     return location;
 
diff --git a/src/views/gcal-week-header.c b/src/views/gcal-week-header.c
index c51c8ef1..ee9db9d7 100644
--- a/src/views/gcal-week-header.c
+++ b/src/views/gcal-week-header.c
@@ -1379,7 +1379,7 @@ gcal_week_header_draw (GtkWidget      *widget,
               gint icon_flags;
 
               theme = gtk_icon_theme_get_default ();
-              // TODO: catch icon theme changes
+              /* TODO: catch icon theme changes */
 
               icon_flags = ltr? GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_DIR_LTR
                               : GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_DIR_RTL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]