GWeatherLocationEntry

## GWeatherLocationEntry GWeatherLocationEntry |

## Synopsis

                        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);
    gboolean            gweather_location_entry_set_city    (GWeatherLocationEntry *entry,
                                                             const char *city_name,
                                                             const char *code);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkEntry
                               +----GWeatherLocationEntry

## Implemented Interfaces

GWeatherLocationEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.

## Properties

      "location"                 gpointer              : Read / Write
      "top"                      gpointer              : Write / Construct Only

## Description

## Details

### GWeatherLocationEntry

    typedef struct _GWeatherLocationEntry GWeatherLocationEntry;

A subclass of GtkEntry that provides autocompletion on GWeatherLocations

### gweather_location_entry_new ()

    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.

`top` : | the top-level location for the entry.
Returns : | the new GWeatherLocationEntry

### gweather_location_entry_set_location ()

    void                gweather_location_entry_set_location
                                                            (GWeatherLocationEntry *entry,
                                                             GWeatherLocation *loc);

Sets `entry`'s location to `loc`, and updates the text of the entry accordingly.

`entry` : | a GWeatherLocationEntry
`loc` : | allow-none. allow-none.

### gweather_location_entry_get_location ()

    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.

`entry` : | a GWeatherLocationEntry
Returns : | transfer full) (allow-none. transfer full. allow-none.

### gweather_location_entry_set_city ()

    gboolean            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`.

`entry` : | a GWeatherLocationEntry
`city_name` : | the city name, or `NULL`. allow-none.
`code` : | the METAR station code
Returns : | `TRUE` if `entry`'s location could be set to a matching city, `FALSE` otherwise.

## Property Details

### The `"location"` property

      "location"                 gpointer              : Read / Write

The selected GWeatherLocation.

### The `"top"` property

      "top"                      gpointer              : Write / Construct Only

The GWeatherLocation whose children will be used to fill in the entry.