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

« back to all changes in this revision

Viewing changes to demo/oxygeninfowidget.h

  • 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
#ifndef oxygeninfowidget_h
 
2
#define oxygeninfowidget_h
 
3
 
 
4
/*
 
5
* this file is part of the oxygen gtk engine
 
6
* Copyright (c) 2014 Hugo Pereira Da Costa <hugo.pereira@free.fr>
 
7
*
 
8
* based on the Null Theme Engine for Gtk+.
 
9
* Copyright (c) 2008 Robert Staudinger <robert.staudinger@gmail.com>
 
10
*
 
11
* This  library is free  software; you can  redistribute it and/or
 
12
* modify it  under  the terms  of the  GNU Lesser  General  Public
 
13
* License  as published  by the Free  Software  Foundation; either
 
14
* version 2 of the License, or( at your option ) any later version.
 
15
*
 
16
* This library is distributed  in the hope that it will be useful,
 
17
* but  WITHOUT ANY WARRANTY; without even  the implied warranty of
 
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
19
* Lesser General Public License for more details.
 
20
*
 
21
* You should have received a copy of the GNU Lesser General Public
 
22
* License  along  with  this library;  if not,  write to  the Free
 
23
* Software Foundation, Inc., 51  Franklin St, Fifth Floor, Boston,
 
24
* MA 02110-1301, USA.
 
25
*/
 
26
 
 
27
#include "oxygendemowidget.h"
 
28
#include "oxygensignal.h"
 
29
 
 
30
#include <gtk/gtk.h>
 
31
#include <string>
 
32
 
 
33
namespace Oxygen
 
34
{
 
35
 
 
36
    class InfoWidget: public DemoWidget
 
37
    {
 
38
 
 
39
        public:
 
40
 
 
41
        //! constructor
 
42
        InfoWidget( void );
 
43
 
 
44
        //! destructor
 
45
        virtual ~InfoWidget( void );
 
46
 
 
47
        protected:
 
48
 
 
49
        // bold label
 
50
        GtkWidget* boldLabel( void ) const;
 
51
 
 
52
        //! add author
 
53
        void addAuthor( GtkWidget*, int, const std::string&, const std::string& ) const;
 
54
 
 
55
    };
 
56
 
 
57
}
 
58
 
 
59
#endif