use ~/.booh instead of ~/.booh-gui-files
authorgc <gc>
Sun, 17 Apr 2005 18:27:17 +0000 (18:27 +0000)
committergc <gc>
Sun, 17 Apr 2005 18:27:17 +0000 (18:27 +0000)
bin/booh-gui

index 2580c2b00c2f76c5edafb4b0dcadbbaa63d3d238..7132d40a4befaacba441cfc8738b9227675d23fc 100755 (executable)
@@ -95,8 +95,8 @@ def read_config
             end
         }
     end
-    if !FileTest.directory?(File.expand_path('~/.booh-gui-files'))
-        system("mkdir ~/.booh-gui-files")
+    if !FileTest.directory?(File.expand_path('~/.booh'))
+        system("mkdir ~/.booh")
     end
 end
 
@@ -1225,8 +1225,8 @@ def open_file_popup
                                     Gtk::FileChooser::ACTION_OPEN,
                                     nil,
                                     [Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
-    fc.add_shortcut_folder(File.expand_path("~/.booh-gui-files"))
-    fc.set_current_folder(File.expand_path("~/.booh-gui-files"))
+    fc.add_shortcut_folder(File.expand_path("~/.booh"))
+    fc.set_current_folder(File.expand_path("~/.booh"))
     fc.transient_for = $main_window
     ok = false
     while !ok
@@ -1297,7 +1297,7 @@ def new_album
         fc.transient_for = $main_window
         if fc.run == Gtk::Dialog::RESPONSE_ACCEPT
             src.text = fc.filename
-            conf.text = File.expand_path("~/.booh-gui-files/#{File.basename(src.text)}")
+            conf.text = File.expand_path("~/.booh/#{File.basename(src.text)}")
         end
         fc.destroy
     }
@@ -1322,8 +1322,8 @@ def new_album
                                         nil,
                                         [Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
         fc.transient_for = $main_window
-        fc.add_shortcut_folder(File.expand_path("~/.booh-gui-files"))
-        fc.set_current_folder(File.expand_path("~/.booh-gui-files"))
+        fc.add_shortcut_folder(File.expand_path("~/.booh"))
+        fc.set_current_folder(File.expand_path("~/.booh"))
         if fc.run == Gtk::Dialog::RESPONSE_ACCEPT
             conf.text = fc.filename
         end
@@ -1403,8 +1403,8 @@ def save_as_do
                                     nil,
                                     [Gtk::Stock::OPEN, Gtk::Dialog::RESPONSE_ACCEPT], [Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
     fc.transient_for = $main_window
-    fc.add_shortcut_folder(File.expand_path("~/.booh-gui-files"))
-    fc.set_current_folder(File.expand_path("~/.booh-gui-files"))
+    fc.add_shortcut_folder(File.expand_path("~/.booh"))
+    fc.set_current_folder(File.expand_path("~/.booh"))
     fc.filename = $filename
     if fc.run == Gtk::Dialog::RESPONSE_ACCEPT
         $filename = from_utf8(fc.filename)