Re: not enough variable arguments to fit a sentinel?



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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]