CafeWeatherTimezoneMenu: libcafeweather Reference Manual

## CafeWeatherTimezoneMenu CafeWeatherTimezoneMenu |

## Functions

CtkWidget * | cafeweather_timezone_menu_new ()
void | cafeweather_timezone_menu_set_tzid ()
const char * | cafeweather_timezone_menu_get_tzid ()

## Properties

gpointer | top | Write / Construct Only
char * | tzid | Read / Write

## Types and Values

| CafeWeatherTimezoneMenu

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── CtkWidget
                ╰── CtkContainer
                    ╰── CtkBin
                        ╰── CtkComboBox
                            ╰── CafeWeatherTimezoneMenu

## Implemented Interfaces

CafeWeatherTimezoneMenu implements AtkImplementorIface, CtkBuildable, CtkCellLayout and CtkCellEditable.

## Description

A CtkComboBox subclass for choosing a CafeWeatherTimezone

## Functions

### cafeweather_timezone_menu_new ()

    CtkWidget *
    cafeweather_timezone_menu_new (CafeWeatherLocation *top);

Creates a new CafeWeatherTimezoneMenu.

`top` will normally be a location returned from `cafeweather_location_new_world()`, but you can create a menu that contains the timezones from a smaller set of locations if you want.

#### Parameters

top | the top-level location for the menu. |

#### Returns

the new CafeWeatherTimezoneMenu

### cafeweather_timezone_menu_set_tzid ()

    void
    cafeweather_timezone_menu_set_tzid (CafeWeatherTimezoneMenu *menu,
                                        const char *tzid);

Sets `menu` to the given `tzid` . If `tzid` is `NULL`, sets `menu` to "Unknown".

#### Parameters

menu | a CafeWeatherTimezoneMenu |
tzid | a tzdata id (eg, "America/New_York"). | [allow-none]

### cafeweather_timezone_menu_get_tzid ()

    const char *
    cafeweather_timezone_menu_get_tzid (CafeWeatherTimezoneMenu *menu);

Gets `menu` 's timezone id.

#### Parameters

menu | a CafeWeatherTimezoneMenu |

#### Returns

`menu` 's tzid, or `NULL` if no timezone is selected.

[allow-none]

## Types and Values

### CafeWeatherTimezoneMenu

    typedef struct _CafeWeatherTimezoneMenu CafeWeatherTimezoneMenu;

## Property Details

### The `“top”` property

      “top”                      gpointer

The CafeWeatherLocation whose children will be used to fill in the menu.

Owner: CafeWeatherTimezoneMenu

Flags: Write / Construct Only

### The `“tzid”` property

      “tzid”                     char *

The selected TZID.

Owner: CafeWeatherTimezoneMenu

Flags: Read / Write

Default value: NULL