[Gtk::Stock::OK, Gtk::Dialog::RESPONSE_OK],
[Gtk::Stock::CANCEL, Gtk::Dialog::RESPONSE_CANCEL])
+ table_counter = 0
dialog.vbox.add(notebook = Gtk::Notebook.new)
notebook.append_page(tbl = Gtk::Table.new(0, 0, false), Gtk::Label.new(utf8(_("Options"))))
tbl.attach(Gtk::Alignment.new(1, 0.5, 0, 0).add(Gtk::Label.new.set_markup(utf8(_("Command for watching videos: ")))),
- 0, 1, 0, 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 1, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tbl.attach(Gtk::Alignment.new(0, 0.5, 1, 0).add(video_viewer_entry = Gtk::Entry.new.set_text($config['video-viewer']).set_size_request(250, -1)),
- 1, 2, 0, 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 1, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips = Gtk::Tooltips.new
tooltips.set_tip(video_viewer_entry, utf8(_("Use %f to specify the filename;
for example: /usr/bin/mplayer %f")), nil)
+
+ table_counter += 1
tbl.attach(Gtk::Alignment.new(1, 0.5, 0, 0).add(Gtk::Label.new.set_markup(utf8(_("Command for editing images: ")))),
- 0, 1, 1, 2, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 1, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tbl.attach(Gtk::Alignment.new(0, 0.5, 1, 0).add(image_editor_entry = Gtk::Entry.new.set_text($config['image-editor'])),
- 1, 2, 1, 2, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 1, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips.set_tip(image_editor_entry, utf8(_("Use %f to specify the filename;
for example: /usr/bin/gimp-remote %f")), nil)
+
+ table_counter += 1
tbl.attach(Gtk::Alignment.new(1, 0.5, 0, 0).add(Gtk::Label.new.set_markup(utf8(_("Browser's command: ")))),
- 0, 1, 2, 3, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 1, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tbl.attach(Gtk::Alignment.new(0, 0.5, 1, 0).add(browser_entry = Gtk::Entry.new.set_text($config['browser'])),
- 1, 2, 2, 3, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 1, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips.set_tip(browser_entry, utf8(_("Use %f to specify the filename;
for example: /usr/bin/mozilla-firefox -remote 'openURL(%f,new-window)' || /usr/bin/mozilla-firefox %f")), nil)
+
+ table_counter += 1
tbl.attach(Gtk::Alignment.new(1, 0.5, 0, 0).add(smp_check = Gtk::CheckButton.new(utf8(_("Use symmetric multi-processing")))),
- 0, 1, 3, 4, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 1, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tbl.attach(Gtk::Alignment.new(0, 0.5, 1, 0).add(smp_hbox = Gtk::HBox.new.add(smp_spin = Gtk::SpinButton.new(2, 16, 1)).add(Gtk::Label.new(utf8(_("processors")))).set_sensitive(false)),
- 1, 2, 3, 4, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 1, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips.set_tip(smp_check, utf8(_("When activated, this option allows the thumbnails creation to run faster. However, if you don't have a multi-processor machine, this will only slow down processing!")), nil)
+
+ table_counter += 1
tbl.attach(nogestures_check = Gtk::CheckButton.new(utf8(_("Disable mouse gestures"))),
- 0, 2, 4, 5, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips.set_tip(nogestures_check, utf8(_("Mouse gestures are 'unusual' mouse movements triggering special actions, and are great for speeding up your editions. Get details on available mouse gestures from the Help menu.")), nil)
+
+ table_counter += 1
tbl.attach(deleteondisk_check = Gtk::CheckButton.new(utf8(_("Delete original photos/videos as well"))),
- 0, 2, 6, 7, Gtk::FILL, Gtk::SHRINK, 2, 2)
+ 0, 2, table_counter, table_counter + 1, Gtk::FILL, Gtk::SHRINK, 2, 2)
tooltips.set_tip(deleteondisk_check, utf8(_("Normally, deleting a photo or video in booh only removes it from the web-album. If you check this option, the original file in source directory will be removed as well. Undo is possible, since actual deletion is performed only when web-album is saved.")), nil)
smp_check.signal_connect('toggled') {