Fix FLTK 1.4 compatibility

This commit is contained in:
Mario Fetka
2026-07-14 18:28:29 +02:00
parent ba55befc63
commit b52a4153a4
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
project(prozgui VERSION 2.3.0 LANGUAGES C CXX)
project(prozgui VERSION 2.3.1 LANGUAGES C CXX)
include(GNUInstallDirs)
find_package(Threads REQUIRED)
+1 -1
View File
@@ -41,7 +41,7 @@ void cb_dl_window(Fl_Window * widget, void *)
if (dl_window->status != DL_IDLING)
{
if (fl_ask(_("Are you Sure You want to quit?")) == 1)
if (fl_choice(_("Are you Sure You want to quit?"), _("No"), _("Yes"), 0) == 1)
{
dl_window->cleanup(FALSE);
}
+1 -1
View File
@@ -26,7 +26,7 @@
#include <string.h>
#include <assert.h>
#include <limits.h>
#include <FL/fl_message.h>
#include <FL/fl_ask.H>
#include "main.h"
#include "ftpsearch_win.h"
+4
View File
@@ -8,8 +8,12 @@
/* Gettext */
#include <libintl.h>
#ifndef _
#define _(String) dgettext (PACKAGE,String)
#endif
#ifndef gettext_noop
#define gettext_noop(String) (String)
#endif
#ifndef HAVE_GNOME
#define N_(String) gettext_noop (String)
#endif