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

« back to all changes in this revision

Viewing changes to src/oxygenstylewrapper.cpp

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2014-02-12 06:35:44 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20140212063544-nnetktl56v0huubt
Tags: 1.4.3-0ubuntu1
* New upstream release
* One major issue was fixed (basically some dangling
  pointers being wrongly accessed). (LP: #1219844)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
* this file is part of the oxygen gtk engine
3
 
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
 
3
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo.pereira@free.fr>
4
4
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
5
5
*
6
6
* based on the Null Theme Engine for Gtk+.
27
27
 
28
28
#include "oxygenstylewrapper.h"
29
29
 
30
 
#include "config.h"
31
 
 
32
30
#include "oxygen.h"
33
31
#include "oxygenanimations.h"
34
32
#include "oxygenargbhelper.h"
35
33
#include "oxygencairoutils.h"
 
34
#include "oxygendefines.h"
36
35
#include "oxygengtkcellinfo.h"
37
36
#include "oxygengtkdetails.h"
38
37
#include "oxygengtktypenames.h"
41
40
#include "oxygenstyle.h"
42
41
#include "oxygenwindowmanager.h"
43
42
#include "oxygencolorutils.h"
 
43
#include "config.h"
44
44
 
45
45
#include <iostream>
46
46
namespace Oxygen
3784
3784
    }
3785
3785
 
3786
3786
    //_______________________________________________________________________________________________________________
 
3787
    void StyleWrapper::registerVersionType( void )
 
3788
    {
 
3789
 
 
3790
        // register version type
 
3791
        GType type( g_type_register_static_simple(
 
3792
            G_TYPE_OBJECT,
 
3793
            OXYGEN_VERSION_TYPE_NAME,
 
3794
            (guint16)sizeof( GObjectClass ),
 
3795
            (GClassInitFunc) NULL,
 
3796
            (guint16)sizeof( GObject ),
 
3797
            (GInstanceInitFunc) NULL,
 
3798
            G_TYPE_FLAG_ABSTRACT ) );
 
3799
 
 
3800
        // quark
 
3801
        GQuark quark( g_quark_from_string( OXYGEN_VERSION_QUARK_NAME ) );
 
3802
        g_type_set_qdata( type, quark, (gpointer) OXYGEN_VERSION );
 
3803
 
 
3804
    }
 
3805
 
 
3806
    //_______________________________________________________________________________________________________________
3787
3807
    GType StyleWrapper::type( void )
3788
3808
    { return _type; }
3789
3809