catch (...) {
throw failed_constructor();
}
-
+
darea.set_size_request (pixbuf->get_width(), pixbuf->get_height());
set_keep_above (true);
set_position (WIN_POS_CENTER);
layout = create_pango_layout ("");
string str = "<b>";
- string i18n = _("Ardour loading ...");
+ string i18n = string_compose (_("%1 loading ..."), PROGRAM_NAME);
str += i18n;
str += "</b>";
layout->set_markup (str);
darea.show ();
- darea.signal_expose_event().connect (mem_fun (*this, &Splash::expose));
+ darea.signal_expose_event().connect (sigc::mem_fun (*this, &Splash::expose));
add (darea);
set_default_size (pixbuf->get_width(), pixbuf->get_height());
the_splash = this;
- ARDOUR::BootMessage.connect (mem_fun (*this, &Splash::boot_message));
+ ARDOUR::BootMessage.connect (msg_connection, invalidator (*this), ui_bind (&Splash::boot_message, this, _1), gui_context());
}
void
window->draw_pixbuf (get_style()->get_bg_gc (STATE_NORMAL), pixbuf,
ev->area.x, ev->area.y,
ev->area.x, ev->area.y,
- min ((pixbuf->get_width() - ev->area.x), ev->area.width),
+ min ((pixbuf->get_width() - ev->area.x), ev->area.width),
min ((pixbuf->get_height() - ev->area.y), ev->area.height),
Gdk::RGB_DITHER_NONE, 0, 0);
-
+
Glib::RefPtr<Gtk::Style> style = darea.get_style();
Glib::RefPtr<Gdk::GC> white = style->get_white_gc();