[gnome-calendar/wip/flb/weather-forecast: 36/50] Avoid single line comments.
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/flb/weather-forecast: 36/50] Avoid single line comments.
- Date: Tue, 31 Oct 2017 08:20:51 +0000 (UTC)
commit c9b78dc35a54167fc85bf88e163b15fbf36bbfb5
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 77b9367..2e8b795 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 6e8cf84..45a208d 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 1ed7547..306f90b 100644
--- a/src/gcal-utils.h
+++ b/src/gcal-utils.h
@@ -168,4 +168,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 0b88838..92ae97b 100644
--- a/src/gcal-weather-service.c
+++ b/src/gcal-weather-service.c
@@ -1023,7 +1023,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 696ae55..d95b38e 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -534,7 +534,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)
@@ -2178,10 +2178,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 c51c8ef..ee9db9d 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]