Mercurial > hg > xmms-sid
comparison src/xmms-sid.c @ 189:e9e97670f7d7 dev-0_8_0b12
Cosmetic fix: remove pop-up subsong control window if song changes and
it is not needed anymore.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 18 Aug 2004 05:36:03 +0000 |
parents | 4406e91d2da3 |
children | bef2d77bada5 |
comparison
equal
deleted
inserted
replaced
188:5842729c17e1 | 189:e9e97670f7d7 |
---|---|
512 { | 512 { |
513 GtkAdjustment *tmpAdj; | 513 GtkAdjustment *tmpAdj; |
514 gboolean isEnabled; | 514 gboolean isEnabled; |
515 | 515 |
516 /* Check if control window exists, we are currently playing and have a tune */ | 516 /* Check if control window exists, we are currently playing and have a tune */ |
517 if (xs_subctrl && xs_status.pTune && xs_status.isPlaying) | 517 if (xs_subctrl) |
518 { | 518 { |
519 tmpAdj = GTK_ADJUSTMENT(xs_subctrl_adj); | 519 if (xs_status.pTune && xs_status.isPlaying) |
520 { | |
521 tmpAdj = GTK_ADJUSTMENT(xs_subctrl_adj); | |
520 | 522 |
521 tmpAdj->value = xs_status.currSong; | 523 tmpAdj->value = xs_status.currSong; |
522 tmpAdj->lower = 1; | 524 tmpAdj->lower = 1; |
523 tmpAdj->upper = xs_status.pTune->nsubTunes; | 525 tmpAdj->upper = xs_status.pTune->nsubTunes; |
524 gtk_adjustment_value_changed(tmpAdj); | 526 gtk_adjustment_value_changed(tmpAdj); |
527 } else | |
528 xs_subctrl_close(); | |
525 } | 529 } |
526 | 530 |
527 if (xs_fileinfowin) | 531 if (xs_fileinfowin) |
528 { | 532 { |
529 /* Check if we are currently playing and have a tune */ | 533 /* Check if we are currently playing and have a tune */ |