X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.c;h=bc197e63adcd2a7c7416a7b1da41f19522ed22ae;hb=e598cda225c4f98025ec43b72eb1a9dd691b77cd;hp=da74882a8f0bbae0557c91b3d6de82256a6e490b;hpb=26b8e68e01f3422f2f1be2469435d34d27635c44;p=pspp-builds.git diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index da74882a..bc197e63 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -129,17 +129,16 @@ pspp_locale_to_utf8 (const gchar *text, gssize len, GError **err) static void give_help (void) { - static struct msg m = { - MSG_GENERAL, - MSG_NOTE, - {0, -1}, - 0, - }; - - if (! m.text) - m.text=g_strdup (_("Sorry. The help system hasn't yet been implemented.")); - - popup_message (&m); + GtkWidget *dialog; + + dialog = gtk_message_dialog_new (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_INFO, + GTK_BUTTONS_CLOSE, + _("Sorry. The help system hasn't yet " + "been implemented.")); + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); } void