Commit 0843f5b9 authored by John Ellson's avatar John Ellson

fix gtk_message_dialog_new() usage (fc26)

parent 39cdd8c6
...@@ -99,15 +99,12 @@ void mQuitSlot(GtkWidget * widget, gpointer user_data) ...@@ -99,15 +99,12 @@ void mQuitSlot(GtkWidget * widget, gpointer user_data)
int show_close_nosavedlg(void) int show_close_nosavedlg(void)
{ {
GtkWidget *dialog; GtkWidget *dialog;
char buf[512];
int rv; /*return value */ int rv; /*return value */
sprintf(buf,
"%s has been modified. Do you want to save it before closing?",
view->Topview->Graphdata.GraphFileName);
dialog = dialog =
gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE,
buf); "%s has been modified. Do you want to save it before closing?",
view->Topview->Graphdata.GraphFileName);
gtk_window_set_title(GTK_WINDOW(dialog), "Smyrna Warning"); gtk_window_set_title(GTK_WINDOW(dialog), "Smyrna Warning");
gtk_dialog_add_button((GtkDialog *) dialog, "Yes", 0); gtk_dialog_add_button((GtkDialog *) dialog, "Yes", 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment