chiark / gitweb /
In compact mode, move the volume level to the right of the slider.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Dec 2009 11:29:12 +0000 (11:29 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 6 Dec 2009 11:29:12 +0000 (11:29 +0000)
disobedience/control.c

index ea095c1..bc3c2c5 100644 (file)
@@ -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);
+  }
 }
 
 /*