From 73c8b59fe1ccf9fcc6ff7ca276ed4b447222d3bd Mon Sep 17 00:00:00 2001 From: Giant Pink Robots! Date: Wed, 31 Jan 2024 22:26:30 +0300 Subject: [PATCH] 31 January 2024 22:26 --- README.md | 15 +++++++++++---- ...o.github.giantpinkrobots.varia.metainfo.xml.in | 6 ++---- meson.build | 2 +- src/variamain.py | 7 +++++-- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 82cb618..260e996 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,18 @@ You can get Varia via the [AUR](https://aur.archlinux.org/packages/varia) as wel The easiest way of building Varia is to use GNOME Builder. Just clone this repository, and open the folder using Builder. Then, press run. -If you don't want to utilize Flatpak to build Varia you need meson, python-setuptools, Gtk4 and its development libraries, Libadwaita, aria2 and the aria2p python package. To install the meson build system and aria2 on certain Linux systems: +If you don't want to utilize Flatpak to build Varia you need: +- meson +- python-setuptools +- Gtk4 and its development libraries +- Libadwaita +- gettext +- aria2 and the aria2p python package. +To install the ones besides aria2p on some Linux systems: ``` -Ubuntu, Debian, Mint etc: sudo apt install meson ninja-build aria2 python-setuptools libgtk-4-dev libadwaita-1-0 -Fedora, RHEL etc: sudo dnf install meson ninja-build aria2 python-setuptools gtk4-devel libadwaita -Arch, EndeavourOS, Manjaro etc: sudo pacman -S meson aria2 python-setuptools gtk4 libadwaita +Ubuntu, Debian, Mint etc: sudo apt install meson ninja-build aria2 python-setuptools libgtk-4-dev libadwaita-1-0 gettext +Fedora, RHEL etc: sudo dnf install meson ninja-build aria2 python-setuptools gtk4-devel libadwaita gettext +Arch, EndeavourOS, Manjaro etc: sudo pacman -S meson aria2 python-setuptools gtk4 libadwaita gettext ``` To install aria2p using pip (your distro probably doesn't have it in its repos - it's on the AUR for Arch): ``` diff --git a/data/io.github.giantpinkrobots.varia.metainfo.xml.in b/data/io.github.giantpinkrobots.varia.metainfo.xml.in index 6c6b3c3..bb37a43 100644 --- a/data/io.github.giantpinkrobots.varia.metainfo.xml.in +++ b/data/io.github.giantpinkrobots.varia.metainfo.xml.in @@ -36,11 +36,9 @@ Varia utilizes GTK4 and Libadwaita to provide a easy to use interface that integ - + -

- UI enhancements and cleanup.

-

- Important bugfixes.

-

- Initial French language support.

+

Bug fixes.

diff --git a/meson.build b/meson.build index fabbdde..d161b1b 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('varia', - version: 'v2024.1.26', + version: 'v2024.1.31', meson_version: '>= 0.62.0', default_options: [ 'warning_level=2', 'werror=false', ], ) diff --git a/src/variamain.py b/src/variamain.py index acd2c08..d5722b4 100644 --- a/src/variamain.py +++ b/src/variamain.py @@ -1,4 +1,4 @@ -variaVersion = "v2024.1.26" +variaVersion = "v2024.1.31" import gi import sys @@ -403,6 +403,9 @@ def total_download_speed_get(self, downloads, total_download_speed_label): def create_actionrow(self, url): filename = url.split("/")[-1].split("?")[0] + filename_shortened = filename[:40] + if (filename != filename_shortened): + filename_shortened = filename_shortened + "..." download_item = Adw.Bin() style_context = download_item.get_style_context() @@ -420,7 +423,7 @@ def create_actionrow(self, url): download_item.set_child(box_2) - filename_label = Gtk.Label(label=filename) + filename_label = Gtk.Label(label=filename_shortened) filename_label.set_halign(Gtk.Align.START) box.append(filename_label)