Back to index

libappindicator  12.10.0
Static Public Member Functions
IndicatorExample Class Reference

List of all members.

Static Public Member Functions

static void Main ()

Detailed Description

Definition at line 23 of file IndicatorExample.cs.


Member Function Documentation

static void IndicatorExample.Main ( ) [inline, static]

Definition at line 25 of file IndicatorExample.cs.

        {
                Application.Init ();

                Window win = new Window ("Test");
                win.Resize (200, 200);

                Label label = new Label ();
                label.Text = "Hello, world!";

                win.Add (label);

                ApplicationIndicator indicator = new ApplicationIndicator ("Example",
                                                                           "applications-microblogging-panel",
                                                                           Category.ApplicationStatus);

                indicator.Status = Status.Attention;

                Menu menu = new Menu ();
                var foo = new MenuItem ("Foo");
                menu.Append (foo);
                foo.Activated += delegate {
                        System.Console.WriteLine ("Foo item has been activated");
                };

                menu.Append (new MenuItem ("Bar"));

                indicator.Menu = menu;
                indicator.Menu.ShowAll ();

                indicator.SecondaryActivateTarget = foo;

                win.ShowAll ();

                Application.Run ();
        }

The documentation for this class was generated from the following file: