|  |  |  | libgweather Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
GWeatherLocationEntry; GtkWidget * gweather_location_entry_new (GWeatherLocation *top); void gweather_location_entry_set_location (GWeatherLocationEntry *entry, GWeatherLocation *loc); GWeatherLocation * gweather_location_entry_get_location (GWeatherLocationEntry *entry); void gweather_location_entry_set_city (GWeatherLocationEntry *entry, const char *city_name, const char *code);
  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkEntry
                           +----GWeatherLocationEntry
GWeatherLocationEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
typedef struct _GWeatherLocationEntry GWeatherLocationEntry;
A subclass of GtkEntry that provides autocompletion on GWeatherLocations
GtkWidget * gweather_location_entry_new (GWeatherLocation *top);
Creates a new GWeatherLocationEntry.
top will normally be a location returned from
gweather_location_new_world(), but you can create an entry that
only accepts a smaller set of locations if you want.
| 
 | the top-level location for the entry. | 
| Returns : | the new GWeatherLocationEntry | 
void                gweather_location_entry_set_location
                                                        (GWeatherLocationEntry *entry,
                                                         GWeatherLocation *loc);
Sets entry's location to loc, and updates the text of the
entry accordingly.
| 
 | a GWeatherLocationEntry | 
| 
 | allow-none. allow-none. | 
GWeatherLocation * gweather_location_entry_get_location (GWeatherLocationEntry *entry);
Gets the location that was set by a previous call to
gweather_location_entry_set_location() or was selected by the user.
| 
 | a GWeatherLocationEntry | 
| Returns : | transfer full) (allow-none. transfer full. allow-none. | 
void gweather_location_entry_set_city (GWeatherLocationEntry *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.
| 
 | a GWeatherLocationEntry | 
| 
 | the city name, or NULL. allow-none. | 
| 
 | the METAR station code |