changeset 19:e7a6488c02b7

bing4desktop-0.240207-3
author prymula <prymula76@outlook.com>
date Wed, 07 Feb 2024 14:35:01 +0100
parents a1a885c59d88
children 5c6ead828ca5
files bing4desktop/Changelog.txt bing4desktop/DEBIAN/bing4desktop.dsc bing4desktop/DEBIAN/debian.changelog bing4desktop/PKG/PKGBUILD bing4desktop/RPM/bing4desktop.spec bing4desktop/TODO.txt bing4desktop/bing4desktop.py
diffstat 7 files changed, 22 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/bing4desktop/Changelog.txt	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/Changelog.txt	Wed Feb 07 14:35:01 2024 +0100
@@ -1,3 +1,4 @@
+0.240207-3 - Teraz powiadomienie pokazuje opis zdjęcia aktualnie podglądanego, nie nadpisuje ustawionego
 0.240207-2 - Poprawilem nadpisywanie treści powiadomienia przez zdjęcia w podglądzie
 0.240207-0 - Poprawki niedociągnięć w Makefile.aur
 0.240206-3 - Skrypty instalacyjne
--- a/bing4desktop/DEBIAN/bing4desktop.dsc	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/DEBIAN/bing4desktop.dsc	Wed Feb 07 14:35:01 2024 +0100
@@ -5,19 +5,19 @@
 Source: bing4desktop
 Binary: bing4desktop
 Architecture: all
-Version: 0.240207-2
+Version: 0.240207-3
 Maintainer: Przemysław R. Pietraszczyk <prymula76@outlook.com>
 Homepage: http://prymula.ct8.pl
 
-DEBTRANSFORM-TAR: bing4desktop-0.240207-2.tar.gz
+DEBTRANSFORM-TAR: bing4desktop-0.240207-3.tar.gz
  
 Standards-Version: 4.6.2.0
 Build-Depends: debhelper-compat (>= 12), python3-all | python3, dh-python, python3-pillow, python3-requests, python3-tk, python3-pystray, fakeroot
 Package-List:
  bing4desktop deb x11 optional arch=all
 Files:
- b31649bc23b2b7bca9ab70ea3410711a 128820 bing4desktop-0.240207-2.tar.gz
- 29e7e7e60bc81891e3da3871b9eeb549 764 bing4desktop-0.240207-2.debian.tar.gz
+ b31649bc23b2b7bca9ab70ea3410711a 128820 bing4desktop-0.240207-3.tar.gz
+ 29e7e7e60bc81891e3da3871b9eeb549 764 bing4desktop-0.240207-3.debian.tar.gz
 
 -----BEGIN PGP SIGNATURE-----
 
--- a/bing4desktop/DEBIAN/debian.changelog	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/DEBIAN/debian.changelog	Wed Feb 07 14:35:01 2024 +0100
@@ -1,3 +1,9 @@
+bing4desktop (0.240207-3) unstable; urgency=low
+
+  * Last release
+
+ -- Przemysław R. Pietraszczyk  Wed, 7 Feb 2024 14:31:00 +0200
+
 bing4desktop (0.240207-2) unstable; urgency=low
 
   * Last release
--- a/bing4desktop/PKG/PKGBUILD	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/PKG/PKGBUILD	Wed Feb 07 14:35:01 2024 +0100
@@ -2,7 +2,7 @@
 
 pkgname=bing4desktop
 pkgver=0.240207
-pkgrel=2
+pkgrel=3
 pkgdesc="Beautify your desktop with photos from Bing search engine"
 arch=('any')
 url="prymula.ct8.pl"
--- a/bing4desktop/RPM/bing4desktop.spec	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/RPM/bing4desktop.spec	Wed Feb 07 14:35:01 2024 +0100
@@ -15,10 +15,10 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
-%define unmangled_version 0.240207-2
+%define unmangled_version 0.240207-3
 Name:       bing4desktop
 Version:	0.240207
-Release:    2
+Release:    3
 Summary:	Beautify your desktop with photos from Bing search engine
 License:	Public Domain
 URL:		https://prymula.ct8.pl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bing4desktop/TODO.txt	Wed Feb 07 14:35:01 2024 +0100
@@ -0,0 +1,1 @@
+Po wyswietleniu podglądu, nadpisuje poprzedni opis zdjecia. Po zamknięciu okna/okien, należy przywrócić poprzedni opis
--- a/bing4desktop/bing4desktop.py	Wed Feb 07 12:44:50 2024 +0100
+++ b/bing4desktop/bing4desktop.py	Wed Feb 07 14:35:01 2024 +0100
@@ -22,7 +22,7 @@
 import shutil
 import glob
 
-ver = "0.240207-2"
+ver = "0.240207-3"
 
 BING_URI_BASE = "http://www.bing.com"
 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=1&n=1&mkt=en-US"
@@ -197,8 +197,8 @@
         self.tmp = None
         self.menu = (
             item("Ustaw Tapetę", lambda icon, item: wp.set(full_path, True)),
-            item('Tapeta poprzednia', lambda icon, item: self.change_pic(1)),
-            item('Tapeta następna', lambda icon, item: self.change_pic(-1)),
+            item('Tapeta poprzednia', lambda icon, item: self.change_pic(1, icon)),
+            item('Tapeta następna', lambda icon, item: self.change_pic(-1, icon)),
             item('Opis zdjęcia', lambda icon, item: icon.notify(TMP_TITLE + ' --- ' + TMP_COPYRIGHT)),
             item('O Programie', lambda icon, item: self.about()),
 
@@ -221,8 +221,8 @@
         self.window.destroy()
         self.window.update()
 
-    def change_pic(self, n):
-        global actualImage, BING_WALLPAPER_PATH
+    def change_pic(self, n, icon):
+        global actualImage, BING_WALLPAPER_PATH, TITLE, COPYRIGHT_TXT
         BASE = "/HPImageArchive.aspx?format=js&idx="
         OFF = "&n=1&mkt=en-US"
         
@@ -251,7 +251,8 @@
             img = Image.open(full_path) #.convert('RGBA')  # PIL solution
             self.tmp = img.resize((600, 400), None, None, 3.0)
             self.tmp.show()
-
+            icon.notify(TITLE + ' --- ' + COPYRIGHT_TXT)
+            
     def quit_window(self):
         self.icon.stop()
         self.window.destroy()