Mon, 12 Aug 2024 23:25:52 -0500
Use gtk_window_present instead of gtk_window_present_with_time
The latter was deprecated in GTK 4.14.0 while the other one has been around
forever.
Testing Done:
Called in the turtles and run in the devenv.
Reviewed at https://reviews.imfreedom.org/r/3388/
|
41485
74a04628357f
Remove some no longer necessary meson options
Gary Kramlich <grim@reaperworld.com>
parents:
41066
diff
changeset
|
1 | subdir('icons') |
|
41066
00e6bda3ef95
Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
39034
diff
changeset
|
2 | |
|
00e6bda3ef95
Add a Meson devenv configuration.
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
39034
diff
changeset
|
3 | devenv.prepend('XDG_DATA_DIRS', meson.current_source_dir()) |
|
42499
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
4 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
5 | if host_machine.system() == 'windows' |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
6 | subdir_done() |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
7 | endif |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
8 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
9 | i18n = import('i18n') |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
10 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
11 | ############################################################################### |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
12 | # MetaInfo file |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
13 | ############################################################################### |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
14 | metainfo_base = 'im.pidgin.Pidgin3.metainfo.xml' |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
15 | metainfo_file = meson.current_source_dir() / metainfo_base |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
16 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
17 | appstreamcli_exe = find_program('appstreamcli', required: false) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
18 | if appstreamcli_exe.found() |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
19 | test( |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
20 | 'validate pidgin3 metainfo file', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
21 | appstreamcli_exe, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
22 | args: ['validate', '--no-net', '--pedantic', metainfo_file], |
|
42634
220ad1d4e5f1
Fix the developer name and component id in our appdate metafile
Gary Kramlich <grim@reaperworld.com>
parents:
42499
diff
changeset
|
23 | verbose: true, |
|
42499
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
24 | ) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
25 | endif |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
26 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
27 | i18n.merge_file( |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
28 | input: metainfo_file, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
29 | output: metainfo_base, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
30 | type: 'xml', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
31 | po_dir: meson.project_source_root() / 'po', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
32 | install: true, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
33 | install_dir: get_option('datadir') / 'metainfo', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
34 | ) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
35 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
36 | ############################################################################### |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
37 | # Desktop file |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
38 | ############################################################################### |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
39 | PIDGIN_DESKTOP_FILE = 'im.pidgin.Pidgin3.desktop' |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
40 | desktop_file_in = configure_file( |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
41 | input : f'@PIDGIN_DESKTOP_FILE@.in.in', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
42 | output : f'@PIDGIN_DESKTOP_FILE@.in', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
43 | configuration : conf, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
44 | ) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
45 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
46 | i18n.merge_file( |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
47 | input : desktop_file_in, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
48 | output : PIDGIN_DESKTOP_FILE, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
49 | po_dir : meson.project_source_root() / 'po', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
50 | type : 'desktop', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
51 | install : true, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
52 | install_dir : get_option('datadir') / 'applications', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
53 | ) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
54 | |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
55 | desktop_file_validate_exe = find_program('desktop-file-validate', required: false) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
56 | if desktop_file_validate_exe.found() |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
57 | test( |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
58 | 'validate pidgin3 desktop file', |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
59 | desktop_file_validate_exe, |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
60 | args: [meson.current_build_dir() / PIDGIN_DESKTOP_FILE], |
|
42634
220ad1d4e5f1
Fix the developer name and component id in our appdate metafile
Gary Kramlich <grim@reaperworld.com>
parents:
42499
diff
changeset
|
61 | verbose: true, |
|
42499
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
62 | ) |
|
294a948bab87
Replace the old appdata file with an appstream metainfo file
Gary Kramlich <grim@reaperworld.com>
parents:
41485
diff
changeset
|
63 | endif |