~ubuntu-branches/ubuntu/trusty/gtk2-engines-oxygen/trusty

« back to all changes in this revision

Viewing changes to src/animations/oxygenflatwidgetengine.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-05-06 11:57:43 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20120506115743-mzhcx54u2vs984rn
Tags: 1.2.3-0ubuntu1
* New upstream release.
  - Fixes crash in Filezilla. (LP: #992133)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
namespace Oxygen
29
29
{
30
30
    //_________________________________________________________
31
 
    bool FlatWidgetEngine::registerWidget( GtkWidget* widget )
32
 
    {
33
 
        if( contains( widget ) ) return false;
34
 
        _data.insert( widget );
 
31
    bool FlatWidgetEngine::registerFlatWidget( GtkWidget* widget )
 
32
    {
 
33
        if( containsFlat( widget ) ) return false;
 
34
        _flatData.insert( widget );
 
35
        BaseEngine::registerWidget( widget );
 
36
        return true;
 
37
    }
 
38
 
 
39
    //_________________________________________________________
 
40
    bool FlatWidgetEngine::registerPaintWidget( GtkWidget* widget )
 
41
    {
 
42
        if( containsPaint( widget ) ) return false;
 
43
        _paintData.insert( widget );
35
44
        BaseEngine::registerWidget( widget );
36
45
        return true;
37
46
    }
41
50
    {
42
51
 
43
52
        for( GtkWidget* parent = widget; parent; parent = gtk_widget_get_parent( parent ) )
44
 
        { if( contains( parent ) ) return parent; }
 
53
        {
 
54
            if( containsPaint( parent ) ) return 0x0;
 
55
            else if( containsFlat( parent ) ) return parent;
 
56
        }
45
57
 
46
58
        return 0L;
47
59
    }