Skip to content

Commit

Permalink
Merge pull request #2 from gbinka/master
Browse files Browse the repository at this point in the history
Extend DEF_HISTORY_LIMIT to 1000 and make GtkSpinButton use it as max…
  • Loading branch information
afelinczak authored May 19, 2020
2 parents e8e0b4d + 0e2a110 commit 836566d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 836566d

Please sign in to comment.