summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-balance-bar.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-05 01:41:22 +0200
committerinfirit <[email protected]>2014-10-09 16:53:00 +0200
commitcf427cb4ccfc269252c1f7744b4c730ef0bb7a4e (patch)
tree2b623fa9cabd575907a1cf40378eeecb8f21efaa /mate-volume-control/src/gvc-balance-bar.h
parenta4cb2a2c9ab27e32449b5696bb989cc761ec73c7 (diff)
downloadmate-media-cf427cb4ccfc269252c1f7744b4c730ef0bb7a4e.tar.bz2
mate-media-cf427cb4ccfc269252c1f7744b4c730ef0bb7a4e.tar.xz
Initial port of the dialog
Diffstat (limited to 'mate-volume-control/src/gvc-balance-bar.h')
-rw-r--r--mate-volume-control/src/gvc-balance-bar.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/mate-volume-control/src/gvc-balance-bar.h b/mate-volume-control/src/gvc-balance-bar.h
index bb3b8f7..02149d0 100644
--- a/mate-volume-control/src/gvc-balance-bar.h
+++ b/mate-volume-control/src/gvc-balance-bar.h
@@ -21,9 +21,11 @@
#ifndef __GVC_BALANCE_BAR_H
#define __GVC_BALANCE_BAR_H
+#include <glib.h>
#include <glib-object.h>
+#include <gtk/gtk.h>
-#include "gvc-channel-map.h"
+#include <libmatemixer/matemixer.h>
G_BEGIN_DECLS
@@ -42,9 +44,11 @@ typedef enum {
#define NUM_BALANCE_TYPES BALANCE_TYPE_LFE + 1
-typedef struct GvcBalanceBarPrivate GvcBalanceBarPrivate;
+typedef struct _GvcBalanceBar GvcBalanceBar;
+typedef struct _GvcBalanceBarClass GvcBalanceBarClass;
+typedef struct _GvcBalanceBarPrivate GvcBalanceBarPrivate;
-typedef struct
+struct _GvcBalanceBar
{
#if GTK_CHECK_VERSION (3, 0, 0)
GtkBox parent;
@@ -52,25 +56,25 @@ typedef struct
GtkHBox parent;
#endif
GvcBalanceBarPrivate *priv;
-} GvcBalanceBar;
+};
-typedef struct
+struct _GvcBalanceBarClass
{
#if GTK_CHECK_VERSION (3, 0, 0)
GtkBoxClass parent_class;
#else
GtkHBoxClass parent_class;
#endif
-} GvcBalanceBarClass;
+};
GType gvc_balance_bar_get_type (void);
-GtkWidget * gvc_balance_bar_new (const GvcChannelMap *map,
- GvcBalanceType btype);
+GtkWidget * gvc_balance_bar_new (MateMixerStream *stream,
+ GvcBalanceType btype);
-void gvc_balance_bar_set_size_group (GvcBalanceBar *bar,
- GtkSizeGroup *group,
- gboolean symmetric);
+void gvc_balance_bar_set_size_group (GvcBalanceBar *bar,
+ GtkSizeGroup *group,
+ gboolean symmetric);
G_END_DECLS