summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-12Revert "Use g_list_find_custom to calculate sink position"Benjamin Franzke2-14/+17
This reverts commit 3898263f329e877d9b6a997d7a92851908d19166.
2011-12-12Use g_list_find_custom to calculate sink positionBenjamin Franzke2-17/+14
The compare function matches against the configured sink priority.
2011-12-12Read config from config- not data-dirsBenjamin Franzke1-7/+18
glib provides no wrapper, so we have to loop ourselves over system and user dirs.
2011-12-12config: Add some more (generic) priority examplesBenjamin Franzke1-0/+11
..and make them default.
2011-12-12Implement a priority based sink order assignmentBenjamin Franzke7-9/+189
This is handsome when using udev based device discovery.
2011-12-05interface: Fix unitialized variableBenjamin Franzke1-1/+1
2011-10-31Dont show noentity errorsBenjamin Franzke1-0/+4
They happen from time to time, i guess when an entity goes away but we request some updates for it, since we didnt got the remove event yet. Thats a usual case in asynchronous communication.
2011-10-22interface: Derive new chooser_input directly when movingBenjamin Franzke3-35/+18
Dont schedule this until redraw, since this needed hacks to ensure we got the update.
2011-10-22interface: Dont move a sink_input if there is only one sinkBenjamin Franzke1-1/+4
2011-10-22Add License header to source filesBenjamin Franzke7-0/+131
2011-10-22Remove now invalid comments for the info callbacksBenjamin Franzke1-6/+0
2011-10-22Fix 80 column widthBenjamin Franzke3-47/+97
2011-10-21Fix selection when moving an input aroundBenjamin Franzke3-2/+9
We may not get the update for the moved index immediately, but we calculate the new position for the selection on redraw. So schedule redraw until we get the update, when we move around.
2011-10-21interface: Calculate offsets less oftenBenjamin Franzke1-17/+15
2011-10-21Make use of gradual updatesBenjamin Franzke2-93/+123
..to stop retreiving all sinks and inputs on every small change.
2011-10-21Store all input_infos in one big listBenjamin Franzke4-37/+85
This makes the lookup routines independent of each other, which allows gradual updates later.
2011-10-21pa-sink-ctl.h: Remove private functionsBenjamin Franzke2-94/+89
This involves moving functions around in pa-sink-ctl.c so that we dont need to declare them additionally.
2011-10-21Fix ident mistakes introduces by previous mass changesBenjamin Franzke4-164/+172
Variables were substituted by sed, so indentation got messed up.
2011-10-21Stop using global variables.Benjamin Franzke4-204/+219
Rather store it in a context, thats used everywhere as parameter, or as userdata.
2011-10-21interface: Stop the use of ugly tmp structuresBenjamin Franzke1-40/+28
2011-10-21Merge sink.h and sink_input.hBenjamin Franzke4-21/+11
2011-10-21Use a GList instead of GArray for sinks.Benjamin Franzke7-147/+84
This lets us drop our ugly GArray wrappers sink.c and sink_input.c. It will make gradual updates of sinks easier, since elements can be added and dropped everywhere in the list easily.
2011-10-21interface: Cache some boolean expressionsBenjamin Franzke1-4/+8
2011-10-21signalfd: Read out received signalsBenjamin Franzke1-0/+11
2011-10-20Use signalfd if availableBenjamin Franzke3-3/+40
If kqueue can be added as well, our homegrown kinda ugly signal dispatcher could be killed.
2011-10-20g_unix_signal: Remove g_ prefix to not collide with glibBenjamin Franzke5-39/+43
There is a g_unix_signal_new function in glib as well now, but that is only allowed to be used for SIGINT, SIGHUP and SIGTERM, so we have to stay with our own.
2011-10-20Kill off g_curses_inputBenjamin Franzke4-101/+13
Use a g_io_channel that listens to STDIN_FILENO instead.
2011-10-19interface_set_status: Rename "save" to "status"Benjamin Franzke1-5/+6
2011-10-19interface: Add defines for special chooser_input statesBenjamin Franzke1-13/+16
2011-10-19g_curses_input: Fix coding styleBenjamin Franzke2-9/+19
2011-10-19Makefile.am: Use variables rather then substitutionsBenjamin Franzke1-2/+3
Also set preprocessor flags in AM_CPPFLAGS
2011-10-19glib mainloop wrappers: Add missing includes for own prototypesBenjamin Franzke2-0/+2
2011-10-19Define gcc specific flags in configureBenjamin Franzke1-1/+1
2011-10-19g_unix_signal: Fix coding styleBenjamin Franzke1-8/+21
2011-10-19interface: Rename status to interface_set_statusBenjamin Franzke3-10/+10
2011-10-19interface.h: Remove private function prototypesBenjamin Franzke2-105/+99
Therefore reorder function definitions in interface.c.
2011-10-19Coding style: Seperate line for function return typeBenjamin Franzke6-40/+81
2011-10-19interface: Rename get_input to interface_get_inputBenjamin Franzke2-3/+4
2011-02-23Add glib helper headers to Makefile.amBenjamin Franzke1-1/+1
2011-02-08Fix: output formatingyounix1-2/+3
- max_name_len(): add indentation space - add space between volume bar and border
2011-02-08Dynamic growing volume bar.younix1-4/+5
Get the current window width and calculate the volume bar width.
2011-02-08Printing full name length.younix2-7/+48
Adding function to find out the longest name of all SINK's and INPUT's. Inserting indentations in amount of this max. length.
2010-11-04Merge branch 'master' of gitorious.org:pa-sink-ctl/pa-sink-ctlyounix2-0/+7
2010-11-04add commentyounix1-3/+3
2010-11-04get_input: only handle inputs, when context is readyBenjamin Franzke2-0/+7
2010-10-21get_sink_input_info: use pa_sink_info name attr as fallbackben1-1/+3
2010-10-21status: fix pointer to be constben2-2/+2
2010-07-23replace gramatically incorrect "signal_infos" with "signal_data"ben1-29/+29
2010-07-23configure.ac: use AC_MSG_ERROR and add sigaction() checkben1-11/+17
2010-07-23glib curses input-event added (replacement for g_timeout)ben6-17/+88