Re: Gtk::Image location



On Fri, 2009-07-17 at 18:16 -0400, José Alburquerque wrote:
> I wonder why you would want to get the origin of the image with respect
> to the Gtk::ScrolledWindow.  Maybe you're planning to react to some
> mouse event on the image.  In that case, maybe you can place the image
> in a Gtk::EventBox and use the signals of the event box.  If not,
> getting the Gtk::ScrolledWindow border with
> Gtk::Container::get_border_width() could be what you're looking for.

One little correction:  The Gtk::Image can process its own signals so a
Gtk::EventBox may not be necessary.  Anyway, I'm just guessing at your
needs.

-- 
José Alburquerque



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]