Avoid single line comments.

This commit is contained in:
Florian Brosch
2017-12-11 21:38:08 -02:00
committed by Georges Basile Stavracas Neto
parent c502102653
commit 660e1c6178
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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__ */
+1 -1
View File
@@ -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);
}
+6 -5
View File
@@ -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;
+1 -1
View File
@@ -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;