From 91fe605f46a60717b708c55a311cf96019fc6f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 18:54:07 -0700 Subject: [PATCH 01/12] SearchResultItem: add custom icons --- data/Application.css | 83 ++++++++++++++++++++++++++++++ data/icons/16/airport.svg | 21 ++++++++ data/icons/16/bar.svg | 30 +++++++++++ data/icons/16/bus.svg | 13 +++++ data/icons/16/car.svg | 30 +++++++++++ data/icons/16/light-rail.svg | 12 +++++ data/icons/16/marker.svg | 15 ++++++ data/icons/16/place-of-worship.svg | 13 +++++ data/icons/16/restaurant.svg | 34 ++++++++++++ data/icons/16/school.svg | 2 + data/icons/16/town.svg | 2 + data/icons/16/train.svg | 13 +++++ data/maps.gresource.xml | 15 ++++++ src/SearchResultItem.vala | 11 +++- 14 files changed, 292 insertions(+), 2 deletions(-) create mode 100644 data/icons/16/airport.svg create mode 100644 data/icons/16/bar.svg create mode 100644 data/icons/16/bus.svg create mode 100644 data/icons/16/car.svg create mode 100644 data/icons/16/light-rail.svg create mode 100644 data/icons/16/marker.svg create mode 100644 data/icons/16/place-of-worship.svg create mode 100644 data/icons/16/restaurant.svg create mode 100644 data/icons/16/school.svg create mode 100644 data/icons/16/town.svg create mode 100644 data/icons/16/train.svg diff --git a/data/Application.css b/data/Application.css index 0f2b5df..9d5a287 100644 --- a/data/Application.css +++ b/data/Application.css @@ -47,3 +47,86 @@ button.osd:active { .linked.vertical button.osd:not(:first-child) { margin-top: 0; } + +search-result-item image { + border-radius: 100%; + background-color: @STRAWBERRY_500; + background-image: + linear-gradient( + to bottom, + transparent, + alpha(white, 0.1), + ); + color: white; + min-height: 2.5em; + min-width: 2.5em; + padding: 0; + -gtk-icon-shadow: 0 1px 3px @STRAWBERRY_700; +} + +/*Transportation*/ +search-result-item.airport image, +search-result-item.motorway image, +search-result-item.bus-stop image, +search-result-item.light-rail-station image, +search-result-item.railway-station image, +search-result-item.street image { + background-color: @BLUEBERRY_500; + -gtk-icon-shadow: 0 1px 3px @BLUEBERRY_700; +} + +search-result-item.bar image, +search-result-item.restaurant image { + background-color: @ORANGE_500; + -gtk-icon-shadow: 0 1px 3px @ORANGE_700; +} + +search-result-item.building image, +search-result-item.point-of-interest image { + background-color: @BUBBLEGUM_500; + -gtk-icon-shadow: 0 1px 3px @BUBBLEGUM_700; +} + +/*Administrative Divisions*/ +search-result-item.continent image, +search-result-item.country image, +search-result-item.county image, +search-result-item.estate image, +search-result-item.historical-county image, +search-result-item.historical-state image, +search-result-item.historical-town image, +search-result-item.local_administrative_area image, +search-result-item.postal-code image, +search-result-item.state image, +search-result-item.suburb image, +search-result-item.supername image, +search-result-item.time-zone image, +search-result-item.town image, +search-result-item.zone image { + background-color: @SLATE_300; + -gtk-icon-shadow: 0 1px 3px @SLATE_500; +} + +/*Water*/ +search-result-item.drainage image, +search-result-item.sea image, +search-result-item.ocean image { + background-color: @MINT_500; + -gtk-icon-shadow: 0 1px 3px @MINT_700; +} + +search-result-item.island image, +search-result-item.land-feature image { + background-color: @LIME_500; + -gtk-icon-shadow: 0 1px 3px @LIME_700; +} + +search-result-item.school image { + background-color: @COCOA_100; + -gtk-icon-shadow: 0 1px 3px @COCOA_300; +} + +search-result-item.place-of-worship image { + background-color: @GRAPE_500; + -gtk-icon-shadow: 0 1px 3px @GRAPE_700; +} diff --git a/data/icons/16/airport.svg b/data/icons/16/airport.svg new file mode 100644 index 0000000..ec36c2a --- /dev/null +++ b/data/icons/16/airport.svg @@ -0,0 +1,21 @@ + + + + + + + diff --git a/data/icons/16/bar.svg b/data/icons/16/bar.svg new file mode 100644 index 0000000..6a6f2d9 --- /dev/null +++ b/data/icons/16/bar.svg @@ -0,0 +1,30 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/data/icons/16/bus.svg b/data/icons/16/bus.svg new file mode 100644 index 0000000..011e715 --- /dev/null +++ b/data/icons/16/bus.svg @@ -0,0 +1,13 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/data/icons/16/car.svg b/data/icons/16/car.svg new file mode 100644 index 0000000..b7dabae --- /dev/null +++ b/data/icons/16/car.svg @@ -0,0 +1,30 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/data/icons/16/light-rail.svg b/data/icons/16/light-rail.svg new file mode 100644 index 0000000..e2be509 --- /dev/null +++ b/data/icons/16/light-rail.svg @@ -0,0 +1,12 @@ + + + + + + image/svg+xml + + + + + + diff --git a/data/icons/16/marker.svg b/data/icons/16/marker.svg new file mode 100644 index 0000000..b5d0f0e --- /dev/null +++ b/data/icons/16/marker.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/data/icons/16/place-of-worship.svg b/data/icons/16/place-of-worship.svg new file mode 100644 index 0000000..a124116 --- /dev/null +++ b/data/icons/16/place-of-worship.svg @@ -0,0 +1,13 @@ + + diff --git a/data/icons/16/restaurant.svg b/data/icons/16/restaurant.svg new file mode 100644 index 0000000..319621d --- /dev/null +++ b/data/icons/16/restaurant.svg @@ -0,0 +1,34 @@ + + + + + + image/svg+xml + + + + + + + + + diff --git a/data/icons/16/school.svg b/data/icons/16/school.svg new file mode 100644 index 0000000..91c965b --- /dev/null +++ b/data/icons/16/school.svg @@ -0,0 +1,2 @@ + + diff --git a/data/icons/16/town.svg b/data/icons/16/town.svg new file mode 100644 index 0000000..98939f1 --- /dev/null +++ b/data/icons/16/town.svg @@ -0,0 +1,2 @@ + + diff --git a/data/icons/16/train.svg b/data/icons/16/train.svg new file mode 100644 index 0000000..9f8bcc3 --- /dev/null +++ b/data/icons/16/train.svg @@ -0,0 +1,13 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/data/maps.gresource.xml b/data/maps.gresource.xml index 59816f6..b5ae66a 100644 --- a/data/maps.gresource.xml +++ b/data/maps.gresource.xml @@ -7,4 +7,19 @@ icons/pointer.svg + + + icons/16/airport.svg + icons/16/bar.svg + icons/16/building.svg + icons/16/bus.svg + icons/16/car.svg + icons/16/light-rail.svg + icons/16/marker.svg + icons/16/place-of-worship.svg + icons/16/train.svg + icons/16/restaurant.svg + icons/16/school.svg + icons/16/town.svg + diff --git a/src/SearchResultItem.vala b/src/SearchResultItem.vala index 536c2a4..7be63b9 100644 --- a/src/SearchResultItem.vala +++ b/src/SearchResultItem.vala @@ -19,9 +19,12 @@ public class Maps.SearchResultItem : Granite.Bin { var postal_code = place.postal_code ?? unknown_text; var town = place.town ?? unknown_text; - image.gicon = place.icon; + image.icon_name = place.icon.to_string () + "-symbolic"; name_label.label = place.name; info_label.label = "%s, %s, %s".printf (street, postal_code, town); + + // Not add because this widget gets recycled + css_classes = {place.place_type.to_string ().replace ("GEOCODE_PLACE_TYPE_", "").replace ("_", "-").down ()}; } } @@ -31,9 +34,13 @@ public class Maps.SearchResultItem : Granite.Bin { private Gtk.Label name_label; private Gtk.Label info_label; + class construct { + set_css_name ("search-result-item"); + } + construct { image = new Gtk.Image () { - icon_size = LARGE + valign = CENTER }; name_label = new Gtk.Label (null) { From bb8a63cd765844c70aa593775506a8369c790da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 19:00:50 -0700 Subject: [PATCH 02/12] Add missing icon --- .gitignore | 2 +- data/icons/16/building.svg | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 data/icons/16/building.svg diff --git a/.gitignore b/.gitignore index be629f4..3c55374 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # build dirs .flatpak-builder -build* +build/* # vim *.swp diff --git a/data/icons/16/building.svg b/data/icons/16/building.svg new file mode 100644 index 0000000..2972cbe --- /dev/null +++ b/data/icons/16/building.svg @@ -0,0 +1,2 @@ + + From 3c192279e4c1b50a19896a94a377b7046abee550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 19:55:42 -0700 Subject: [PATCH 03/12] Try to better differentiate transit icons --- data/icons/16/bus.svg | 4 ++-- data/icons/16/train.svg | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data/icons/16/bus.svg b/data/icons/16/bus.svg index 011e715..7fb8730 100644 --- a/data/icons/16/bus.svg +++ b/data/icons/16/bus.svg @@ -8,6 +8,6 @@ - - + + diff --git a/data/icons/16/train.svg b/data/icons/16/train.svg index 9f8bcc3..4cf8350 100644 --- a/data/icons/16/train.svg +++ b/data/icons/16/train.svg @@ -8,6 +8,5 @@ - - + From dac8da372901ee8de42d9be7692aaa4414622224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 19:57:53 -0700 Subject: [PATCH 04/12] Fix bus sign --- data/icons/16/bus.svg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/icons/16/bus.svg b/data/icons/16/bus.svg index 7fb8730..5047cbe 100644 --- a/data/icons/16/bus.svg +++ b/data/icons/16/bus.svg @@ -8,6 +8,5 @@ - - + From 15e0b3d0b58e7e9c394d7740256ab7a9da4ca5ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 20:23:41 -0700 Subject: [PATCH 05/12] Replace car icon --- data/Application.css | 12 ++++++++---- data/icons/16/car.svg | 30 ------------------------------ data/icons/16/street.svg | 2 ++ data/maps.gresource.xml | 2 +- 4 files changed, 11 insertions(+), 35 deletions(-) delete mode 100644 data/icons/16/car.svg create mode 100644 data/icons/16/street.svg diff --git a/data/Application.css b/data/Application.css index 9d5a287..f743230 100644 --- a/data/Application.css +++ b/data/Application.css @@ -64,13 +64,11 @@ search-result-item image { -gtk-icon-shadow: 0 1px 3px @STRAWBERRY_700; } -/*Transportation*/ +/*Transit*/ search-result-item.airport image, -search-result-item.motorway image, search-result-item.bus-stop image, search-result-item.light-rail-station image, -search-result-item.railway-station image, -search-result-item.street image { +search-result-item.railway-station image { background-color: @BLUEBERRY_500; -gtk-icon-shadow: 0 1px 3px @BLUEBERRY_700; } @@ -121,6 +119,12 @@ search-result-item.land-feature image { -gtk-icon-shadow: 0 1px 3px @LIME_700; } +search-result-item.motorway image, +search-result-item.street image { + background-color: @SLATE_300; + -gtk-icon-shadow: 0 1px 3px @SLATE_500; +} + search-result-item.school image { background-color: @COCOA_100; -gtk-icon-shadow: 0 1px 3px @COCOA_300; diff --git a/data/icons/16/car.svg b/data/icons/16/car.svg deleted file mode 100644 index b7dabae..0000000 --- a/data/icons/16/car.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - diff --git a/data/icons/16/street.svg b/data/icons/16/street.svg new file mode 100644 index 0000000..6456362 --- /dev/null +++ b/data/icons/16/street.svg @@ -0,0 +1,2 @@ + + diff --git a/data/maps.gresource.xml b/data/maps.gresource.xml index b5ae66a..e175d40 100644 --- a/data/maps.gresource.xml +++ b/data/maps.gresource.xml @@ -13,7 +13,7 @@ icons/16/bar.svg icons/16/building.svg icons/16/bus.svg - icons/16/car.svg + icons/16/street.svg icons/16/light-rail.svg icons/16/marker.svg icons/16/place-of-worship.svg From c468151ed68c67eb5e1fe778eab7f73b4cbe865f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 20:29:28 -0700 Subject: [PATCH 06/12] Make motorways yellow --- data/Application.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/Application.css b/data/Application.css index f743230..526bccd 100644 --- a/data/Application.css +++ b/data/Application.css @@ -119,7 +119,11 @@ search-result-item.land-feature image { -gtk-icon-shadow: 0 1px 3px @LIME_700; } -search-result-item.motorway image, +search-result-item.motorway image { + background-color: @BANANA_700; + -gtk-icon-shadow: 0 1px 3px @BANANA_900; +} + search-result-item.street image { background-color: @SLATE_300; -gtk-icon-shadow: 0 1px 3px @SLATE_500; From 3188aed9b8cdc8e7167b64e3ca2b038dbbaf49fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Tue, 15 Jul 2025 20:33:47 -0700 Subject: [PATCH 07/12] Update .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3c55374..8c11d72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # build dirs .flatpak-builder -build/* +build*/ # vim *.swp From a8b6d1b458eac2641ff99b7b36fe289ff471e725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 16 Jul 2025 10:38:31 -0700 Subject: [PATCH 08/12] Use switch to assign css class --- data/Application.css | 77 ++++++++++++--------------------------- src/SearchResultItem.vala | 74 ++++++++++++++++++++++++++++++++++++- 2 files changed, 97 insertions(+), 54 deletions(-) diff --git a/data/Application.css b/data/Application.css index 526bccd..b7389e7 100644 --- a/data/Application.css +++ b/data/Application.css @@ -64,77 +64,48 @@ search-result-item image { -gtk-icon-shadow: 0 1px 3px @STRAWBERRY_700; } -/*Transit*/ -search-result-item.airport image, -search-result-item.bus-stop image, -search-result-item.light-rail-station image, -search-result-item.railway-station image { - background-color: @BLUEBERRY_500; - -gtk-icon-shadow: 0 1px 3px @BLUEBERRY_700; + +search-result-item.administrative-division image { + background-color: @SLATE_300; + -gtk-icon-shadow: 0 1px 3px @SLATE_500; } -search-result-item.bar image, -search-result-item.restaurant image { - background-color: @ORANGE_500; - -gtk-icon-shadow: 0 1px 3px @ORANGE_700; +search-result-item.historical image { + background-color: @COCOA_100; + -gtk-icon-shadow: 0 1px 3px @COCOA_300; +} + +search-result-item.motorway image { + background-color: @BANANA_700; + -gtk-icon-shadow: 0 1px 3px @BANANA_900; } -search-result-item.building image, search-result-item.point-of-interest image { background-color: @BUBBLEGUM_500; -gtk-icon-shadow: 0 1px 3px @BUBBLEGUM_700; } -/*Administrative Divisions*/ -search-result-item.continent image, -search-result-item.country image, -search-result-item.county image, -search-result-item.estate image, -search-result-item.historical-county image, -search-result-item.historical-state image, -search-result-item.historical-town image, -search-result-item.local_administrative_area image, -search-result-item.postal-code image, -search-result-item.state image, -search-result-item.suburb image, -search-result-item.supername image, -search-result-item.time-zone image, -search-result-item.town image, -search-result-item.zone image { +search-result-item.service image { + background-color: @ORANGE_500; + -gtk-icon-shadow: 0 1px 3px @ORANGE_700; +} + +search-result-item.street image { background-color: @SLATE_300; -gtk-icon-shadow: 0 1px 3px @SLATE_500; } -/*Water*/ -search-result-item.drainage image, -search-result-item.sea image, -search-result-item.ocean image { +search-result-item.transit image { + background-color: @BLUEBERRY_500; + -gtk-icon-shadow: 0 1px 3px @BLUEBERRY_700; +} + +search-result-item.water image { background-color: @MINT_500; -gtk-icon-shadow: 0 1px 3px @MINT_700; } -search-result-item.island image, search-result-item.land-feature image { background-color: @LIME_500; -gtk-icon-shadow: 0 1px 3px @LIME_700; } - -search-result-item.motorway image { - background-color: @BANANA_700; - -gtk-icon-shadow: 0 1px 3px @BANANA_900; -} - -search-result-item.street image { - background-color: @SLATE_300; - -gtk-icon-shadow: 0 1px 3px @SLATE_500; -} - -search-result-item.school image { - background-color: @COCOA_100; - -gtk-icon-shadow: 0 1px 3px @COCOA_300; -} - -search-result-item.place-of-worship image { - background-color: @GRAPE_500; - -gtk-icon-shadow: 0 1px 3px @GRAPE_700; -} diff --git a/src/SearchResultItem.vala b/src/SearchResultItem.vala index 7be63b9..1ff6703 100644 --- a/src/SearchResultItem.vala +++ b/src/SearchResultItem.vala @@ -24,7 +24,7 @@ public class Maps.SearchResultItem : Granite.Bin { info_label.label = "%s, %s, %s".printf (street, postal_code, town); // Not add because this widget gets recycled - css_classes = {place.place_type.to_string ().replace ("GEOCODE_PLACE_TYPE_", "").replace ("_", "-").down ()}; + css_classes = {get_cssclass_for_placetype (place.place_type)}; } } @@ -63,4 +63,76 @@ public class Maps.SearchResultItem : Granite.Bin { child = box; } + + private string get_cssclass_for_placetype (Geocode.PlaceType place_type) { + var css_name = ""; + switch (place_type) { + case AIRPORT: + case BUS_STOP: + case LIGHT_RAIL_STATION: + case RAILWAY_STATION: + css_name = "transit"; + break; + + case BAR: + case RESTAURANT: + css_name = "service"; + break; + + case COLLOQUIAL: + case CONTINENT: + case COUNTRY: + case COUNTY: + case ESTATE: + case LOCAL_ADMINISTRATIVE_AREA: + case POSTAL_CODE: + case STATE: + case SUBURB: + case SUPERNAME: + case TIME_ZONE: + case TOWN: + case ZONE: + css_name = "administrative-division"; + break; + + case DRAINAGE: + case ISLAND: + case OCEAN: + case SEA: + css_name = "water"; + break; + + case HISTORICAL_COUNTY: + case HISTORICAL_STATE: + case HISTORICAL_TOWN: + css_name = "historical"; + break; + + case LAND_FEATURE: + css_name = "land-feature"; + break; + + case MOTORWAY: + css_name = "motorway"; + break; + + case BUILDING: + case PLACE_OF_WORSHIP: + case POINT_OF_INTEREST: + case SCHOOL: + css_name = "point-of-interest"; + break; + + case STREET: + css_name = "street"; + break; + + case MISCELLANEOUS: + case UNKNOWN: + // Default style + break; + } + + return css_name; + } } From e264b8cbd899b1b150b579543d1855aae3c8181c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Wed, 16 Jul 2025 10:43:17 -0700 Subject: [PATCH 09/12] fix invalid color --- data/Application.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/Application.css b/data/Application.css index b7389e7..620ccb1 100644 --- a/data/Application.css +++ b/data/Application.css @@ -55,7 +55,7 @@ search-result-item image { linear-gradient( to bottom, transparent, - alpha(white, 0.1), + alpha(white, 0.1) ); color: white; min-height: 2.5em; From e52c7f207860a668068ba965a9887d63619b0698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 17 Jul 2025 07:09:43 -0700 Subject: [PATCH 10/12] Update SearchResultItem.vala Co-authored-by: Ryo Nakano --- src/SearchResultItem.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SearchResultItem.vala b/src/SearchResultItem.vala index 1ff6703..bcc5250 100644 --- a/src/SearchResultItem.vala +++ b/src/SearchResultItem.vala @@ -131,6 +131,7 @@ public class Maps.SearchResultItem : Granite.Bin { case UNKNOWN: // Default style break; + // No "default" here so that we can detect new value of PlaceType by the build warning } return css_name; From 7b959fcd702cfc3c176d987c32189be412de1522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 17 Jul 2025 10:14:01 -0700 Subject: [PATCH 11/12] Review comments --- data/Application.css | 1 - src/SearchResultItem.vala | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/data/Application.css b/data/Application.css index 620ccb1..48e10c9 100644 --- a/data/Application.css +++ b/data/Application.css @@ -64,7 +64,6 @@ search-result-item image { -gtk-icon-shadow: 0 1px 3px @STRAWBERRY_700; } - search-result-item.administrative-division image { background-color: @SLATE_300; -gtk-icon-shadow: 0 1px 3px @SLATE_500; diff --git a/src/SearchResultItem.vala b/src/SearchResultItem.vala index bcc5250..1465f24 100644 --- a/src/SearchResultItem.vala +++ b/src/SearchResultItem.vala @@ -24,7 +24,7 @@ public class Maps.SearchResultItem : Granite.Bin { info_label.label = "%s, %s, %s".printf (street, postal_code, town); // Not add because this widget gets recycled - css_classes = {get_cssclass_for_placetype (place.place_type)}; + css_classes = {placetype_to_cssclass () (place.place_type)}; } } @@ -64,7 +64,7 @@ public class Maps.SearchResultItem : Granite.Bin { child = box; } - private string get_cssclass_for_placetype (Geocode.PlaceType place_type) { + private string placetype_to_cssclass () (Geocode.PlaceType place_type) { var css_name = ""; switch (place_type) { case AIRPORT: From 1917b199c0487bf34a463130419fe626793e334d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 17 Jul 2025 10:20:18 -0700 Subject: [PATCH 12/12] fix typo --- src/SearchResultItem.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SearchResultItem.vala b/src/SearchResultItem.vala index 1465f24..46ddc5f 100644 --- a/src/SearchResultItem.vala +++ b/src/SearchResultItem.vala @@ -24,7 +24,7 @@ public class Maps.SearchResultItem : Granite.Bin { info_label.label = "%s, %s, %s".printf (street, postal_code, town); // Not add because this widget gets recycled - css_classes = {placetype_to_cssclass () (place.place_type)}; + css_classes = {placetype_to_cssclass (place.place_type)}; } } @@ -64,7 +64,7 @@ public class Maps.SearchResultItem : Granite.Bin { child = box; } - private string placetype_to_cssclass () (Geocode.PlaceType place_type) { + private string placetype_to_cssclass (Geocode.PlaceType place_type) { var css_name = ""; switch (place_type) { case AIRPORT: