one_click.image = Gtk::Image.new("#{$FPATH}/images/stock-tools-16.png")
helpsubmenu.append(speed = Gtk::ImageMenuItem.new(utf8(_("Speedup: key shortcuts and mouse gestures"))))
speed.image = Gtk::Image.new("#{$FPATH}/images/stock-info-16.png")
+ helpsubmenu.append(tutos = Gtk::ImageMenuItem.new(utf8(_("Online tutorials (opens a web-browser)"))))
+ tutos.image = Gtk::Image.new("#{$FPATH}/images/stock-web-16.png")
helpsubmenu.append( Gtk::SeparatorMenuItem.new)
helpsubmenu.append(about = Gtk::ImageMenuItem.new(Gtk::Stock::ABOUT))
helpmenu.set_submenu(helpsubmenu)
")), { :pos_centered => true, :not_transient => true })
}
+ tutos.signal_connect('activate') {
+ open_url('http://zarb.org/~gc/html/booh/tutorial.html')
+ }
about.signal_connect('activate') {
Gtk::AboutDialog.set_url_hook { |dialog, url| open_url(url) }
else
sizespec = ''
end
- return '<img src="' + File.basename(fullpath) + '" ' + sizespec + ' class="image"/>'
+ return '<img src="' + File.basename(fullpath) + '" ' + sizespec + ' class="image" alt="image"/>'
end
def size2js(name)
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Dark' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Dark' theme - Guillaume Cottenceau"/>
~~~image_head_code~~~
<style type="text/css" media="screen">
<!--
~~~pause_slideshow~~~
<br/>
<font size="-1">~~previous_album~~ ~~ifprevious_album?~~|~~fi~~ ~~thumbnails~~ ~~ifnext_album?~~|~~fi~~ ~~next_album~~</font>
+ </td>
</tr>
</table>
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Dark' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Dark' theme - Guillaume Cottenceau"/>
<style type="text/css" media="screen">
<!--
body {
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Dark' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Dark' theme - Guillaume Cottenceau"/>
~~~thumbnails_head_code~~~
<style type="text/css" media="screen">
<!--
~~iterate2_open_maxN~~
<td align="center" valign="top">
~~image_iteration~~
- <p>~~ifvideo?~~<img src="video.png"/>~~fi~~ ~~caption_iteration~~</p>
+ <p>~~ifvideo?~~<img src="video.png" alt="video"/>~~fi~~ ~~caption_iteration~~</p>
</td>
~~iterate2_close~~
</tr>
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Simple' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Simple' theme - Guillaume Cottenceau"/>
~~~image_head_code~~~
<style type="text/css" media="screen">
<!--
~~~pause_slideshow~~~
<br/>
<font size="-1">~~previous_album~~ ~~ifprevious_album?~~|~~fi~~ ~~thumbnails~~ ~~ifnext_album?~~|~~fi~~ ~~next_album~~</font>
+ </td>
</tr>
</table>
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Simple' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Simple' theme - Guillaume Cottenceau"/>
<style type="text/css" media="screen">
<!--
body {
<head>
<title>~~title~~</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="author" content="`Simple' theme - Guillaume Cottenceau">
+ <meta name="author" content="'Simple' theme - Guillaume Cottenceau"/>
~~~thumbnails_head_code~~~
<style type="text/css" media="screen">
<!--
~~iterate2_open_maxN~~
<td align="center" valign="top" ~~colspan~~>
~~image_iteration~~
- <p>~~ifvideo?~~<img src="video.png"/>~~fi~~ ~~caption_iteration~~</p>
+ <p>~~ifvideo?~~<img src="video.png" alt="video"/>~~fi~~ ~~caption_iteration~~</p>
</td>
~~iterate2_close~~
</tr>
bindtextdomain("booh")
require 'booh/booh-lib'
+require 'booh/version.rb'
include Booh
-$image_head_code = <<'EOF'
-<meta name="generator" content="Generated by Booh! http://zarb.org/~gc/html/booh.html">
+$image_head_code = '<meta name="generator" content="Booh-' + $VERSION + <<'EOF'
+ http://zarb.org/~gc/html/booh.html"/>
<script language="JavaScript1.1" type="text/JavaScript">
var images = new Array(~~images~~);
EOF
$button_first = '
- <form><input type="button"
+ <form action="fake"><input type="button"
onclick="first()"
value="' + utf8(_('<<- First')) + '"
id="b_first"/></form>'
$button_previous = '
- <form><input type="button"
+ <form action="fake"><input type="button"
onclick="previous()"
value="' + utf8(_('<- Previous')) + '"
id="b_previous"/></form>'
$button_next = '
- <form><input type="button"
+ <form action="fake"><input type="button"
onclick="next()"
value="' + utf8(_('Next ->')) + '"
id="b_next"/></form>'
$button_last = '
- <form><input type="button"
+ <form action="fake"><input type="button"
onclick="last()"
value="' + utf8(_('Last ->>')) + '"
id="b_last"/></form>'
$image = <<'EOF'
- <img name="main_img" class="image">
+ <img name="main_img" class="image" src="fake" alt="main image"/>
EOF
$image_counter_additions = <<'EOF'
EOF
-$thumbnails_head_code = <<'EOF'
-<meta name="generator" content="Generated by Booh! http://zarb.org/~gc/html/booh.html">
+$thumbnails_head_code = '<meta name="generator" content="Booh-' + $VERSION + <<'EOF'
+ http://zarb.org/~gc/html/booh.html"/>
<script language="JavaScript1.1" type="text/JavaScript">
var expires = new Date(new Date().getTime() + (30 * 86400000)); // 30 days