Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | mateweather_location_entry_new () |
void | mateweather_location_entry_set_location () |
MateWeatherLocation * | mateweather_location_entry_get_location () |
gboolean | mateweather_location_entry_set_city () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkEntry ╰── MateWeatherLocationEntry
MateWeatherLocationEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
GtkWidget *
mateweather_location_entry_new (MateWeatherLocation *top
);
Creates a new MateWeatherLocationEntry.
top
will normally be a location returned from
mateweather_location_new_world()
, but you can create an entry that
only accepts a smaller set of locations if you want.
void mateweather_location_entry_set_location (MateWeatherLocationEntry *entry
,MateWeatherLocation *loc
);
Sets entry
's location to loc
, and updates the text of the
entry accordingly.
MateWeatherLocation *
mateweather_location_entry_get_location
(MateWeatherLocationEntry *entry
);
Gets the location that was set by a previous call to
mateweather_location_entry_set_location()
or was selected by the user.
gboolean mateweather_location_entry_set_city (MateWeatherLocationEntry *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
.