X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire.c;h=e03a84b433bad7eb752c666abeac23d36384a16d;hb=510cc9dd9baf3108ba55cfb7893384517c9930b4;hp=7344b9816146f867b7804eee824ebe169601fe61;hpb=0fde6afee3c995bf264c24c438f43eeb58b859b5;p=pspp diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 7344b98161..e03a84b433 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -142,9 +142,8 @@ psppire_quit (GApplication *app) static void -handle_msg (const struct msg *m_, void *lexer_) +handle_msg (const struct msg *m_, struct lexer *lexer) { - struct lexer *lexer = lexer_; struct msg m = { .category = m_->category, .severity = m_->severity, @@ -165,10 +164,9 @@ handle_msg (const struct msg *m_, void *lexer_) void psppire_set_lexer (struct lexer *lexer) { - msg_set_handler (handle_msg, lexer); + lex_set_message_handler (lexer, handle_msg); } - GtkWindow * psppire_preload_file (const gchar *file, GtkWindow *victim) {