Encapsulated msg_location inside msg_emit
[pspp-builds.git] / src / ui / gui / message-dialog.c
index 840e1e2adc0c71107b62101d8b129e1c3a881c1c..af1886c98a7f619fdd5706259ebf21d4548dcb48 100644 (file)
@@ -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;
-}
-