Пример #1
0
 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;
 }
Пример #2
0
 public GtkStatusIcon()
 {
     using (GLibString id = GetAppId())
         using (GLibString icon = DefaultIconName)
         {
             Handle = AppIndicator.Create(id, icon, AppIndicatorCategory.ApplicationStatus);
             AppIndicator.SetTitle(Handle, id);
         }
 }