Exemplo n.º 1
0
        private Widget CreateAvatarBox()
        {
            HBox hbox = new HBox(false, 4);

            avatarSelector = new AvatarSelector();

            if ((PersonManager.Me != null) && (PersonManager.Me.Photo != null))
            {
                avatarSelector.Pixbuf = PersonManager.Me.Photo;
            }

            avatarSelector.Show();

            hbox.PackStart(avatarSelector, false, false, 0);
            dialogTips.SetTip(avatarSelector,
                              Catalog.GetString("Change your avatar"),
                              Catalog.GetString("Click here to change your avatar"));



            VBox vbox = new VBox(false, 0);

            vbox.Show();
            hbox.PackStart(vbox, true, true, 0);

            myDisplayName              = new Label();
            myDisplayName.Xalign       = 0;
            myDisplayName.UseUnderline = false;
            myDisplayName.UseMarkup    = true;
            myDisplayName.Show();
            vbox.PackStart(myDisplayName, true, true, 0);

            statusEntry = new StatusEntry();
            statusEntry.PresenceChanged += OnStatusEntryChanged;
            statusEntry.LoadStatus();
            statusEntry.Show();
            vbox.PackStart(statusEntry, false, false, 0);
            dialogTips.SetTip(statusEntry,
                              Catalog.GetString("Change your online status"),
                              Catalog.GetString("Change your online status"));

//			statusComboBoxEntry = ComboBoxEntry.NewText ();
//			statusComboBoxEntry.KeyPressEvent += OnStatusComboKeyPress;
//			statusComboBoxEntry.Changed += OnStatusComboChanged;

//			statusComboBoxEntry.Show ();
//			vbox.PackStart (statusComboBoxEntry, false, false, 0);

            hbox.Show();
            return(hbox);
        }
Exemplo n.º 2
0
        private Widget CreateAvatarBox()
        {
            HBox hbox = new HBox (false, 4);

            avatarSelector = new AvatarSelector();

            if( (PersonManager.Me != null) && (PersonManager.Me.Photo != null) )
                avatarSelector.Pixbuf = PersonManager.Me.Photo;

            avatarSelector.Show();

            hbox.PackStart (avatarSelector, false, false, 0);
            dialogTips.SetTip (avatarSelector,
                        Catalog.GetString("Change your avatar"),
                        Catalog.GetString("Click here to change your avatar"));

            VBox vbox = new VBox (false, 0);
            vbox.Show ();
            hbox.PackStart (vbox, true, true, 0);

            myDisplayName = new Label ();
            myDisplayName.Xalign = 0;
            myDisplayName.UseUnderline = false;
            myDisplayName.UseMarkup = true;
            myDisplayName.Show ();
            vbox.PackStart (myDisplayName, true, true, 0);

            statusEntry = new StatusEntry ();
            statusEntry.PresenceChanged += OnStatusEntryChanged;
            statusEntry.LoadStatus ();
            statusEntry.Show ();
            vbox.PackStart (statusEntry, false, false, 0);
            dialogTips.SetTip (statusEntry,
                        Catalog.GetString("Change your online status"),
                        Catalog.GetString("Change your online status"));

            //			statusComboBoxEntry = ComboBoxEntry.NewText ();
            //			statusComboBoxEntry.KeyPressEvent += OnStatusComboKeyPress;
            //			statusComboBoxEntry.Changed += OnStatusComboChanged;

            //			statusComboBoxEntry.Show ();
            //			vbox.PackStart (statusComboBoxEntry, false, false, 0);

            hbox.Show ();
            return hbox;
        }