Skip to content

Commit beb003b

Browse files
committed
patch 7.4.1525
Problem: On a high resolution screen the toolbar icons are too small. Solution: Add "huge" and "giant" to 'toolbariconsize'. (Brian Gix)
1 parent 045a284 commit beb003b

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/gui_gtk_x11.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,8 @@ set_toolbar_style(GtkToolbar *toolbar)
33463346
case TBIS_SMALL: size = GTK_ICON_SIZE_SMALL_TOOLBAR; break;
33473347
case TBIS_MEDIUM: size = GTK_ICON_SIZE_BUTTON; break;
33483348
case TBIS_LARGE: size = GTK_ICON_SIZE_LARGE_TOOLBAR; break;
3349+
case TBIS_HUGE: size = GTK_ICON_SIZE_DND; break;
3350+
case TBIS_GIANT: size = GTK_ICON_SIZE_DIALOG; break;
33493351
default: size = GTK_ICON_SIZE_INVALID; break;
33503352
}
33513353
oldsize = gtk_toolbar_get_icon_size(toolbar);

src/option.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,12 +871,14 @@ static char *(p_toolbar_values[]) = {"text", "icons", "tooltips", "horiz", NULL}
871871
EXTERN char_u *p_tbis; /* 'toolbariconsize' */
872872
EXTERN unsigned tbis_flags;
873873
# ifdef IN_OPTION_C
874-
static char *(p_tbis_values[]) = {"tiny", "small", "medium", "large", NULL};
874+
static char *(p_tbis_values[]) = {"tiny", "small", "medium", "large", "huge", "giant", NULL};
875875
# endif
876876
# define TBIS_TINY 0x01
877877
# define TBIS_SMALL 0x02
878878
# define TBIS_MEDIUM 0x04
879879
# define TBIS_LARGE 0x08
880+
# define TBIS_HUGE 0x10
881+
# define TBIS_GIANT 0x20
880882
#endif
881883
EXTERN long p_ttyscroll; /* 'ttyscroll' */
882884
#if defined(FEAT_MOUSE) && (defined(UNIX) || defined(VMS))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1525,
746748
/**/
747749
1524,
748750
/**/

0 commit comments

Comments
 (0)