Re: [gedit-list] GtkSourceCompletion
- From: Perriman <chuchiperriman gmail com>
- To: Jesse van den Kieboom <jessevdk gnome org>
- Cc: gedit-list <gedit-list gnome org>
- Subject: Re: [gedit-list] GtkSourceCompletion
- Date: Fri, 24 Apr 2009 14:38:49 +0200
He Jesse,
Perhaps we can remove the place parameter and "positioning-request" or
an standard GtkWidget signal, I don't know. The Idea is set the position
on cursor by default and, If you can set the popup position on other
place, you can connect to that signal and move the window where you
want. I think the place parameter will not be commonly used. With the
signal you can get the same functionality and the a lot more.
What do you think?
Thanks a lot for the GeditMessageBus help!!!! I will try to use it this
weekend.
El vie, 24-04-2009 a las 09:56 +0200, Jesse van den Kieboom escribió:
> Ignacio Casal Quinteiro wrote:
> > The reason of this place iter is because we want it to place it at the
> > beggining of the word.
> > In case you want the previous behaviour (cursor position) you just
> > need to pass NULL
> > to the iter.
> Also, positioning the popup otherwise (like centered in the view or on
> the screen) can be inconvenient because they might occlude where you
> type (for filtering). We might want to consider to allow some kind of
> filtering by typing but in some other widget than the view to avoid any
> typing there. I can imagine for instance if you have some doc open
> completion thing, that you don't want to really type a file path in the
> opened document, and have it removed when you complete it or something.
> We might therefore put the completion window in a separate, reusable
> class which can be used independent of the view (and then also
> positioned somewhere else).
>
> Just some thoughts, the main goal is to get a first, clean API out, and
> features that are needed, but can be added iteratively will come later.
> So its good to consider all options, but we might postpone features.
>
>
> Jesse
> >
> > Regards.
> >
> > On Fri, Apr 24, 2009 at 1:14 AM, Perriman <chuchiperriman gmail com
> > <mailto:chuchiperriman gmail com>> wrote:
> >
> > Hi all,
> >
> > I'm looking gtksourcecompletion changes and I don't like
> > the "place"
> > iter:
> >
> > gboolean gtk_source_completin_show (GtkSourceCompletion *completion,
> > GList *providers,
> > const gchar *criteria,
> > GtkTextIter *place);
> >
> > I don't know why you want to pass a "place" iter. The place will
> > be the
> > "insert" iter in the most of cases and, if you would like to set the
> > position in other place, the usual places are centered on view,
> > centered
> > on screen, on top, etc, but (IMO) not another GtkTextIter.
> >
> > What do you think? It will be cool if we can set the popup position
> > centered on screen or view :) (to complete things like the
> > open/recent
> > documents, symbols "goto" etc.)
> >
> > Regards,
> > Perriman
> >
> > _______________________________________________
> > gedit-list mailing list
> > gedit-list gnome org <mailto:gedit-list gnome org>
> > http://mail.gnome.org/mailman/listinfo/gedit-list
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > gedit-list mailing list
> > gedit-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gedit-list
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]