Esempio n. 1
0
 public static void Main(string[] args)
 {
     Application.Init ();
     NotificationBubble b = new NotificationBubble ("msg.svg", NotificationSource.File, NotificationContent.Svg);
     b.TimeOut = 3000;
     b.TimerEndedEvent += TimerEnded;
     b.RenderWithTimer ();
     b.ShowAll ();
     Application.Run ();
 }
Esempio n. 2
0
 public static void Main(string[] args)
 {
     Application.Init ();
     NotificationBubble b = new NotificationBubble ("http://www.gnome.org", NotificationSource.Url, NotificationContent.Html);
     b.TimeOut = 10000;
     b.TimerEndedEvent += TimerEnded;
     b.BubbleWidth = 600;
     b.BubbleHeight = 80;
     b.Move (5, 30);
     b.RenderWithTimer ();
     b.ShowAll ();
     Application.Run ();
 }
 private void InitComponent()
 {
     bubble = new NotificationBubble (source, sourceType, contentType);
     icon = new ShrinkingTrayIcon ("Message", Gdk.Pixbuf.LoadFromResource ("tray-icon.png"));
     icon.ButtonPressEvent += ButtonPressed;
 }
Esempio n. 4
0
 private void InitComponent()
 {
     bubble = new NotificationBubble(source, sourceType, contentType);
     icon   = new ShrinkingTrayIcon("Message", Gdk.Pixbuf.LoadFromResource("tray-icon.png"));
     icon.ButtonPressEvent += ButtonPressed;
 }