* Forgot to set which volume should be shown.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -308,6 +308,9 @@ MediaReplicant::MessageReceived(BMessage* message)
|
|||||||
item->SetMarked(!item->IsMarked());
|
item->SetMarked(!item->IsMarked());
|
||||||
fVolumeWhich = item->IsMarked()
|
fVolumeWhich = item->IsMarked()
|
||||||
? VOLUME_USE_PHYS_OUTPUT : VOLUME_USE_MIXER;
|
? VOLUME_USE_PHYS_OUTPUT : VOLUME_USE_MIXER;
|
||||||
|
|
||||||
|
if (VolumeToolTip* tip = dynamic_cast<VolumeToolTip*>(ToolTip()))
|
||||||
|
tip->SetWhich(fVolumeWhich);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,9 +454,9 @@ MediaReplicant::_Init()
|
|||||||
B_CMAP8);
|
B_CMAP8);
|
||||||
fIcon->SetBits(kSpeakerBits, kSpeakerWidth * kSpeakerHeight, 0, B_CMAP8);
|
fIcon->SetBits(kSpeakerBits, kSpeakerWidth * kSpeakerHeight, 0, B_CMAP8);
|
||||||
|
|
||||||
SetToolTip(new VolumeToolTip());
|
|
||||||
|
|
||||||
_LoadSettings();
|
_LoadSettings();
|
||||||
|
|
||||||
|
SetToolTip(new VolumeToolTip(fVolumeWhich));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user