summaryrefslogtreecommitdiff
path: root/src/interface.c
AgeCommit message (Collapse)AuthorFilesLines
2011-10-22Add License header to source filesBenjamin Franzke1-0/+19
2011-10-22Fix 80 column widthBenjamin Franzke1-28/+53
2011-10-21Fix selection when moving an input aroundBenjamin Franzke1-0/+1
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-21Store all input_infos in one big listBenjamin Franzke1-19/+55
This makes the lookup routines independent of each other, which allows gradual updates later.
2011-10-21Fix ident mistakes introduces by previous mass changesBenjamin Franzke1-118/+113
Variables were substituted by sed, so indentation got messed up.
2011-10-21Stop using global variables.Benjamin Franzke1-132/+114
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-21Use a GList instead of GArray for sinks.Benjamin Franzke1-40/+50
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 Franzke1-0/+32
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 Franzke1-2/+2
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 Franzke1-5/+11
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-19interface: Rename status to interface_set_statusBenjamin Franzke1-2/+2
2011-10-19interface.h: Remove private function prototypesBenjamin Franzke1-100/+99
Therefore reorder function definitions in interface.c.
2011-10-19Coding style: Seperate line for function return typeBenjamin Franzke1-9/+18
2011-10-19interface: Rename get_input to interface_get_inputBenjamin Franzke1-2/+3
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.younix1-7/+47
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-ctlyounix1-0/+4
2010-11-04add commentyounix1-3/+3
2010-11-04get_input: only handle inputs, when context is readyBenjamin Franzke1-0/+4
2010-10-21status: fix pointer to be constben1-1/+1
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)ben1-8/+9
2010-07-23unix SIGWNICH signal wrapped as glib signal sourceben1-22/+8
2010-07-23move sink_list var to sink.c (included from sink.h)ben1-1/+0
other c-files than sink.c get the extern definition via sink.h, only sink.c receives the non-extern one
2010-07-23height,width made local vars + abit syntax cleanupben1-14/+14
2010-07-23add wasd + tab + x keymapping for left hand ctrlben1-0/+7
2010-07-23use blocked instead of pending var name for syncben1-4/+4
2010-07-23use sigaction instead of signalben1-12/+5
2010-07-23change (global) variable visibility (ie be static)ben1-10/+10
2010-07-23add status function, and display connection stateben1-8/+18
2010-07-23smoothly exit now (pulse con & glib loop explicit)ben1-1/+0
2010-07-22glib-ify datatype, functions etc + header cleanupben1-43/+42
2010-07-21message window working nowben1-5/+7
2010-07-21Merge branch 'master' of gitorious.org:pa-sink-ctl/pa-sink-ctlJan Klemkow1-17/+24
2010-07-21interface: wip: adding message boxJan Klemkow1-2/+12
2010-07-21be a bit more type-safe (integer types cleanup)ben1-17/+24
2010-07-20resize support using resize_term and ioctlben1-11/+36
2010-07-20clear stdscr and menu_win & print list after thatben1-0/+5
2010-07-20Merge branch 'master' of gitorious.org:pa-sink-ctl/pa-sink-ctlben1-3/+9
2010-07-20add signal handler for SIGWINCHben1-0/+14
2010-07-20interface: adding function for window-resizeyounix1-3/+9
This function resize the internal ncurses box when the terminal program was resized.
2010-07-20interface: adding comment for box-sizeyounix1-0/+1
2010-07-19interface: intern box is now in fullwindowsizeyounix1-8/+3