Пример #1
0
        void PackEnd(LangTableChild child)
        {
            uint row = rowTrack++;

            table.Attach(child.Name, (uint)0, (uint)1, row, row + 1, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
            table.Attach(child.Prototype, (uint)1, (uint)2, row, row + 1, AttachOptions.Shrink, AttachOptions.Shrink, 0, 0);
        }
Пример #2
0
        public void AddLangage(string langKey, string proto)
        {
            Label prototype = new Label();

            prototype.UseMarkup        = true;
            prototype.Markup           = FormatPrototype(proto);
            prototype.Selectable       = true;
            prototype.Layout.Alignment = Pango.Alignment.Left;

            Label lang = new Label();

            lang.UseMarkup        = true;
            lang.Markup           = FormatName(langKey);
            lang.Selectable       = false;
            lang.Layout.Alignment = Pango.Alignment.Left;

            LangTableChild child = new LangTableChild(lang, prototype);

            try {
                langs.Add(langKey, child);
                PackEnd(child);
            } catch {}
        }