Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Gtk;
- using Gdk;
- using Granite.Widgets;
- using Granite.Services;
- using Foto;
- using Foto.Widgets;
- /* FIX ME */
- //FotoViewer is an image widget, in this experimental state, it's
- //not using cairo for zoom, but it's the goal to have a cairo surface
- //for this work, and for resizing.
- namespace mynamespace{
- public class myclass : Image{
- //Constructor
- public FotoViewer(FotoWindow window){
- //add events
- events = EventMask.SCROLL_MASK;
- this.scroll_event.connect (on_scroll_event);
- //etc etc
- }
- private bool on_scroll_event (Gdk.EventScroll e) {
- this.image_zoom_in();
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement