diff -Nru nautilus-advanced-menu-0.3.4/debian/bzr-builder.manifest nautilus-advanced-menu-0.3.5/debian/bzr-builder.manifest --- nautilus-advanced-menu-0.3.4/debian/bzr-builder.manifest 2012-03-24 21:50:35.000000000 +0000 +++ nautilus-advanced-menu-0.3.5/debian/bzr-builder.manifest 2012-03-24 23:08:30.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debupstream}-0~11 -lp:~nae-team/nautilus-actions-extra/nautilus-advanced-menu revid:dr3mro@gmail.com-20120324214227-q2imc14t14u7okfr +# bzr-builder format 0.3 deb-version {debupstream}-0~12 +lp:~nae-team/nautilus-actions-extra/nautilus-advanced-menu revid:dr3mro@gmail.com-20120324224733-jmh9zedn4nx06vts diff -Nru nautilus-advanced-menu-0.3.4/debian/changelog nautilus-advanced-menu-0.3.5/debian/changelog --- nautilus-advanced-menu-0.3.4/debian/changelog 2012-03-24 21:50:35.000000000 +0000 +++ nautilus-advanced-menu-0.3.5/debian/changelog 2012-03-24 23:08:30.000000000 +0000 @@ -1,8 +1,14 @@ -nautilus-advanced-menu (0.3.4-0~11~precise1) precise; urgency=low +nautilus-advanced-menu (0.3.5-0~12~precise1) oneiric; urgency=low * Auto build. - -- Dr. Amr Osman Sat, 24 Mar 2012 21:50:35 +0000 + -- Dr. Amr Osman Sat, 24 Mar 2012 23:08:30 +0000 + +nautilus-advanced-menu (0.3.5) oneiric; urgency=high + + * deprecate emblemize 1.0 + + -- Amr Osman Sun, 25 Mar 2012 00:49:00 +0200 nautilus-advanced-menu (0.3.4) oneiric; urgency=high diff -Nru nautilus-advanced-menu-0.3.4/debian/install nautilus-advanced-menu-0.3.5/debian/install --- nautilus-advanced-menu-0.3.4/debian/install 2012-03-24 21:50:35.000000000 +0000 +++ nautilus-advanced-menu-0.3.5/debian/install 2012-03-24 23:08:30.000000000 +0000 @@ -1,5 +1,4 @@ src/Advanced.py /usr/share/nautilus-python/extensions/ -src/emblemize /usr/bin/ src/pastebin /usr/bin/ src/calsize /usr/bin/ src/filetype /usr/bin/ diff -Nru nautilus-advanced-menu-0.3.4/src/Advanced.py nautilus-advanced-menu-0.3.5/src/Advanced.py --- nautilus-advanced-menu-0.3.4/src/Advanced.py 2012-03-24 21:50:35.000000000 +0000 +++ nautilus-advanced-menu-0.3.5/src/Advanced.py 2012-03-24 23:08:30.000000000 +0000 @@ -27,11 +27,6 @@ return - def emblemize_run(self,menu,file): - path=self.url2path(file) - subprocess.Popen(['/usr/bin/emblemize',path]) - return - def emblemize3_run(self,menu,file): path=self.url2path(file) subprocess.Popen(['/usr/bin/emblemize3',path]) @@ -124,20 +119,11 @@ PastebinMenuItem.connect('activate',self.pastebin_run,file) AdvancedSubMenu.append_item(PastebinMenuItem) - #emblemize - if filecount ==1 and os.path.exists('/usr/bin/emblemize'): - EmblemizeMenuItem = Nautilus.MenuItem(name='AdvancedSubMenu::Emblemize', - label='Set emblem by name (1.0)', - tip='emblemize 1.0', - ) - EmblemizeMenuItem.connect('activate',self.emblemize_run,file) - AdvancedSubMenu.append_item(EmblemizeMenuItem) - #emblemize3 if filecount ==1 and os.path.exists('/usr/bin/emblemize3'): Emblemize3MenuItem = Nautilus.MenuItem(name='AdvancedSubMenu::Emblemize3', - label='Set emblem by icon (3.0)', - tip='emblemize 3.0', + label='Set emblem', + tip='emblemize 3.x', ) Emblemize3MenuItem.connect('activate',self.emblemize3_run,file) AdvancedSubMenu.append_item(Emblemize3MenuItem) diff -Nru nautilus-advanced-menu-0.3.4/src/emblemize nautilus-advanced-menu-0.3.5/src/emblemize --- nautilus-advanced-menu-0.3.4/src/emblemize 2012-03-24 21:50:35.000000000 +0000 +++ nautilus-advanced-menu-0.3.5/src/emblemize 1970-01-01 00:00:00.000000000 +0000 @@ -1,76 +0,0 @@ -#!/bin/bash -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -# MA 02110-1301, USA. -# dr3mro@gmail.com -# version : 0.3 -#set -x -#emblems path -emblems_path='/usr/share/icons/*/emblems/48' - -#setting the filename variable passed by nutilus -filename="$1" - -#using gvfs to get the value of the current emblem -selected=`gvfs-info "$filename" \ - |grep emblems \ - |awk '{print $2}' \ - |tr '[||]' ' '\ - |sort \ - |uniq ` - - -#get list of emblems in the system -emblems=`ls $emblems_path \ - |grep svg \ - |sed s'|.svg||' \ - |awk '{print "FALSE "$1}'` - -if [ ! $selected ];then - emblem_none='TRUE None'; - #change the selected icon from FALSE to TRUE - list=`echo $emblems` - else - emblem_none='FALSE None'; - #change the selected icon from FALSE to TRUE - list=`echo $emblems \ - |sed s/"FALSE$selected"/"TRUE$selected"/` -fi - -#This is the zenity selection dialog with all icons and pass the selection to $ans -ans=$(zenity --height="500" --width="300" --list \ - --text "please choose an emblem:" \ - --radiolist --column "status" \ - --column "emblems" $emblem_none $list ) - -function __success { - notify-send --icon=info "emblemize" "File named `basename "$filename"` emblem was changed successfully to $ans" - } -#check if the user select clear then unset the icon else set selected icon as emblem - -if [ ! $ans ] ; then - exit - -elif [ $ans = None ] ;then - #unset - gvfs-set-attribute "$filename" -t unset metadata::emblems && __success; - #refresh - xte 'keydown Control_L' 'key R' 'keyup Control_L' - -else - #set - gvfs-set-attribute "$filename" -t stringv metadata::emblems $ans && __success; - #refresh - xte 'keydown Control_L' 'key R' 'keyup Control_L' -fi