projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b69d0
)
*** empty log message ***
author
gc
<gc>
Sat, 14 Jul 2007 19:39:33 +0000
(19:39 +0000)
committer
gc
<gc>
Sat, 14 Jul 2007 19:39:33 +0000
(19:39 +0000)
bin/booh-classifier
patch
|
blob
|
history
lib/booh/booh-lib.rb
patch
|
blob
|
history
diff --git
a/bin/booh-classifier
b/bin/booh-classifier
index
7b5aba5
..
b7ecc86
100644
(file)
--- a/
bin/booh-classifier
+++ b/
bin/booh-classifier
@@
-1044,12
+1044,6
@@
def preferences
[Gtk::Stock::OK, Gtk::Dialog::RESPONSE_OK],
[Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
-# $config['cache-memory-use'] ||= 'memfree_50%'
-# if $config['cache-memory-use'] =~ /memfree_(\d+)/
-# $config['cache-memory-use-figure'] = memfree*$1.to_f/100
-# else
-# $config['cache-memory-use-figure'] = $config['cache-memory-use'].to_i
-# end
tooltips = Gtk::Tooltips.new
dialog.vbox.add(tbl = Gtk::Table.new(0, 0, false))
diff --git
a/lib/booh/booh-lib.rb
b/lib/booh/booh-lib.rb
index
086f8a7
..
d1dde49
100644
(file)
--- a/
lib/booh/booh-lib.rb
+++ b/
lib/booh/booh-lib.rb
@@
-489,6
+489,12
@@
module Booh
ios.write(newcontent)
ios.close
end
+
+ def open_url(url)
+ cmd = $config['browser'].gsub('%f', "'#{url}'") + ' &'
+ msg 2, cmd
+ system(cmd)
+ end
end
class File