Skip to content

Commit

Permalink
general: Release 4.0 (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego-Ivan authored Dec 15, 2023
2 parents 0556ae4 + dce07a0 commit cfb3779
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 7 deletions.
11 changes: 6 additions & 5 deletions data/io.github.diegoivan.pdf_metadata_editor.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
</keywords>

<releases>
<release version="3.6" date="2023-11-03">
<release version="4.0" date="2023-12-14">
<description translatable="no">
<p>Paper Clip Version 3.6: Keyboard Accelerated</p>
<p>The latest release of Paper Clip brings a couple of small improvements: </p>
<p>Paper Clip v4.0 is here!</p>
<p>This new release brings some quality of life improvements and new features:</p>
<ul>
<li>Ctrl+Return now adds a new keyword in the list</li>
<li>Updated Translations</li>
<li>Paper Clip now supports long-awaited XMP metadata! You can (finally) edit XMP properties for documents that support it and keep them in sync with the ordinary metadata.</li>
<li>Better thumbnails (again): Thumbnails now use less memory and load faster. This is specially noticeable for large documents, which in the most extreme cases use 80-90% less memory. There is still room for improvement, so expect more changes in this lane in upcoming releases :nerd:</li>
<li>The About Window now shows debug information, useful for bug reports.</li>
</ul>
</description>
</release>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('pdf-metadata-editor', ['c', 'vala'],
version: '3.6',
version: '4.0',
meson_version: '>= 0.59.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
Expand Down
24 changes: 24 additions & 0 deletions src/application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

public class PaperClip.Application : Adw.Application {
private Window main_window;
private string? debug_information = null;

public Application () {
Object (application_id: "io.github.diegoivan.pdf_metadata_editor",
Expand Down Expand Up @@ -153,6 +154,7 @@ public class PaperClip.Application : Adw.Application {
application_name = "Paper Clip",
copyright = "© 2023 Diego Iván M.E",
developer_name = "Diego Iván M.E",
debug_info = generate_debug_info (),
developers = developers,
artists = artists,
issue_url = "https://github.com/Diego-Ivan/Paper-Clip/issues",
Expand All @@ -166,4 +168,26 @@ public class PaperClip.Application : Adw.Application {

about.present ();
}

private string? generate_debug_info () {
if (debug_information != null) {
return debug_information;
}

bool under_flatpak = FileUtils.test ("/.flatpak-info", EXISTS);

debug_information =
@"Paper Clip $(Config.VERSION)
Libraries:
Gtk $(Gtk.get_major_version ()).$(Gtk.get_minor_version ()).$(Gtk.get_micro_version ()) (Runtime)
Libadwaita: $(Adw.VERSION_S) (Compile Time)
Poppler: $(Poppler.get_version ()) (Compile Time)
Exempi: $(Config.EXEMPI_VERSION)
GdkPixbuf $(Gdk.PIXBUF_VERSION) (Compile Time)
Running under Flatpak? $under_flatpak
OS Information? $(Environment.get_os_info (OsInfoKey.PRETTY_NAME))";

return debug_information;
}
}
5 changes: 4 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ hidden_scribe_sources = [
'Services/Thumbnailer.vala',
]

exempi_dep = dependency('exempi-2.0')

hidden_scribe_deps = [
dependency('gtk4', version:'>=4.10'),
dependency('libadwaita-1'),
dependency('poppler-glib'),
dependency('exempi-2.0'),
exempi_dep,
]

conf = configuration_data()
Expand All @@ -34,6 +36,7 @@ conf.set_quoted('VERSION', meson.project_version())
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
conf.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir')))
conf.set_quoted('GNOMELOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
conf.set_quoted('EXEMPI_VERSION', exempi_dep.version () + ' (Compile Time)')
configure_file(output: 'config.h', configuration: conf)

add_project_arguments(
Expand Down
2 changes: 2 additions & 0 deletions vapi/Config.vapi
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ namespace Config {
public const string GETTEXT_PACKAGE;
public const string GNOMELOCALEDIR;
public const string DATADIR;

public const string EXEMPI_VERSION;
}

0 comments on commit cfb3779

Please sign in to comment.