From owner-svn-ports-head@freebsd.org Fri Nov 16 09:28:43 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A340112D214; Fri, 16 Nov 2018 09:28:43 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B6DCD780A2; Fri, 16 Nov 2018 09:28:42 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 98A031B5CD; Fri, 16 Nov 2018 09:28:42 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAG9Sg7C076789; Fri, 16 Nov 2018 09:28:42 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAG9SgaQ076788; Fri, 16 Nov 2018 09:28:42 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201811160928.wAG9SgaQ076788@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 16 Nov 2018 09:28:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485066 - in head/news/xpn: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/news/xpn: . files X-SVN-Commit-Revision: 485066 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B6DCD780A2 X-Spamd-Result: default: False [-106.88 / 40.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ALLOW_DOMAIN_WHITELIST(-100.00)[FreeBSD.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[FreeBSD.org]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: mx1.FreeBSD.org]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; IP_SCORE(-3.77)[ip: (-9.91), ipnet: 2610:1c1:1::/48(-4.93), asn: 11403(-3.91), country: US(-0.10)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2018 09:28:43 -0000 Author: tobik Date: Fri Nov 16 09:28:41 2018 New Revision: 485066 URL: https://svnweb.freebsd.org/changeset/ports/485066 Log: news/xpn: Add a trayicon - Reset maintainer due to the long timeout PR: 205429 Submitted by: rainbow@irh.it Approved by: nivit (maintainer timeout, ~2 years) Obtained from: Debian Added: head/news/xpn/files/patch-xpn.py (contents, props changed) Modified: head/news/xpn/Makefile Modified: head/news/xpn/Makefile ============================================================================== --- head/news/xpn/Makefile Fri Nov 16 08:59:45 2018 (r485065) +++ head/news/xpn/Makefile Fri Nov 16 09:28:41 2018 (r485066) @@ -3,11 +3,11 @@ PORTNAME= xpn PORTVERSION= 1.2.6 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= news python MASTER_SITES= http://xpn.altervista.org/codice/ -MAINTAINER= nivit@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= X Python Newsreader LICENSE= GPLv2 @@ -15,6 +15,7 @@ LICENSE= GPLv2 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gtk2>=2.24.0:x11-toolkits/py-gtk2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sqlite3>=2.7.9:databases/py-sqlite3@${PY_FLAVOR} +NO_ARCH= yes NO_BUILD= yes SHEBANG_FILES= ${XPN} Added: head/news/xpn/files/patch-xpn.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/news/xpn/files/patch-xpn.py Fri Nov 16 09:28:41 2018 (r485066) @@ -0,0 +1,97 @@ +From: David Paleino +Subject: implement a trayicon, with a context menu, and blinking on new + posts. + +--- xpn.py.orig 2018-11-16 09:23:53 UTC ++++ xpn.py +@@ -329,7 +329,6 @@ class MainWin: + self.win_outbox=Outbox_Manager(self,VERSION) + self.win_outbox.show() + +- + def open_edit_win(self,object,is_followup=False): + group="" + id_name="" +@@ -396,7 +395,6 @@ class MainWin: + self.win4=Edit_Win(self.configs,group,None,None,self.subscribed_groups,server_name=self.current_server,id_name=id_name) + #self.win4.show() + +- + def open_edit_mail_win(self,object): + to_name="" + id_name="" +@@ -579,6 +577,31 @@ class MainWin: + except: pass + gtk.main_quit() + ++ def tray_activated(self, widget): ++ if self.window.get_property("is-active"): ++ self.window.iconify() ++ self.window.hide() ++ else: ++ self.window.present() ++ self.window.deiconify() ++ widget.set_blinking(False) ++ ++ def tray_popuped(self, widget, button, timestamp): ++ menu = gtk.Menu() ++ menuitem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) ++ menuitem.connect("activate", self.open_configure_win) ++ menu.append(menuitem) ++ menu.append(gtk.SeparatorMenuItem()) ++ menuitem = gtk.ImageMenuItem(gtk.STOCK_ABOUT) ++ menuitem.connect('activate', self.open_about_dialog) ++ menu.append(menuitem) ++ menuitem = gtk.ImageMenuItem(gtk.STOCK_QUIT) ++ menuitem.connect('activate', self.destroy) ++ menu.append(menuitem) ++ ++ menu.show_all() ++ menu.popup(None, None, None, button, timestamp) ++ + def save_sorting_type(self,obj=None): + for n in range(1,5): + col=self.threads_pane.threads_tree.get_column(n) +@@ -592,9 +615,7 @@ class MainWin: + self.configs["ascend_order"]=ascend_order + self.configs["sort_col"]=col_name + self.conf.write_configs() +- +- +- ++ + def show_subscribed(self): + model,path_list,iter_list=self.groups_pane.get_selected_rows() + +@@ -1588,6 +1609,8 @@ class MainWin: + self.statusbar.push(1,message) + if total_headers: + self.progressbar.set_text(_("Building Articles")) ++ if not self.window.get_property("is-active"): ++ self.trayicon.set_blinking(True) + else: + self.progressbar.set_text(_("No New Headers")) + self.progressbar.set_fraction(2/float(2)) +@@ -2600,8 +2623,6 @@ When you try to import a newsrc file XPN searches for + article.has_body=False + self.art_db.insertArticle(group[0],article) + +- +- + def __init__(self,use_home,custom_dir): + Edit_Win.VERSION=VERSION + Edit_Mail_Win.VERSION=VERSION +@@ -2615,6 +2636,13 @@ When you try to import a newsrc file XPN searches for + if ret>0 :sys.exit(ret) + self.wdir=userdir.dir + ++ # handle the trayicon ++ self.trayicon = gtk.StatusIcon() ++ self.trayicon.set_tooltip_text(_("XPN Newsreader")) ++ self.trayicon.set_from_file("pixmaps/xpn-icon.png") ++ self.trayicon.connect("activate", self.tray_activated) ++ self.trayicon.connect("popup-menu", self.tray_popuped) ++ + self.conf=Config_File() + self.configs=self.conf.get_configs() +