Reputation: 459
This is my first time using MonoDevelop, I want to add at icon to a new project, in C# with Gtk# 2.0. Everything is fine until adding an icon either via stetic or directly in the code, as below:
public partial class MainWindow : Gtk.Window {
public MainWindow() : base(Gtk.WindowType.Toplevel) {
this.Icon = new Gdk.Pixbuf(System.Reflection.Assembly.GetEntryAssembly(),
"Icon.png", 32, 32 );
this.Build();
}
...
}
Upvotes: 1
Views: 45
Reputation: 459
After some time to think and inspiration from this post, I managed to solve the problem. It all had to do with uninstalled bindings for gdk. I'm not entirely sure which did the trick, but the list of the ones I installed is the following:
The one in bold is the one I personally think did the trick.
Upvotes: 1