Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase DEF_HISTORY_LIMIT to 1000 and make GtkSpinButton use it #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/preferences.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down