return
end
- w = Gtk::Window.new.set_title(filename)
+ w = create_window.set_title(filename)
msg 3, "filename: #{filename}"
dest_img = build_full_dest_filename(filename).sub(/\.[^\.]+$/, '') + "-#{$default_size['fullscreen']}.jpg"
end
def backend_wait_message(parent, msg, infopipe_path, mode)
- w = Gtk::Window.new
+ w = create_window
w.set_transient_for(parent)
w.modal = true
dates = {}
if current_order.size > 20
- w = Gtk::Window.new
+ w = create_window
w.set_transient_for($main_window)
w.modal = true
vb = Gtk::VBox.new(false, 5).set_border_width(5)
main_vbox.pack_start(paned, true, true)
main_vbox.pack_end($statusbar = Gtk::Statusbar.new, false, false)
- $main_window = Gtk::Window.new
+ $main_window = create_window
$main_window.add(main_vbox)
$main_window.signal_connect('delete-event') {
try_quit({ :disallow_cancel => true })
$imagesline.set_size_request(-1, Gtk::Button.new.size_request[1] + Entry.thumbnails_height + 15)
- $main_window = Gtk::Window.new
+ $main_window = create_window
$main_window.add(main_vbox)
$main_window.signal_connect('delete-event') {
try_quit({ :disallow_cancel => true })
def defer_translation(msg)
return "@@#{msg}@@"
end
+
+ def create_window
+ w = Gtk::Window.new
+ w.icon_list = [ Gdk::Pixbuf.new("#{$FPATH}/images/booh-16x16.png"),
+ Gdk::Pixbuf.new("#{$FPATH}/images/booh-32x32.png"),
+ Gdk::Pixbuf.new("#{$FPATH}/images/booh-48x48.png") ]
+ return w
+ end
end
class File