~ubuntu-branches/ubuntu/lucid/compiz-fusion-plugins-extra/lucid

« back to all changes in this revision

Viewing changes to src/widget/widget.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2007-09-28 16:12:51 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070928161251-gx5iqyzrd8haddkm
Tags: 0.5.2+git20070928-0ubuntu1
* new 0.6 git snapshot:
  - translation updates
  - fix widget property reading

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
                                 0, 1L, FALSE, AnyPropertyType, &retType,
184
184
                                 &format, &nitems, &remain, &data);
185
185
 
186
 
    if (result == Success && nitems && data)
 
186
    if (result == Success && nitems && data && format == 32)
187
187
    {
188
 
        if (*data)
 
188
        unsigned long int *retData = (unsigned long int *) data;
 
189
        if (*retData)
189
190
            ww->propertyState = PropertyWidget;
190
191
        else
191
192
            ww->propertyState = PropertyNoWidget;