X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fmessage-dialog.c;h=af1886c98a7f619fdd5706259ebf21d4548dcb48;hb=03660262a395494be666ae271d7d08408d34007d;hp=840e1e2adc0c71107b62101d8b129e1c3a881c1c;hpb=b3cd77d4190ad01f3297eb82ffb5053c536a427a;p=pspp-builds.git diff --git a/src/ui/gui/message-dialog.c b/src/ui/gui/message-dialog.c index 840e1e2a..af1886c9 100644 --- a/src/ui/gui/message-dialog.c +++ b/src/ui/gui/message-dialog.c @@ -43,16 +43,25 @@ extern GladeXML *xml; -static void enqueue_msg(const struct msg *m); +static void enqueue_msg (const struct msg *m); static GQueue *message_queue; + +static void +msg_location (struct msg_locator *loc) +{ + loc->file_name = NULL; + loc->line_number = -1; +} + + void message_dialog_init (void) { message_queue = g_queue_new(); - msg_init(enqueue_msg); + msg_init (enqueue_msg, msg_location); } @@ -155,13 +164,3 @@ popup_message(const struct msg *m) gtk_widget_destroy (dialog); } -/* FIXME: This is a stub . - * A temporary workaround until getl.c is rearranged - */ -void -msg_location (struct msg_locator *loc) -{ - loc->file_name = 0; - loc->line_number = -1; -} -