From: Richard Kettlewell Date: Sun, 6 Dec 2009 11:29:12 +0000 (+0000) Subject: In compact mode, move the volume level to the right of the slider. X-Git-Tag: 5.0~25^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/faa19503b3ea9afb404329c10f0d17b1a0306e98 In compact mode, move the volume level to the right of the slider. --- diff --git a/disobedience/control.c b/disobedience/control.c index ea095c1..bc3c2c5 100644 --- a/disobedience/control.c +++ b/disobedience/control.c @@ -567,10 +567,13 @@ static int disable_rtp(disorder_eclient attribute((unused)) *c, static void control_minimode(const char attribute((unused)) *event, void attribute((unused)) *evendata, void attribute((unused)) *callbackdata) { - if(full_mode && volume_supported()) + if(full_mode && volume_supported()) { gtk_widget_show(balance_widget); - else + gtk_scale_set_value_pos(GTK_SCALE(volume_widget), GTK_POS_TOP); + } else { gtk_widget_hide(balance_widget); + gtk_scale_set_value_pos(GTK_SCALE(volume_widget), GTK_POS_RIGHT); + } } /*