Cleanup for last commit

This commit is contained in:
heckflosse
2017-06-25 21:42:43 +02:00
parent e4c75c4d38
commit ebbb44c3f5
4 changed files with 1 additions and 26 deletions

View File

@@ -697,10 +697,8 @@ void ThumbBrowserBase::Internal::on_realize()
bgn = style->get_background_color(Gtk::STATE_FLAG_NORMAL);
bgs = style->get_background_color(Gtk::STATE_FLAG_SELECTED);
Glib::RefPtr<Gdk::Window> window = get_window();
set_can_focus(true);
add_events(Gdk::EXPOSURE_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::POINTER_MOTION_MASK | Gdk::SCROLL_MASK | Gdk::KEY_PRESS_MASK);
//cc = window->create_cairo_context();
set_has_tooltip (true);
signal_query_tooltip().connect( sigc::mem_fun(*this, &ThumbBrowserBase::Internal::on_query_tooltip) );
}
@@ -842,8 +840,6 @@ bool ThumbBrowserBase::Internal::on_draw(const ::Cairo::RefPtr< Cairo::Context>
dirty = false;
Glib::RefPtr<Gdk::Window> window = get_window();
int w = get_width();
int h = get_height();