~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Components/MonoDevelop.Components.PropertyGrid/PropertyGrid.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-10 14:25:59 UTC
  • mfrom: (1.2.5 upstream) (1.3.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100110142559-sorji5exvk9tyknr
Tags: 2.2+dfsg-2
* debian/rules/remove_support_for_non_debian_functionality.patch:
  + Also fix monodevelop-core-addins.pc to remove links to the
    addins we remove in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                        base.PackStart (toolbar, false, false, 0);
88
88
                        
89
89
                        catButton = new RadioToolButton (new GLib.SList (IntPtr.Zero));
90
 
                        catButton.IconWidget = new Gtk.Image (new Gdk.Pixbuf (typeof (PropertyGrid).Assembly,
91
 
                                "MonoDevelop.Components.PropertyGrid.SortByCat.png"));
 
90
                        Gdk.Pixbuf pixbuf = null;
 
91
                        try {
 
92
                                pixbuf = new Gdk.Pixbuf (typeof (PropertyGrid).Assembly, "MonoDevelop.Components.PropertyGrid.SortByCat.png");
 
93
                        } catch (Exception e) {
 
94
                                LoggingService.LogError ("Can't create pixbuf from resource: MonoDevelop.Components.PropertyGrid.SortByCat.png", e);
 
95
                        }
 
96
                        if (pixbuf != null)
 
97
                                catButton.IconWidget = new Gtk.Image (pixbuf);
92
98
                        catButton.TooltipText = GettextCatalog.GetString ("Sort in categories");
93
99
                        catButton.Toggled += new EventHandler (toolbarClick);
94
100
                        toolbar.Insert (catButton, 0);
376
382
                }
377
383
                
378
384
                #endregion
379
 
                
380
 
                //for PropertyTab images
381
 
                private Gdk.Pixbuf ImageToPixbuf(System.Drawing.Image image)
382
 
                {
383
 
                        using (MemoryStream stream = new MemoryStream ()) {
384
 
                                image.Save (stream, System.Drawing.Imaging.ImageFormat.Png);
385
 
                                stream.Position = 0;
386
 
                                return new Gdk.Pixbuf (stream);
387
 
                        }
388
 
                }
389
385
        }
390
386
        
391
387
        class TabRadioToolButton: RadioToolButton