~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components/ConsoleView.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields, 1840cc1
  • Date: 2012-02-05 10:49:36 UTC
  • mfrom: (10.2.12)
  • Revision ID: package-import@ubuntu.com-20120205104936-f3dutq6lnseokb6d
Tags: 2.8.6.3+dfsg-1
[1840cc1] Imported Upstream version 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
using System;
30
30
using System.Collections;
31
31
using System.Collections.Generic;
 
32
using MonoDevelop.Core;
32
33
using Gtk;
33
34
 
34
35
namespace MonoDevelop.Components
56
57
                        
57
58
                        textView.WrapMode = Gtk.WrapMode.Word;
58
59
                        textView.KeyPressEvent += TextViewKeyPressEvent;
59
 
        
 
60
                        textView.PopulatePopup += TextViewPopulatePopup;
 
61
                        
60
62
                        // The 'Freezer' tag is used to keep everything except
61
63
                        // the input line from being editable
62
64
                        TextTag tag = new TextTag ("Freezer");
64
66
                        Buffer.TagTable.Add (tag);
65
67
                        Prompt (false);
66
68
                }
 
69
 
 
70
                void TextViewPopulatePopup (object o, PopulatePopupArgs args)
 
71
                {
 
72
                        MenuItem item = new MenuItem (GettextCatalog.GetString ("Clear"));
 
73
                        SeparatorMenuItem sep = new SeparatorMenuItem ();
 
74
                        
 
75
                        item.Activated += ClearActivated;
 
76
                        item.Show ();
 
77
                        sep.Show ();
 
78
                        
 
79
                        args.Menu.Add (sep);
 
80
                        args.Menu.Add (item);
 
81
                }
 
82
 
 
83
                void ClearActivated (object sender, EventArgs e)
 
84
                {
 
85
                        Clear ();
 
86
                }
67
87
                
68
88
                public void SetFont (Pango.FontDescription font)
69
89
                {