summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-18config: Fix typo that caused keybind 'k' to not workBenjamin Franzke1-1/+1
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 Franzke6-6/+5
2011-12-14Increase warning leaves, and fix new occured onesBenjamin Franzke6-24/+24
2011-12-14CosmeticBenjamin Franzke1-68/+63
2011-12-14Remove unused change_callbackBenjamin Franzke3-20/+3
2011-12-14Use g_list_find_custom to find sinks and inputsBenjamin Franzke2-69/+58
Used when updating or removing sinks or inputs.
2011-12-13Free old members when updating sinks/inputsBenjamin Franzke1-4/+6
2011-12-13sink_(input)_info_cb: Use interface_set_status to display errorsBenjamin Franzke1-5/+7
2011-12-13Let interface_set_status use va argsBenjamin Franzke3-11/+12
2011-12-13Add goto based error-path cleanup to mainBenjamin Franzke4-41/+51
2011-12-13Quit mainloop in quit, so we quit even when we're disconnectedBenjamin Franzke1-1/+1
2011-12-13Be a bit more verbose on connection errorBenjamin Franzke1-3/+5
2011-12-13Quit when initial connection failsBenjamin Franzke1-0/+1
2011-12-13Output connection lost when context failsBenjamin Franzke1-2/+1
2011-12-13subscribe_cb: Check removed object to be known by usBenjamin Franzke1-0/+4
2011-12-13Allow to quit with a non-ready contextBenjamin Franzke2-3/+15
2011-12-13Fix some leaksBenjamin Franzke4-7/+39
2011-12-13interface: Rename print_sink_list to interface_redrawBenjamin Franzke4-8/+9
2011-12-13Add a list_foreach makro for GListBenjamin Franzke4-40/+26
Saves around 1-2 lines per foreach, and should be more error prone.
2011-12-13command: Assert when chooser input has unexpected valueBenjamin Franzke1-2/+8
2011-12-13config: Read keymap from configuration fileBenjamin Franzke8-191/+386
This needed a split of the switch that handled input before into several small callback functions.
2011-12-13sink: Remove struct typedefsBenjamin Franzke3-30/+30
2011-12-13Add config property to select display name to useBenjamin Franzke6-10/+42
2011-12-12Use g_list_insert_sorted for sink priorityBenjamin Franzke1-14/+10
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.