summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <benjaminfranzke@googlemail.com>2010-07-23 02:21:06 +0200
committerben <benjaminfranzke@googlemail.com>2010-07-23 02:24:18 +0200
commit0b5229101775b78b0d398a4688fd289063f50abd (patch)
treee6a27e10f5f6cd0ee56f773ab83c94b916f0da04
parent3f8f345e8b954ebc5e32df331a49e51445126fe2 (diff)
downloadpa-sink-ctl-0b5229101775b78b0d398a4688fd289063f50abd.tar.gz
pa-sink-ctl-0b5229101775b78b0d398a4688fd289063f50abd.tar.bz2
pa-sink-ctl-0b5229101775b78b0d398a4688fd289063f50abd.zip
change (global) variable visibility (ie be static)
-rw-r--r--src/interface.c20
-rw-r--r--src/pa-sink-ctl.c10
2 files changed, 15 insertions, 15 deletions
diff --git a/src/interface.c b/src/interface.c
index 3614a21..6794fc5 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -16,18 +16,15 @@
extern GArray *sink_list;
extern pa_context* context;
-WINDOW *menu_win;
-WINDOW *msg_win;
+static WINDOW *menu_win;
+static WINDOW *msg_win;
-gint height;
-gint width;
+static gint height;
+static gint width;
-gint chooser_sink;
-gint chooser_input;
-guint32 selected_index;
-
-gboolean resize_running = FALSE;
-gboolean resize_pending = FALSE;
+static gint chooser_sink;
+static gint chooser_input;
+static guint32 selected_index;
static void resize(gint signal);
@@ -38,6 +35,9 @@ static void set_resize_callback(void)
static void resize(gint signal)
{
+ static gboolean resize_running = FALSE;
+ static gboolean resize_pending = FALSE;
+
set_resize_callback();
if (resize_running) {
diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c
index f44a42e..b6b0f4b 100644
--- a/src/pa-sink-ctl.c
+++ b/src/pa-sink-ctl.c
@@ -9,15 +9,15 @@
GArray *sink_list = NULL;
-pa_mainloop_api *mainloop_api = NULL;
-pa_context *context = NULL;
+pa_context *context = NULL;
-gboolean info_callbacks_finished = TRUE;
-gboolean state_callback_pending = FALSE;
+static gboolean info_callbacks_finished = TRUE;
+static gboolean state_callback_pending = FALSE;
int main(int argc, char** argv)
{
- pa_glib_mainloop *m = NULL;
+ pa_mainloop_api *mainloop_api = NULL;
+ pa_glib_mainloop *m = NULL;
sink_list = sink_list_alloc();