Hi, I am new to GTK, have some experience with Perl but I am tryng to work on enbeded system and GUI application on Perl (Tk) are so slow that I decided to look at GTK. Well, slow progress, but I am stuck on one problem. I created Message dialog with 2 buttons, "yes" and "no", Now I am trying to connect signal but to what whithin dialog widget?
Code:
GtkWidget *dialog;
dialog = gtk_message_dialog_new(GTK_WINDOW(window),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
"If you agree press Yes if no press No");
gtk_window_set_title(GTK_WINDOW(dialog), "YesNoDialog");
gtk_dialog_run(GTK_DIALOG(dialog));
g_signal_connect(G_OBJECT(GTK_STOCK_YES), "clicked",
G_CALLBACK(Yes_clicked), NULL);
gtk_widget_destroy(dialog);
Well after long search over the net I did as abve, I use GTK_STOCK_YES but it does not work. So I am stuck and frustrated. I am sure the answer is very easy but will appreciate help. Also what would be a good tutorial for GTK+ on line??
Thanks in advance
Robert