Re: again a new snapshot of the GtkComboBox...
- From: Kristian Rietveld <kristian planet nl>
- To: Tim Janik <timj gtk org>
- Cc: GTK Development list <gtk-devel-list gnome org>
- Subject: Re: again a new snapshot of the GtkComboBox...
- Date: Sun, 29 Oct 2000 14:32:43 +0100 (CET)
On Sun, 29 Oct 2000, Tim Janik wrote:
> i'm not so worried about your indentation, going once over the file with
> emacs will fix the indentation easily.
> rather, please put opening braces after a newline, i.e.:
> if (foo)
> {
> do stuff;
> }
> instead of if (foo) {
> and please don't use inline assignments (haven't looked closely enough,
> so maybe you aren't using them), that is, do:
> foo = 5;
> if (foo)
> instead of
> if ((foo = 5))
Ok, I'll check.
>
> > > void gtk_combo_box_text_remove_matches (GtkComboBoxText *cboxtext,
> > > const gchar *pattern);
> > >
> > > What is the motivation for this?
> >
> > It was in the GtkClueHunter code, you can remove the matches of the given
> > pattern out of the list.
>
> well, from looking at your code, you seem to miss one of the clue hunters
> most important features, i.e. is the user enters:
>
> | *foo?baz* |
> if gtk_clue_hunter_set_pattern_matching (ch, TRUE); was called (defaults to
> TRUE as well), the clue hunter lists completions for you:
>
> +---------------------+
> | abacus |
> | barbara |
> | barbarafoo1baz <--------- highlit
> | customizedfoo |
> | deltafoobaz |
> | extrafoo2bazig <--------- highlit
> | zacharias |
> +---------------------+
>
> basically, you just need to do your strcmp for pattern_matching==FALSE
> and use the pattern functions as in remove_matches for pattern_matching==TRUE.
> this and the tab-completion is what made clue-hunter shell-sytle alike,
> was the main motivation for its implementation and finally, produced
> its name ;)
Thanks for pointing me at this feature, I've got it implemented now.
Kris
--
"Running Windows on a Pentium is like having a brand new Porsche but only
be able to drive backwards with the handbrake on."
(Unknown source - taken from fortune-mod-1.0-11)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]