Skip to content

Commit

Permalink
Replaced zenity dependency with mint-common's entrydialog
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Jul 30, 2012
1 parent 72cb656 commit 2aee6d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
@@ -1,3 +1,9 @@
mintnanny (1.3.9) maya; urgency=low

* Replaced zenity dependency with mint-common's entrydialog

-- Clement Lefebvre <root@linuxmint.com> Mon, 30 Jul 2012 14:34:55 +0100

mintnanny (1.3.8) helena; urgency=low

* Bug fix: redirecting warning/errors to /dev/null when using zenity
Expand Down
4 changes: 2 additions & 2 deletions debian/control
@@ -1,13 +1,13 @@
Source: mintnanny
Section: admin
Priority: optional
Maintainer: clem <root@linuxmint.com>
Maintainer: Clement Lefebvre <root@linuxmint.com>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.2

Package: mintnanny
Architecture: all
Depends: python (>= 2.4), python (<< 3), python-gtk2, python-glade2, zenity, mint-common
Depends: python (>= 2.4), python (<< 3), python-gtk2, python-glade2, mint-common
Conflicts: mintnanny-gnome, mintnanny-kde
Replaces: mintnanny-gnome, mintnanny-kde
Description: Domain blocker for Linux Mint
Expand Down
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintNanny/mintNanny.py
Expand Up @@ -53,8 +53,8 @@ def close(w, res):
dlg.connect("response", close)
dlg.show()

def add_domain(widget, treeview_domains):
name = commands.getoutput("zenity --entry --text=\"" + _("Domain name:") + "\" --title=mintNanny --window-icon=/usr/lib/linuxmint/mintNanny/icon.svg 2> /dev/null")
def add_domain(widget, treeview_domains):
name = commands.getoutput("/usr/lib/linuxmint/common/entrydialog.py '" + _("Please type the domain name you want to block") + "' '" + _("Domain name:") + "' '' 'mintNanny' 2> /dev/null")
domain = name.strip()
if domain != '':
model = treeview_domains.get_model()
Expand Down

0 comments on commit 2aee6d6

Please sign in to comment.