~midori/midori/deathnote

« back to all changes in this revision

Viewing changes to midori/midori-notebook.vala

  • Committer: Christian Dywan
  • Date: 2013-12-05 00:24:34 UTC
  • Revision ID: christian.dywan@canonical.com-20131205002434-fp9yx07e6yjiz0i4
Drop incomplete tab strip scrolling support

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
            });
252
252
 
253
253
            button_press_event.connect (button_pressed);
254
 
            scroll_event.connect (scrolled);
255
254
        }
256
255
 
257
256
        ~Notebook () {
304
303
            return false;
305
304
        }
306
305
 
307
 
        bool scrolled (Gdk.EventScroll event) {
308
 
            var widget = Gtk.get_event_widget (Gtk.get_current_event ());
309
 
            if (widget == null || widget == tab || widget.is_ancestor (tab))
310
 
                return false;
311
 
 
312
 
            switch (event.direction) {
313
 
                case Gdk.ScrollDirection.UP:
314
 
                case Gdk.ScrollDirection.LEFT:
315
 
                    if (index > 0)
316
 
                        index--;
317
 
                    return true;
318
 
                case Gdk.ScrollDirection.DOWN:
319
 
                case Gdk.ScrollDirection.RIGHT:
320
 
                    if (index < count - 1)
321
 
                        index++;
322
 
                    return true;
323
 
            }
324
 
            return false;
325
 
        }
326
 
 
327
306
        public void insert (Midori.Tab tab, int index) {
328
307
            var tally = new Tally (tab);
329
308
            tally.close_button_left = close_buttons_left;