logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

gtk+-3.24.25-update-icon-cache.patch (4770B)


  1. From ce23725d2b25b61a4eec8db0899d49d5a9dbcc6d Mon Sep 17 00:00:00 2001
  2. From: Gilles Dartiguelongue <eva@gentoo.org>
  3. Date: Tue, 1 Nov 2016 15:24:22 +0100
  4. Subject: [PATCH] Always use external gtk-update-icon-cache
  5. Check for gtk-update-icon-cache to install demos, otherwise it is not
  6. used when building.
  7. ---
  8. configure.ac | 2 ++
  9. demos/gtk-demo/Makefile.am | 2 +-
  10. demos/widget-factory/Makefile.am | 2 +-
  11. docs/reference/gtk/Makefile.am | 1 -
  12. gtk/Makefile.am | 27 ---------------------------
  13. 5 files changed, 4 insertions(+), 30 deletions(-)
  14. diff --git a/configure.ac b/configure.ac
  15. index 36dda2ebaf..df9d9b0e9b 100644
  16. --- a/configure.ac
  17. +++ b/configure.ac
  18. @@ -974,6 +974,8 @@ dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling
  19. AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
  20. +AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, [gtk-update-icon-cache], [no])
  21. +
  22. ########################################
  23. # Windowing system checks
  24. ########################################
  25. diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am
  26. index 4a2f827469..369ba5d3cc 100644
  27. --- a/demos/gtk-demo/Makefile.am
  28. +++ b/demos/gtk-demo/Makefile.am
  29. @@ -174,7 +174,7 @@ dist_appsicon32_DATA = data/32x32/gtk3-demo.png data/32x32/gtk3-demo-symbolic.sy
  30. dist_appsicon48_DATA = data/48x48/gtk3-demo.png data/48x48/gtk3-demo-symbolic.symbolic.png
  31. dist_appsicon256_DATA = data/256x256/gtk3-demo.png data/256x256/gtk3-demo-symbolic.symbolic.png
  32. -update_icon_cache = $(top_builddir)/gtk/gtk-update-icon-cache$(EXEEXT) --ignore-theme-index --force
  33. +update_icon_cache = $(GTK_UPDATE_ICON_CACHE) --ignore-theme-index --force
  34. install-data-hook: install-update-icon-cache
  35. uninstall-hook: uninstall-update-icon-cache
  36. diff --git a/demos/widget-factory/Makefile.am b/demos/widget-factory/Makefile.am
  37. index c33a6d0a95..291f389f53 100644
  38. --- a/demos/widget-factory/Makefile.am
  39. +++ b/demos/widget-factory/Makefile.am
  40. @@ -47,7 +47,7 @@ dist_appsicon32_DATA = data/32x32/gtk3-widget-factory.png data/32x32/gtk3-widget
  41. dist_appsicon48_DATA = data/48x48/gtk3-widget-factory.png data/48x48/gtk3-widget-factory-symbolic.symbolic.png
  42. dist_appsicon256_DATA = data/256x256/gtk3-widget-factory.png data/256x256/gtk3-widget-factory-symbolic.symbolic.png
  43. -update_icon_cache = $(top_builddir)/gtk/gtk-update-icon-cache$(EXEEXT) --ignore-theme-index --force
  44. +update_icon_cache = $(GTK_UPDATE_ICON_CACHE) --ignore-theme-index --force
  45. install-data-hook: install-update-icon-cache
  46. uninstall-hook: uninstall-update-icon-cache
  47. diff --git a/docs/reference/gtk/Makefile.am b/docs/reference/gtk/Makefile.am
  48. index dc9b80c6c5..bcaa4032c9 100644
  49. --- a/docs/reference/gtk/Makefile.am
  50. +++ b/docs/reference/gtk/Makefile.am
  51. @@ -502,7 +502,6 @@ EXTRA_DIST += version.xml.in gtk3.types.in getting_started.xml.in
  52. man_MANS = \
  53. gtk-query-immodules-3.0.1 \
  54. - gtk-update-icon-cache.1 \
  55. gtk-encode-symbolic-svg.1 \
  56. gtk-launch.1 \
  57. gtk3-demo.1 \
  58. diff --git a/gtk/Makefile.am b/gtk/Makefile.am
  59. index 9608ab3355..74792a4b40 100644
  60. --- a/gtk/Makefile.am
  61. +++ b/gtk/Makefile.am
  62. @@ -1658,7 +1658,6 @@ endif
  63. #
  64. bin_PROGRAMS = \
  65. gtk-query-immodules-3.0 \
  66. - gtk-update-icon-cache \
  67. gtk-encode-symbolic-svg \
  68. gtk-builder-tool \
  69. gtk-query-settings \
  70. @@ -1671,9 +1670,6 @@ gtk_query_immodules_3_0_LDADD = \
  71. $(GMODULE_LIBS) \
  72. $(GTK_DEP_LIBS)
  73. -gtk_update_icon_cache_SOURCES = updateiconcache.c
  74. -gtk_update_icon_cache_LDADD = $(GDK_PIXBUF_LIBS)
  75. -
  76. gtk_encode_symbolic_svg_SOURCES = encodesymbolic.c
  77. gtk_encode_symbolic_svg_LDADD = \
  78. $(GDK_PIXBUF_LIBS) \
  79. @@ -1698,29 +1694,6 @@ gtk_launch_LDADD = \
  80. $(top_builddir)/gdk/libgdk-3.la \
  81. $(GTK_DEP_LIBS)
  82. -if OS_WIN32
  83. -
  84. -# Workaround for UAC silliness: programs with "update" in their name
  85. -# are believed to be installers and require elevated privileges to be
  86. -# used... Embed a manifest file into executable to tell Windows that
  87. -# gtk-update-icon-cache.exe doesn't require any special privileges.
  88. -
  89. -GTK_UPDATE_ICON_CACHE_MANIFEST = gtk-update-icon-cache.exe.manifest
  90. -GTK_UPDATE_ICON_CACHE_RC = gtk-update-icon-cache.rc
  91. -GTK_UPDATE_ICON_CACHE_MANIFEST_OBJECT = gtk-update-icon-cache_manifest.o
  92. -
  93. -$(GTK_UPDATE_ICON_CACHE_MANIFEST): Makefile generate-uac-manifest.py
  94. - $(PYTHON) $(srcdir)/generate-uac-manifest.py -p=gtk3 -n=gtk-update-icon-cache --pkg-version=$(GTK_VERSION) --output-dir=$(builddir)
  95. -
  96. -$(GTK_UPDATE_ICON_CACHE_RC): $(GTK_UPDATE_ICON_CACHE_MANIFEST)
  97. -
  98. -$(GTK_UPDATE_ICON_CACHE_MANIFEST_OBJECT): $(GTK_UPDATE_ICON_CACHE_RC) $(GTK_UPDATE_ICON_CACHE_MANIFEST)
  99. - $(WINDRES) --input $< --output $@ --output-format=coff
  100. -
  101. -gtk_update_icon_cache_LDADD += $(GTK_UPDATE_ICON_CACHE_MANIFEST_OBJECT)
  102. -
  103. -endif
  104. -
  105. .PHONY: files
  106. files:
  107. --
  108. 2.30.0