Re: [gedit-list] GtkSourceCompletion



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]