2008-04-15 13:21:13 <timj@imendio.com>
[hildon] / src / hildon-hvolumebar.h
index a8cc5e3..08f51e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of hildon-libs
+ * This file is a part of hildon
  *
  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
  *
@@ -8,7 +8,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * as published by the Free Software Foundation; version 2.1 of
- * the License.
+ * the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  *
  */
 
-#ifndef __HILDON_HVOLUMEBAR_H__
-#define __HILDON_HVOLUMEBAR_H__
+#ifndef                                         __HILDON_HVOLUMEBAR_H__
+#define                                         __HILDON_HVOLUMEBAR_H__
 
-#include "hildon-volumebar.h"
+#include                                        "hildon-volumebar.h"
 
 G_BEGIN_DECLS
 
-#define HILDON_TYPE_HVOLUMEBAR ( hildon_hvolumebar_get_type() )
-#define HILDON_HVOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
-        HILDON_TYPE_HVOLUMEBAR, HildonHVolumebar))
-#define HILDON_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass),\
-        HILDON_TYPE_HVOLUMEBAR, HildonHVolumebarClass))
-#define HILDON_IS_HVOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
-        HILDON_TYPE_HVOLUMEBAR))
-#define HILDON_IS_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass),\
-        HILDON_TYPE_HVOLUMEBAR))
-
-typedef struct _HildonHVolumebar HildonHVolumebar;
-typedef struct _HildonHVolumebarClass HildonHVolumebarClass;
-
-struct _HildonHVolumebar {
-    /* This is our parent class */
-    HildonVolumebar volumebar;
+#define                                         HILDON_TYPE_HVOLUMEBAR (hildon_hvolumebar_get_type())
+
+#define                                         HILDON_HVOLUMEBAR(obj) (GTK_CHECK_CAST (obj,\
+                                                HILDON_TYPE_HVOLUMEBAR, HildonHVolumebar))
+
+#define                                         HILDON_HVOLUMEBAR_CLASS(klass) \
+                                                (GTK_CHECK_CLASS_CAST ((klass),\
+                                                HILDON_TYPE_HVOLUMEBAR, HildonHVolumebarClass))
+
+#define                                         HILDON_IS_HVOLUMEBAR(obj) (GTK_CHECK_TYPE (obj,\
+                                                HILDON_TYPE_HVOLUMEBAR))
+
+#define                                         HILDON_IS_HVOLUMEBAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass),\
+                                                HILDON_TYPE_HVOLUMEBAR))
+
+#define                                         HILDON_HVOLUMEBAR_GET_CLASS(obj) \
+                                                ((HildonHVolumebarClass *) G_OBJECT_GET_CLASS(obj))
+
+typedef struct                                  _HildonHVolumebar HildonHVolumebar;
+
+typedef struct                                  _HildonHVolumebarClass HildonHVolumebarClass;
+
+struct                                          _HildonHVolumebar 
+{
+    HildonVolumebar parent;
 };
 
-struct _HildonHVolumebarClass {
+struct                                          _HildonHVolumebarClass 
+{
     HildonVolumebarClass parent_class;
 };
 
-GType hildon_hvolumebar_get_type(void) G_GNUC_CONST;
-GtkWidget *hildon_hvolumebar_new(void);
+GType G_GNUC_CONST 
+hildon_hvolumebar_get_type                      (void);
+
+GtkWidget*
+hildon_hvolumebar_new                           (void);
 
 G_END_DECLS
-#endif /* __HILDON_HVOLUMEBAR_H__ */
+
+#endif                                          /* __HILDON_HVOLUMEBAR_H__ */