~psgenfan/do-plugins/WolframAlpha

« back to all changes in this revision

Viewing changes to Pastebin/src/Config/PastebinConfig.cs

  • Committer: Robert Dyer
  • Date: 2011-01-06 22:52:25 UTC
  • Revision ID: psybers@gmail.com-20110106225225-vvdxv468770vwng0
add pastebin.com support - bug 529195

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
                { 
69
69
                        cmbProvider.Clear ();
70
70
                        
71
 
                        Gtk.CellRendererText cell = new Gtk.CellRendererText ();
 
71
                        Gtk.CellRendererText cell = new Gtk.CellRendererText ();
72
72
                        cmbProvider.PackStart (cell, true);
73
73
                        cmbProvider.AddAttribute (cell, "text" , 0);
74
74
                        
80
80
                                where type.GetInterface ("Pastebin.IPastebinProvider") != null && type.IsAbstract == false
81
81
                                select Activator.CreateInstance (type);
82
82
 
83
 
                        foreach (IPastebinProvider provider in providers) {
 
83
                        foreach (IPastebinProvider provider in providers)
84
84
                                ProvidersList.AppendValues (provider.Name, provider.GetType ().ToString ());
85
 
                        }
86
85
                        
87
86
                        cmbProvider.Model = ProvidersList;
88
87
                        //set selection to what's in GConf, if we can
94
93
                public bool SearchCombobox (out Gtk.TreeIter ti, Gtk.ComboBox box, string val, int col)
95
94
                {               
96
95
                        box.Model.GetIterFirst (out ti);
97
 
                        do 
98
 
                        {
 
96
                        do {
99
97
                                if ((string)box.Model.GetValue (ti,col) == val)
100
98
                                        return true;
101
99
                        } while (box.Model.IterNext (ref ti));
113
111
                        //Gdk.Pixbuf temp = null;
114
112
                        //string[] Icon = null;
115
113
 
116
 
                        foreach (TextSyntaxItem syntax in paster.SupportedLanguages)
117
 
                        {
 
114
                        foreach (TextSyntaxItem syntax in paster.SupportedLanguages) {
118
115
                                /*
119
116
                                //first determine if this icon is built in - or - comes from resource
120
117
                                Icon = syntax.Icon.Split (new char[] {'@'});