Re: not enough variable arguments to fit a sentinel?
- From: MatÃÂas Alejandro Torres <torresmat gmail com>
- To: Ed Catmur <ed catmur co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: not enough variable arguments to fit a sentinel?
- Date: Tue, 13 Feb 2007 14:46:32 -0300
Ed Catmur escribiÃ:
On Tue, 2007-02-13 at 00:56 -0300, MatÃÂas Alejandro Torres wrote:
What about this warning????
181:dialog = gtk_file_chooser_dialog_new (_("Select where to save
contacts."),
182: NULL,
183:
GTK_FILE_CHOOSER_ACTION_SAVE,
184: NULL);
contacts.c:184: warning: not enough variable arguments to fit a sentinel
Note: I do not add the buttons here because it is done with
gtk_file_chooser_add_button somewhere else.
Pass extra arguments at the end:
dialog = gtk_file_chooser_dialog_new (_("Select where to save
contacts."), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, NULL, 0, NULL);
Or, create it using g_object_new:
dialog = g_object_new (GTK_TYPE_FILE_CHOOSER_DIALOG, "title",
_("Select where to save contacts."), "action",
GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
Ed
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Thanks, both of them work without warnings.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]