El mar, 10 de 02 de 2004 a las 15:11, Bryan Brown escribiÃ: [snip]
=== begin code fragment ===
void
on_about_activate (GtkMenuItem *menuitem,
gpointer user_data)
{
const gchar *authors[] = {
"Me",
"You",
NULL};
const gchar *version = "1.5";
gtk_widget_show (
gnome_about_new(
"MyProgram",
version,
"Copyright notice",
(const gchar **) authors,
_("Comments go here"),
NULL)
);
}
=== end code fragment === This appears to follow the standard format as described in the online documentation about the routine gnome_about_new
Disagree, you are passing six parameters when the doc states eight.
GtkWidget* gnome_about_new (const gchar *name,
const gchar *version,
const gchar *copyright,
const gchar *comments,
const gchar **authors,
const gchar **documenters,
const gchar
*translator_credits,
GdkPixbuf *logo_pixbuf);
http://developer.gnome.org/doc/API/2.0/libgnomeui/GnomeAbout.html
, but the compiler reports the following errors:
[snip]
callbacks.c:5917: too few arguments to function `gnome_about_new'
That's clear enough to know where is the problem ;) best regards -- Iago Rubio http://www.iagorubio.com GPGkey pgp.rediris.es id 0x909BD4DD fingerprint = D18A B950 5F03 BB9A DD89 AA75 FEDF 1978 909B D4DD ********** iago.rubio(AT)hispalinux.es ********** --------------------------------------------------
Attachment:
signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente