Ejemplo n.º 1
0
        private void InitNamePage()
        {
            f_NameWidget = new EngineAssistantNameWidget();

            f_NamePage = AppendPage(f_NameWidget);
            SetPageTitle(f_NameWidget, _("Name"));
            SetPageType(f_NameWidget, Gtk.AssistantPageType.Content);
            Prepare += delegate(object sender, Gtk.PrepareArgs e) {
                if (e.Page != f_NameWidget)
                {
                    return;
                }
                CheckNamePage();
            };

            f_NameWidget.EngineNameEntry.Changed += delegate {
                CheckNamePage();
            };

            if (f_EngineName != null)
            {
                // we can't rename engines for now
                f_NameWidget.EngineNameEntry.Text      = f_EngineName;
                f_NameWidget.EngineNameEntry.Sensitive = false;
            }
        }
Ejemplo n.º 2
0
        private void InitNamePage()
        {
            f_NameWidget = new EngineAssistantNameWidget();

            f_NamePage = AppendPage(f_NameWidget);
            SetPageTitle(f_NameWidget, _("Name"));
            SetPageType(f_NameWidget, Gtk.AssistantPageType.Content);
            Prepare += delegate(object sender, Gtk.PrepareArgs e) {
                if (e.Page != f_NameWidget) {
                    return;
                }
                CheckNamePage();
            };

            f_NameWidget.EngineNameEntry.Changed += delegate {
                CheckNamePage();
            };

            if (f_EngineName != null) {
                // we can't rename engines for now
                f_NameWidget.EngineNameEntry.Text = f_EngineName;
                f_NameWidget.EngineNameEntry.Sensitive = false;
            }
        }