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