From 51075d48a807c612ce4540fc9ebf6e57cded37d2 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 11 Mar 2020 11:37:39 +0800 Subject: remove debug code --- applets/clock/clock-location-tile.c | 7 ------- applets/clock/clock.c | 15 --------------- 2 files changed, 22 deletions(-) diff --git a/applets/clock/clock-location-tile.c b/applets/clock/clock-location-tile.c index c7cee4b7..7d478567 100644 --- a/applets/clock/clock-location-tile.c +++ b/applets/clock/clock-location-tile.c @@ -571,25 +571,18 @@ clock_location_tile_refresh (ClockLocationTile *this, gboolean force_refresh) } } - debug_print("IIII"); /* FIXME */ if (clock_needs_face_refresh (this)) { - debug_print("IIII"); clock_face_refresh (CLOCK_FACE (priv->clock_face)); } if (!force_refresh && !clock_needs_label_refresh (this)) { - debug_print("IIII"); return; } - debug_print("IIII"); clock_location_localtime (priv->location, &now); - debug_print("IIII"); tzname = clock_location_get_tzname (priv->location); - debug_print("IIII"); if (tzname == NULL) { - debug_print("IIII"); tzname = clock_location_get_tzid (priv->location); } diff --git a/applets/clock/clock.c b/applets/clock/clock.c index 6e828e48..617ceb88 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -1156,7 +1156,6 @@ cities_section_sync (ClockData *cd) node = g_list_sort (node, sort_locations_by_time); node = g_list_reverse (node); while (l != NULL) { - debug_print("SSS"); GList *next = l->next; found = FALSE; loc = clock_location_tile_get_location (l->data); @@ -1167,16 +1166,12 @@ cities_section_sync (ClockData *cd) } } if (found) { - debug_print("SSS"); /* Remove existing elements from the new list */ node = g_list_remove (node, n); } else { - debug_print("SSS"); /* Remove non-existing elements from the old list */ gtk_container_remove (GTK_CONTAINER (cd->cities_section), l->data); - debug_print("SSS"); cd->location_tiles = g_list_remove (cd->location_tiles, l); - debug_print("SSS"); } l = next; } @@ -1184,9 +1179,7 @@ cities_section_sync (ClockData *cd) /* Append the remaining elements to the new list */ for (m = node; m != NULL; m = m->next) { loc = m->data; - debug_print("SSS"); city = clock_location_tile_new (loc, CLOCK_FACE_SMALL); - debug_print("SSS"); g_signal_connect (city, "tile-pressed", G_CALLBACK (location_tile_pressed_cb), cd); g_signal_connect (city, "need-clock-format", @@ -1198,13 +1191,9 @@ cities_section_sync (ClockData *cd) gtk_widget_show_all(GTK_WIDGET (city)); cd->location_tiles = g_list_append(cd->location_tiles, city); - debug_print("SSS"); clock_location_tile_refresh (city, TRUE); - debug_print("SSS"); } - debug_print("SSS"); g_list_free (node); - debug_print("SSS"); } static void @@ -2210,14 +2199,11 @@ locations_reset (ClockData *cd) gtk_widget_show (cd->weather_obox); } - debug_print("SSS"); for (l = cd->locations; l; l = l->next) { - debug_print("SSS"); loc = l->data; idp = g_object_get_data (G_OBJECT (loc), "weather-updated-id"); id = GPOINTER_TO_UINT (idp); if (id == 0) { - debug_print("SSS"); id = g_signal_connect (loc, "weather-updated", G_CALLBACK (location_weather_updated_cb), cd); g_object_set_data (G_OBJECT (loc), "weather-updated-id", GUINT_TO_POINTER (id)); @@ -2230,7 +2216,6 @@ locations_reset (ClockData *cd) clock_map_refresh (CLOCK_MAP (cd->map_widget)); if (cd->clock_vbox) { - debug_print("SSS"); cities_section_sync (cd); } } -- cgit v1.2.1