Gtk.StatusIcon.prototype.get_geometry

function get_geometry():Boolean {
    // Gjs wrapper for gtk_status_icon_get_geometry()
}

Obtains information about the location of the status icon on screen. This information can be used to e.g. position popups like notification bubbles.

See Gtk.position_menu for a more convenient alternative for positioning menus.

Note that some platforms do not allow GTK+ to provide this information, and even on platforms that do allow it, the information is not reliable unless the status icon is embedded in a notification area, see Gtk.is_embedded.

Since 2.10

Returns

true if the location information has been filled in