Avoid single line comments.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
c502102653
commit
660e1c6178
+1
-1
@@ -793,7 +793,7 @@ gcal_manager_constructed (GObject *object)
|
|||||||
g_object_unref, (GDestroyNotify) free_unit_data);
|
g_object_unref, (GDestroyNotify) free_unit_data);
|
||||||
|
|
||||||
/* load GOA client */
|
/* 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,
|
(GAsyncReadyCallback) gcal_manager_client_ready_cb,
|
||||||
object);
|
object);
|
||||||
|
|
||||||
|
|||||||
@@ -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_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);
|
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);
|
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 */
|
/* don't fill the list with all events on startup */
|
||||||
|
|||||||
+1
-1
@@ -165,4 +165,4 @@ gboolean gcal_translate_child_window_position (GtkWidget
|
|||||||
gdouble src_y,
|
gdouble src_y,
|
||||||
gdouble *real_x,
|
gdouble *real_x,
|
||||||
gdouble *real_y);
|
gdouble *real_y);
|
||||||
#endif // __GCAL_UTILS_H__
|
#endif /* __GCAL_UTILS_H__ */
|
||||||
|
|||||||
@@ -1018,7 +1018,7 @@ gcal_weather_service_update_gclue_location (GcalWeatherService *self,
|
|||||||
latitude = gclue_location_get_latitude (location);
|
latitude = gclue_location_get_latitude (location);
|
||||||
longitude = gclue_location_get_longitude (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 ();
|
wworld = gweather_location_get_world ();
|
||||||
wlocation = gweather_location_find_nearest_city (wworld, latitude, longitude);
|
wlocation = gweather_location_find_nearest_city (wworld, latitude, longitude);
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-5
@@ -515,7 +515,7 @@ on_view_action_activated (GSimpleAction *action,
|
|||||||
|
|
||||||
view = g_variant_get_int32 (param);
|
view = g_variant_get_int32 (param);
|
||||||
|
|
||||||
// -1 means next view
|
/* -1 means next view */
|
||||||
if (view == -1)
|
if (view == -1)
|
||||||
view = ++(window->active_view);
|
view = ++(window->active_view);
|
||||||
else if (view == -2)
|
else if (view == -2)
|
||||||
@@ -2073,10 +2073,11 @@ get_checked_fixed_location (GcalWindow *self)
|
|||||||
|
|
||||||
location = gweather_location_entry_get_location (self->location_entry);
|
location = gweather_location_entry_get_location (self->location_entry);
|
||||||
|
|
||||||
// NOTE: This check feels shabby. However,
|
/* NOTE: This check feels shabby. However,
|
||||||
// I couldn't find a better one without iterating
|
* I couldn't find a better one without iterating
|
||||||
// the model. has-custom-text does not work properly.
|
* the model. has-custom-text does not work properly.
|
||||||
// Lets go with it for now.
|
* Lets go with it for now.
|
||||||
|
*/
|
||||||
if (location != NULL && gweather_location_get_name (location) != NULL)
|
if (location != NULL && gweather_location_get_name (location) != NULL)
|
||||||
return location;
|
return location;
|
||||||
|
|
||||||
|
|||||||
@@ -1379,7 +1379,7 @@ gcal_week_header_draw (GtkWidget *widget,
|
|||||||
gint icon_flags;
|
gint icon_flags;
|
||||||
|
|
||||||
theme = gtk_icon_theme_get_default ();
|
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
|
icon_flags = ltr? GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_DIR_LTR
|
||||||
: GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_DIR_RTL;
|
: GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_DIR_RTL;
|
||||||
|
|||||||
Reference in New Issue
Block a user