~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/SourceEditor2/MonoDevelop.SourceEditor.Gui/SourceEditorDisplayBinding.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                        pixr.Ypad = 0;
206
206
                        classCombo.PackStart(pixr, false);
207
207
                        classCombo.AddAttribute(pixr, "pixbuf", 0);
208
 
                        CellRenderer colr = new CellRendererText();
 
208
                        CellRendererText colr = new CellRendererText();
209
209
                        colr.Ypad = 0;
 
210
                        colr.Ellipsize = Pango.EllipsizeMode.End;
210
211
                        classCombo.PackStart(colr, true);
211
212
                        classCombo.AddAttribute(colr, "text", 1);
212
213
                        
216
217
                        membersCombo.AddAttribute(pixr, "pixbuf", 0);
217
218
                        colr = new CellRendererText();
218
219
                        colr.Ypad = 0;
 
220
                        colr.Ellipsize = Pango.EllipsizeMode.End;
219
221
                        membersCombo.PackStart(colr, true);
220
222
                        membersCombo.AddAttribute(colr, "text", 1);
221
223
                        
404
406
                        }
405
407
                        if (encoding != null)
406
408
                                se.Buffer.SourceEncoding = encoding;
 
409
                        ContentName = fileName;
407
410
                        TextFileService.FireCommitCountChanges (this);
408
 
                        ContentName = fileName;
409
411
                        InitializeFormatter ();
410
412
                }
411
413
                
913
915
                        }
914
916
                        return false;
915
917
                }
 
918
                public bool EnableUndo {
 
919
                        get {
 
920
                                return ((SourceBuffer)se.Buffer).CanUndo;
 
921
                        }
 
922
                }
916
923
                
917
924
                public void Undo ()
918
925
                {
924
931
                        }
925
932
                }
926
933
                
 
934
                public bool EnableRedo {
 
935
                        get {
 
936
                                return ((SourceBuffer)se.Buffer).CanRedo;
 
937
                        }
 
938
                }
 
939
                
927
940
                public void Redo ()
928
941
                {
929
942
                        if (((SourceBuffer)se.Buffer).CanRedo) {