GTK_ALLOWED_SELECTION_WITHIN_INSERT_SIGNAL tuning

Didier Vidal didier-devel at 9online.fr
Thu Oct 6 15:57:28 EDT 2005


The problem of selection and completion is still in GNOME2_STATUS.
The patch below (that reconnects a workaround that doesn't set selection
whithin a signal fixes the problem on Gtk 2.4 - 4 being
GTK_MINOR_VERSION in the patch). 

Does the patch modified for higher versions of Gtk also fix the problem?

https://lists.gnucash.org/pipermail/gnucash-patches/2005-October/016597.html

Extract from GNOME2_STATUS:

  - Completion has problems.  It does complete when a character is typed
but
    it fails to select the inserted text.  This means that the next
character
    typed is inserted instead of continuing to test for completion
 


Didier.

Le sam 01/10/2005 à 18:35, Didier Vidal a écrit :
> I needed to restore the asynchronous selection mode, to have the
> selection on autocompletion work on my fedora core 2. Still, I don't
> know which version of gtk2 fixed the behaviour.....
> 
> Didier.
> 
> ------------
> 
> prompt > cvs -q diff -u gnucash-sheet.c
> Index: gnucash-sheet.c
> ===================================================================
> RCS file:
> /home/cvs/cvsroot/gnucash/src/register/register-gnome/gnucash-sheet.c,v
> retrieving revision 1.19.4.15
> diff -u -r1.19.4.15 gnucash-sheet.c
> --- gnucash-sheet.c     22 Jul 2005 18:53:02 -0000      1.19.4.15
> +++ gnucash-sheet.c     1 Oct 2005 16:31:24 -0000
> @@ -45,8 +45,8 @@
>  #define DEFAULT_REGISTER_WIDTH  630
>   
>   
> -/* FIXME: seems like this is ok in gtk2... */
> -#define GTK_ALLOWED_SELECTION_WITHIN_INSERT_SIGNAL 1
> +/* FIXME: at least broken on gtk 2.4.14 */
> +#define GTK_ALLOWED_SELECTION_WITHIN_INSERT_SIGNAL (GTK_MINOR_VERSION >
> 4)
>   
>  static guint gnucash_register_initial_rows = 15;
> 
> 
> _______________________________________________
> gnucash-patches mailing list
> gnucash-patches at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-patches



More information about the gnucash-patches mailing list