Fix FLTK 1.4 compatibility
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user