示例#1
0
        private void OnPreferencesServiceInstallWidgetAdapters(object o, EventArgs args)
        {
            if (pref_section == null)
            {
                return;
            }

            Gtk.HBox description_box = new Gtk.HBox();
            Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable chooser
                = new Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable(ServiceManager.MediaProfileManager,
                                                                            "cd-importing", description_box);

            pref_section["import-profile"].DisplayWidget      = chooser;
            pref_section["import-profile"].MnemonicWidget     = chooser.Combo;
            pref_section["import-profile-desc"].DisplayWidget = description_box;
        }
示例#2
0
        private void OnPreferencesServiceInstallWidgetAdapters (object o, EventArgs args)
        {
            if (pref_section == null) {
                return;
            }

            Gtk.HBox description_box = new Gtk.HBox ();
            Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable chooser
                = new Banshee.MediaProfiles.Gui.ProfileComboBoxConfigurable (ServiceManager.MediaProfileManager,
                    "cd-importing", description_box);

            pref_section["import-profile"].DisplayWidget = chooser;
            pref_section["import-profile"].MnemonicWidget = chooser.Combo;
            pref_section["import-profile-desc"].DisplayWidget = description_box;
        }