*** empty log message ***
authorgc <gc>
Sat, 14 Jul 2007 19:39:33 +0000 (19:39 +0000)
committergc <gc>
Sat, 14 Jul 2007 19:39:33 +0000 (19:39 +0000)
bin/booh-classifier
lib/booh/booh-lib.rb

index 7b5aba5..b7ecc86 100644 (file)
@@ -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))
index 086f8a7..d1dde49 100644 (file)
@@ -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