@pheem49/mint 1.8.0 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/.github/workflows/release.yml +1 -1
  2. package/Cargo.lock +34 -3
  3. package/Cargo.toml +2 -2
  4. package/README.md +20 -6
  5. package/Release_Note.md +129 -0
  6. package/assets/Mint_CLI.png +0 -0
  7. package/bin/mint +0 -0
  8. package/crates/mint-cli/Cargo.toml +1 -0
  9. package/crates/mint-cli/src/agent.rs +242 -54
  10. package/crates/mint-cli/src/main.rs +397 -74
  11. package/crates/mint-core/src/agent_loop.rs +1 -0
  12. package/crates/mint-core/src/api_server.rs +64 -2
  13. package/crates/mint-core/src/browser.rs +456 -0
  14. package/crates/mint-core/src/channels.rs +1 -0
  15. package/crates/mint-core/src/chat.rs +3 -0
  16. package/crates/mint-core/src/config.rs +130 -1
  17. package/crates/mint-core/src/lib.rs +19 -0
  18. package/crates/mint-core/src/orchestration.rs +317 -12
  19. package/crates/mint-core/src/skills.rs +113 -4
  20. package/crates/mint-core/src/tts.rs +3 -1
  21. package/crates/mint-core/src/workflows.rs +1 -22
  22. package/flatpak/com.pheem49.mint.desktop +9 -0
  23. package/flatpak/com.pheem49.mint.metainfo.xml +35 -0
  24. package/flatpak/com.pheem49.mint.yaml +52 -0
  25. package/package.json +1 -1
  26. package/shared-modules/.github/workflows/ci.yml +120 -0
  27. package/shared-modules/.github/workflows/update.yaml +28 -0
  28. package/shared-modules/CODEOWNERS +23 -0
  29. package/shared-modules/README.md +79 -0
  30. package/shared-modules/SDL/README.md +3 -0
  31. package/shared-modules/SDL/SDL-1.2.15.json +51 -0
  32. package/shared-modules/SDL/SDL_Pango-0.1.2-API-adds.patch +118 -0
  33. package/shared-modules/SDL/SDL_image-1.2.12.json +25 -0
  34. package/shared-modules/SDL/SDL_mixer-1.2.12.json +27 -0
  35. package/shared-modules/SDL/SDL_net-1.2.8.json +19 -0
  36. package/shared-modules/SDL/SDL_pango-0.1.2.json +26 -0
  37. package/shared-modules/SDL/SDL_ttf-2.0.11.json +28 -0
  38. package/shared-modules/SDL/libsdl-1.2.15-strict-prototypes.patch +316 -0
  39. package/shared-modules/SDL/sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch +24 -0
  40. package/shared-modules/SDL/sdl-libx11-build.patch +59 -0
  41. package/shared-modules/SDL/sdl-sysloadso-buffer-length.patch +27 -0
  42. package/shared-modules/SDL/sdl12-compat.json +22 -0
  43. package/shared-modules/SDL2/SDL2_image.json +27 -0
  44. package/shared-modules/SDL2/SDL2_ttf.json +29 -0
  45. package/shared-modules/cld2/CMakeLists.txt +157 -0
  46. package/shared-modules/cld2/cld2.json +24 -0
  47. package/shared-modules/clutter/clutter.json +72 -0
  48. package/shared-modules/dbus-glib/dbus-glib.json +29 -0
  49. package/shared-modules/glew/glew.json +36 -0
  50. package/shared-modules/glu/glu-9.json +12 -0
  51. package/shared-modules/gtk2/arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch +180 -0
  52. package/shared-modules/gtk2/gtk2-common-themes.json +360 -0
  53. package/shared-modules/gtk2/gtk2-fix-crash-in-show-uri.patch +30 -0
  54. package/shared-modules/gtk2/gtk2-gcc14.patch +281 -0
  55. package/shared-modules/gtk2/gtk2-gcc15.patch +250 -0
  56. package/shared-modules/gtk2/gtk2-murrine-c99.patch +34 -0
  57. package/shared-modules/gtk2/gtk2-use-adwaita-theme.patch +80 -0
  58. package/shared-modules/gtk2/gtk2.json +120 -0
  59. package/shared-modules/gtk2/ibus-gcc15.patch +13 -0
  60. package/shared-modules/gtk2/murrine-engine-fix-crash.patch +12 -0
  61. package/shared-modules/gtk2/readme.md +10 -0
  62. package/shared-modules/intltool/intltool-0.51.json +20 -0
  63. package/shared-modules/intltool/intltool-perl5.26-regex-fixes.patch +59 -0
  64. package/shared-modules/lame/0001-Build-xmm_quantize_sub.c-with-msse.patch +34 -0
  65. package/shared-modules/lame/0002-Include-GTK-1-autoconf-directives-in-build-system.patch +222 -0
  66. package/shared-modules/lame/0003-Patch-out-remaining-ansi2knr.patch +70 -0
  67. package/shared-modules/lame/0004-initscr-is-not-used-anywhere-in-lame-sourcetree.patch +41 -0
  68. package/shared-modules/lame/0005-Update-autoconf.patch +81 -0
  69. package/shared-modules/lame/lame-3.99.5.json +32 -0
  70. package/shared-modules/libappindicator/libappindicator-gtk2-12.10.json +140 -0
  71. package/shared-modules/libappindicator/libappindicator-gtk3-12.10.json +140 -0
  72. package/shared-modules/libappindicator/libappindicator-gtk3-introspection-12.10.json +140 -0
  73. package/shared-modules/libappindicator/patches/0001-libappindicator-ftbfs.patch +20 -0
  74. package/shared-modules/libappindicator/patches/0002-libappindicator-no-python.patch +888 -0
  75. package/shared-modules/libappindicator/patches/0003-libappindicator-fix-crash-from-incorrect-signal-emission.patch +74 -0
  76. package/shared-modules/libappindicator/patches/0004-libappindicator-fix-crash-iterating-icon-themes.patch +11 -0
  77. package/shared-modules/libayatana-appindicator/0001-Fix-HAVE_VALGRIND-AM_CONDITIONAL.patch +51 -0
  78. package/shared-modules/libayatana-appindicator/0001-Make-introspection-configurable.patch +44 -0
  79. package/shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json +121 -0
  80. package/shared-modules/libcanberra/0001-gtk-Don-t-assume-all-GdkDisplays-are-GdkX11Displays-.patch +123 -0
  81. package/shared-modules/libcanberra/libcanberra.json +44 -0
  82. package/shared-modules/libmad/libmad.json +19 -0
  83. package/shared-modules/libsecret/libsecret.json +23 -0
  84. package/shared-modules/libsoup/libsoup-2.4.json +14 -0
  85. package/shared-modules/libusb/libusb.json +27 -0
  86. package/shared-modules/linux-audio/dssi.json +31 -0
  87. package/shared-modules/linux-audio/fftw3f-static.json +44 -0
  88. package/shared-modules/linux-audio/fftw3f.json +42 -0
  89. package/shared-modules/linux-audio/fluidsynth2-static.json +30 -0
  90. package/shared-modules/linux-audio/fluidsynth2.json +19 -0
  91. package/shared-modules/linux-audio/ladspa.json +26 -0
  92. package/shared-modules/linux-audio/lash.json +35 -0
  93. package/shared-modules/linux-audio/libinstpatch.json +16 -0
  94. package/shared-modules/linux-audio/liblo-static.json +22 -0
  95. package/shared-modules/linux-audio/liblo.json +17 -0
  96. package/shared-modules/linux-audio/lilv-static.json +94 -0
  97. package/shared-modules/linux-audio/lilv.json +82 -0
  98. package/shared-modules/linux-audio/lrdf.json +57 -0
  99. package/shared-modules/linux-audio/lv2.json +21 -0
  100. package/shared-modules/linux-audio/patches/lash/0001-configure-remove-aclocal-m4.patch +29 -0
  101. package/shared-modules/linux-audio/patches/lash/0002-Fix-build-with-recent-gcc.patch +73 -0
  102. package/shared-modules/linux-audio/patches/lash/0003-Fix-linking.patch +136 -0
  103. package/shared-modules/linux-audio/patches/raptor-libxml.patch +31 -0
  104. package/shared-modules/linux-audio/patches/stk-install.sh +54 -0
  105. package/shared-modules/linux-audio/stk.json +28 -0
  106. package/shared-modules/lua5.1/0004-Fix-stack-overflow-in-vararg-functions.patch +21 -0
  107. package/shared-modules/lua5.1/lua-5.1.5-so.patch +43 -0
  108. package/shared-modules/lua5.1/lua-5.1.5.json +42 -0
  109. package/shared-modules/lua5.3/lua-5.3.5.json +41 -0
  110. package/shared-modules/lua5.3/lua.pc.in +8 -0
  111. package/shared-modules/lua5.3/luaconf.patch +47 -0
  112. package/shared-modules/lua5.3/makefile-add-liblua.so-rule.patch +47 -0
  113. package/shared-modules/lua5.4/lua-5.4.json +41 -0
  114. package/shared-modules/lua5.4/lua.pc.in +8 -0
  115. package/shared-modules/lua5.4/luaconf.patch +34 -0
  116. package/shared-modules/lua5.4/makefile-add-liblua.so-rule.patch +42 -0
  117. package/shared-modules/luajit/luajit.json +30 -0
  118. package/shared-modules/lzo/lzo.json +27 -0
  119. package/shared-modules/mac/mac.json +18 -0
  120. package/shared-modules/physfs/physfs.json +26 -0
  121. package/shared-modules/pygame/audiofile-gcc6.patch +21 -0
  122. package/shared-modules/pygame/cython-fixes.patch +34 -0
  123. package/shared-modules/pygame/fluidsynth-no-rawmidi.patch +69 -0
  124. package/shared-modules/pygame/glib.patch +25 -0
  125. package/shared-modules/pygame/pygame1-python2.json +157 -0
  126. package/shared-modules/pygtk/pygtk-c99.patch +15 -0
  127. package/shared-modules/pygtk/pygtk.json +117 -0
  128. package/shared-modules/pygtk/pygtk.patch +39 -0
  129. package/shared-modules/python2.7/python-2.7.json +48 -0
  130. package/shared-modules/smpeg/smpeg-0.4.5.json +50 -0
  131. package/shared-modules/smpeg/smpeg-am-prog-as.patch +12 -0
  132. package/shared-modules/smpeg/smpeg-export-mpegaudio-class.patch +17 -0
  133. package/shared-modules/smpeg/smpeg-gcc6.patch +40 -0
  134. package/shared-modules/smpeg/smpeg-no-gtk.patch +37 -0
  135. package/shared-modules/squashfs-tools/squashfs-tools.json +25 -0
  136. package/shared-modules/update-checker.sh +50 -0
  137. package/shared-modules/vorbisgain/0001-temp_files.patch +75 -0
  138. package/shared-modules/vorbisgain/0002-errno.patch +33 -0
  139. package/shared-modules/vorbisgain/0003-manpage.patch +248 -0
  140. package/shared-modules/vorbisgain/0004-vorbisgain_mtime.patch +183 -0
  141. package/shared-modules/vorbisgain/0005-double_fclose.patch +21 -0
  142. package/shared-modules/vorbisgain/0006-manpage_hyphens.patch +56 -0
  143. package/shared-modules/vorbisgain/0007-recursively_spelling.patch +14 -0
  144. package/shared-modules/vorbisgain/0008-manpage_recursion_mistake.patch +23 -0
  145. package/shared-modules/vorbisgain/0009-hardening.patch +13 -0
  146. package/shared-modules/vorbisgain/0010-fclose.patch +13 -0
  147. package/shared-modules/vorbisgain/README.md +23 -0
  148. package/shared-modules/vorbisgain/vorbisgain_0.37-2.json +29 -0
  149. package/src/renderer/shared/agentProgress.ts +145 -0
  150. package/src/renderer/shared/calculator.ts +52 -0
  151. package/src/renderer/shared/components/AgentActivityDrawer.tsx +72 -0
  152. package/src/renderer/shared/components/AgentActivityTable.tsx +66 -0
  153. package/src/renderer/shared/components/ApprovalCard.tsx +93 -0
  154. package/src/renderer/shared/components/ChatCodeBlock.tsx +75 -0
  155. package/src/renderer/shared/components/ThinkingBlock.tsx +101 -0
  156. package/src/renderer/shared/constants/models.ts +91 -0
  157. package/src/renderer/shared/platform.ts +82 -0
  158. package/src/renderer/shared/types.ts +140 -0
  159. package/src/renderer/shared/utils/agentActivity.ts +187 -0
  160. package/src/renderer/shared/utils/approval.ts +1 -0
  161. package/src/renderer/shared/utils/approval.tsx +64 -0
  162. package/src/renderer/shared/utils/markdown.tsx +347 -0
  163. package/src/renderer/shared/utils/providers.ts +36 -0
  164. package/src/renderer/shared/utils/speech.ts +216 -0
  165. package/src/renderer/shared/utils/ui.ts +147 -0
  166. package/src/renderer/src/agentProgress.ts +11 -39
  167. package/src/renderer/src/calculator.ts +3 -46
  168. package/src/renderer/src/components/ChatPanel.tsx +230 -1202
  169. package/src/renderer/src/components/ImageStudioPanel.tsx +11 -1
  170. package/src/renderer/src/components/MintDashboard.tsx +63 -171
  171. package/src/renderer/src/components/PicturesLibrary.tsx +32 -8
  172. package/src/renderer/src/components/Settings/AgentsTab.tsx +362 -0
  173. package/src/renderer/src/components/Settings/AutomationTab.tsx +0 -22
  174. package/src/renderer/src/components/Settings/PluginsTab.tsx +221 -41
  175. package/src/renderer/src/components/SettingsWindow.tsx +54 -12
  176. package/src/renderer/src/components/WorkspacePanel.tsx +66 -9
  177. package/src/renderer/src/css/image-studio.css +6 -0
  178. package/src/renderer/src/css/styles.css +148 -11
  179. package/src/renderer/src/index.css +12 -1
  180. package/src/renderer/src/tauri.ts +169 -143
  181. package/src/renderer/src-web/agentProgress.ts +11 -39
  182. package/src/renderer/src-web/calculator.ts +3 -46
  183. package/src/renderer/src-web/components/ChatPanel.tsx +223 -1199
  184. package/src/renderer/src-web/components/ImageStudioPanel.tsx +11 -1
  185. package/src/renderer/src-web/components/MintDashboard.tsx +31 -172
  186. package/src/renderer/src-web/components/PicturesLibrary.tsx +23 -29
  187. package/src/renderer/src-web/components/Settings/AgentsTab.tsx +362 -0
  188. package/src/renderer/src-web/components/Settings/AutomationTab.tsx +0 -22
  189. package/src/renderer/src-web/components/Settings/PluginsTab.tsx +221 -41
  190. package/src/renderer/src-web/components/SettingsWindow.tsx +54 -12
  191. package/src/renderer/src-web/css/image-studio.css +6 -0
  192. package/src/renderer/src-web/css/styles.css +184 -12
  193. package/src/renderer/src-web/index.css +12 -1
  194. package/src/renderer/src-web/tauri.ts +204 -104
  195. package/src-tauri/src/browser.rs +1 -141
  196. package/src-tauri/src/headless.rs +3 -2
  197. package/src-tauri/src/lib.rs +254 -59
  198. package/src-tauri/src/webhooks.rs +1 -0
  199. package/src-tauri/src/workflows.rs +57 -4
  200. package/src-tauri/tauri.conf.json +1 -1
