Skip to content

Commit 3a466a8

Browse files
committed
patch 7.4.1138
Problem: When running gvim in the foreground some icons are missing. (Taylor Venable) Solution: Move the call to gui_gtk_register_resource(). (Kazunobu Kuriyama)
1 parent 62ef797 commit 3a466a8

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

src/gui_gtk_x11.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,9 +1437,6 @@ gui_mch_early_init_check(void)
14371437
EMSG(_((char *)e_opendisp));
14381438
return FAIL;
14391439
}
1440-
#ifdef USE_GRESOURCE
1441-
gui_gtk_register_resource();
1442-
#endif
14431440
return OK;
14441441
}
14451442

@@ -1451,6 +1448,18 @@ gui_mch_early_init_check(void)
14511448
int
14521449
gui_mch_init_check(void)
14531450
{
1451+
#ifdef USE_GRESOURCE
1452+
static int res_registered = FALSE;
1453+
1454+
if (!res_registered)
1455+
{
1456+
/* Call this function in the GUI process; otherwise, the resources
1457+
* won't be available. Don't call it twice. */
1458+
res_registered = TRUE;
1459+
gui_gtk_register_resource();
1460+
}
1461+
#endif
1462+
14541463
#ifdef FEAT_GUI_GNOME
14551464
if (gtk_socket_id == 0)
14561465
using_gnome = 1;

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1138,
744746
/**/
745747
1137,
746748
/**/

0 commit comments

Comments
 (0)