Re: Why is GCompletion deprecated

2010-06-28 Thread Xavier Claessens
Le 28/06/10 11:56, Xavier Claessens a écrit : Hello GLib devs, I upgraded to latest glib, and I discover that GCompletion is now deprecated. Empathy was using it to complete the nickname when hitting TAB in chatrooms. I see nothing to replace that API... am I supposed to copy/paste its code ins

Re: Why is GCompletion deprecated

2010-06-28 Thread Bastien Nocera
On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: > > 2) If all unmaintained code should be deprecated with no replacement, > what do we have left in glib/gtk? Probably not that much... That sort of comments has no place here, and hardly helps people feel any sympathy for your current

Re: Why is GCompletion deprecated

2010-06-28 Thread Emmanuele Bassi
On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: > 1) I can think a bazillion of UIs that do/should have completion. the fact that nobody implemented them using GCompletion should give a hint that: a) this is not a shared opinion and b) it probably wasn't possible with GCompletion. >

Re: Why is GCompletion deprecated

2010-06-28 Thread Martyn Russell
On Mon, 2010-06-28 at 14:49 +0100, Emmanuele Bassi wrote: > On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: > > > 1) I can think a bazillion of UIs that do/should have completion. > > the fact that nobody implemented them using GCompletion should give a > hint that: a) this is not a sh

Re: Why is GCompletion deprecated

2010-06-28 Thread Salvatore De Paolis
On Mon, 28 Jun 2010 14:49:48 +0100 Emmanuele Bassi wrote: > the fact that nobody implemented them using GCompletion should give a > hint that: a) this is not a shared opinion and b) it probably wasn't > possible with GCompletion. That's not quite true, several applications use GCompletion, just

Re: Why is GCompletion deprecated

2010-06-28 Thread Emmanuele Bassi
On Mon, 2010-06-28 at 17:58 +0200, Salvatore De Paolis wrote: > On Mon, 28 Jun 2010 14:49:48 +0100 > Emmanuele Bassi wrote: > > > the fact that nobody implemented them using GCompletion should give a > > hint that: a) this is not a shared opinion and b) it probably wasn't > > possible with GCompl

Re: Why is GCompletion deprecated

2010-06-28 Thread Christian Dywan
Am Mon, 28 Jun 2010 17:28:47 +0100 schrieb Emmanuele Bassi : > On Mon, 2010-06-28 at 17:58 +0200, Salvatore De Paolis wrote: > > On Mon, 28 Jun 2010 14:49:48 +0100 > > Emmanuele Bassi wrote: > > > > The issue isn't really about deprecating some code but instead not > > providing the alternative

Re: Why is GCompletion deprecated

2010-06-28 Thread Emmanuele Bassi
On Mon, 2010-06-28 at 16:24 +0100, Martyn Russell wrote: > On Mon, 2010-06-28 at 14:49 +0100, Emmanuele Bassi wrote: > > On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: > > > > > 1) I can think a bazillion of UIs that do/should have completion. > > > > the fact that nobody implemented

Re: Why is GCompletion deprecated

2010-06-28 Thread Holger Berndt
On Mon, 28 Jun 2010 15:26:47 +0200 Xavier Claessens wrote: > 1) I can think a bazillion of UIs that do/should have completion. Personally, I'd find GNOME-Do style "completion" totally awesome [1]. I don't know if it's feasible to have something like that at a low level in the stack, but the thoug

Re: Why is GCompletion deprecated

2010-06-28 Thread Emmanuele Bassi
On Mon, 2010-06-28 at 18:43 +0200, Christian Dywan wrote: > > and, again, there is this false impression that deprecation is akin to > > removal. > > > > [...] > > > > you can either #undef G_DISABLE_DEPRECATED for the files that use > > these particular data structures, or copy gcompletion.[ch

RE: Why is GCompletion deprecated

2010-06-28 Thread Shawn Bakhtiar
ting the same type of code? Of course this is beyond what is offered on the base platforms themselves. Thanks for reading my rant, Shawn > Subject: Re: Why is GCompletion deprecated > From: eba...@gmail.com > To: gtk-devel-list@gnome.org > Date: Mon, 28 Jun 2010 17:59:47 +0100

Re: Why is GCompletion deprecated

2010-06-28 Thread Xavier Claessens
Le 28/06/10 15:48, Bastien Nocera a écrit : On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: 2) If all unmaintained code should be deprecated with no replacement, what do we have left in glib/gtk? Probably not that much... That sort of comments has no place here, and hardly helps pe

Re: Why is GCompletion deprecated

2010-06-28 Thread Xavier Claessens
Le 28/06/10 15:49, Emmanuele Bassi a écrit : On Mon, 2010-06-28 at 15:26 +0200, Xavier Claessens wrote: 1) I can think a bazillion of UIs that do/should have completion. the fact that nobody implemented them using GCompletion should give a hint that: a) this is not a shared opinion and b) i

Re: Why is GCompletion deprecated

2010-06-28 Thread Milan Bouchet-Valat
Le lundi 28 juin 2010 à 21:25 +0200, Xavier Claessens a écrit : > How could I come up with a better API if: > 1) You don't tell what's wrong with current? > 2) You keep repeating completion is not used by app, and barely used > code shouldn't be included in GLib? If that was true, even a better AP

Re: Why is GCompletion deprecated

2010-06-28 Thread Xavier Claessens
Le 28/06/10 18:46, Emmanuele Bassi a écrit : a 2 minutes API review of GCompletion: • g_completion_new(): not bindable; requires at least a new version with a GDestroyNotify function for language bindings. • the GCompletionFunc doesn't have a data parameter, making it unbindable. •

Re: Why is GCompletion deprecated

2010-06-28 Thread Christian Dywan
Am Mon, 28 Jun 2010 17:59:47 +0100 schrieb Emmanuele Bassi : > On Mon, 2010-06-28 at 18:43 +0200, Christian Dywan wrote: > > > > and, again, there is this false impression that deprecation is > > > akin to removal. > > > > > > [...] > > > > > > you can either #undef G_DISABLE_DEPRECATED for th

Re: Why is GCompletion deprecated

2010-06-29 Thread Emmanuele Bassi
On Tue, 2010-06-29 at 08:49 +0200, Christian Dywan wrote: > > > One has to wonder where this "false impression" is coming from. Is > > > it by any chance because there are loads of bugs and wiki pages > > > about using G_DISABLE_FOOBAR and not relying on deprecated code? > > > > it's a maintainer