comparison audacious/mainwin.c @ 889:21e0ef28e318 trunk

[svn] - Unbreak headless support. This probably needs to be backported to 0.2.4.
author nenolod
date Mon, 27 Mar 2006 11:02:35 -0800
parents 7d998597254e
children ed26947bbf57
comparison
equal deleted inserted replaced
888:053b35fd1f3e 889:21e0ef28e318
808 } 808 }
809 809
810 static void 810 static void
811 mainwin_refresh_hints(void) 811 mainwin_refresh_hints(void)
812 { 812 {
813 if (bmp_active_skin->properties.mainwin_othertext == TRUE) 813 if (bmp_active_skin && bmp_active_skin->properties.mainwin_othertext
814 == TRUE)
814 { 815 {
815 widget_hide(WIDGET(mainwin_rate_text)); 816 widget_hide(WIDGET(mainwin_rate_text));
816 widget_hide(WIDGET(mainwin_freq_text)); 817 widget_hide(WIDGET(mainwin_freq_text));
817 widget_hide(WIDGET(mainwin_monostereo)); 818 widget_hide(WIDGET(mainwin_monostereo));
818 widget_show(WIDGET(mainwin_othertext)); 819 widget_show(WIDGET(mainwin_othertext));
884 widget_hide(WIDGET(mainwin_position)); 885 widget_hide(WIDGET(mainwin_position));
885 widget_hide(WIDGET(mainwin_sposition)); 886 widget_hide(WIDGET(mainwin_sposition));
886 mainwin_force_redraw = TRUE; 887 mainwin_force_redraw = TRUE;
887 } 888 }
888 889
889 if (bmp_active_skin->properties.mainwin_othertext == TRUE) 890 if (bmp_active_skin && bmp_active_skin->properties.mainwin_othertext
891 == TRUE)
890 { 892 {
891 g_snprintf(text, 512, "%d kbps, %0.1f khz, %s", 893 g_snprintf(text, 512, "%d kbps, %0.1f khz, %s",
892 bitrate < 1000 ? bitrate : bitrate / 100, 894 bitrate < 1000 ? bitrate : bitrate / 100,
893 (gfloat) frequency / 1000, 895 (gfloat) frequency / 1000,
894 (n_channels > 1) ? _("stereo") : _("mono")); 896 (n_channels > 1) ? _("stereo") : _("mono"));