Wy does this give this warning ?



103 static void application_quit(){
    104     GtkMessageDialog* dialog = NULL;
    105     dialog = gtk_message_dialog_new (GTK_WINDOW(window1),
    106             GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
    107             GTK_MESSAGE_QUESTION,
    108             GTK_BUTTONS_YES_NO, "%s",
    109             " Are you sure you want to quit? ");
    110     if(gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES){
    111         gtk_widget_destroy (GTK_WIDGET(dialog));


===========================
callbacks.c: In function `application_quit':
callbacks.c:109: warning: assignment from incompatible pointer type
------------------

 Even if I cast to const gchar* it still gives the warning.

  Thanks for any light :)

Harring

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



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