Remove superfluous update thumbs button.
authorCarl Hetherington <cth@carlh.net>
Tue, 24 Jul 2012 20:06:08 +0000 (21:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 24 Jul 2012 20:06:08 +0000 (21:06 +0100)
src/gtk/film_viewer.cc
src/gtk/film_viewer.h

index 23d91a4a8dc5af6427cd59ebc6078d44fe60ef7c..1d50c2f8898c702dde89100298b9d3676abe96a0 100644 (file)
@@ -37,21 +37,17 @@ using namespace boost;
 
 FilmViewer::FilmViewer (Film* f)
        : _film (f)
-       , _update_button ("Update")
 {
        _scroller.add (_image);
 
        Gtk::HBox* controls = manage (new Gtk::HBox);
        controls->set_spacing (6);
-       controls->pack_start (_update_button, false, false);
        controls->pack_start (_position_slider);
        
        _vbox.pack_start (_scroller, true, true);
        _vbox.pack_start (*controls, false, false);
        _vbox.set_border_width (12);
 
-       _update_button.signal_clicked().connect (sigc::mem_fun (*this, &FilmViewer::update_thumbs));
-
        _position_slider.set_digits (0);
        _position_slider.signal_format_value().connect (sigc::mem_fun (*this, &FilmViewer::format_position_slider_value));
        _position_slider.signal_value_changed().connect (sigc::mem_fun (*this, &FilmViewer::position_slider_changed));
@@ -138,8 +134,6 @@ FilmViewer::set_film (Film* f)
 {
        _film = f;
 
-       _update_button.set_sensitive (_film != 0);
-       
        if (!_film) {
                _image.clear ();
                return;
@@ -220,6 +214,5 @@ FilmViewer::setup_visibility ()
        }
 
        ContentType const c = _film->content_type ();
-       _update_button.property_visible() = (c == VIDEO);
        _position_slider.property_visible() = (c == VIDEO);
 }
index e01d6c096e0616d04d42c7d9a36921731439f402..ae0633cd21629a05f77063c7b4b0f50c53fea082 100644 (file)
@@ -58,6 +58,5 @@ private:
        Glib::RefPtr<Gdk::Pixbuf> _cropped_pixbuf;
        Glib::RefPtr<Gdk::Pixbuf> _scaled_pixbuf;
        Gtk::HScale _position_slider;
-       Gtk::Button _update_button;
        Gtk::Allocation _last_scroller_allocation;
 };