[LDTP-Dev] [Bug 381914] New: gettextproperty does not return anything

LDTP (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Dec 3 08:31:57 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=381914

  LDTP | ldtp | Ver: 0.6.x

           Summary: gettextproperty does not return anything
           Product: LDTP
           Version: 0.6.x
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: ldtp
        AssignedTo: ldtp-maint at gnome.bugs
        ReportedBy: srinics_202 at yahoo.com
         QAContact: ldtp-dev at lists.freedesktop.org
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
the funtion gettextproperty must return the foreground / background colour of
text (if any) in a range. But it doesnt. Even if text has a background colour,
it returns nothing.
I tested this by searching for a word in gedit (in which case the search word
is highlighted in yellow if found in the text), and getting the property of
that word.Also tested with syntax highlighting (in which case foreground colour
changes if a keyword is typed). Still it does not return anything.

Steps to reproduce:
1. open gedit, type some text and search for something in the text. close the
find dialog. note the start position of the searched (and now highlighted) word
in the text (count from 0) and end postion too (= start + length of word)
2. now in a terminal start python and enter "from ldtp import *"
3. then enter "gettextproperty('*gedit','txt0',start,end)"


Actual results:
does not retun any value

Expected results:
it should return :
bg-color: followed by the R,G,B components of the colour used to highlight the
word (yellow by default i.e 65535,65535,30840)

Does this happen every time?
yes

Other information:


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email


More information about the LDTP-dev mailing list