Re: [Anjuta-list] Compilation warning



Fernando Apesteguía ha scritto lo scorso 06/10/2006 11:18:
> Hi all,
> 
> I'm getting this warning while compiling my project.
> 
> "warning: not enough variable arguments to fit a sentinel"
> 
> My gcc version is gcc (GCC) 4.1.2 20060928 (prerelease) (Debian
> 4.1.1-15) and I'm using Anjuta 1.2.4a
> 
> The warning comes from this source line:
> 
> fch_select = gtk_file_chooser_dialog_new (_("Save Data"), NULL,
> GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
> 

It is a gtk+ (neither anjuta non gcc) related issue; you must provide at
least one action button to your file chooser:

dialog = gtk_file_chooser_dialog_new ("Open File",
                                      GTK_WINDOW (parent),
                                      GTK_FILE_CHOOSER_ACTION_OPEN,
                                      GTK_STOCK_CANCEL,
                                      GTK_RESPONSE_CANCEL,
                                      GTK_STOCK_OPEN,
                                      GTK_RESPONSE_ACCEPT,
                                      NULL);






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