Gtk3 by Hombre, issue 2807

This commit is contained in:
Morgan Hardwood
2015-08-12 16:07:19 +02:00
parent 91f67f0cb6
commit 56a0805bc7
133 changed files with 3950 additions and 2626 deletions

View File

@@ -98,7 +98,7 @@ void BatchQueueEntry::calcThumbnailSize ()
}
void BatchQueueEntry::drawProgressBar (Glib::RefPtr<Gdk::Window> win, Glib::RefPtr<Gdk::GC> gc, const Gdk::Color& foregr, const Gdk::Color& backgr, int x, int w, int y, int h)
void BatchQueueEntry::drawProgressBar (Glib::RefPtr<Gdk::Window> win, const Gdk::RGBA& foregr, const Gdk::RGBA& backgr, int x, int w, int y, int h)
{
if (processing) {
@@ -112,19 +112,19 @@ void BatchQueueEntry::drawProgressBar (Glib::RefPtr<Gdk::Window> win, Glib::RefP
cr->line_to (px + pw, py);
cr->set_line_width (ph);
cr->set_line_cap (Cairo::LINE_CAP_ROUND);
cr->set_source_rgb (foregr.get_red_p(), foregr.get_green_p(), foregr.get_blue_p());
cr->set_source_rgb (foregr.get_red(), foregr.get_green(), foregr.get_blue());
cr->stroke ();
cr->move_to (px, py);
cr->line_to (px + pw, py);
cr->set_line_width (ph * 3.0 / 4.0);
cr->set_source_rgb (backgr.get_red_p(), backgr.get_green_p(), backgr.get_blue_p());
cr->set_source_rgb (backgr.get_red(), backgr.get_green(), backgr.get_blue());
cr->stroke ();
cr->move_to (px, py);
cr->line_to (px + pw * progress, py);
cr->set_line_width (ph / 2.0);
cr->set_source_rgb (foregr.get_red_p(), foregr.get_green_p(), foregr.get_blue_p());
cr->set_source_rgb (foregr.get_red(), foregr.get_green(), foregr.get_blue());
cr->stroke ();
}
}