[Gtk-sharp-list] problem with Gnome.About

Arturo González clonebot@eresmas.com
06 May 2003 23:59:30 +0000


I was having the same problem two days ago, and the only solution i
found was not to put "null" at the icon parameter. It was necessary to
do:

Gdk.Pixbuf Icon = new Gdk.Pixbuf ("pixmaps/k48.png");

and put Icon as last parameter of Gnome.About.

I doesn't know if this is a bug to repare or only it is following some
gnome developper rules.

good luck!


El mar, 06 de 05 de 2003 a las 21:10, Joseph Monti escribió:
> Hi,
> 
> I'm new to C#/GTK# and ran into a problem with creating a new
> Gnome.About
> 
> Here is how I create it:
> 
> Gnome.About myAbout = new Gnome.About(
> 		"Code Connector", "0.1", 
> 		"(C) 2003 Joseph Monti, GNU General Public License", 
> 		"A Description", 
> 		new string [] {"Me"},
> 		new string[] {}, "", null);
> 
> This is created in a callback.
> 
> Here is what happens at a console:
> 
> (<unknown>:2986): GLib-GObject-WARNING **: instance of invalid
> non-instantiatable type `<invalid>'
>  
> (<unknown>:2986): GLib-GObject-CRITICAL **: file gsignal.c: line 2056
> (g_signal_handlers_destroy): assertion `G_TYPE_CHECK_INSTANCE
> (instance)' failed
> 
> The application does not crash, it just doesnt open that about dialog.
> 
> I am running the CVS version of mono/mcs/gtk-sharp. and gnome-2.2.1 on a
> Gentoo system.
> 
> Any ideas?
> 
> Thanks!
> - Joe
-- 
Arturo González <clonebot@eresmas.com>