Commit fa52b8d0 authored by Murray Cumming's avatar Murray Cumming
Browse files

ImageGlom: Make the context-menu work with the EvView.

* glom/utility_widgets/imageglom.cc: Connect to the widget's own signal.
parent 49a5c131
2011-07-13 Murray Cumming <murrayc@murrayc.com>
ImageGlom: Make the context-menu work with the EvView.
* glom/utility_widgets/imageglom.cc: Connect to the widget's own signal.
2011-07-13 Murray Cumming <murrayc@murrayc.com>
ImageGlom: Loading/Saving: Add more FileChooser filters.
......
......@@ -54,6 +54,14 @@ ImageGlom::ImageGlom(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>&
void ImageGlom::init()
{
m_ev_view = EV_VIEW(ev_view_new());
//gtk_widget_add_events(GTK_WIDGET(m_ev_view), GDK_BUTTON_PRESS_MASK);
//Connect the the EvView's button-press-event signal,
//because we don't get it otherwise.
//For some reason this is not necessary with the GtkImage.
Gtk::Widget* cppEvView = Glib::wrap(GTK_WIDGET(m_ev_view));
cppEvView->signal_button_press_event().connect(
sigc::mem_fun(*this, &ImageGlom::on_button_press_event), false);
m_read_only = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment