Enable use of mouse and keyboard in a ScrollView
- From: Baptiste Saleil <baptiste saleil gmail com>
- To: gnome-shell-list gnome org
- Subject: Enable use of mouse and keyboard in a ScrollView
- Date: Fri, 29 Jun 2012 17:57:36 +0200
Hello.
I'm developing an extension for gnome shell. I have a problem with the ScrollView.
I created my ScrollView simply like this :
this.scrollView = new St.ScrollView({style_class: 'vfade',
hscrollbar_policy: Gtk.PolicyType.NEVER,
vscrollbar_policy: Gtk.PolicyType.ALWAYS
});
My problem is that the scroll bar is only usable by wheel of mouse.
I would like be able to scroll with mouse (by clicking on the bar) and with keyboard (up/down keys).
I tried to add this with :
this.scrollView.set_mouse_scrolling(true);
... without any success.
I need your help, and hope you'll help me.
Regards,
Baptiste.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]