@@ -0,0 +1,360 @@
1
+ {
2
+ "name": "gtk2-common-themes",
3
+ "buildsystem": "simple",
4
+ "build-commands": [],
5
+ "modules": [
6
+ {
7
+ "name": "sassc",
8
+ "// NOTE": "This is used by Yaru, Greybird, and Materia",
9
+ "cleanup": [
10
+ "*"
11
+ ],
12
+ "sources": [
13
+ {
14
+ "type": "archive",
15
+ "url": "https://github.com/sass/sassc/archive/3.5.0.tar.gz",
16
+ "sha256": "26f54e31924b83dd706bc77df5f8f5553a84d51365f0e3c566df8de027918042"
17
+ },
18
+ {
19
+ "type": "script",
20
+ "commands": [
21
+ "autoreconf -si"
22
+ ]
23
+ }
24
+ ],
25
+ "modules": [
26
+ {
27
+ "name": "libsass",
28
+ "cleanup": [
29
+ "*"
30
+ ],
31
+ "sources": [
32
+ {
33
+ "type": "archive",
34
+ "url": "https://github.com/sass/libsass/archive/3.5.4.tar.gz",
35
+ "sha256": "5f61cbcddaf8e6ef7a725fcfa5d05297becd7843960f245197ebb655ff868770"
36
+ },
37
+ {
38
+ "type": "script",
39
+ "commands": [
40
+ "autoreconf -si"
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "name": "gtk2-murrine-engine",
49
+ "rm-configure": true,
50
+ "// NOTE": "Used by Arc and CrosAdapta",
51
+ "cleanup": [
52
+ "*.la"
53
+ ],
54
+ "sources": [
55
+ {
56
+ "type": "archive",
57
+ "url": "https://download.gnome.org/sources/murrine/0.98/murrine-0.98.2.tar.xz",
58
+ "sha256": "e9c68ae001b9130d0f9d1b311e8121a94e5c134b82553ba03971088e57d12c89"
59
+ },
60
+ {
61
+ "type": "patch",
62
+ "paths": [
63
+ "murrine-engine-fix-crash.patch",
64
+ "gtk2-murrine-c99.patch"
65
+ ]
66
+ },
67
+ {
68
+ "type": "script",
69
+ "commands": [
70
+ "rm config.guess",
71
+ "autoreconf -si"
72
+ ]
73
+ }
74
+ ],
75
+ "modules": [
76
+ "../intltool/intltool-0.51.json",
77
+ "../gtk2/gtk2.json"
78
+ ]
79
+ },
80
+ {
81
+ "name": "cros-adapta-gtk2-theme",
82
+ "// NOTE": "This is used by Chrome OS",
83
+ "buildsystem": "simple",
84
+ "build-commands": [
85
+ "install -Dm644 index.theme ${FLATPAK_DEST}/share/themes/CrosAdapta/index.theme",
86
+ "cp -r gtk-2.0 ${FLATPAK_DEST}/share/themes/CrosAdapta"
87
+ ],
88
+ "sources": [
89
+ {
90
+ "type": "git",
91
+ "url": "https://chromium.googlesource.com/chromiumos/third_party/cros-adapta",
92
+ "commit": "eb6d8c1832b9181926df107faf41a80887fd982c"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "name": "arc-gtk2-theme",
98
+ "// NOTE": "This is used by Solus and is popular",
99
+ "// FIXME": "This has a dependency on inkscape and my patch isn't quite good enough sadly",
100
+ "disabled": true,
101
+ "config-opts": [
102
+ "--disable-gnome-shell",
103
+ "--disable-cinnamon",
104
+ "--disable-gtk3",
105
+ "--disable-metacity",
106
+ "--disable-xfwm",
107
+ "--disable-plank",
108
+ "--disable-openbox",
109
+ "--disable-unity"
110
+ ],
111
+ "sources": [
112
+ {
113
+ "type": "archive",
114
+ "url": "https://github.com/jnsh/arc-theme/releases/download/20200513/arc-theme-20200513.tar.xz",
115
+ "sha256": "cd268b878d6ad7c81b7acc0f89b66e26ee9a9a92eafb03b792318d51707f1962"
116
+ },
117
+ {
118
+ "type": "patch",
119
+ "path": "arc-gtk2-theme-Replace-Inkscape-dependency-with-rsvg-convert.patch"
120
+ },
121
+ {
122
+ "type": "shell",
123
+ "commands": [
124
+ "sed -i 's|\"$srcdir/configure\" $@||' autogen.sh"
125
+ ]
126
+ }
127
+ ],
128
+ "modules": [
129
+ {
130
+ "name": "optipng",
131
+ "cleanup": [
132
+ "*"
133
+ ],
134
+ "sources": [
135
+ {
136
+ "type": "archive",
137
+ "url": "https://prdownloads.sourceforge.net/optipng/optipng-0.7.7.tar.gz",
138
+ "sha256": "4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452"
139
+ }
140
+ ]
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "breeze-gtk2-theme",
146
+ "// NOTE": "This is used by KDE by default.",
147
+ "buildsystem": "simple",
148
+ "build-commands": [
149
+ "find breeze-gtk/src -name '*.scss' -print -execdir sed -i 's#\\.\\./assets/#./assets/#' {} \\;",
150
+ "cd breeze-gtk/src && sed -i 's/@Python3_EXECUTABLE@/python3/g' build_theme.sh.cmake && ./build_theme.sh.cmake -c BreezeLight -t ${FLATPAK_BUILDER_BUILDDIR}/Breeze -r ${FLATPAK_BUILDER_BUILDDIR}/breeze/colors",
151
+ "mkdir -p ${FLATPAK_DEST}/share/themes/Breeze/",
152
+ "cp -rv --no-preserve=ownership ${FLATPAK_BUILDER_BUILDDIR}/Breeze/gtk-2.0 ${FLATPAK_DEST}/share/themes/Breeze/",
153
+ "cp -rv --no-preserve=ownership ${FLATPAK_BUILDER_BUILDDIR}/Breeze/assets ${FLATPAK_DEST}/share/themes/Breeze/"
154
+ ],
155
+ "sources": [
156
+ {
157
+ "type": "archive",
158
+ "url": "https://download.kde.org/stable/plasma/6.4.5/breeze-gtk-6.4.5.tar.xz",
159
+ "sha256": "771e88ca19421a472f5f4235fb27ba2588b7ea267e8f2647e5e231c351f03a98",
160
+ "dest": "breeze-gtk",
161
+ "x-checker-data": {
162
+ "type": "anitya",
163
+ "project-id": 8761,
164
+ "stable-only": true,
165
+ "url-template": "https://download.kde.org/stable/plasma/$version/breeze-gtk-$version.tar.xz"
166
+ }
167
+ },
168
+ {
169
+ "type": "archive",
170
+ "url": "https://download.kde.org/stable/plasma/6.4.5/breeze-6.4.5.tar.xz",
171
+ "sha256": "dcb8433d399511546958f4c8c1a8fae5ed22f2a698f053968d410ee75bd6d8b4",
172
+ "dest": "breeze",
173
+ "x-checker-data": {
174
+ "type": "anitya",
175
+ "project-id": 8761,
176
+ "stable-only": true,
177
+ "url-template": "https://download.kde.org/stable/plasma/$version/breeze-$version.tar.xz"
178
+ }
179
+ }
180
+ ],
181
+ "modules": [
182
+ {
183
+ "name": "python3-meson-python",
184
+ "buildsystem": "simple",
185
+ "cleanup": [
186
+ "*"
187
+ ],
188
+ "build-commands": [
189
+ "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"meson-python\" --no-build-isolation"
190
+ ],
191
+ "sources": [
192
+ {
193
+ "type": "file",
194
+ "url": "https://files.pythonhosted.org/packages/28/58/66db620a8a7ccb32633de9f403fe49f1b63c68ca94e5c340ec5cceeb9821/meson_python-0.18.0-py3-none-any.whl",
195
+ "sha256": "3b0fe051551cc238f5febb873247c0949cd60ded556efa130aa57021804868e2"
196
+ },
197
+ {
198
+ "type": "file",
199
+ "url": "https://files.pythonhosted.org/packages/c0/57/e69a1de45ec7a99a707e9f1a5defa035a48de0cae2d8582451c72d2db456/pyproject_metadata-0.10.0-py3-none-any.whl",
200
+ "sha256": "b1e439a9f7560f9792ee5975dcf5e89d2510b1fc84a922d7e5d665aa9102d966"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "name": "python3-pycairo",
206
+ "buildsystem": "simple",
207
+ "cleanup": [
208
+ "*"
209
+ ],
210
+ "build-commands": [
211
+ "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pycairo\" --no-build-isolation"
212
+ ],
213
+ "sources": [
214
+ {
215
+ "type": "file",
216
+ "url": "https://files.pythonhosted.org/packages/22/d9/1728840a22a4ef8a8f479b9156aa2943cd98c3907accd3849fb0d5f82bfd/pycairo-1.29.0.tar.gz",
217
+ "sha256": "f3f7fde97325cae80224c09f12564ef58d0d0f655da0e3b040f5807bd5bd3142",
218
+ "x-checker-data": {
219
+ "type": "pypi",
220
+ "name": "pycairo"
221
+ }
222
+ }
223
+ ]
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "name": "elementary-gtk2-theme",
229
+ "// NOTE": "This is used by Elementary OS",
230
+ "buildsystem": "meson",
231
+ "cleanup": [
232
+ "/share/themes/elementary/gtk-3.0",
233
+ "/share/themes/elementary/plank",
234
+ "/share/plank",
235
+ "/share/metainfo"
236
+ ],
237
+ "sources": [
238
+ {
239
+ "type": "archive",
240
+ "url": "https://github.com/elementary/stylesheet/archive/5.4.2.tar.gz",
241
+ "sha256": "3bc37723daf4ce0b7c9ce4c125ef0055affe8d6654981388ec87d4a23a1ae0ec"
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "name": "yaru-gtk2-theme",
247
+ "// NOTE": "This is used by Ubuntu",
248
+ "buildsystem": "meson",
249
+ "config-opts": [
250
+ "-Dicons=false",
251
+ "-Dsounds=false",
252
+ "-Dgnome-shell=false",
253
+ "-Dsessions=false"
254
+ ],
255
+ "cleanup": [
256
+ "/share/themes/Yaru*/gtk-3.0",
257
+ "/share/themes/Yaru*/gtk-3.20",
258
+ "/share/themes/Yaru*/unity"
259
+ ],
260
+ "sources": [
261
+ {
262
+ "type": "archive",
263
+ "url": "https://github.com/ubuntu/yaru/archive/20.10.1.tar.gz",
264
+ "sha256": "9da2605088674edf2694a8215b7344fb5209b308dd8220ea21667a914dc8c55d"
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "name": "greybird-gtk2-theme",
270
+ "// NOTE": "This is used by many XFCE distros",
271
+ "buildsystem": "meson",
272
+ "cleanup": [
273
+ "/share/themes/Greybird*/xfwm4",
274
+ "/share/themes/Greybird*/gnome-shell",
275
+ "/share/themes/Greybird*/gtk-3.0",
276
+ "/share/themes/Greybird*/metacity-1",
277
+ "/share/themes/Greybird*/xfce-notify-4.0",
278
+ "/share/themes/Greybird*/plank",
279
+ "/share/themes/Greybird*/unity",
280
+ "/share/themes/Greybird*/*.emerald"
281
+ ],
282
+ "sources": [
283
+ {
284
+ "type": "archive",
285
+ "url": "https://github.com/shimmerproject/Greybird/archive/v3.22.12.tar.gz",
286
+ "sha256": "410804cd5daca33cbc5c7c4a179f3a334ced87f408e515fc5d9c083a04bec4bc"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "name": "materia-gtk2-theme",
292
+ "// NOTE": "This is used by Ubuntu Studio",
293
+ "buildsystem": "meson",
294
+ "cleanup": [
295
+ "/share/themes/Materia*/xfwm4",
296
+ "/share/themes/Materia*/gnome-shell",
297
+ "/share/themes/Materia*/gtk-3.0",
298
+ "/share/themes/Materia*/metacity-1",
299
+ "/share/themes/Materia*/cinnamon",
300
+ "/share/themes/Materia*/chrome",
301
+ "/share/themes/Materia*/plank",
302
+ "/share/themes/Materia*/unity"
303
+ ],
304
+ "sources": [
305
+ {
306
+ "type": "git",
307
+ "url": "https://github.com/nana-4/materia-theme.git",
308
+ "commit": "b36b379c9256b67e5f63a60c6faf6912f1845b66"
309
+ }
310
+ ]
311
+ },
312
+ {
313
+ "name": "mint-gtk2-theme",
314
+ "buildsystem": "simple",
315
+ "build-commands": [
316
+ "./generate-themes.py",
317
+ "find ./usr/share -type d \\( -name cinnamon -o -name gtk-3.0 -o -name gtk-4.0 -o -name metacity-1 -o -name xfce-\\* -o -name xfwm4 \\) -exec rm -rf {} +",
318
+ "find ./usr/share -type d -empty -delete",
319
+ "mkdir -p ${FLATPAK_DEST}/share/themes",
320
+ "cp -a ./usr/share/themes/. ${FLATPAK_DEST}/share/themes"
321
+ ],
322
+ "sources": [
323
+ {
324
+ "type": "git",
325
+ "url": "https://github.com/linuxmint/mint-themes.git",
326
+ "commit": "a5e98184b6b86d469db48f17fad4b845f9eee5d8"
327
+ }
328
+ ],
329
+ "modules": [
330
+ {
331
+ "name": "python3-pysass",
332
+ "buildsystem": "simple",
333
+ "cleanup": [
334
+ "*"
335
+ ],
336
+ "build-commands": [
337
+ "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"pysass\" --no-build-isolation"
338
+ ],
339
+ "sources": [
340
+ {
341
+ "type": "file",
342
+ "url": "https://files.pythonhosted.org/packages/79/b4/ab091585eaa77299558e3289ca206846aefc123fb320b5656ab2542c20ad/libsass-0.23.0.tar.gz",
343
+ "sha256": "6f209955ede26684e76912caf329f4ccb57e4a043fd77fe0e7348dd9574f1880"
344
+ },
345
+ {
346
+ "type": "file",
347
+ "url": "https://files.pythonhosted.org/packages/90/06/fafe78968db294d582e4cfb8d4bcdbdaeeb1f6d1f269c25acdceb51ce11c/pysass-0.1.0-py3-none-any.whl",
348
+ "sha256": "b473069cd9d8799366505b4586938ebfeb67d9df8b400bae3200297422530aff"
349
+ },
350
+ {
351
+ "type": "file",
352
+ "url": "https://files.pythonhosted.org/packages/db/7d/7f3d619e951c88ed75c6037b246ddcf2d322812ee8ea189be89511721d54/watchdog-6.0.0.tar.gz",
353
+ "sha256": "9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282"
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ }
359
+ ]
360
+ }
@@ -0,0 +1,30 @@
1
+ From 536da7a15c1737bc63c8ecba5ccac40cc2170860 Mon Sep 17 00:00:00 2001
2
+ From: Matthias Clasen <mclasen@redhat.com>
3
+ Date: Mon, 19 Apr 2021 16:39:53 -0400
4
+ Subject: [PATCH] Fix a possible crash in gtk_show_uri
5
+
6
+ g_file_get_basename can return NULL.
7
+ Deal with it somehow.
8
+
9
+ Fixes: #3883
10
+ ---
11
+ gdk/x11/gdkapplaunchcontext-x11.c | 3 +++
12
+ 1 file changed, 3 insertions(+)
13
+
14
+ diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c
15
+ index 8051229ba5..2341bb2e1f 100644
16
+ --- a/gdk/x11/gdkapplaunchcontext-x11.c
17
+ +++ b/gdk/x11/gdkapplaunchcontext-x11.c
18
+ @@ -45,6 +45,9 @@ get_display_name (GFile *file,
19
+ if (name == NULL)
20
+ {
21
+ name = g_file_get_basename (file);
22
+ + if (name == NULL)
23
+ + name = g_file_get_uri (file);
24
+ +
25
+ if (!g_utf8_validate (name, -1, NULL))
26
+ {
27
+ tmp = name;
28
+ --
29
+ GitLab
30
+
@@ -0,0 +1,281 @@
1
+ commit 072f06abf713d7536ce2a84a5ac266f585c88d39
2
+ Author: Matthias Clasen <mclasen@redhat.com>
3
+ Date: Fri Dec 8 17:48:47 2017 -0500
4
+
5
+ Fix fallout from g_object_ref change
6
+
7
+ g_object_ref now returns the type of the object that was
8
+ passed. Introduce cast as necessary to avoid warnings due
9
+ to this.
10
+
11
+ diff --git a/gtk/gtkcellrendererspin.c b/gtk/gtkcellrendererspin.c
12
+ index 2a3961bf203cbe59..7129d05e3b2c1ae6 100644
13
+ --- a/gtk/gtkcellrendererspin.c
14
+ +++ b/gtk/gtkcellrendererspin.c
15
+ @@ -207,7 +207,8 @@ gtk_cell_renderer_spin_set_property (GObject *object,
16
+ }
17
+
18
+ if (obj)
19
+ - priv->adjustment = g_object_ref_sink (obj);
20
+ + priv->adjustment = GTK_ADJUSTMENT (g_object_ref_sink (obj));
21
+ +
22
+ break;
23
+ case PROP_CLIMB_RATE:
24
+ priv->climb_rate = g_value_get_double (value);
25
+ diff --git a/gtk/gtkcomboboxtext.c b/gtk/gtkcomboboxtext.c
26
+ index 9ffba687660c1214..5e75323c2c55d491 100644
27
+ --- a/gtk/gtkcomboboxtext.c
28
+ +++ b/gtk/gtkcomboboxtext.c
29
+ @@ -275,7 +275,7 @@ gtk_combo_box_text_buildable_custom_tag_start (GtkBuildable *buildable,
30
+
31
+ parser_data = g_slice_new0 (ItemParserData);
32
+ parser_data->builder = g_object_ref (builder);
33
+ - parser_data->object = g_object_ref (buildable);
34
+ + parser_data->object = (GObject *)g_object_ref (buildable);
35
+ parser_data->domain = gtk_builder_get_translation_domain (builder);
36
+ *parser = item_parser;
37
+ *data = parser_data;
38
+ diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
39
+ index c47de5924f6f0b49..879586b0d9855374 100644
40
+ --- a/gtk/gtklabel.c
41
+ +++ b/gtk/gtklabel.c
42
+ @@ -1336,7 +1336,7 @@ gtk_label_buildable_custom_tag_start (GtkBuildable *buildable,
43
+
44
+ parser_data = g_slice_new0 (PangoParserData);
45
+ parser_data->builder = g_object_ref (builder);
46
+ - parser_data->object = g_object_ref (buildable);
47
+ + parser_data->object = (GObject *) g_object_ref (buildable);
48
+ *parser = pango_parser;
49
+ *data = parser_data;
50
+ return TRUE;
51
+ diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
52
+ index b984193ca3375223..ba4e472dea4ebd77 100644
53
+ --- a/gtk/gtktoolpalette.c
54
+ +++ b/gtk/gtktoolpalette.c
55
+ @@ -734,7 +734,7 @@ gtk_tool_palette_add (GtkContainer *container,
56
+
57
+ g_ptr_array_add (palette->priv->groups, info);
58
+ info->pos = palette->priv->groups->len - 1;
59
+ - info->widget = g_object_ref_sink (child);
60
+ + info->widget = (GtkToolItemGroup *)g_object_ref_sink (child);
61
+
62
+ gtk_widget_set_parent (child, GTK_WIDGET (palette));
63
+ }
64
+ diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
65
+ index 89301eb91d21c793..0d2d15b4883a7110 100644
66
+ --- a/gtk/gtktreeview.c
67
+ +++ b/gtk/gtktreeview.c
68
+ @@ -14147,7 +14147,7 @@ gtk_tree_view_set_search_entry (GtkTreeView *tree_view,
69
+
70
+ if (entry)
71
+ {
72
+ - tree_view->priv->search_entry = g_object_ref (entry);
73
+ + tree_view->priv->search_entry = GTK_WIDGET (g_object_ref (entry));
74
+ tree_view->priv->search_custom_entry_set = TRUE;
75
+
76
+ if (tree_view->priv->search_entry_changed_id == 0)
77
+ diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
78
+ index d8f6023ba3ae164c..b6d7b815505760da 100644
79
+ --- a/gtk/gtkwidget.c
80
+ +++ b/gtk/gtkwidget.c
81
+ @@ -10686,7 +10686,7 @@ gtk_widget_buildable_custom_tag_start (GtkBuildable *buildable,
82
+ AccelGroupParserData *parser_data;
83
+
84
+ parser_data = g_slice_new0 (AccelGroupParserData);
85
+ - parser_data->object = g_object_ref (buildable);
86
+ + parser_data->object = (GObject *)g_object_ref (buildable);
87
+ *parser = accel_group_parser;
88
+ *data = parser_data;
89
+ return TRUE;
90
+ diff --git a/modules/printbackends/cups/gtkprintbackendcups.c b/modules/printbackends/cups/gtkprintbackendcups.c
91
+ index 2a000dc16ff57582..e081a70c45743fd2 100644
92
+ --- a/modules/printbackends/cups/gtkprintbackendcups.c
93
+ +++ b/modules/printbackends/cups/gtkprintbackendcups.c
94
+ @@ -3479,7 +3479,7 @@ cups_request_ppd (GtkPrinter *printer)
95
+ g_io_channel_set_encoding (data->ppd_io, NULL, NULL);
96
+ g_io_channel_set_close_on_unref (data->ppd_io, TRUE);
97
+
98
+ - data->printer = g_object_ref (printer);
99
+ + data->printer = (GtkPrinterCups *) g_object_ref (printer);
100
+
101
+ resource = g_strdup_printf ("/printers/%s.ppd",
102
+ gtk_printer_cups_get_ppd_name (GTK_PRINTER_CUPS (printer)));
103
+ diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c
104
+ index 36c41f78a42fb928..c556734b72ef71b0 100644
105
+ --- a/tests/testentrycompletion.c
106
+ +++ b/tests/testentrycompletion.c
107
+ @@ -237,7 +237,7 @@ animation_timer (GtkEntryCompletion *completion)
108
+ {
109
+ g_print ("removing model!\n");
110
+
111
+ - old_store = g_object_ref (gtk_entry_completion_get_model (completion));
112
+ + old_store = GTK_LIST_STORE (g_object_ref (gtk_entry_completion_get_model (completion)));
113
+ gtk_entry_completion_set_model (completion, NULL);
114
+ }
115
+ else
116
+ commit 018a4255624928fb7d951f1d1c89196fe77e8267
117
+ Author: Cosimo Cecchi <cosimoc@gnome.org>
118
+ Date: Mon Feb 18 19:37:20 2013 -0500
119
+
120
+ immodule: fix a GCC warning
121
+
122
+ diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
123
+ index 1fcb17a7d87f197c..445b2be87f57742f 100644
124
+ --- a/gtk/gtkimmodule.c
125
+ +++ b/gtk/gtkimmodule.c
126
+ @@ -662,7 +662,7 @@ lookup_immodule (gchar **immodules_list)
127
+ gboolean found;
128
+ gchar *context_id;
129
+ found = g_hash_table_lookup_extended (contexts_hash, *immodules_list,
130
+ - &context_id, NULL);
131
+ + (gpointer *) &context_id, NULL);
132
+ if (found)
133
+ return context_id;
134
+ }
135
+ Partial backport of:
136
+
137
+ commit 345d865ac6b2f7760503ab144dd68e6062438b80
138
+ Author: Matthias Clasen <mclasen@redhat.com>
139
+ Date: Wed Jan 18 00:57:20 2012 -0500
140
+
141
+ GtkScale: Fix late setting of marks
142
+
143
+ diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
144
+ index 4317523fb8f1918a..a573b2f6ba203b92 100644
145
+ --- a/gtk/gtkscale.c
146
+ +++ b/gtk/gtkscale.c
147
+ @@ -1471,7 +1471,7 @@ gtk_scale_add_mark (GtkScale *scale,
148
+ mark->position = position;
149
+
150
+ priv->marks = g_slist_insert_sorted_with_data (priv->marks, mark,
151
+ - (GCompareFunc) compare_marks,
152
+ + compare_marks,
153
+ GINT_TO_POINTER (
154
+ gtk_range_get_inverted (GTK_RANGE (scale))
155
+ ));
156
+ Return the expected GObject * type. This was not fixed upstream before
157
+ this file was removed.
158
+
159
+ diff --git a/gtk/gtkuimanager.c b/gtk/gtkuimanager.c
160
+ index d004cf1ed3a2be11..8cbeda9e85b8f460 100644
161
+ --- a/gtk/gtkuimanager.c
162
+ +++ b/gtk/gtkuimanager.c
163
+ @@ -503,7 +503,7 @@ gtk_ui_manager_buildable_construct_child (GtkBuildable *buildable,
164
+ g_signal_connect (widget, "hierarchy-changed",
165
+ G_CALLBACK (child_hierarchy_changed_cb),
166
+ GTK_UI_MANAGER (buildable));
167
+ - return g_object_ref (widget);
168
+ + return G_OBJECT (g_object_ref (widget));
169
+ }
170
+
171
+ static void
172
+ Part of this commit upstream:
173
+
174
+ commit ca94ff10ce2ea57bfde7692aaa558b1260c9ff75
175
+ Author: Daniel Boles <dboles.src@gmail.com>
176
+ Date: Fri Jun 29 20:00:06 2018 +0100
177
+
178
+ testsuite/gtk/defaultvalue: Actually build...& fix
179
+
180
+ It looks like this got dropped during the move from autotools and never
181
+ restored. I can see why, since making it work wasn't a hugely fun task!
182
+
183
+ Notes on some less then obvious details:
184
+ * PlacesSidebar is private now and didn't seem to be to be particularly
185
+ easy to adapt to, so this moves to checking for it by name, not TYPE.
186
+ I couldn't find a (fast) better way; if you know how, please clean up
187
+ * added 2 casts to avoid warnings from the new type-propagating ref()
188
+ * GdkClipboard and GdkContentProvider need some properties dodged
189
+ * GtkToolItemGroup is gone
190
+ * fixed indentation and used TypeName:property-name syntax in a print()
191
+
192
+ diff --git a/gtk/tests/defaultvalue.c b/gtk/tests/defaultvalue.c
193
+ index 64a113c955822af0..b78dcd6f59353102 100644
194
+ --- a/gtk/tests/defaultvalue.c
195
+ +++ b/gtk/tests/defaultvalue.c
196
+ @@ -91,13 +91,13 @@ test_type (gconstpointer data)
197
+ klass = g_type_class_ref (type);
198
+
199
+ if (g_type_is_a (type, GTK_TYPE_SETTINGS))
200
+ - instance = g_object_ref (gtk_settings_get_default ());
201
+ + instance = G_OBJECT (g_object_ref (gtk_settings_get_default ()));
202
+ else if (g_type_is_a (type, GDK_TYPE_PANGO_RENDERER))
203
+ - instance = g_object_ref (gdk_pango_renderer_get_default (gdk_screen_get_default ()));
204
+ + instance = G_OBJECT (g_object_ref (gdk_pango_renderer_get_default (gdk_screen_get_default ())));
205
+ else if (g_type_is_a (type, GDK_TYPE_PIXMAP))
206
+ - instance = g_object_ref (gdk_pixmap_new (NULL, 1, 1, 1));
207
+ + instance = G_OBJECT (g_object_ref (gdk_pixmap_new (NULL, 1, 1, 1)));
208
+ else if (g_type_is_a (type, GDK_TYPE_COLORMAP))
209
+ - instance = g_object_ref (gdk_colormap_new (gdk_visual_get_best (), TRUE));
210
+ + instance = G_OBJECT (g_object_ref (gdk_colormap_new (gdk_visual_get_best (), TRUE)));
211
+ else if (g_type_is_a (type, GDK_TYPE_WINDOW))
212
+ {
213
+ GdkWindowAttr attributes;
214
+ @@ -105,7 +105,7 @@ test_type (gconstpointer data)
215
+ attributes.event_mask = 0;
216
+ attributes.width = 100;
217
+ attributes.height = 100;
218
+ - instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
219
+ + instance = G_OBJECT (g_object_ref (gdk_window_new (NULL, &attributes, 0)));
220
+ }
221
+ else
222
+ instance = g_object_new (type, NULL);
223
+ Convert to the expected pointer. This was not fixed before the file
224
+ was removed upstream.
225
+
226
+ diff --git a/modules/other/gail/gailtreeview.c b/modules/other/gail/gailtreeview.c
227
+ index 23923c59a16a6efb..ac6ff0a1c4a2fe22 100644
228
+ --- a/modules/other/gail/gailtreeview.c
229
+ +++ b/modules/other/gail/gailtreeview.c
230
+ @@ -995,7 +995,7 @@ gail_tree_view_ref_child (AtkObject *obj,
231
+ gail_cell_add_state (cell, ATK_STATE_FOCUSABLE, FALSE);
232
+ if (focus_index == i)
233
+ {
234
+ - gailview->focus_cell = g_object_ref (cell);
235
+ + gailview->focus_cell = ATK_OBJECT (g_object_ref (cell));
236
+ gail_cell_add_state (cell, ATK_STATE_FOCUSED, FALSE);
237
+ g_signal_emit_by_name (gailview,
238
+ "active-descendant-changed",
239
+ commit bcfc53066ae54d0adbf282d5678d9a4a7083b4d3
240
+ Author: Javier Jardón <jjardon@gnome.org>
241
+ Date: Mon May 3 02:56:29 2010 +0200
242
+
243
+ tests: Too many arguments in call to 'create_menu'
244
+
245
+ diff --git a/tests/testmenubars.c b/tests/testmenubars.c
246
+ index 416a93986121d858..853d822a9b6a7925 100644
247
+ --- a/tests/testmenubars.c
248
+ +++ b/tests/testmenubars.c
249
+ @@ -21,7 +21,7 @@
250
+ #include <gtk/gtk.h>
251
+
252
+ static GtkWidget *
253
+ -create_menu (depth)
254
+ +create_menu (guint depth)
255
+ {
256
+ GtkWidget *menu;
257
+ GtkWidget *menuitem;
258
+ @@ -70,19 +70,19 @@ create_menubar (GtkPackDirection pack_dir,
259
+ menuitem = gtk_image_menu_item_new_from_stock (GTK_STOCK_HOME, NULL);
260
+ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
261
+ gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
262
+ - menu = create_menu (2, TRUE);
263
+ + menu = create_menu (2);
264
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
265
+
266
+ menuitem = gtk_menu_item_new_with_label ("foo");
267
+ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
268
+ gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
269
+ - menu = create_menu (2, TRUE);
270
+ + menu = create_menu (2);
271
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
272
+
273
+ menuitem = gtk_menu_item_new_with_label ("bar");
274
+ gtk_menu_shell_append (GTK_MENU_SHELL (menubar), menuitem);
275
+ gtk_label_set_angle (GTK_LABEL (GTK_BIN (menuitem)->child), angle);
276
+ - menu = create_menu (2, TRUE);
277
+ + menu = create_menu (2);
278
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
279
+
280
+ return menubar;
281
+