summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-channel-bar.c
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-channel-bar.c
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-channel-bar.c')
-rw-r--r--mate-volume-control/src/gvc-channel-bar.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/mate-volume-control/src/gvc-channel-bar.c b/mate-volume-control/src/gvc-channel-bar.c
index 3d21119..b1bf894 100644
--- a/mate-volume-control/src/gvc-channel-bar.c
+++ b/mate-volume-control/src/gvc-channel-bar.c
@@ -20,15 +20,10 @@
#include "config.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-
-#include <pulse/pulseaudio.h>
-
#include <glib.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+
#include <canberra-gtk.h>
#include "gvc-channel-bar.h"
@@ -634,8 +629,7 @@ gvc_channel_bar_set_is_amplified (GvcChannelBar *bar, gboolean amplified)
}
void
-gvc_channel_bar_set_base_volume (GvcChannelBar *bar,
- pa_volume_t base_volume)
+gvc_channel_bar_set_base_volume (GvcChannelBar *bar, guint base_volume)
{
g_return_if_fail (GVC_IS_CHANNEL_BAR (bar));
@@ -929,8 +923,5 @@ gvc_channel_bar_finalize (GObject *object)
GtkWidget *
gvc_channel_bar_new (void)
{
- GObject *bar;
- bar = g_object_new (GVC_TYPE_CHANNEL_BAR,
- NULL);
- return GTK_WIDGET (bar);
+ return g_object_new (GVC_TYPE_CHANNEL_BAR, NULL);
}