updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gnome-screenruler / path_patch.diff
blob006182250f6def12857573e7860f9435edcfe2b6
1 --- screenruler.rb 2008-12-23 22:57:42.000000000 +0100
2 +++ screenruler.rb.new 2009-10-29 16:40:22.719907886 +0100
3 @@ -18,7 +18,7 @@
4 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5 ###############################################################################
7 -Dir.chdir(File.dirname(__FILE__)) # So that this file can be run from anywhere
8 +Dir.chdir('/usr/share/screenruler') # So that this file can be run from anywhere
9 $LOAD_PATH << './utils'
11 # removed while we figure out why some users have problems with glade and safe mode $SAFE = 2 # http://www.rubycentral.com/book/taint.html
12 @@ -32,7 +32,7 @@
13 APP_NAME = 'Screen Ruler'
14 APP_COPYRIGHT = "Copyright (c) #{Time.now.year} Ian McIntosh"
15 APP_AUTHORS = ['Ian McIntosh <ian@openanswers.org>']
16 -APP_ARTISTS = ['János Horváth <horvathhans@gmail.com>']
17 +APP_ARTISTS = ['Janos Horvath <horvathhans@gmail.com>']
18 APP_VERSION = 0.891
19 APP_LOGO_FILENAME = 'screenruler-logo.png'
21 @@ -51,7 +51,7 @@
22 ###################################################################
23 Gtk.init
25 -APP_ICON_LIST = ['screenruler-icon-16x16.png', 'screenruler-icon-32x32.png', 'screenruler-icon-64x64.png'].collect { |filename| Gdk::Pixbuf.new(filename) }
26 +APP_ICON_LIST = ['/usr/share/pixmaps/screenruler-icon-16x16.png', '/usr/share/pixmaps/screenruler-icon-32x32.png', '/usr/share/pixmaps/screenruler-icon-64x64.png'].collect { |filename| Gdk::Pixbuf.new(filename) }
28 puts 'Connecting to GConf...'
29 gconf = GConf::Client.default