~bratsche/ubuntu/maverick/monodevelop/disable-appmenu

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ClassQuickFinder.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2009-03-17 17:55:55 UTC
  • mfrom: (1.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20090317175555-2w5qbmu0l5maq6fq
Tags: 1.9.3+dfsg-1ubuntu1
* FFe for Monodevelop 2 granted by motu-release team :)
* Merge from Debian Unstable , remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
                public ClassQuickFinder (SourceEditorWidget editor)
59
59
                {
60
60
                        this.editor = editor;
61
 
                        
 
61
                                
62
62
                        typeCombo.DataProvider = new TypeDataProvider (this);
63
63
                        typeCombo.ItemSet += TypeChanged;
64
64
                        UpdateTypeComboTip (null);
74
74
                        UpdateRegionComboTip (null);
75
75
                        this.PackStart (regionCombo);
76
76
                        
 
77
                        int w, h;
 
78
                        Gtk.Icon.SizeLookup (IconSize.Menu, out w, out h);
 
79
                        typeCombo.DefaultIconHeight = membersCombo.DefaultIconHeight = regionCombo.DefaultIconHeight = Math.Max (h, 16);
 
80
                        typeCombo.DefaultIconWidth = membersCombo.DefaultIconWidth = regionCombo.DefaultIconWidth = Math.Max (w, 16);
 
81
                        
77
82
                        this.FocusChain = new Widget[] { typeCombo, membersCombo, regionCombo };
78
83
                        
79
84
                        this.ShowAll ();
397
402
                                return;
398
403
                        
399
404
                        IType selectedClass = (IType)typeCombo.CurrentItem;
400
 
                        System.Console.WriteLine(selectedClass  +  "/" + selectedClass.Location);
401
405
                        int line = selectedClass.Location.Line;
402
406
                        UpdateTypeComboTip (selectedClass);
403
407
                        
425
429
                }
426
430
                
427
431
                
428
 
                bool IsMemberSelected (IMember mem, int line, int column)
 
432
/*              bool IsMemberSelected (IMember mem, int line, int column)
429
433
                {
430
434
                        if (mem is IMethod) {
431
435
                                IMethod method = (IMethod) mem;
437
441
                        }
438
442
                        
439
443
                        return (mem.Location.Line <= line && line <= mem.Location.Line);
440
 
                }
 
444
                }*/
441
445
                
442
446
//              public void GetLineColumnFromPosition (int position, out int line, out int column)
443
447
//              {
450
454
                {
451
455
                        if (editor != null) 
452
456
                                editor = null;
453
 
                
 
457
                        
 
458
                        if (tips != null) {
 
459
                                tips.Destroy ();
 
460
                                tips = null;
 
461
                        }
454
462
                        base.OnDestroyed ();
455
463
                }
456
464
        }