summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2020-02-15Ellipsize long sink/source namesBenjamin Franzke1-28/+75
2020-02-15Fix column alignment for UTF-8 stringsBenjamin Franzke2-6/+45
2020-02-15Support UTF-8 charactersBenjamin Franzke3-2/+4
Switch to ncursesw (using pkg-config) for UTF-8 support. Fallback to a X/Open Curses specification compatible curses implementation if ncursesw is not available. The fallback is intended for non-ncurses systems only. UTF-8 multibyte does also work on the curses implementation of NetBSD. We may need a proper configure check to assert that the curses library is multibyte capable. Note that X/Open Curses doesn't specify wide character (utf-8) compatiblity.
2020-02-15Replace our custom signalfd() fallback with glib one (available as of 2.54)Benjamin Franzke4-207/+4
Back in 2011 SIGWINCH couldn't be used with g_unix_signal_add. This has changed in 2.54 (released Sep. 2017). That means we can drop our wrapper now.
2020-02-15unix_signal: Fix ISO C90 warningBenjamin Franzke1-2/+2
unix_signal.c:140:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] GSource *source; ^
2020-02-15unix_signal: Fix warnings and notesBenjamin Franzke1-3/+13
Doesn't happen on linux, as we have signalfd there, but would be triggered for other operating systems. warning: missing braces around initializer [-Wmissing-braces] sigaction(signum, &(struct sigaction){handler}, NULL); ^ unix_signal.c:130:39: note: (near initialization for '(anonymous)') unix_signal.c:130:29: warning: missing initializer for field 'sa_mask' of 'struct sigaction' [-Wmissing-field-initializers] sigaction(signum, &(struct sigaction){handler}, NULL); ^
2020-02-15Print status using mvwaddstr instead of mvwprintwBenjamin Franzke1-1/+1
The status message may container printf-style modifiers which would cause an incorrect buffer to be accessed.
2020-02-15Drop invalid call to delscreen(NULL)Benjamin Franzke1-1/+0
Some descriptions said that delscreen frees resources from initscr (which we use) and newterm (which we do not use). Therefore we added delscreen(NULL) in 489e2955687bccb263e1ece3a1615b3356c990f2. It turs out that delscreen does only free resources from newterm and that the argument *sp *must* not be NULL. (Only due to some unreference comparisons this didn't fail in ncurses, but could fail with other curses implementations)
2013-02-20interface: Fix unused variable errorsBenjamin Franzke1-0/+2
Caused by some curses functions being macros
2012-02-27Add a manpage using asciidocBenjamin Franzke3-0/+108
2012-02-12command: Fix segfault when trying to mute a source outputBenjamin Franzke1-1/+1
2011-12-20Fix endless loop in slave_ctl_{prev,next}_ctlBenjamin Franzke1-2/+2
2011-12-20Fix indents and leading whitespaceBenjamin Franzke2-10/+10
2011-12-20interface: Add labels to the sink and source listsBenjamin Franzke1-1/+5
2011-12-20Get rid of chooser_main_ctl and chooser_childBenjamin Franzke5-137/+205
Use a current_ctl pointer in struct interface instead.
2011-12-19ctl.h: Fix typos in parametersBenjamin Franzke1-2/+2
2011-12-19interface: Dont allocate volumebar if length is to lessBenjamin Franzke1-0/+2
2011-12-19command: Check current ctl in down-commandBenjamin Franzke1-0/+6
2011-12-19command: Put main ctl length logic into interface.cBenjamin Franzke3-5/+13
2011-12-19command: Add a command describing a cast in up-commandBenjamin Franzke1-0/+1
2011-12-19Make main_ctl_childs_len a vol_ctl vfuncBenjamin Franzke3-15/+19
2011-12-19Rename sink.h to ctl.hBenjamin Franzke5-4/+4
2011-12-19Rename chooser_{sink,input} to chooser_{main_ctl,child}Benjamin Franzke3-34/+36
2011-12-19Implement "up" for both sink and source listBenjamin Franzke1-3/+6
2011-12-19Add support for switching recording sourcesBenjamin Franzke3-14/+30
2011-12-19Let sinks & sources and sink_inputs & source_outputs use same typesBenjamin Franzke4-106/+39
2011-12-19Implement "down" for both sink and source listBenjamin Franzke4-22/+80
2011-12-18Initial support for displaying source outputsBenjamin Franzke5-8/+89
2011-12-18Initial support for printing available sourcesBenjamin Franzke4-9/+83
2011-12-18Rename sink{,_input}_info to sink{,input}Benjamin Franzke4-20/+20
2011-12-18Unify vol_ctl destruction pathsBenjamin Franzke1-26/+21
2011-12-18Move interface related properties into new interface structBenjamin Franzke5-155/+171
2011-12-18interface: (cosmetic) Move resize and clear functions aroundBenjamin Franzke1-46/+46
2011-12-18interface: Use printf precision and padding for volume bar printingBenjamin Franzke2-14/+27
2011-12-18interface: getmaxx is not standard, use getmaxyx insteadBenjamin Franzke1-2/+3
2011-12-18interface: Stop keeping track of cursor position ourselfBenjamin Franzke2-21/+20
2011-12-18interface: Unify drawing code for sinks and inputsBenjamin Franzke4-75/+60
They are drawn from the same function that calls itself recursiveley for childs of the currently drawn volume control. So its called for all sink_inputs that belong to a sink.
2011-12-18interface: Dont postfix spaces, always prefixBenjamin Franzke1-4/+4
This'll make it possible to have proper displaying when clamping ctx::max_name_len in future.
2011-12-18interface: print_volume can use vol_ctl parameter nowBenjamin Franzke1-5/+5
2011-12-18set_max_name_len: Simplify code to two calls to one helper functionBenjamin Franzke3-17/+21
2011-12-18command: Rename function do_mute to toggle_muteBenjamin Franzke1-2/+2
2011-12-18command: Minor cosmetic in volume_changeBenjamin Franzke1-4/+3
2011-12-18Finally move interface_get_current_ctl into interface.cBenjamin Franzke3-44/+47
2011-12-18Make use of interface_get_current_ctl in switch_sinkBenjamin Franzke1-12/+18
2011-12-18Rename vol_ctl_object to vol_ctlBenjamin Franzke3-7/+7
2011-12-18Add volume_set to vol_ctl_objectBenjamin Franzke3-40/+41
2011-12-18Add mute cb to vol_ctl_objectBenjamin Franzke3-22/+26
2011-12-18Unify common sink(_input) properties to a base objectBenjamin Franzke4-48/+51
2011-12-15Fix incorrect priority matching comparisonBenjamin Franzke1-1/+1
2011-12-15Rename config.ini to just configBenjamin Franzke3-48/+1