public GtkStatusIcon(string title) { // TODO: allow setting App ID and AppIndicatorCategory using GLibString id = $"com.{title}.app"; using GLibString icon = DefaultIconName; Handle = AppIndicator.Create(id, icon, AppIndicatorCategory.ApplicationStatus); Title = title; }
public GtkStatusIcon() { using (GLibString id = GetAppId()) using (GLibString icon = DefaultIconName) { Handle = AppIndicator.Create(id, icon, AppIndicatorCategory.ApplicationStatus); AppIndicator.SetTitle(Handle, id); } }