| Top |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkEntry
╰── CafeWeatherLocationEntry
CafeWeatherLocationEntry implements AtkImplementorIface, CtkBuildable, CtkEditable and CtkCellEditable.
CtkWidget *
cafeweather_location_entry_new (CafeWeatherLocation *top);
Creates a new CafeWeatherLocationEntry.
top
will normally be a location returned from
cafeweather_location_new_world(), but you can create an entry that
only accepts a smaller set of locations if you want.
void cafeweather_location_entry_set_location (CafeWeatherLocationEntry *entry,CafeWeatherLocation *loc);
Sets entry
's location to loc
, and updates the text of the
entry accordingly.
CafeWeatherLocation *
cafeweather_location_entry_get_location
(CafeWeatherLocationEntry *entry);
Gets the location that was set by a previous call to
cafeweather_location_entry_set_location() or was selected by the user.
gboolean cafeweather_location_entry_set_city (CafeWeatherLocationEntry *entry,const char *city_name,const char *code);
Sets entry
's location to a city with the given code
, and given
city_name
, if non-NULL. If there is no matching city, sets
entry
's location to NULL.