From 0e2a1102d59bf7ec916da49832ffe07e2c66062f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Bi=C5=84ka?= Date: Fri, 22 Feb 2019 12:50:04 +0100 Subject: [PATCH] Extend DEF_HISTORY_LIMIT to 1000 and make GtkSpinButton use it as max value instead hardcoded value --- src/preferences.c | 2 +- src/preferences.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences.c b/src/preferences.c index 4e9a9ed..095259a 100644 --- a/src/preferences.c +++ b/src/preferences.c @@ -825,7 +825,7 @@ void show_preferences(gint tab) { label = gtk_label_new(_("Items in history:")); gtk_misc_set_alignment((GtkMisc*)label, 0.0, 0.50); gtk_box_pack_start((GtkBox*)hbox, label, FALSE, FALSE, 0); - adjustment = gtk_adjustment_new(25, 5, 1000, 1, 10, 0); + adjustment = gtk_adjustment_new(25, 5, DEF_HISTORY_LIMIT, 1, 10, 0); history_spin = gtk_spin_button_new((GtkAdjustment*)adjustment, 0.0, 0); gtk_spin_button_set_update_policy((GtkSpinButton*)history_spin, GTK_UPDATE_IF_VALID); gtk_box_pack_start((GtkBox*)hbox, history_spin, FALSE, FALSE, 0); diff --git a/src/preferences.h b/src/preferences.h index b022839..4c67ed1 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -39,7 +39,7 @@ G_BEGIN_DECLS #define DEF_SAVE_URIS TRUE #define DEF_SAVE_HISTORY TRUE #define DEF_USE_RMB_MENU FALSE -#define DEF_HISTORY_LIMIT 50 +#define DEF_HISTORY_LIMIT 1000 #define DEF_HISTORY_TIMEOUT FALSE #define DEF_HISTORY_TIMEOUT_SECONDS 30 #define DEF_ITEMS_MENU 20