Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package whatsapp-for-linux for openSUSE:Factory checked in at 2022-12-26 23:28:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/whatsapp-for-linux (Old)
and /work/SRC/openSUSE:Factory/.whatsapp-for-linux.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "whatsapp-for-linux"
Mon Dec 26 23:28:05 2022 rev:3 rq:1045407 version:1.5.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/whatsapp-for-linux/whatsapp-for-linux.changes 2022-10-31 10:44:46.060874279 +0100
+++ /work/SRC/openSUSE:Factory/.whatsapp-for-linux.new.1563/whatsapp-for-linux.changes 2022-12-26 23:28:16.841009550 +0100
@@ -1,0 +2,17 @@
+Mon Dec 26 15:26:31 UTC 2022 - Michael Vetter
+
+- Update to 1.5.1:
+ * Implemented enhancements:
+ + Introduce Prefer Dark Theme #256
+ * Fixed bugs:
+ + Mic not enabled #252
+ + Flatpak and Nvidia 520.65.01 driver compatibility #227
+ * Closed issues:
+ + High CPU usage when the focus is on the main window #115
+ * Merged pull requests:
+ + Updated Dutch translation #258
+ + Update Italian translation #257
+ + Add Mageia Linux to README.md #247
+ + Add Russian translation (ru.po + desktop.in) #246
+
+-------------------------------------------------------------------
Old:
----
whatsapp-for-linux-1.5.0.tar.xz
New:
----
whatsapp-for-linux-1.5.1.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ whatsapp-for-linux.spec ++++++
--- /var/tmp/diff_new_pack.TgVHou/_old 2022-12-26 23:28:17.257011980 +0100
+++ /var/tmp/diff_new_pack.TgVHou/_new 2022-12-26 23:28:17.261012003 +0100
@@ -17,7 +17,7 @@
Name: whatsapp-for-linux
-Version: 1.5.0
+Version: 1.5.1
Release: 0
Summary: WhatsApp for Linux
License: GPL-3.0-only
++++++ _service ++++++
--- /var/tmp/diff_new_pack.TgVHou/_old 2022-12-26 23:28:17.297012214 +0100
+++ /var/tmp/diff_new_pack.TgVHou/_new 2022-12-26 23:28:17.301012237 +0100
@@ -2,7 +2,7 @@
<service name="tar_scm" mode="disabled">
<param name="scm">git</param>
<param name="url">https://github.com/eneshecan/whatsapp-for-linux.git</param>
- <param name="revision">v1.5.0</param>
+ <param name="revision">v1.5.1</param>
<param name="match-tag">v*</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
++++++ whatsapp-for-linux-1.5.0.tar.xz -> whatsapp-for-linux-1.5.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/.clang-format new/whatsapp-for-linux-1.5.1/.clang-format
--- old/whatsapp-for-linux-1.5.0/.clang-format 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/.clang-format 2022-12-23 12:53:17.000000000 +0100
@@ -1,13 +1,25 @@
---
Language: Cpp
-AlignAfterOpenBracket: Align
-AlignConsecutiveAssignments: None
-AlignConsecutiveBitFields: None
-AlignConsecutiveDeclarations: None
-AlignConsecutiveMacros: None
-AlignEscapedNewlines: Right
+Standard: Auto
+IndentWidth: 4
+TabWidth: 4
+UseTab: Never
+MaxEmptyLinesToKeep: 4
+ColumnLimit: 160
+DeriveLineEnding: true
+SortIncludes: Never
+SortUsingDeclarations: false
+NamespaceIndentation: All
+FixNamespaceComments: false
+PointerAlignment: Left
+AlignAfterOpenBracket: DontAlign
+AlignConsecutiveAssignments: Consecutive
+AlignConsecutiveBitFields: Consecutive
+AlignConsecutiveDeclarations: Consecutive
+AlignConsecutiveMacros: Consecutive
+AlignEscapedNewlines: Left
AlignOperands: Align
-AlignTrailingComments: false
+AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
@@ -18,55 +30,31 @@
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false
-AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
-AlwaysBreakTemplateDeclarations: MultiLine
-BinPackArguments: false
+AlwaysBreakTemplateDeclarations: Yes
+BinPackArguments: true
BinPackParameters: true
-BreakAfterJavaFieldAnnotations: false
-BreakBeforeBinaryOperators: None
+BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
-BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
-BreakConstructorInitializers: BeforeColon
-BreakConstructorInitializersBeforeComma: true
-BreakInheritanceList: BeforeColon
+BreakConstructorInitializers: BeforeComma
+BreakInheritanceList: BeforeComma
BreakStringLiterals: false
-ColumnLimit: 160
+BreakBeforeConceptDeclarations: Always
CompactNamespaces: true
-ConstructorInitializerAllOnOneLineOrOnePerLine: false
+PackConstructorInitializers: Never
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
-DeriveLineEnding: true
-DerivePointerAlignment: false
-DisableFormat: false
-FixNamespaceComments: false
IndentAccessModifiers: true
IndentCaseBlocks: false
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentPPDirectives: None
-IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
-MaxEmptyLinesToKeep: 2
-NamespaceIndentation: All
-PenaltyBreakAssignment: 2
-PenaltyBreakBeforeFirstCallParameter: 18
-PenaltyBreakComment: 226
-PenaltyBreakFirstLessLess: 183
-PenaltyBreakString: 540
-PenaltyBreakTemplateDeclaration: 10
-PenaltyExcessCharacter: 1145584
-PenaltyReturnTypeOnItsOwnLine: 58
-PointerAlignment: Left
ReflowComments: false
-SortIncludes: Never
-SortUsingDeclarations: false
-SpaceAfterCStyleCast: false
-SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
@@ -77,15 +65,10 @@
SpaceBeforeSquareBrackets: false
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
-SpacesBeforeTrailingComments: 0
-SpacesInAngles: false
-SpacesInCStyleCastParentheses: false
+SpacesBeforeTrailingComments: 2
+SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
-Standard: Auto
-TabWidth: 4
-UseCRLF: false
-UseTab: Never
...
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/.github/workflows/install.yml new/whatsapp-for-linux-1.5.1/.github/workflows/install.yml
--- old/whatsapp-for-linux-1.5.0/.github/workflows/install.yml 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/.github/workflows/install.yml 2022-12-23 12:53:17.000000000 +0100
@@ -7,7 +7,7 @@
branches: [ master ]
jobs:
- build:
+ install:
runs-on: ubuntu-latest
steps:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/.github/workflows/linter.yml new/whatsapp-for-linux-1.5.1/.github/workflows/linter.yml
--- old/whatsapp-for-linux-1.5.0/.github/workflows/linter.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/whatsapp-for-linux-1.5.1/.github/workflows/linter.yml 2022-12-23 12:53:17.000000000 +0100
@@ -0,0 +1,22 @@
+name: Linter
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ linter:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Lint clang-format
+ uses: DoozyX/clang-format-lint-action@v0.15
+ with:
+ source: './src'
+ extensions: 'hpp,cpp'
+ clangFormatVersion: 15
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/.github/workflows/release.yml new/whatsapp-for-linux-1.5.1/.github/workflows/release.yml
--- old/whatsapp-for-linux-1.5.0/.github/workflows/release.yml 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/.github/workflows/release.yml 2022-12-23 12:53:17.000000000 +0100
@@ -5,7 +5,7 @@
branches: [ release ]
jobs:
- build:
+ release:
runs-on: ubuntu-latest
steps:
@@ -14,7 +14,7 @@
- name: Install Dependencies
run: |
- sudo apt update && sudo apt upgrade
+ sudo apt update
sudo apt -y install build-essential intltool cmake pkg-config libgtkmm-3.0-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev debhelper zsync squashfs-tools
- name: Build & Install
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/CMakeLists.txt new/whatsapp-for-linux-1.5.1/CMakeLists.txt
--- old/whatsapp-for-linux-1.5.0/CMakeLists.txt 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/CMakeLists.txt 2022-12-23 12:53:17.000000000 +0100
@@ -1,11 +1,11 @@
cmake_minimum_required(VERSION 3.12)
project(
- whatsapp-for-linux
- VERSION 1.5.0
- DESCRIPTION "An unofficial WhatsApp desktop application for Linux"
- HOMEPAGE_URL "https://github.com/eneshecan/whatsapp-for-linux"
- LANGUAGES C CXX
-)
+ whatsapp-for-linux
+ VERSION 1.5.1
+ DESCRIPTION "An unofficial WhatsApp desktop application for Linux"
+ HOMEPAGE_URL "https://github.com/eneshecan/whatsapp-for-linux"
+ LANGUAGES C CXX
+ )
include(GNUInstallDirs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/README.md new/whatsapp-for-linux-1.5.1/README.md
--- old/whatsapp-for-linux-1.5.0/README.md 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/README.md 2022-12-23 12:53:17.000000000 +0100
@@ -21,18 +21,23 @@
<a href="https://github.com/OpenMandrivaAssociation/whatsapp-for-linux/tree/master">
<img align="center" alt="Get it from the OpenMandrive Cooker" src="https://www.openmandriva.org/squelettes/img/OM-300pl.png" width="120">
</a>
+ <a href="https://madb.mageia.org/package/show/name/whatsapp-for-linux">
+ <img align="center" alt="Get it from Mageia" src="https://www.mageia.org/g/media/logo/mageia-2013.png" width="120">
+ </a>
</p>
-[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Build/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions)
-[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Install/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions)
-[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Release/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions)
+[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Linter/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/linter.yml)
+[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Build/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/build.yml)
+[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Install/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/install.yml)
+[![Action Status](https://github.com/eneshecan/whatsapp-for-linux/workflows/Release/badge.svg)](https://github.com/eneshecan/whatsapp-for-linux/actions/workflows/release.yml)
![App Window](screenshot/app.png)
## About
-WhatsApp for Linux is an unofficial WhatsApp desktop application written in C++ with the help of gtkmm and WebKitGtk libraries. Check out [wiki](https://github.com/eneshecan/whatsapp-for-linux/wiki) for further details.
+WhatsApp for Linux is an unofficial WhatsApp desktop application written in C++ with the help of gtkmm and WebKitGtk libraries.
+Check out [wiki](https://github.com/eneshecan/whatsapp-for-linux/wiki) for further details.
## Features
@@ -48,9 +53,11 @@
* Open chat by phone number
-## Using whatsapp-for-linux
+## Using WhatsApp for Linux
+
+The application is available from a number of Linux distributions:
-Check out [releases](https://github.com/eneshecan/whatsapp-for-linux/releases) for available packages.
+[![Packaging Status](https://repology.org/badge/vertical-allrepos/whatsapp-for-linux.svg)](https://repology.org/project/whatsapp-for-linux/versions)
## Dependencies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/LINGUAS new/whatsapp-for-linux-1.5.1/po/LINGUAS
--- old/whatsapp-for-linux-1.5.0/po/LINGUAS 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/po/LINGUAS 2022-12-23 12:53:17.000000000 +0100
@@ -1,4 +1,5 @@
# Keep this file sorted alphabetically, one language code per line
it
nl
+ru
tr
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/it.po new/whatsapp-for-linux-1.5.1/po/it.po
--- old/whatsapp-for-linux-1.5.0/po/it.po 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/po/it.po 2022-12-23 12:53:17.000000000 +0100
@@ -7,8 +7,8 @@
msgstr ""
"Project-Id-Version: whatsapp-for-linux\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-10-27 09:20+0200\n"
-"PO-Revision-Date: 2022-10-26 19:57+0200\n"
+"POT-Creation-Date: 2022-12-10 22:56+0100\n"
+"PO-Revision-Date: 2022-12-11 17:15+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: it\n"
@@ -16,7 +16,7 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 3.1.1\n"
+"X-Generator: Poedit 3.2.2\n"
#: ../src/ui/MainWindow.cpp:287 ../src/ui/TrayIcon.cpp:46
#: ../resource/ui/MainWindow.ui.h:4
@@ -35,15 +35,15 @@
msgid "Github Repository"
msgstr "GitHub"
-#: ../src/ui/PreferencesWindow.cpp:30
+#: ../src/ui/PreferencesWindow.cpp:35
msgid "On Demand"
msgstr "Manuale"
-#: ../src/ui/PreferencesWindow.cpp:31
+#: ../src/ui/PreferencesWindow.cpp:36
msgid "Always"
msgstr "Sempre"
-#: ../src/ui/PreferencesWindow.cpp:32
+#: ../src/ui/PreferencesWindow.cpp:37
msgid "Never"
msgstr "Mai"
@@ -88,7 +88,7 @@
msgid "Fullscreen"
msgstr "Schermo intero"
-#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:15
+#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:18
msgid "Preferences"
msgstr "Preferenze"
@@ -146,22 +146,34 @@
msgstr "Generale"
#: ../resource/ui/PreferencesWindow.ui.h:10
+msgid "Prefer Dark Theme"
+msgstr "Preferisci tema scuro"
+
+#: ../resource/ui/PreferencesWindow.ui.h:11
+msgid "Prefer dark theme for the application if system theme includes a dark variant"
+msgstr "Usa un tema scuro se il tema di sistema include una variante scura"
+
+#: ../resource/ui/PreferencesWindow.ui.h:12
+msgid "Appearance"
+msgstr "Aspetto"
+
+#: ../resource/ui/PreferencesWindow.ui.h:13
msgid "Hardware Acceleration"
msgstr "Accelerazione hardware"
-#: ../resource/ui/PreferencesWindow.ui.h:11
+#: ../resource/ui/PreferencesWindow.ui.h:14
msgid "Allow Permissions"
msgstr "Consenti permessi"
-#: ../resource/ui/PreferencesWindow.ui.h:12
+#: ../resource/ui/PreferencesWindow.ui.h:15
msgid "Set hardware acceleration policy used by webkit"
msgstr "Imposta la politica di accelerazione hardware usata da webkit"
-#: ../resource/ui/PreferencesWindow.ui.h:13
+#: ../resource/ui/PreferencesWindow.ui.h:16
msgid "Allow permissions on application startup"
msgstr "Consenti i permessi all'avvio dell'applicazione"
-#: ../resource/ui/PreferencesWindow.ui.h:14
+#: ../resource/ui/PreferencesWindow.ui.h:17
msgid "Web"
msgstr "Web"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/nl.po new/whatsapp-for-linux-1.5.1/po/nl.po
--- old/whatsapp-for-linux-1.5.0/po/nl.po 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/po/nl.po 2022-12-23 12:53:17.000000000 +0100
@@ -7,8 +7,8 @@
msgstr ""
"Project-Id-Version: whatsapp-for-linux\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-10-27 09:20+0200\n"
-"PO-Revision-Date: 2022-10-24 13:19+0200\n"
+"POT-Creation-Date: 2022-12-10 22:56+0100\n"
+"PO-Revision-Date: 2022-12-11 19:42+0100\n"
"Last-Translator: Heimen Stoffels \n"
"Language-Team: Dutch\n"
"Language: nl\n"
@@ -16,7 +16,7 @@
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Lokalize 22.08.2\n"
+"X-Generator: Poedit 3.2.2\n"
#: ../src/ui/MainWindow.cpp:287 ../src/ui/TrayIcon.cpp:46
#: ../resource/ui/MainWindow.ui.h:4
@@ -35,15 +35,15 @@
msgid "Github Repository"
msgstr "Github"
-#: ../src/ui/PreferencesWindow.cpp:30
+#: ../src/ui/PreferencesWindow.cpp:35
msgid "On Demand"
msgstr "Op afroep"
-#: ../src/ui/PreferencesWindow.cpp:31
+#: ../src/ui/PreferencesWindow.cpp:36
msgid "Always"
msgstr "Altijd"
-#: ../src/ui/PreferencesWindow.cpp:32
+#: ../src/ui/PreferencesWindow.cpp:37
msgid "Never"
msgstr "Nooit"
@@ -88,7 +88,7 @@
msgid "Fullscreen"
msgstr "Schermvullende weergave"
-#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:15
+#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:18
msgid "Preferences"
msgstr "Instellingen"
@@ -146,22 +146,34 @@
msgstr "Algemeen"
#: ../resource/ui/PreferencesWindow.ui.h:10
+msgid "Prefer Dark Theme"
+msgstr "Donker thema gebruiken"
+
+#: ../resource/ui/PreferencesWindow.ui.h:11
+msgid "Prefer dark theme for the application if system theme includes a dark variant"
+msgstr "Stel het donkere thema in als het systeemthema een donkere variant kent"
+
+#: ../resource/ui/PreferencesWindow.ui.h:12
+msgid "Appearance"
+msgstr "Vormgeving"
+
+#: ../resource/ui/PreferencesWindow.ui.h:13
msgid "Hardware Acceleration"
msgstr "Hardwareversnelling"
-#: ../resource/ui/PreferencesWindow.ui.h:11
+#: ../resource/ui/PreferencesWindow.ui.h:14
msgid "Allow Permissions"
msgstr "Rechten verlenen"
-#: ../resource/ui/PreferencesWindow.ui.h:12
+#: ../resource/ui/PreferencesWindow.ui.h:15
msgid "Set hardware acceleration policy used by webkit"
msgstr "Stel de door WebKit gebruikte hardwareversnellingsmethode in"
-#: ../resource/ui/PreferencesWindow.ui.h:13
+#: ../resource/ui/PreferencesWindow.ui.h:16
msgid "Allow permissions on application startup"
msgstr "Verleen de vereiste rechten automatisch na het opstarten"
-#: ../resource/ui/PreferencesWindow.ui.h:14
+#: ../resource/ui/PreferencesWindow.ui.h:17
msgid "Web"
msgstr "Web"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/ru.po new/whatsapp-for-linux-1.5.1/po/ru.po
--- old/whatsapp-for-linux-1.5.0/po/ru.po 1970-01-01 01:00:00.000000000 +0100
+++ new/whatsapp-for-linux-1.5.1/po/ru.po 2022-12-23 12:53:17.000000000 +0100
@@ -0,0 +1,187 @@
+# Russian translation file for whatsapp-for-linux
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the whatsapp-for-linux package.
+#
+# Olesya Gerasimenko , 2022.
+msgid ""
+msgstr ""
+"Project-Id-Version: whatsapp-for-linux\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2022-10-27 09:20+0200\n"
+"PO-Revision-Date: 2022-11-11 10:36+0300\n"
+"Last-Translator: Olesya Gerasimenko \n"
+"Language-Team: Basealt Translation Team\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<"
+"=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"X-Generator: Lokalize 22.04.3\n"
+
+#: ../src/ui/MainWindow.cpp:287 ../src/ui/TrayIcon.cpp:46
+#: ../resource/ui/MainWindow.ui.h:4
+msgid "About"
+msgstr "�� ������������������"
+
+#: ../src/ui/MainWindow.cpp:289 ../resource/ui/MainWindow.ui.h:6
+msgid "WhatsApp for Linux"
+msgstr "WhatsApp ������ Linux"
+
+#: ../src/ui/MainWindow.cpp:290
+msgid "An unofficial WhatsApp desktop application for Linux"
+msgstr "�������������������������� �������������������� WhatsApp ������ Linux"
+
+#: ../src/ui/MainWindow.cpp:292
+msgid "Github Repository"
+msgstr "���������������������� ���� GitHub"
+
+#: ../src/ui/PreferencesWindow.cpp:30
+msgid "On Demand"
+msgstr "���� ��������������"
+
+#: ../src/ui/PreferencesWindow.cpp:31
+msgid "Always"
+msgstr "������������"
+
+#: ../src/ui/PreferencesWindow.cpp:32
+msgid "Never"
+msgstr "��������������"
+
+#: ../src/ui/TrayIcon.cpp:45
+msgid "Show"
+msgstr "��������������������"
+
+#: ../src/ui/TrayIcon.cpp:47 ../resource/ui/MainWindow.ui.h:5
+#: ../resource/ui/ShortcutsWindow.ui.h:8
+msgid "Quit"
+msgstr "����������"
+
+#: ../src/ui/WebView.cpp:34
+msgid "Notification Request"
+msgstr "������������ ����������������������"
+
+#: ../src/ui/WebView.cpp:35
+msgid "Would you like to allow notifications?"
+msgstr "������������������ ����������������������?"
+
+#: ../src/ui/WebView.cpp:69
+msgid "Save File"
+msgstr "������������������ ��������"
+
+#: ../src/ui/WebView.cpp:70
+msgid "Ok"
+msgstr "����"
+
+#: ../src/ui/WebView.cpp:71
+msgid "Cancel"
+msgstr "������������"
+
+#: ../src/ui/WebView.cpp:307
+msgid "Unresponsive"
+msgstr "���� ����������������"
+
+#: ../src/ui/WebView.cpp:308
+msgid "The application is not responding. Would you like to reload?"
+msgstr "�������������������� ���� ����������������. �������������������������� ������?"
+
+#: ../resource/ui/MainWindow.ui.h:1
+msgid "Fullscreen"
+msgstr "���� �������� ����������"
+
+#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:15
+msgid "Preferences"
+msgstr "������������������"
+
+#: ../resource/ui/MainWindow.ui.h:3 ../resource/ui/ShortcutsWindow.ui.h:7
+msgid "Keyboard Shortcuts"
+msgstr "�������������������� ������������"
+
+#: ../resource/ui/MainWindow.ui.h:7
+msgid "Refresh"
+msgstr "����������������"
+
+#: ../resource/ui/MainWindow.ui.h:8 ../resource/ui/PhoneNumberDialog.ui.h:1
+msgid "Open chat by phone number"
+msgstr "�������������� ������ ���� ������������ ����������������"
+
+#: ../resource/ui/PhoneNumberDialog.ui.h:2
+msgid "Enter phone number (only digits)"
+msgstr "�������������� ���������� ���������������� (������������ ����������)"
+
+#: ../resource/ui/PreferencesWindow.ui.h:1
+msgid "Close to Tray"
+msgstr "���������������������� �� ������������������ ����������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:2
+msgid "Start in Tray"
+msgstr "������������������ �� ������������������ ����������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:3
+msgid "Start Minimized"
+msgstr "������������������ �� ������������������ ��������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:4
+msgid "Autostart"
+msgstr "��������������������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:5
+msgid "Enable tray icon"
+msgstr "������������ �� ������������������ ����������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:6
+msgid "Start application as closed to tray"
+msgstr "������������������ �������������������� ������������������ �� ������������������ ����������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:7
+msgid "Start application as minimized"
+msgstr "������������������ �������������������� �� ������������������ ��������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:8
+msgid "Start application after system boots"
+msgstr "������������������ �������������������� ���������� ���������������� ��������������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:9
+#: ../resource/ui/ShortcutsWindow.ui.h:2
+msgid "General"
+msgstr "����������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:10
+msgid "Hardware Acceleration"
+msgstr "�������������������� ������������������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:11
+msgid "Allow Permissions"
+msgstr "������������������������ ��������������������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:12
+msgid "Set hardware acceleration policy used by webkit"
+msgstr "�������������������� ���������������� ���������������������� ������������������, ������������������������ webkit"
+
+#: ../resource/ui/PreferencesWindow.ui.h:13
+msgid "Allow permissions on application startup"
+msgstr "������������������������ �������������������� ������ �������������� ��������������������"
+
+#: ../resource/ui/PreferencesWindow.ui.h:14
+msgid "Web"
+msgstr "����������������"
+
+#: ../resource/ui/ShortcutsWindow.ui.h:1
+msgid "Shortcuts"
+msgstr "�������������������� ������������"
+
+#: ../resource/ui/ShortcutsWindow.ui.h:3
+msgid "Refresh Page"
+msgstr "���������������� ����������������"
+
+#: ../resource/ui/ShortcutsWindow.ui.h:4
+msgid "Enter/Exit Fullscreen"
+msgstr "���������������� ������ ������������������ �������������������������� ����������"
+
+#: ../resource/ui/ShortcutsWindow.ui.h:5
+msgid "Show/Hide Header Bar"
+msgstr "���������������� ������ ������������ ������������ ������������������"
+
+#: ../resource/ui/ShortcutsWindow.ui.h:6
+msgid "Open Preferences"
+msgstr "�������������� ������������������"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/tr.po new/whatsapp-for-linux-1.5.1/po/tr.po
--- old/whatsapp-for-linux-1.5.0/po/tr.po 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/po/tr.po 2022-12-23 12:53:17.000000000 +0100
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: whatsapp-for-linux\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-10-27 09:20+0200\n"
+"POT-Creation-Date: 2022-12-10 22:56+0100\n"
"PO-Revision-Date: 2022-10-27 09:20+0200\n"
"Last-Translator: Enes Hecan \n"
"Language-Team: Turkish <>\n"
@@ -34,15 +34,15 @@
msgid "Github Repository"
msgstr "Github"
-#: ../src/ui/PreferencesWindow.cpp:30
+#: ../src/ui/PreferencesWindow.cpp:35
msgid "On Demand"
msgstr "Gerektik��e"
-#: ../src/ui/PreferencesWindow.cpp:31
+#: ../src/ui/PreferencesWindow.cpp:36
msgid "Always"
msgstr "Daima"
-#: ../src/ui/PreferencesWindow.cpp:32
+#: ../src/ui/PreferencesWindow.cpp:37
msgid "Never"
msgstr "Asla"
@@ -87,7 +87,7 @@
msgid "Fullscreen"
msgstr "Tam Ekran"
-#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:15
+#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:18
msgid "Preferences"
msgstr "Tercihler"
@@ -109,19 +109,19 @@
#: ../resource/ui/PreferencesWindow.ui.h:1
msgid "Close to Tray"
-msgstr "Traye k������lt"
+msgstr "Traye K������lt"
#: ../resource/ui/PreferencesWindow.ui.h:2
msgid "Start in Tray"
-msgstr "Trayde ba��lat"
+msgstr "Trayde Ba��lat"
#: ../resource/ui/PreferencesWindow.ui.h:3
msgid "Start Minimized"
-msgstr "Ba��lang����ta k������lt"
+msgstr "Ba��lang����ta K������lt"
#: ../resource/ui/PreferencesWindow.ui.h:4
msgid "Autostart"
-msgstr "Otomatik ba��lat"
+msgstr "Otomatik Ba��lat"
#: ../resource/ui/PreferencesWindow.ui.h:5
msgid "Enable tray icon"
@@ -145,22 +145,34 @@
msgstr "Genel"
#: ../resource/ui/PreferencesWindow.ui.h:10
-msgid "Hardware Acceleration"
-msgstr "Donan��m h��zland��rma"
+msgid "Prefer Dark Theme"
+msgstr "Koyu Temay�� Tercih Et"
#: ../resource/ui/PreferencesWindow.ui.h:11
+msgid "Prefer dark theme for the application if system theme includes a dark variant"
+msgstr "Sistem temas�� karanl��k bir de��i��ken i��eriyorsa, uygulama i��in koyu temay�� tercih et"
+
+#: ../resource/ui/PreferencesWindow.ui.h:12
+msgid "Appearance"
+msgstr "D���� G��r��n����"
+
+#: ../resource/ui/PreferencesWindow.ui.h:13
+msgid "Hardware Acceleration"
+msgstr "Donan��m H��zland��rma"
+
+#: ../resource/ui/PreferencesWindow.ui.h:14
msgid "Allow Permissions"
msgstr "Bildirimlere ��zin Ver"
-#: ../resource/ui/PreferencesWindow.ui.h:12
+#: ../resource/ui/PreferencesWindow.ui.h:15
msgid "Set hardware acceleration policy used by webkit"
-msgstr "Webkit taraf��ndan kullan��lan donan��m h��zland��rma politikas��n�� ayarlay��n"
+msgstr "Webkit taraf��ndan kullan��lan donan��m h��zland��rma politikas��n�� ayarla"
-#: ../resource/ui/PreferencesWindow.ui.h:13
+#: ../resource/ui/PreferencesWindow.ui.h:16
msgid "Allow permissions on application startup"
msgstr "Uygulama ba��lang��c��nda bildirimlere izin ver"
-#: ../resource/ui/PreferencesWindow.ui.h:14
+#: ../resource/ui/PreferencesWindow.ui.h:17
msgid "Web"
msgstr "A��"
@@ -170,7 +182,7 @@
#: ../resource/ui/ShortcutsWindow.ui.h:3
msgid "Refresh Page"
-msgstr "Sayfay�� yenile"
+msgstr "Sayfay�� Yenile"
#: ../resource/ui/ShortcutsWindow.ui.h:4
msgid "Enter/Exit Fullscreen"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/po/whatsapp-for-linux.pot new/whatsapp-for-linux-1.5.1/po/whatsapp-for-linux.pot
--- old/whatsapp-for-linux-1.5.0/po/whatsapp-for-linux.pot 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/po/whatsapp-for-linux.pot 2022-12-23 12:53:17.000000000 +0100
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: whatsapp-for-linux\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2022-10-27 09:20+0200\n"
+"POT-Creation-Date: 2022-12-10 22:56+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -34,15 +34,15 @@
msgid "Github Repository"
msgstr ""
-#: ../src/ui/PreferencesWindow.cpp:30
+#: ../src/ui/PreferencesWindow.cpp:35
msgid "On Demand"
msgstr ""
-#: ../src/ui/PreferencesWindow.cpp:31
+#: ../src/ui/PreferencesWindow.cpp:36
msgid "Always"
msgstr ""
-#: ../src/ui/PreferencesWindow.cpp:32
+#: ../src/ui/PreferencesWindow.cpp:37
msgid "Never"
msgstr ""
@@ -87,7 +87,7 @@
msgid "Fullscreen"
msgstr ""
-#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:15
+#: ../resource/ui/MainWindow.ui.h:2 ../resource/ui/PreferencesWindow.ui.h:18
msgid "Preferences"
msgstr ""
@@ -145,22 +145,34 @@
msgstr ""
#: ../resource/ui/PreferencesWindow.ui.h:10
-msgid "Hardware Acceleration"
+msgid "Prefer Dark Theme"
msgstr ""
#: ../resource/ui/PreferencesWindow.ui.h:11
-msgid "Allow Permissions"
+msgid "Prefer dark theme for the application if system theme includes a dark variant"
msgstr ""
#: ../resource/ui/PreferencesWindow.ui.h:12
-msgid "Set hardware acceleration policy used by webkit"
+msgid "Appearance"
msgstr ""
#: ../resource/ui/PreferencesWindow.ui.h:13
-msgid "Allow permissions on application startup"
+msgid "Hardware Acceleration"
msgstr ""
#: ../resource/ui/PreferencesWindow.ui.h:14
+msgid "Allow Permissions"
+msgstr ""
+
+#: ../resource/ui/PreferencesWindow.ui.h:15
+msgid "Set hardware acceleration policy used by webkit"
+msgstr ""
+
+#: ../resource/ui/PreferencesWindow.ui.h:16
+msgid "Allow permissions on application startup"
+msgstr ""
+
+#: ../resource/ui/PreferencesWindow.ui.h:17
msgid "Web"
msgstr ""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in new/whatsapp-for-linux-1.5.1/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in
--- old/whatsapp-for-linux-1.5.0/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/resource/desktop/com.github.eneshecan.WhatsAppForLinux.desktop.in 2022-12-23 12:53:17.000000000 +0100
@@ -4,14 +4,17 @@
Name=${WFL_FRIENDLY_NAME}
Name[it]=WhatsApp per Linux
Name[nl]=WhatsApp voor Linux
+Name[ru]=WhatsApp ������ Linux
Name[tr]=Linux i��in WhatsApp
GenericName=Unofficial WhatsApp client
GenericName[it]=Client WhatsApp non ufficiale
GenericName[nl]=Niet-offici��le WhatsApp-client
+GenericName[ru]=�������������������������� ������������ WhatsApp
GenericName[tr]=Resmi olmayan WhatsApp istemcisi
Comment=${WFL_DESCRIPTION}
Comment[it]=Un'applicazione WhatsApp non ufficiale per Linux
Comment[nl]=Een onoffici��le WhatsApp-desktoptoepassing voor Linux
+Comment[ru]=�������������������������� �������������������� WhatsApp ������ Linux
Comment[tr]=Linux i��in resmi olmayan bir WhatsApp masa��st�� uygulamas��
Exec=${WFL_NAME} %u
Icon=${WFL_ICON}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/resource/ui/PreferencesWindow.ui new/whatsapp-for-linux-1.5.1/resource/ui/PreferencesWindow.ui
--- old/whatsapp-for-linux-1.5.0/resource/ui/PreferencesWindow.ui 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/resource/ui/PreferencesWindow.ui 2022-12-23 12:53:17.000000000 +0100
@@ -128,8 +128,56 @@
<property name="can-focus">False</property>
<property name="label" translatable="yes">General</property>
</object>
+ </child>
+ <child>
+ <!-- n-columns=2 n-rows=1 -->
+ <object class="GtkGrid" id="grid_appearance">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="margin-start">8</property>
+ <property name="margin-end">8</property>
+ <property name="margin-top">8</property>
+ <property name="margin-bottom">8</property>
+ <property name="row-spacing">8</property>
+ <property name="column-spacing">8</property>
+ <property name="column-homogeneous">True</property>
+ <child>
+ <object class="GtkLabel" id="label_prefer_dark_theme">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">Prefer Dark Theme</property>
+ </object>
+ <packing>
+ <property name="left-attach">0</property>
+ <property name="top-attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSwitch" id="switch_prefer_dark_theme">
+ <property name="visible">True</property>
+ <property name="can-focus">True</property>
+ <property name="tooltip-text" translatable="yes">Prefer dark theme for the application if system theme includes a dark variant</property>
+ <property name="halign">end</property>
+ </object>
+ <packing>
+ <property name="left-attach">1</property>
+ <property name="top-attach">0</property>
+ </packing>
+ </child>
+ </object>
<packing>
- <property name="tab-fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel" id="label_appearance">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="label" translatable="yes">Appearance</property>
+ </object>
+ <packing>
+ <property name="position">1</property>
</packing>
</child>
<child>
@@ -194,7 +242,7 @@
</child>
</object>
<packing>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
<child type="tab">
@@ -204,8 +252,7 @@
<property name="label" translatable="yes">Web</property>
</object>
<packing>
- <property name="position">1</property>
- <property name="tab-fill">False</property>
+ <property name="position">2</property>
</packing>
</child>
</object>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/main.cpp new/whatsapp-for-linux-1.5.1/src/main.cpp
--- old/whatsapp-for-linux-1.5.0/src/main.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/main.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -27,7 +27,7 @@
wfl::util::redirectOutputToLogger();
- signal(SIGINT, sigterm);
+ signal(SIGINT, sigterm);
signal(SIGTERM, sigterm);
signal(SIGPIPE, SIG_IGN);
@@ -47,7 +47,8 @@
return 1;
}
- app.signal_open().connect([&app, &mainWindow](Gtk::Application::type_vec_files const& files, const Glib::ustring&)
+ app.signal_open().connect(
+ [&app, &mainWindow](Gtk::Application::type_vec_files const& files, const Glib::ustring&)
{
if (!files.empty())
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/Application.cpp new/whatsapp-for-linux-1.5.1/src/ui/Application.cpp
--- old/whatsapp-for-linux-1.5.0/src/ui/Application.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/Application.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -1,4 +1,6 @@
#include "Application.hpp"
+#include
+#include "../util/Settings.hpp"
namespace wfl::ui
{
@@ -40,4 +42,13 @@
m_onHold = false;
}
}
+
+ void Application::on_activate()
+ {
+ auto const settings = Gtk::Settings::get_default();
+ auto const preferDark = util::Settings::getInstance().getValue<bool>("appearance", "prefer-dark-theme");
+ settings->property_gtk_application_prefer_dark_theme().set_value(preferDark);
+
+ Gtk::Application::on_activate();
+ }
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/Application.hpp new/whatsapp-for-linux-1.5.1/src/ui/Application.hpp
--- old/whatsapp-for-linux-1.5.0/src/ui/Application.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/Application.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -4,8 +4,7 @@
namespace wfl::ui
{
- class Application
- : public Gtk::Application
+ class Application : public Gtk::Application
{
public:
static Application& getInstance();
@@ -17,6 +16,9 @@
void keepAlive();
void endKeepAlive();
+ protected:
+ virtual void on_activate() override;
+
private:
static Application* m_instance;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/MainWindow.cpp new/whatsapp-for-linux-1.5.1/src/ui/MainWindow.cpp
--- old/whatsapp-for-linux-1.5.0/src/ui/MainWindow.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/MainWindow.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -22,9 +22,9 @@
, m_shortcutsWindow{nullptr}
, m_fullscreen{false}
{
- auto const appIcon16x16 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/16x16/apps/" WFL_ICON ".png");
- auto const appIcon32x32 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/32x32/apps/" WFL_ICON ".png");
- auto const appIcon64x64 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/64x64/apps/" WFL_ICON ".png");
+ auto const appIcon16x16 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/16x16/apps/" WFL_ICON ".png");
+ auto const appIcon32x32 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/32x32/apps/" WFL_ICON ".png");
+ auto const appIcon64x64 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/64x64/apps/" WFL_ICON ".png");
auto const appIcon128x128 = Gdk::Pixbuf::create_from_resource("/main/image/icons/hicolor/128x128/apps/" WFL_ICON ".png");
set_icon_list({appIcon16x16, appIcon32x32, appIcon64x64, appIcon128x128});
set_default_icon(appIcon64x64);
@@ -152,14 +152,14 @@
return Gtk::ApplicationWindow::on_key_press_event(keyEvent);
}
- bool MainWindow::on_window_state_event(GdkEventWindowState *windowStateEvent)
+ bool MainWindow::on_window_state_event(GdkEventWindowState* windowStateEvent)
{
m_fullscreen = (windowStateEvent->new_window_state & GDK_WINDOW_STATE_FULLSCREEN);
return Gtk::ApplicationWindow::on_window_state_event(windowStateEvent);
}
- bool MainWindow::on_delete_event(GdkEventAny* any_event)
+ bool MainWindow::on_delete_event(GdkEventAny*)
{
if (m_trayIcon.isVisible())
{
@@ -289,7 +289,7 @@
aboutDialog.set_program_name(_("WhatsApp for Linux"));
aboutDialog.set_comments(_("An unofficial WhatsApp desktop application for Linux"));
aboutDialog.set_website(WFL_HOMEPAGE);
- aboutDialog.set_website_label(_("Github Repository"));
+ aboutDialog.set_website_label(_("GitHub Repository"));
aboutDialog.set_license_type(Gtk::LICENSE_GPL_3_0);
aboutDialog.set_transient_for(*this);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/MainWindow.hpp new/whatsapp-for-linux-1.5.1/src/ui/MainWindow.hpp
--- old/whatsapp-for-linux-1.5.0/src/ui/MainWindow.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/MainWindow.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -12,8 +12,7 @@
namespace wfl::ui
{
- class MainWindow
- : public Gtk::ApplicationWindow
+ class MainWindow : public Gtk::ApplicationWindow
{
public:
MainWindow(BaseObjectType* cobject, Glib::RefPtrGtk::Builder const& refBuilder);
@@ -24,7 +23,7 @@
protected:
bool on_key_press_event(GdkEventKey* keyEvent) override;
bool on_window_state_event(GdkEventWindowState* windowStateEvent) override;
- bool on_delete_event(GdkEventAny* any_event) override;
+ bool on_delete_event(GdkEventAny*) override;
private:
void onRefresh();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/PhoneNumberDialog.hpp new/whatsapp-for-linux-1.5.1/src/ui/PhoneNumberDialog.hpp
--- old/whatsapp-for-linux-1.5.0/src/ui/PhoneNumberDialog.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/PhoneNumberDialog.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -7,8 +7,7 @@
namespace wfl::ui
{
- class PhoneNumberDialog
- : public Gtk::Dialog
+ class PhoneNumberDialog : public Gtk::Dialog
{
public:
PhoneNumberDialog(BaseObjectType* cobject, Glib::RefPtrGtk::Builder const& refBuilder);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/PreferencesWindow.cpp new/whatsapp-for-linux-1.5.1/src/ui/PreferencesWindow.cpp
--- old/whatsapp-for-linux-1.5.0/src/ui/PreferencesWindow.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/PreferencesWindow.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -1,5 +1,6 @@
#include "PreferencesWindow.hpp"
#include
+#include
#include "../util/Settings.hpp"
namespace wfl::ui
@@ -25,6 +26,10 @@
refBuilder->get_widget("switch_autostart", switchAutostart);
switchAutostart->signal_state_set().connect(sigc::mem_fun(*this, &PreferencesWindow::onAutostartChanged), false);
+ Gtk::Switch* switchPreferDarkTheme = nullptr;
+ refBuilder->get_widget("switch_prefer_dark_theme", switchPreferDarkTheme);
+ switchPreferDarkTheme->signal_state_set().connect(sigc::mem_fun(*this, &PreferencesWindow::onPreferDarkThemeChanged), false);
+
refBuilder->get_widget("combobox_hw_accel", m_comboboxHwAccel);
m_comboboxHwAccel->signal_changed().connect(sigc::mem_fun(*this, &PreferencesWindow::onHwAccelChanged));
m_comboboxHwAccel->append(_("On Demand"));
@@ -40,6 +45,7 @@
m_switchStartInTray->set_sensitive(m_trayIcon->isVisible());
m_switchStartMinimized->set_state(util::Settings::getInstance().getValue<bool>("general", "start-minimized"));
switchAutostart->set_state(util::Settings::getInstance().getValue<bool>("general", "autostart"));
+ switchPreferDarkTheme->set_state(util::Settings::getInstance().getValue<bool>("appearance", "prefer-dark-theme"));
m_comboboxHwAccel->set_active(util::Settings::getInstance().getValue<int>("web", "hw-accel", 1));
switchAllowPermissions->set_state(util::Settings::getInstance().getValue<bool>("web", "allow-permissions"));
}
@@ -91,6 +97,16 @@
return false;
}
+ bool PreferencesWindow::onPreferDarkThemeChanged(bool state) const
+ {
+ auto const settings = Gtk::Settings::get_default();
+ settings->property_gtk_application_prefer_dark_theme().set_value(state);
+
+ util::Settings::getInstance().setValue("appearance", "prefer-dark-theme", state);
+
+ return false;
+ }
+
bool PreferencesWindow::onAllowPermissionsChanged(bool state) const
{
util::Settings::getInstance().setValue("web", "allow-permissions", state);
@@ -98,7 +114,7 @@
return false;
}
- void PreferencesWindow::onHwAccelChanged()
+ void PreferencesWindow::onHwAccelChanged() const
{
auto active = m_comboboxHwAccel->get_active_row_number();
m_webView->setHwAccelPolicy(static_cast<WebKitHardwareAccelerationPolicy>(active));
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/PreferencesWindow.hpp new/whatsapp-for-linux-1.5.1/src/ui/PreferencesWindow.hpp
--- old/whatsapp-for-linux-1.5.0/src/ui/PreferencesWindow.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/PreferencesWindow.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -9,8 +9,7 @@
namespace wfl::ui
{
- class PreferencesWindow
- : public Gtk::Window
+ class PreferencesWindow : public Gtk::Window
{
public:
PreferencesWindow(BaseObjectType* cobject, Glib::RefPtrGtk::Builder const& refBuilder, TrayIcon& trayIcon, WebView& webView);
@@ -20,8 +19,9 @@
bool onStartInTrayChanged(bool state) const;
bool onStartMinimizedChanged(bool state) const;
bool onAutostartChanged(bool state) const;
+ bool onPreferDarkThemeChanged(bool state) const;
bool onAllowPermissionsChanged(bool state) const;
- void onHwAccelChanged();
+ void onHwAccelChanged() const;
private:
TrayIcon* m_trayIcon;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/TrayIcon.cpp new/whatsapp-for-linux-1.5.1/src/ui/TrayIcon.cpp
--- old/whatsapp-for-linux-1.5.0/src/ui/TrayIcon.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/TrayIcon.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -42,18 +42,18 @@
app_indicator_set_icon_full(m_appIndicator, trayIconName, WFL_FRIENDLY_NAME " Tray");
app_indicator_set_attention_icon_full(m_appIndicator, attentionIconName, WFL_FRIENDLY_NAME "Tray Attention");
- auto const showMenuItem = Gtk::manage(new Gtk::MenuItem{_("Show")});
+ auto const showMenuItem = Gtk::manage(new Gtk::MenuItem{_("Show")});
auto const aboutMenuItem = Gtk::manage(new Gtk::MenuItem{_("About")});
- auto const quitMenuItem = Gtk::manage(new Gtk::MenuItem{_("Quit")});
+ auto const quitMenuItem = Gtk::manage(new Gtk::MenuItem{_("Quit")});
m_popupMenu.append(*showMenuItem);
m_popupMenu.append(*aboutMenuItem);
m_popupMenu.append(*quitMenuItem);
app_indicator_set_menu(m_appIndicator, m_popupMenu.gobj());
- showMenuItem->signal_activate().connect([this]{ m_signalShow.emit(); });
- aboutMenuItem->signal_activate().connect([this]{ m_signalAbout.emit(); });
- quitMenuItem->signal_activate().connect([this]{ m_signalQuit.emit(); });
+ showMenuItem->signal_activate().connect([this] { m_signalShow.emit(); });
+ aboutMenuItem->signal_activate().connect([this] { m_signalAbout.emit(); });
+ quitMenuItem->signal_activate().connect([this] { m_signalQuit.emit(); });
m_popupMenu.show_all();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/WebView.cpp new/whatsapp-for-linux-1.5.1/src/ui/WebView.cpp
--- old/whatsapp-for-linux-1.5.0/src/ui/WebView.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/WebView.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -48,9 +48,9 @@
case WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION:
{
auto const navigationDecision = WEBKIT_NAVIGATION_POLICY_DECISION(decision);
- auto const navigationAction = webkit_navigation_policy_decision_get_navigation_action(navigationDecision);
- auto const request = webkit_navigation_action_get_request(navigationAction);
- auto const uri = webkit_uri_request_get_uri(request);
+ auto const navigationAction = webkit_navigation_policy_decision_get_navigation_action(navigationDecision);
+ auto const request = webkit_navigation_action_get_request(navigationAction);
+ auto const uri = webkit_uri_request_get_uri(request);
if (GError* error = nullptr; !gtk_show_uri_on_window(nullptr, uri, GDK_CURRENT_TIME, &error))
{
@@ -97,9 +97,9 @@
{
if (util::Settings::getInstance().getValue<bool>("web", "allow-permissions"))
{
- auto const origin = webkit_security_origin_new_for_uri(WHATSAPP_WEB_URI);
+ auto const origin = webkit_security_origin_new_for_uri(WHATSAPP_WEB_URI);
auto const allowedOrigins = g_list_alloc();
- allowedOrigins->data = origin;
+ allowedOrigins->data = origin;
webkit_web_context_initialize_notification_permissions(context, allowedOrigins, nullptr);
@@ -225,14 +225,14 @@
auto script = std::string{};
script.append("(function(){"
- "var a = document.createElement(\"a\");"
- "a.href = \"");
+ "var a = document.createElement(\"a\");"
+ "a.href = \"");
script.append(url);
script.append("\";"
- "document.body.appendChild(a);"
- "a.click();"
- "a.remove();"
- "})();");
+ "document.body.appendChild(a);"
+ "a.click();"
+ "a.remove();"
+ "})();");
webkit_web_view_run_javascript(*this, script.c_str(), nullptr, nullptr, nullptr);
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/ui/WebView.hpp new/whatsapp-for-linux-1.5.1/src/ui/WebView.hpp
--- old/whatsapp-for-linux-1.5.0/src/ui/WebView.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/ui/WebView.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -10,8 +10,7 @@
void loadChanged(WebKitWebView*, WebKitLoadEvent loadEvent, gpointer userData);
}
- class WebView
- : public Gtk::Widget
+ class WebView : public Gtk::Widget
{
public:
WebView();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/util/SettingMap.hpp new/whatsapp-for-linux-1.5.1/src/util/SettingMap.hpp
--- old/whatsapp-for-linux-1.5.0/src/util/SettingMap.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/util/SettingMap.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -28,9 +28,7 @@
- inline SettingMap::SettingMap()
- : m_map{}
- {}
+ inline SettingMap::SettingMap() = default;
inline bool SettingMap::loadFromFile(std::string const& fileName)
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/util/Settings.cpp new/whatsapp-for-linux-1.5.1/src/util/Settings.cpp
--- old/whatsapp-for-linux-1.5.0/src/util/Settings.cpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/util/Settings.cpp 2022-12-23 12:53:17.000000000 +0100
@@ -64,19 +64,17 @@
auto destDesktopFile = Gio::File::create_for_path(AUTOSTART_DESKTOP_FILE_PATH);
if (autostart)
{
- constexpr auto const possible_desktop_file_paths = std::array{
- "/usr/local/share/applications/" WFL_APP_ID ".desktop",
- "/usr/share/applications/" WFL_APP_ID ".desktop",
- "/snap/whatsapp-for-linux/current/share/applications/" WFL_APP_ID ".desktop"
- };
+ constexpr auto const possibleDesktopFilePaths = std::array{"/usr/local/share/applications/" WFL_APP_ID ".desktop",
+ "/usr/share/applications/" WFL_APP_ID ".desktop", "/snap/whatsapp-for-linux/current/share/applications/" WFL_APP_ID ".desktop"};
- auto const it = std::find_if(possible_desktop_file_paths.begin(), possible_desktop_file_paths.end(),[](auto const& elem)
+ auto const it = std::find_if(possibleDesktopFilePaths.begin(), possibleDesktopFilePaths.end(),
+ [](auto const& elem)
{
auto const file = Gio::File::create_for_path(elem);
return file->query_exists();
});
- if (it == possible_desktop_file_paths.end())
+ if (it == possibleDesktopFilePaths.end())
{
std::cerr << "Settings: Failed to find desktop file" << std::endl;
return;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/whatsapp-for-linux-1.5.0/src/util/Settings.hpp new/whatsapp-for-linux-1.5.1/src/util/Settings.hpp
--- old/whatsapp-for-linux-1.5.0/src/util/Settings.hpp 2022-10-27 17:11:53.000000000 +0200
+++ new/whatsapp-for-linux-1.5.1/src/util/Settings.hpp 2022-12-23 12:53:17.000000000 +0100
@@ -10,7 +10,7 @@
static Settings& getInstance();
public:
- Settings(Settings const&) = delete;
+ Settings(Settings const&) = delete;
Settings& operator=(Settings const&) = delete;
public: