summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();