Re: disabling mouse scroll on GtkComboBox and spin buttons
- From: Lokesh Chakka <lvenkatakumarchakka gmail com>
- To: Ben Iofel <iofelben gmail com>
- Cc: gtk-app <gtk-app-devel-list gnome org>
- Subject: Re: disabling mouse scroll on GtkComboBox and spin buttons
- Date: Sun, 22 May 2016 23:38:10 +0530
thanks guys....
I am using like this:
g_signal_connect( spin_button, "scroll-event", G_CALLBACK(gtk_true), NULL );
g_signal_connect( combo_box, "scroll-event", G_CALLBACK(gtk_true), NULL );
issue resolved......
Thanks & Regards
--
Lokesh Chakka,
Mobile: 9731023458
On Sun, May 22, 2016 at 8:48 PM, Ben Iofel <iofelben gmail com> wrote:
There's a utility function for just returning true: gtk_true
On Sun, May 22, 2016, 6:53 AM <jcupitt gmail com> wrote:
On 22 May 2016 at 10:57, Florian Pelz <pelzflorian pelzflorian de>
wrote:
On 05/22/2016 11:54 AM, jcupitt gmail com wrote:
x = gtk_combo_box_new_text();
g_signal_connect(x, "scroll-event", G_CALLBACK(true_cb), NULL);
...
Ah yes, this is a much better way.
I'm not sure it'd work for spin buttons though :-(
Something like your event masks, Florian, would probably be necessary for
that.
John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]