Re: Equivalents for gdk_input_remove,gdk_input_add etc
- From: Havoc Pennington <hp redhat com>
- To: Paul Davis <pbd op net>
- Cc: Deepa <deepa chacko wipro com>, gtk-list gnome org, desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Equivalents for gdk_input_remove,gdk_input_add etc
- Date: 08 Feb 2002 12:30:36 -0500
Paul Davis <pbd op net> writes:
>
> last time i looked at the replacement functions, their interface was
> intimidating in the extreme. it required me to understand a *LOT* more
> about glib than i wanted to. by contrast, gdk_input_*() were pitched
> at exactly the right level. i spent 10 minutes or so trying to
> understand g_io_channel_add_watch() and gave up.
>
I agree there should be a g_input_add() type of thing. One for
bugzilla.
It's really not hard though (you just create an IO channel using
g_io_channel_unix_new(), g_io_channel_add_watch(), then
g_io_channel_unref()). The only difference is having to wrap the file
descriptor in the IOChannel deal.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]