func (o *dockIcon) AddOverlayFromImage(iconPath string, position cdtype.EmblemPosition) { var cstr *C.gchar if iconPath != "" { cstr = (*C.gchar)(C.CString(iconPath)) defer C.free(unsafe.Pointer((*C.char)(cstr))) } // last arg was 'myApplet' to identify the overlays set by the Dbus plug-in (since the plug-in can't be deactivated, 'myApplet' is constant). C.cairo_dock_add_overlay_from_image(o.Ptr, cstr, C.CairoOverlayPosition(position), C.gpointer(o.Ptr)) }
func (o *dockIcon) RemoveOverlayAtPosition(position cdtype.EmblemPosition) { C.cairo_dock_remove_overlay_at_position(o.Ptr, C.CairoOverlayPosition(position), C.gpointer(o.Ptr)) }